var/cache/dev/twig/64/64f2656384c321f0f3ad1517a20dd815.php line 103

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. /* @BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig */
  14. class __TwigTemplate_b55226e1140f50ad45b30bc9d0d902dd 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.             'breadcrumb' => [$this'block_breadcrumb'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@SyliusShop/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"));
  42.         // line 3
  43.         $macros["messages"] = $this->macros["messages"] = $this->loadTemplate("@SyliusUi/Macro/messages.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"3)->unwrap();
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 5
  53.     public function block_stylesheets($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  60.         // line 6
  61.         echo "    ";
  62.         $this->displayParentBlock("stylesheets"$context$blocks);
  63.         echo "
  64.     ";
  65.         // line 7
  66.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("shop-cms-faq"null"bootstrapTheme");
  67.         echo "
  68. ";
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.     }
  74.     // line 10
  75.     public function block_javascripts($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  82.         // line 11
  83.         echo "    ";
  84.         $this->displayParentBlock("javascripts"$context$blocks);
  85.         echo "
  86.     ";
  87.         // line 12
  88.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("shop-cms-faq"null"bootstrapTheme");
  89.         echo "
  90. ";
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.     }
  96.     // line 15
  97.     public function block_title($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  104.         // line 16
  105.         echo "    ";
  106.         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.'16$this->source); })()), "channel", [], "any"falsefalsefalse16))), "title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_cms_plugin.ui.frequently_asked_questions")]);
  107.         echo "
  108. ";
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.     }
  114.     // line 19
  115.     public function block_breadcrumb($context, array $blocks = [])
  116.     {
  117.         $macros $this->macros;
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  122.         // line 20
  123.         echo "    <nav aria-label=\"breadcrumb\">
  124.         <ol class=\"breadcrumb\">
  125.             <li class=\"breadcrumb-item\"><a class=\"breadcrumb-link\" href=\"";
  126.         // line 22
  127.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  128.         echo "\">";
  129.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  130.         echo "</a></li>
  131.             <li class=\"breadcrumb-item active\" aria-current=\"page\">";
  132.         // line 23
  133.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.faq"), "html"nulltrue);
  134.         echo "</li>
  135.         </ol>
  136.     </nav>
  137. ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     // line 28
  144.     public function block_content($context, array $blocks = [])
  145.     {
  146.         $macros $this->macros;
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  151.         // line 29
  152.         echo "    <h1>";
  153.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_cms_plugin.ui.frequently_asked_questions"), "html"nulltrue);
  154.         echo "</h1>
  155.     ";
  156.         // line 31
  157.         if ((twig_length_filter($this->env, (isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'31$this->source); })())) > 0)) {
  158.             // line 32
  159.             echo "        <div class=\"accordion\" id=\"accordionExample\">
  160.             ";
  161.             // line 33
  162.             $context['_parent'] = $context;
  163.             $context['_seq'] = twig_ensure_traversable((isset($context["resources"]) || array_key_exists("resources"$context) ? $context["resources"] : (function () { throw new RuntimeError('Variable "resources" does not exist.'33$this->source); })()));
  164.             $context['loop'] = [
  165.               'parent' => $context['_parent'],
  166.               'index0' => 0,
  167.               'index'  => 1,
  168.               'first'  => true,
  169.             ];
  170.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  171.                 $length count($context['_seq']);
  172.                 $context['loop']['revindex0'] = $length 1;
  173.                 $context['loop']['revindex'] = $length;
  174.                 $context['loop']['length'] = $length;
  175.                 $context['loop']['last'] = === $length;
  176.             }
  177.             foreach ($context['_seq'] as $context["_key"] => $context["frequentlyAskedQuestion"]) {
  178.                 // line 34
  179.                 echo "                ";
  180.                 $this->loadTemplate("@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/Index/_show.html.twig""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig"34)->display($context);
  181.                 // line 35
  182.                 echo "            ";
  183.                 ++$context['loop']['index0'];
  184.                 ++$context['loop']['index'];
  185.                 $context['loop']['first'] = false;
  186.                 if (isset($context['loop']['length'])) {
  187.                     --$context['loop']['revindex0'];
  188.                     --$context['loop']['revindex'];
  189.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  190.                 }
  191.             }
  192.             $_parent $context['_parent'];
  193.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['frequentlyAskedQuestion'], $context['_parent'], $context['loop']);
  194.             $context array_intersect_key($context$_parent) + $_parent;
  195.             // line 36
  196.             echo "        </div>
  197.     ";
  198.         } else {
  199.             // line 38
  200.             echo "        ";
  201.             echo twig_call_macro($macros["messages"], "macro_info", ["sylius.ui.no_results_to_display"], 38$context$this->getSourceContext());
  202.             echo "
  203.     ";
  204.         }
  205.         
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  207.         
  208.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  209.     }
  210.     public function getTemplateName()
  211.     {
  212.         return "@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig";
  213.     }
  214.     public function isTraitable()
  215.     {
  216.         return false;
  217.     }
  218.     public function getDebugInfo()
  219.     {
  220.         return array (  235 => 38,  231 => 36,  217 => 35,  214 => 34,  197 => 33,  194 => 32,  192 => 31,  186 => 29,  176 => 28,  162 => 23,  156 => 22,  152 => 20,  142 => 19,  129 => 16,  119 => 15,  107 => 12,  102 => 11,  92 => 10,  80 => 7,  75 => 6,  65 => 5,  54 => 1,  52 => 3,  39 => 1,);
  221.     }
  222.     public function getSourceContext()
  223.     {
  224.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  225. {% import '@SyliusUi/Macro/messages.html.twig' as messages %}
  226. {% block stylesheets %}
  227.     {{ parent() }}
  228.     {{ encore_entry_link_tags('shop-cms-faq', null, 'bootstrapTheme') }}
  229. {% endblock %}
  230. {% block javascripts %}
  231.     {{ parent() }}
  232.     {{ encore_entry_script_tags('shop-cms-faq', null, 'bootstrapTheme') }}
  233. {% endblock %}
  234. {% block title %}
  235.     {{ sylius_template_event('dedi_sylius_seo_plugin.title', { resource: product ?? sylius.channel, title: 'bitbag_sylius_cms_plugin.ui.frequently_asked_questions'|trans }) }}
  236. {% endblock %}
  237. {% block breadcrumb %}
  238.     <nav aria-label=\"breadcrumb\">
  239.         <ol class=\"breadcrumb\">
  240.             <li class=\"breadcrumb-item\"><a class=\"breadcrumb-link\" href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
  241.             <li class=\"breadcrumb-item active\" aria-current=\"page\">{{ 'sylius.ui.faq'|trans }}</li>
  242.         </ol>
  243.     </nav>
  244. {% endblock %}
  245. {% block content %}
  246.     <h1>{{ 'bitbag_sylius_cms_plugin.ui.frequently_asked_questions'|trans }}</h1>
  247.     {% if resources|length > 0 %}
  248.         <div class=\"accordion\" id=\"accordionExample\">
  249.             {% for frequentlyAskedQuestion in resources %}
  250.                 {% include '@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/Index/_show.html.twig' %}
  251.             {% endfor %}
  252.         </div>
  253.     {% else %}
  254.         {{ messages.info('sylius.ui.no_results_to_display') }}
  255.     {% endif %}
  256. {% endblock %}
  257. ""@BitBagSyliusCmsPlugin/Shop/FrequentlyAskedQuestion/index.html.twig""/var/www/sudekusa-shop-test/themes/BootstrapChildTheme/BitBagSyliusCmsPlugin/views/Shop/FrequentlyAskedQuestion/index.html.twig");
  258.     }
  259. }