var/cache/dev/twig/0c/0c95b60a9ab9c919493c42c1c1aafd830ea3db094374b8d9ec5b4974863ce6ed.php line 63

Open in your IDE?
  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. /* @SyliusShop/Taxon/_horizontalMenu.html.twig */
  14. class __TwigTemplate_f43e3b2098cc60a571283f5c645d4999952c4aa22e5b53b3dc0054fdf660b645 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_horizontalMenu.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Taxon/_horizontalMenu.html.twig"));
  33.         // line 18
  34.         echo "
  35. ";
  36.         // line 19
  37.         $macros["macros"] = $this->macros["macros"] = $this;
  38.         // line 20
  39.         echo "
  40. ";
  41.         // line 21
  42.         if ((twig_length_filter($this->env, (isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'21$this->source); })())) > 0)) {
  43.             // line 22
  44.             echo "<div class=\"ui large stackable menu\" ";
  45.             echo call_user_func_array($this->env->getFunction('sylius_test_html_attribute')->getCallable(), ["menu"]);
  46.             echo ">
  47.     ";
  48.             // line 23
  49.             $context['_parent'] = $context;
  50.             $context['_seq'] = twig_ensure_traversable((isset($context["taxons"]) || array_key_exists("taxons"$context) ? $context["taxons"] : (function () { throw new RuntimeError('Variable "taxons" does not exist.'23$this->source); })()));
  51.             foreach ($context['_seq'] as $context["_key"] => $context["taxon"]) {
  52.                 // line 24
  53.                 echo "        ";
  54.                 echo twig_call_macro($macros["macros"], "macro_item", [$context["taxon"]], 24$context$this->getSourceContext());
  55.                 echo "
  56.     ";
  57.             }
  58.             $_parent $context['_parent'];
  59.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['taxon'], $context['_parent'], $context['loop']);
  60.             $context array_intersect_key($context$_parent) + $_parent;
  61.             // line 26
  62.             echo "</div>
  63. ";
  64.         }
  65.         
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  67.         
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  69.     }
  70.     // line 1
  71.     public function macro_item($__taxon__ null, ...$__varargs__)
  72.     {
  73.         $macros $this->macros;
  74.         $context $this->env->mergeGlobals([
  75.             "taxon" => $__taxon__,
  76.             "varargs" => $__varargs__,
  77.         ]);
  78.         $blocks = [];
  79.         ob_start();
  80.         try {
  81.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""item"));
  83.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""item"));
  85.             // line 2
  86.             echo "    ";
  87.             $macros["macros"] = $this;
  88.             // line 3
  89.             echo "
  90.     ";
  91.             // line 4
  92.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'4$this->source); })()), "enabledChildren", [], "any"falsefalsefalse4)) > 0)) {
  93.                 // line 5
  94.                 echo "        <div class=\"ui dropdown item\" ";
  95.                 echo call_user_func_array($this->env->getFunction('sylius_test_html_attribute')->getCallable(), ["menu-item"]);
  96.                 echo ">
  97.             <span class=\"text\">";
  98.                 // line 6
  99.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  100.                 echo "</span>
  101.             <i class=\"dropdown icon\"></i>
  102.             <div class=\"menu\">
  103.                 ";
  104.                 // line 9
  105.                 $context['_parent'] = $context;
  106.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'9$this->source); })()), "enabledChildren", [], "any"falsefalsefalse9));
  107.                 foreach ($context['_seq'] as $context["_key"] => $context["childTaxon"]) {
  108.                     // line 10
  109.                     echo "                    ";
  110.                     echo twig_call_macro($macros["macros"], "macro_item", [$context["childTaxon"]], 10$context$this->getSourceContext());
  111.                     echo "
  112.                 ";
  113.                 }
  114.                 $_parent $context['_parent'];
  115.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childTaxon'], $context['_parent'], $context['loop']);
  116.                 $context array_intersect_key($context$_parent) + $_parent;
  117.                 // line 12
  118.                 echo "            </div>
  119.         </div>
  120.     ";
  121.             } else {
  122.                 // line 15
  123.                 echo "        <a href=\"";
  124.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_index", ["slug" => twig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'15$this->source); })()), "slug", [], "any"falsefalsefalse15), "_locale" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'15$this->source); })()), "translation", [], "any"falsefalsefalse15), "locale", [], "any"falsefalsefalse15)]), "html"nulltrue);
  125.                 echo "\" class=\"item\" ";
  126.                 echo call_user_func_array($this->env->getFunction('sylius_test_html_attribute')->getCallable(), ["menu-item"]);
  127.                 echo ">";
  128.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["taxon"]) || array_key_exists("taxon"$context) ? $context["taxon"] : (function () { throw new RuntimeError('Variable "taxon" does not exist.'15$this->source); })()), "name", [], "any"falsefalsefalse15), "html"nulltrue);
  129.                 echo "</a>
  130.     ";
  131.             }
  132.             
  133.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.             
  135.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  136.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  137.         } finally {
  138.             ob_end_clean();
  139.         }
  140.     }
  141.     public function getTemplateName()
  142.     {
  143.         return "@SyliusShop/Taxon/_horizontalMenu.html.twig";
  144.     }
  145.     public function isTraitable()
  146.     {
  147.         return false;
  148.     }
  149.     public function getDebugInfo()
  150.     {
  151.         return array (  139 => 15,  134 => 12,  125 => 10,  121 => 9,  115 => 6,  110 => 5,  108 => 4,  105 => 3,  102 => 2,  83 => 1,  71 => 26,  62 => 24,  58 => 23,  53 => 22,  51 => 21,  48 => 20,  46 => 19,  43 => 18,);
  152.     }
  153.     public function getSourceContext()
  154.     {
  155.         return new Source("{% macro item(taxon) %}
  156.     {% import _self as macros %}
  157.     {% if taxon.enabledChildren|length > 0 %}
  158.         <div class=\"ui dropdown item\" {{ sylius_test_html_attribute('menu-item') }}>
  159.             <span class=\"text\">{{ taxon.name }}</span>
  160.             <i class=\"dropdown icon\"></i>
  161.             <div class=\"menu\">
  162.                 {% for childTaxon in taxon.enabledChildren %}
  163.                     {{ macros.item(childTaxon) }}
  164.                 {% endfor %}
  165.             </div>
  166.         </div>
  167.     {% else %}
  168.         <a href=\"{{ path('sylius_shop_product_index', {'slug': taxon.slug, '_locale': taxon.translation.locale}) }}\" class=\"item\" {{ sylius_test_html_attribute('menu-item') }}>{{ taxon.name }}</a>
  169.     {% endif %}
  170. {% endmacro %}
  171. {% import _self as macros %}
  172. {% if taxons|length > 0 %}
  173. <div class=\"ui large stackable menu\" {{ sylius_test_html_attribute('menu') }}>
  174.     {% for taxon in taxons %}
  175.         {{ macros.item(taxon) }}
  176.     {% endfor %}
  177. </div>
  178. {% endif %}
  179. ""@SyliusShop/Taxon/_horizontalMenu.html.twig""/home/ell/domains/dutoner.ell.mademonstration.fr/public_html/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Taxon/_horizontalMenu.html.twig");
  180.     }
  181. }