var/cache/dev/twig/c1/c15a833b02d33a10064742fc2046701b.php line 44

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/Cart/summary.html.twig */
  14. class __TwigTemplate_6dab4ad369093f854ac1797619fcd74f 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->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'title' => [$this'block_title'],
  26.             'main_menu' => [$this'block_main_menu'],
  27.             'sidebar' => [$this'block_sidebar'],
  28.             'content' => [$this'block_content'],
  29.             'bottom_content_full_width' => [$this'block_bottom_content_full_width'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "@SyliusShop/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  44.         // line 3
  45.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), [=> "@SyliusShop/Form/theme.html.twig"], true);
  46.         // line 5
  47.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusShop/Common/Macro/messages.html.twig""@SyliusShop/Cart/summary.html.twig"5)->unwrap();
  48.         // line 17
  49.         $context["header"] = "sylius.ui.your_shopping_cart";
  50.         // line 1
  51.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Cart/summary.html.twig"1);
  52.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  53.         
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.     }
  58.     // line 7
  59.     public function block_stylesheets($context, array $blocks = [])
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  66.         // line 8
  67.         echo "    ";
  68.         $this->displayParentBlock("stylesheets"$context$blocks);
  69.         echo "
  70.     ";
  71.         // line 9
  72.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("shop-cart-summary"null"bootstrapTheme");
  73.         echo "
  74. ";
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.     }
  80.     // line 12
  81.     public function block_javascripts($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  88.         // line 13
  89.         echo "    ";
  90.         $this->displayParentBlock("javascripts"$context$blocks);
  91.         echo "
  92.     ";
  93.         // line 14
  94.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("shop-cart-summary"null"bootstrapTheme");
  95.         echo "
  96. ";
  97.         
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99.         
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  101.     }
  102.     // line 19
  103.     public function block_title($context, array $blocks = [])
  104.     {
  105.         $macros $this->macros;
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  108.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  110.         // line 20
  111.         echo "    ";
  112.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("dedi_sylius_seo_plugin.title", ["resource" => (($context["product"]) ?? (twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'20$this->source); })()), "channel", [], "any"falsefalsefalse20))), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["header"]) || array_key_exists("header"$context) ? $context["header"] : (function () { throw new RuntimeError('Variable "header" does not exist.'20$this->source); })()))]);
  113.         echo "
  114. ";
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     // line 23
  121.     public function block_main_menu($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""main_menu"));
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  127.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_menu"));
  128.         
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  130.         
  131.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  132.     }
  133.     // line 25
  134.     public function block_sidebar($context, array $blocks = [])
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  141.         
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143.         
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  145.     }
  146.     // line 27
  147.     public function block_content($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  154.         // line 28
  155.         echo "    ";
  156.         if ( !twig_get_attribute($this->env$this->source, (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'28$this->source); })()), "empty", [], "any"falsefalsefalse28)) {
  157.             // line 29
  158.             echo "        ";
  159.             $this->loadTemplate("@SyliusShop/Cart/Summary/_header.html.twig""@SyliusShop/Cart/summary.html.twig"29)->display($context);
  160.             // line 30
  161.             echo "        <div class=\"summary-wrap mb-5\">
  162.             <div class=\"summary\">
  163.                 <div class=\"summary-content row\">
  164.                     <div class=\"summary-cart-wrap col-lg-8 col-12\">
  165.                         ";
  166.             // line 34
  167.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.items", ["cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'34$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'34$this->source); })())]);
  168.             echo "
  169.                     </div>
  170.                     <div class=\"summary-recap-wrap col-lg-4 col-12\">
  171.                         ";
  172.             // line 37
  173.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.summary", ["cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'37$this->source); })())]);
  174.             echo "
  175.                     </div>
  176.                 </div>
  177.             </div>
  178.         </div>
  179.         ";
  180.             // line 43
  181.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.suggestions", ["cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'43$this->source); })())]);
  182.             echo "
  183.     ";
  184.         } else {
  185.             // line 45
  186.             echo "        ";
  187.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.your_cart_is_empty"], 45$context$this->getSourceContext());
  188.             echo "
  189.     ";
  190.         }
  191.         // line 47
  192.         echo "
  193. ";
  194.         
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196.         
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  198.     }
  199.     // line 50
  200.     public function block_bottom_content_full_width($context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottom_content_full_width"));
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bottom_content_full_width"));
  207.         
  208.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.     }
  212.     public function getTemplateName()
  213.     {
  214.         return "@SyliusShop/Cart/summary.html.twig";
  215.     }
  216.     public function isTraitable()
  217.     {
  218.         return false;
  219.     }
  220.     public function getDebugInfo()
  221.     {
  222.         return array (  243 => 50,  232 => 47,  226 => 45,  221 => 43,  212 => 37,  206 => 34,  200 => 30,  197 => 29,  194 => 28,  184 => 27,  166 => 25,  148 => 23,  135 => 20,  125 => 19,  113 => 14,  108 => 13,  98 => 12,  86 => 9,  81 => 8,  71 => 7,  60 => 1,  58 => 17,  56 => 5,  54 => 3,  41 => 1,);
  223.     }
  224.     public function getSourceContext()
  225.     {
  226.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  227. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  228. {% import '@SyliusShop/Common/Macro/messages.html.twig' as messages %}
  229. {% block stylesheets %}
  230.     {{ parent() }}
  231.     {{ encore_entry_link_tags('shop-cart-summary', null, 'bootstrapTheme') }}
  232. {% endblock %}
  233. {% block javascripts %}
  234.     {{ parent() }}
  235.     {{ encore_entry_script_tags('shop-cart-summary', null, 'bootstrapTheme') }}
  236. {% endblock %}
  237. {% set header = 'sylius.ui.your_shopping_cart' %}
  238. {% block title %}
  239.     {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? sylius.channel, title: header|trans }) }}
  240. {% endblock %}
  241. {% block main_menu %}{% endblock %}
  242. {% block sidebar %}{% endblock %}
  243. {% block content %}
  244.     {% if not cart.empty %}
  245.         {% include '@SyliusShop/Cart/Summary/_header.html.twig' %}
  246.         <div class=\"summary-wrap mb-5\">
  247.             <div class=\"summary\">
  248.                 <div class=\"summary-content row\">
  249.                     <div class=\"summary-cart-wrap col-lg-8 col-12\">
  250.                         {{ sylius_template_event('sylius.shop.cart.items', {'cart': cart, 'form': form}) }}
  251.                     </div>
  252.                     <div class=\"summary-recap-wrap col-lg-4 col-12\">
  253.                         {{ sylius_template_event('sylius.shop.cart.summary', {'cart': cart}) }}
  254.                     </div>
  255.                 </div>
  256.             </div>
  257.         </div>
  258.         {{ sylius_template_event('sylius.shop.cart.suggestions', {'cart': cart}) }}
  259.     {% else %}
  260.         {{ messages.info('sylius.ui.your_cart_is_empty') }}
  261.     {% endif %}
  262. {% endblock %}
  263. {% block bottom_content_full_width %}
  264. {% endblock %}
  265. ""@SyliusShop/Cart/summary.html.twig""/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/SyliusShopBundle/views/Cart/summary.html.twig");
  266.     }
  267. }