var/cache/dev/twig/63/6367fa5c07cd06b5d56484be15fa4edc.php line 50

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @VichUploader/Collector/mapping_collector.html.twig */
  14. class __TwigTemplate_52e6fa39d89b02108eb60cc10c5cd2ba extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'panel' => [$this'block_panel'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@WebProfiler/Profiler/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VichUploader/Collector/mapping_collector.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VichUploader/Collector/mapping_collector.html.twig"));
  40.         $this->parent $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig""@VichUploader/Collector/mapping_collector.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_toolbar($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  55.         // line 4
  56.         echo "    ";
  57.         ob_start();
  58.         // line 5
  59.         echo "        ";
  60.         $this->loadTemplate("@VichUploader/Collector/icon_grey.html.twig""@VichUploader/Collector/mapping_collector.html.twig"5)->display($context);
  61.         // line 6
  62.         echo "        <span class=\"sf-toolbar-value\">";
  63.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'6$this->source); })()), "mappingsCount", [], "any"falsefalsefalse6), "html"nulltrue);
  64.         echo "</span>
  65.     ";
  66.         $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  67.         // line 8
  68.         echo "
  69.     ";
  70.         // line 9
  71.         ob_start();
  72.         // line 10
  73.         echo "        <div class=\"sf-toolbar-info-piece\">
  74.             <b>Mappings</b>
  75.             <span class=\"sf-toolbar-status sf-toolbar-status-grey\">";
  76.         // line 12
  77.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'12$this->source); })()), "mappingsCount", [], "any"falsefalsefalse12), "html"nulltrue);
  78.         echo "</span>
  79.         </div>
  80.     ";
  81.         $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  82.         // line 15
  83.         echo "
  84.     ";
  85.         // line 16
  86.         echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => true]);
  87.         echo "
  88. ";
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.     }
  94.     // line 19
  95.     public function block_menu($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  102.         // line 20
  103.         echo "    ";
  104.         // line 21
  105.         echo "    <span class=\"label\">
  106.         <span class=\"icon\">
  107.             ";
  108.         // line 23
  109.         $this->loadTemplate("@VichUploader/Collector/icon_white.html.twig""@VichUploader/Collector/mapping_collector.html.twig"23)->display($context);
  110.         // line 24
  111.         echo "        </span>
  112.         <strong>VichUploader</strong>
  113.     </span>
  114. ";
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 29
  121.     public function block_panel($context, array $blocks = [])
  122.     {
  123.         $macros $this->macros;
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  128.         // line 30
  129.         echo "    <h2>VichUploaderBundle Mappings</h2>
  130.     <table>
  131.         <thead>
  132.             <tr>
  133.                 <th scope=\"col\">Field</th>
  134.                 <th scope=\"col\">Mapping</th>
  135.                 <th scope=\"col\">Filename property</th>
  136.                 <th scope=\"col\">Size property</th>
  137.                 <th scope=\"col\">Mime Type property</th>
  138.                 <th scope=\"col\">Original Name property</th>
  139.                 <th scope=\"col\">Dimensions property</th>
  140.             </tr>
  141.         </thead>
  142.         <tbody>
  143.             ";
  144.         // line 44
  145.         $context['_parent'] = $context;
  146.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'44$this->source); })()), "mappings", [], "any"falsefalsefalse44));
  147.         foreach ($context['_seq'] as $context["class"] => $context["data"]) {
  148.             // line 45
  149.             echo "                <tr>
  150.                     <th scope=\"row\" colspan=\"7\">";
  151.             // line 46
  152.             echo twig_escape_filter($this->env$context["class"], "html"nulltrue);
  153.             echo "</th>
  154.                 </tr>
  155.                 ";
  156.             // line 48
  157.             $context['_parent'] = $context;
  158.             $context['_seq'] = twig_ensure_traversable($context["data"]);
  159.             foreach ($context['_seq'] as $context["_key"] => $context["mdata"]) {
  160.                 // line 49
  161.                 echo "                    <tr>
  162.                         <td>";
  163.                 // line 50
  164.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["mdata"], "propertyName", [], "any"falsefalsefalse50), "html"nulltrue);
  165.                 echo "</td>
  166.                         <td>";
  167.                 // line 51
  168.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["mdata"], "mapping", [], "any"falsefalsefalse51), "html"nulltrue);
  169.                 echo "</td>
  170.                         <td>";
  171.                 // line 52
  172.                 echo ((twig_get_attribute($this->env$this->source$context["mdata"], "fileNameProperty", [], "any"truetruefalse52)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["mdata"], "fileNameProperty", [], "any"falsefalsefalse52), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));
  173.                 echo "</td>
  174.                         <td>";
  175.                 // line 53
  176.                 echo ((twig_get_attribute($this->env$this->source$context["mdata"], "size", [], "any"truetruefalse53)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["mdata"], "size", [], "any"falsefalsefalse53), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));
  177.                 echo "</td>
  178.                         <td>";
  179.                 // line 54
  180.                 echo ((twig_get_attribute($this->env$this->source$context["mdata"], "mimeType", [], "any"truetruefalse54)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["mdata"], "mimeType", [], "any"falsefalsefalse54), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));
  181.                 echo "</td>
  182.                         <td>";
  183.                 // line 55
  184.                 echo ((twig_get_attribute($this->env$this->source$context["mdata"], "originalName", [], "any"truetruefalse55)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["mdata"], "originalName", [], "any"falsefalsefalse55), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));
  185.                 echo "</td>
  186.                         <td>";
  187.                 // line 56
  188.                 echo ((twig_get_attribute($this->env$this->source$context["mdata"], "dimensions", [], "any"truetruefalse56)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["mdata"], "dimensions", [], "any"falsefalsefalse56), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));
  189.                 echo "</td>
  190.                     </tr>
  191.                 ";
  192.             }
  193.             $_parent $context['_parent'];
  194.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mdata'], $context['_parent'], $context['loop']);
  195.             $context array_intersect_key($context$_parent) + $_parent;
  196.             // line 59
  197.             echo "            ";
  198.         }
  199.         $_parent $context['_parent'];
  200.         unset($context['_seq'], $context['_iterated'], $context['class'], $context['data'], $context['_parent'], $context['loop']);
  201.         $context array_intersect_key($context$_parent) + $_parent;
  202.         // line 60
  203.         echo "        </tbody>
  204.     </table>
  205. ";
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     public function getTemplateName()
  212.     {
  213.         return "@VichUploader/Collector/mapping_collector.html.twig";
  214.     }
  215.     public function isTraitable()
  216.     {
  217.         return false;
  218.     }
  219.     public function getDebugInfo()
  220.     {
  221.         return array (  227 => 60,  221 => 59,  212 => 56,  208 => 55,  204 => 54,  200 => 53,  196 => 52,  192 => 51,  188 => 50,  185 => 49,  181 => 48,  176 => 46,  173 => 45,  169 => 44,  153 => 30,  143 => 29,  130 => 24,  128 => 23,  124 => 21,  122 => 20,  112 => 19,  100 => 16,  97 => 15,  91 => 12,  87 => 10,  85 => 9,  82 => 8,  76 => 6,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  222.     }
  223.     public function getSourceContext()
  224.     {
  225.         return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  226. {% block toolbar %}
  227.     {% set icon %}
  228.         {% include '@VichUploader/Collector/icon_grey.html.twig' %}
  229.         <span class=\"sf-toolbar-value\">{{ collector.mappingsCount }}</span>
  230.     {% endset %}
  231.     {% set text %}
  232.         <div class=\"sf-toolbar-info-piece\">
  233.             <b>Mappings</b>
  234.             <span class=\"sf-toolbar-status sf-toolbar-status-grey\">{{ collector.mappingsCount }}</span>
  235.         </div>
  236.     {% endset %}
  237.     {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }}
  238. {% endblock %}
  239. {% block menu %}
  240.     {# This left-hand menu appears when using the full-screen profiler. #}
  241.     <span class=\"label\">
  242.         <span class=\"icon\">
  243.             {% include '@VichUploader/Collector/icon_white.html.twig' %}
  244.         </span>
  245.         <strong>VichUploader</strong>
  246.     </span>
  247. {% endblock %}
  248. {% block panel %}
  249.     <h2>VichUploaderBundle Mappings</h2>
  250.     <table>
  251.         <thead>
  252.             <tr>
  253.                 <th scope=\"col\">Field</th>
  254.                 <th scope=\"col\">Mapping</th>
  255.                 <th scope=\"col\">Filename property</th>
  256.                 <th scope=\"col\">Size property</th>
  257.                 <th scope=\"col\">Mime Type property</th>
  258.                 <th scope=\"col\">Original Name property</th>
  259.                 <th scope=\"col\">Dimensions property</th>
  260.             </tr>
  261.         </thead>
  262.         <tbody>
  263.             {% for class, data in collector.mappings %}
  264.                 <tr>
  265.                     <th scope=\"row\" colspan=\"7\">{{ class }}</th>
  266.                 </tr>
  267.                 {% for mdata in data %}
  268.                     <tr>
  269.                         <td>{{ mdata.propertyName }}</td>
  270.                         <td>{{ mdata.mapping }}</td>
  271.                         <td>{{ mdata.fileNameProperty|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td>
  272.                         <td>{{ mdata.size|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td>
  273.                         <td>{{ mdata.mimeType|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td>
  274.                         <td>{{ mdata.originalName|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td>
  275.                         <td>{{ mdata.dimensions|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td>
  276.                     </tr>
  277.                 {% endfor %}
  278.             {% endfor %}
  279.         </tbody>
  280.     </table>
  281. {% endblock %}
  282. ""@VichUploader/Collector/mapping_collector.html.twig""/home/bestofi/bestof/vendor/vich/uploader-bundle/templates/Collector/mapping_collector.html.twig");
  283.     }
  284. }