var/cache/dev/twig/45/455a443ab0f3d2e6ac270d6867337c14.php line 56

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_6e535e52de4fc3d41b3dc8a23983667b 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.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@SyliusShop/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Cart/summary.html.twig"));
  39.         // line 3
  40.         $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);
  41.         // line 5
  42.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@SyliusShop/Cart/summary.html.twig"5)->unwrap();
  43.         // line 7
  44.         $context["header"] = "sylius.ui.your_shopping_cart";
  45.         // line 1
  46.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@SyliusShop/Cart/summary.html.twig"1);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 9
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         echo twig_escape_filter($this->env$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.'9$this->source); })())), "html"nulltrue);
  62.         echo " | ";
  63.         $this->displayParentBlock("title"$context$blocks);
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 11
  70.     public function block_content($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  77.         // line 12
  78.         echo "    ";
  79.         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.'12$this->source); })()), "empty", [], "any"falsefalsefalse12)) {
  80.             // line 13
  81.             echo "        ";
  82.             echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.cart.header", ["header" => (isset($context["header"]) || array_key_exists("header"$context) ? $context["header"] : (function () { throw new RuntimeError('Variable "header" does not exist.'13$this->source); })()), "cart" => (isset($context["cart"]) || array_key_exists("cart"$context) ? $context["cart"] : (function () { throw new RuntimeError('Variable "cart" does not exist.'13$this->source); })())]);
  83.             echo "
  84.         <div class=\"ui stackable grid\">
  85.             <div class=\"eleven wide column\">
  86.                 ";
  87.             // line 16
  88.             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.'16$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'16$this->source); })())]);
  89.             echo "
  90.             </div>
  91.             <div class=\"five wide column\">
  92.                 ";
  93.             // line 19
  94.             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.'19$this->source); })())]);
  95.             echo "
  96.             </div>
  97.         </div>
  98.         ";
  99.             // line 22
  100.             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.'22$this->source); })())]);
  101.             echo "
  102.     ";
  103.         } else {
  104.             // line 24
  105.             echo "        ";
  106.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.your_cart_is_empty"], 24$context$this->getSourceContext());
  107.             echo "
  108.     ";
  109.         }
  110.         
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  112.         
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  114.     }
  115.     public function getTemplateName()
  116.     {
  117.         return "@SyliusShop/Cart/summary.html.twig";
  118.     }
  119.     public function isTraitable()
  120.     {
  121.         return false;
  122.     }
  123.     public function getDebugInfo()
  124.     {
  125.         return array (  124 => 24,  119 => 22,  113 => 19,  107 => 16,  100 => 13,  97 => 12,  87 => 11,  66 => 9,  55 => 1,  53 => 7,  51 => 5,  49 => 3,  36 => 1,);
  126.     }
  127.     public function getSourceContext()
  128.     {
  129.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  130. {% form_theme form '@SyliusShop/Form/theme.html.twig' %}
  131. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  132. {% set header = 'sylius.ui.your_shopping_cart' %}
  133. {% block title %}{{ header|trans }} | {{ parent() }}{% endblock %}
  134. {% block content %}
  135.     {% if not cart.empty %}
  136.         {{ sylius_template_event('sylius.shop.cart.header', {'header': header, 'cart': cart}) }}
  137.         <div class=\"ui stackable grid\">
  138.             <div class=\"eleven wide column\">
  139.                 {{ sylius_template_event('sylius.shop.cart.items', {'cart': cart, 'form': form}) }}
  140.             </div>
  141.             <div class=\"five wide column\">
  142.                 {{ sylius_template_event('sylius.shop.cart.summary', {'cart': cart}) }}
  143.             </div>
  144.         </div>
  145.         {{ sylius_template_event('sylius.shop.cart.suggestions', {'cart': cart}) }}
  146.     {% else %}
  147.         {{ messages.info('sylius.ui.your_cart_is_empty') }}
  148.     {% endif %}
  149. {% endblock %}
  150. ""@SyliusShop/Cart/summary.html.twig""/var/www/Bikers/vendor/sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/views/Cart/summary.html.twig");
  151.     }
  152. }