var/cache/dev/twig/63/6367fa5c07cd06b5d56484be15fa4edc.php line 50
<?phpuse Twig\Environment;use Twig\Error\LoaderError;use Twig\Error\RuntimeError;use Twig\Extension\SandboxExtension;use Twig\Markup;use Twig\Sandbox\SecurityError;use Twig\Sandbox\SecurityNotAllowedTagError;use Twig\Sandbox\SecurityNotAllowedFilterError;use Twig\Sandbox\SecurityNotAllowedFunctionError;use Twig\Source;use Twig\Template;/* @VichUploader/Collector/mapping_collector.html.twig */class __TwigTemplate_52e6fa39d89b02108eb60cc10c5cd2ba extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['toolbar' => [$this, 'block_toolbar'],'menu' => [$this, 'block_menu'],'panel' => [$this, 'block_panel'],];}protected function doGetParent(array $context){// line 1return "@WebProfiler/Profiler/layout.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VichUploader/Collector/mapping_collector.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VichUploader/Collector/mapping_collector.html.twig"));$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@VichUploader/Collector/mapping_collector.html.twig", 1);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 3public function block_toolbar($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));// line 4echo " ";ob_start();// line 5echo " ";$this->loadTemplate("@VichUploader/Collector/icon_grey.html.twig", "@VichUploader/Collector/mapping_collector.html.twig", 5)->display($context);// line 6echo " <span class=\"sf-toolbar-value\">";echo twig_escape_filter($this->env, 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.', 6, $this->source); })()), "mappingsCount", [], "any", false, false, false, 6), "html", null, true);echo "</span>";$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());// line 8echo "";// line 9ob_start();// line 10echo " <div class=\"sf-toolbar-info-piece\"><b>Mappings</b><span class=\"sf-toolbar-status sf-toolbar-status-grey\">";// line 12echo twig_escape_filter($this->env, 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.', 12, $this->source); })()), "mappingsCount", [], "any", false, false, false, 12), "html", null, true);echo "</span></div>";$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());// line 15echo "";// line 16echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => true]);echo "";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 19public function block_menu($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));// line 20echo " ";// line 21echo " <span class=\"label\"><span class=\"icon\">";// line 23$this->loadTemplate("@VichUploader/Collector/icon_white.html.twig", "@VichUploader/Collector/mapping_collector.html.twig", 23)->display($context);// line 24echo " </span><strong>VichUploader</strong></span>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 29public function block_panel($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));// line 30echo " <h2>VichUploaderBundle Mappings</h2><table><thead><tr><th scope=\"col\">Field</th><th scope=\"col\">Mapping</th><th scope=\"col\">Filename property</th><th scope=\"col\">Size property</th><th scope=\"col\">Mime Type property</th><th scope=\"col\">Original Name property</th><th scope=\"col\">Dimensions property</th></tr></thead><tbody>";// line 44$context['_parent'] = $context;$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", false, false, false, 44));foreach ($context['_seq'] as $context["class"] => $context["data"]) {// line 45echo " <tr><th scope=\"row\" colspan=\"7\">";// line 46echo twig_escape_filter($this->env, $context["class"], "html", null, true);echo "</th></tr>";// line 48$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable($context["data"]);foreach ($context['_seq'] as $context["_key"] => $context["mdata"]) {// line 49echo " <tr><td>";// line 50echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mdata"], "propertyName", [], "any", false, false, false, 50), "html", null, true);echo "</td><td>";// line 51echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["mdata"], "mapping", [], "any", false, false, false, 51), "html", null, true);echo "</td><td>";// line 52echo ((twig_get_attribute($this->env, $this->source, $context["mdata"], "fileNameProperty", [], "any", true, true, false, 52)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["mdata"], "fileNameProperty", [], "any", false, false, false, 52), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));echo "</td><td>";// line 53echo ((twig_get_attribute($this->env, $this->source, $context["mdata"], "size", [], "any", true, true, false, 53)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["mdata"], "size", [], "any", false, false, false, 53), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));echo "</td><td>";// line 54echo ((twig_get_attribute($this->env, $this->source, $context["mdata"], "mimeType", [], "any", true, true, false, 54)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["mdata"], "mimeType", [], "any", false, false, false, 54), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));echo "</td><td>";// line 55echo ((twig_get_attribute($this->env, $this->source, $context["mdata"], "originalName", [], "any", true, true, false, 55)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["mdata"], "originalName", [], "any", false, false, false, 55), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));echo "</td><td>";// line 56echo ((twig_get_attribute($this->env, $this->source, $context["mdata"], "dimensions", [], "any", true, true, false, 56)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["mdata"], "dimensions", [], "any", false, false, false, 56), "<span class=\"text-danger\">Not Set</span>")) : ("<span class=\"text-danger\">Not Set</span>"));echo "</td></tr>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mdata'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 59echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['class'], $context['data'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 60echo " </tbody></table>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "@VichUploader/Collector/mapping_collector.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){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,);}public function getSourceContext(){return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}{% block toolbar %}{% set icon %}{% include '@VichUploader/Collector/icon_grey.html.twig' %}<span class=\"sf-toolbar-value\">{{ collector.mappingsCount }}</span>{% endset %}{% set text %}<div class=\"sf-toolbar-info-piece\"><b>Mappings</b><span class=\"sf-toolbar-status sf-toolbar-status-grey\">{{ collector.mappingsCount }}</span></div>{% endset %}{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }}{% endblock %}{% block menu %}{# This left-hand menu appears when using the full-screen profiler. #}<span class=\"label\"><span class=\"icon\">{% include '@VichUploader/Collector/icon_white.html.twig' %}</span><strong>VichUploader</strong></span>{% endblock %}{% block panel %}<h2>VichUploaderBundle Mappings</h2><table><thead><tr><th scope=\"col\">Field</th><th scope=\"col\">Mapping</th><th scope=\"col\">Filename property</th><th scope=\"col\">Size property</th><th scope=\"col\">Mime Type property</th><th scope=\"col\">Original Name property</th><th scope=\"col\">Dimensions property</th></tr></thead><tbody>{% for class, data in collector.mappings %}<tr><th scope=\"row\" colspan=\"7\">{{ class }}</th></tr>{% for mdata in data %}<tr><td>{{ mdata.propertyName }}</td><td>{{ mdata.mapping }}</td><td>{{ mdata.fileNameProperty|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td><td>{{ mdata.size|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td><td>{{ mdata.mimeType|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td><td>{{ mdata.originalName|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td><td>{{ mdata.dimensions|default('<span class=\"text-danger\">Not Set</span>')|raw }}</td></tr>{% endfor %}{% endfor %}</tbody></table>{% endblock %}", "@VichUploader/Collector/mapping_collector.html.twig", "/home/bestofi/bestof/vendor/vich/uploader-bundle/templates/Collector/mapping_collector.html.twig");}}