var/cache/dev/twig/47/47246e2574af3f6e8d9233a97ac2fb44d059a92a498b549116062d0b7cf908c6.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. /* bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig */
  14. class __TwigTemplate_1e634341bfb9fff5853a059062cdbab9294e9a117b73cc5ac1e02cc8e5ee4533 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.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"));
  34.         // line 1
  35.         $this->displayBlock('content'$context$blocks);
  36.         
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  38.         
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  40.     }
  41.     public function block_content($context, array $blocks = [])
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  48.         // line 2
  49.         echo "    ";
  50.         if (((isset($context["published"]) || array_key_exists("published"$context) ? $context["published"] : (function () { throw new RuntimeError('Variable "published" does not exist.'2$this->source); })()) == true)) {
  51.             // line 3
  52.             echo "
  53.         <div class=\"structure-list\">
  54.             <div class=\"container\">
  55.                 ";
  56.             // line 6
  57.             $this->loadTemplate("common/_breadcrumb.html.twig""bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"6)->display($context);
  58.             // line 7
  59.             echo "
  60.                 <div class=\"structure-list__intro\">";
  61.             // line 8
  62.             echo twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'8$this->source); })()), "content", [], "any"falsefalsefalse8);
  63.             echo "</div>
  64.             </div>
  65.             ";
  66.             // line 10
  67.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_index_by_section_code_template", ["sectionCode" => "nos-structures""template" => "@BitBagSyliusCmsPlugin/Shop/Page/blocks/_structures.html.twig"]));
  68.             echo "
  69.         </div>
  70.         <div class=\"citation\" data-aos=\"fade-up\">
  71.             <div class=\"container\">
  72.                 <p>";
  73.             // line 14
  74.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.offer_services_for_events");
  75.             echo "</p>
  76.                 <a href=\"";
  77.             // line 15
  78.             echo twig_escape_filter($this->env$this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderLinkRuntime')->getLinkForCode("fromagers-evenementiels"), "html"nulltrue);
  79.             echo "\" class=\"button button--secondary\" title=\"";
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.discover_our_services"), "html_attr");
  81.             echo "\">";
  82.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.discover_our_services"), "html"nulltrue);
  83.             echo "</a>
  84.             </div>
  85.         </div>
  86.     ";
  87.         } else {
  88.             // line 20
  89.             echo "        ";
  90.             $this->loadTemplate("@BitBagSyliusCmsPlugin/Shop/Page/Error/_notPublished.html.twig""bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"20)->display(twig_array_merge($context, ["publishAt" => twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'20$this->source); })()), "publishAt", [], "any"falsefalsefalse20)]));
  91.             // line 21
  92.             echo "    ";
  93.         }
  94.         
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  96.         
  97.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  98.     }
  99.     public function getTemplateName()
  100.     {
  101.         return "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig";
  102.     }
  103.     public function getDebugInfo()
  104.     {
  105.         return array (  107 => 21,  104 => 20,  92 => 15,  88 => 14,  81 => 10,  76 => 8,  73 => 7,  71 => 6,  66 => 3,  63 => 2,  44 => 1,);
  106.     }
  107.     public function getSourceContext()
  108.     {
  109.         return new Source("{% block content %}
  110.     {% if published == true %}
  111.         <div class=\"structure-list\">
  112.             <div class=\"container\">
  113.                 {% include 'common/_breadcrumb.html.twig' %}
  114.                 <div class=\"structure-list__intro\">{{ page.content|raw }}</div>
  115.             </div>
  116.             {{ render(path('bitbag_sylius_cms_plugin_shop_page_index_by_section_code_template', {'sectionCode' : 'nos-structures', 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/blocks/_structures.html.twig'})) }}
  117.         </div>
  118.         <div class=\"citation\" data-aos=\"fade-up\">
  119.             <div class=\"container\">
  120.                 <p>{{ 'sylius.structures.offer_services_for_events'|trans|raw }}</p>
  121.                 <a href=\"{{ bitbag_cms_get_link_for_code('fromagers-evenementiels') }}\" class=\"button button--secondary\" title=\"{{ 'sylius.structures.discover_our_services'|trans|e('html_attr') }}\">{{ 'sylius.structures.discover_our_services'|trans }}</a>
  122.             </div>
  123.         </div>
  124.     {% else %}
  125.         {% include '@BitBagSyliusCmsPlugin/Shop/Page/Error/_notPublished.html.twig' with {'publishAt': page.publishAt} %}
  126.     {% endif %}
  127. {% endblock %}
  128. ""bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig""/home/mons/site/www/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig");
  129.     }
  130. }