<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig */
class __TwigTemplate_1e634341bfb9fff5853a059062cdbab9294e9a117b73cc5ac1e02cc8e5ee4533 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig"));
// line 1
$this->displayBlock('content', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 2
echo " ";
if (((isset($context["published"]) || array_key_exists("published", $context) ? $context["published"] : (function () { throw new RuntimeError('Variable "published" does not exist.', 2, $this->source); })()) == true)) {
// line 3
echo "
<div class=\"structure-list\">
<div class=\"container\">
";
// line 6
$this->loadTemplate("common/_breadcrumb.html.twig", "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig", 6)->display($context);
// line 7
echo "
<div class=\"structure-list__intro\">";
// line 8
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", false, false, false, 8);
echo "</div>
</div>
";
// line 10
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"]));
echo "
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>";
// line 14
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.offer_services_for_events");
echo "</p>
<a href=\"";
// line 15
echo twig_escape_filter($this->env, $this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderLinkRuntime')->getLinkForCode("fromagers-evenementiels"), "html", null, true);
echo "\" class=\"button button--secondary\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.discover_our_services"), "html_attr");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.structures.discover_our_services"), "html", null, true);
echo "</a>
</div>
</div>
";
} else {
// line 20
echo " ";
$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", false, false, false, 20)]));
// line 21
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig";
}
public function getDebugInfo()
{
return array ( 107 => 21, 104 => 20, 92 => 15, 88 => 14, 81 => 10, 76 => 8, 73 => 7, 71 => 6, 66 => 3, 63 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("{% block content %}
{% if published == true %}
<div class=\"structure-list\">
<div class=\"container\">
{% include 'common/_breadcrumb.html.twig' %}
<div class=\"structure-list__intro\">{{ page.content|raw }}</div>
</div>
{{ render(path('bitbag_sylius_cms_plugin_shop_page_index_by_section_code_template', {'sectionCode' : 'nos-structures', 'template' : '@BitBagSyliusCmsPlugin/Shop/Page/blocks/_structures.html.twig'})) }}
</div>
<div class=\"citation\" data-aos=\"fade-up\">
<div class=\"container\">
<p>{{ 'sylius.structures.offer_services_for_events'|trans|raw }}</p>
<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>
</div>
</div>
{% else %}
{% include '@BitBagSyliusCmsPlugin/Shop/Page/Error/_notPublished.html.twig' with {'publishAt': page.publishAt} %}
{% endif %}
{% endblock %}
", "bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig", "/home/mons/site/www/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/nos-structures.html.twig");
}
}