<?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;
/* default/home.html.twig */
class __TwigTemplate_64863b0789c418bf3ae6fa5310bee42a6199c44bc12d71bba5d7628b2b7dc627 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
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", "default/home.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/home.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "default/home.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
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 4
echo "<main class=\"main\" role=\"main\">
<section class=\"apk-banner\">
";
// line 7
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 7, $this->source); })())) {
// line 8
echo " <div class=\"uk-container\">
<div uk-alert>
<h2 class=\"uk-h2\">Banner avec recherche</h2>
<div class=\"uk-margin-top\">
";
// line 12
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "banner-titre", ["placeholder" => "Titre de la banner", "nl2br" => true, "htmlspecialchars" => true]);
echo "
</div>
<div class=\"uk-margin-top\">
";
// line 15
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "banner-description", ["placeholder" => "Description de la banner"]);
echo "
</div>
<div class=\"uk-margin-top\">
";
// line 18
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image", ["width" => 1000, "height" => 400]);
echo "
</div>
</div>
</div>
";
} else {
// line 24
echo "
<div class=\"apk-banner-container uk-cover-container\">
";
// line 27
if ($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image")) {
// line 28
echo " <img class=\"uk-cover\" uk-cover src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image"), "getThumbnail", [0 => "full-background"], "method", false, false, false, 28), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image"), "getAlt", [], "method", false, false, false, 28), "html", null, true);
echo "\">
";
}
// line 30
echo " <div class=\"uk-container uk-position-relative uk-height-1-1 uk-position-z-index\">
<div class=\"uk-flex uk-flex-bottom uk-height-1-1\">
<div class=\"apk-container-700\">
<h1 class=\"uk-h1 apk-background-lined uk-margin-remove-bottom\">";
// line 33
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "banner-titre", ["nl2br" => true, "htmlspecialchars" => false]);
echo "</h1>
<div class=\"uk-margin-small-top\">
<span class=\"apk-description\">";
// line 35
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "banner-description", ["placeholder" => "Description de la banner"]);
echo "</span>
</div>
<div class=\"uk-margin-top\">
<form class=\"uk-light\" action=\"";
// line 38
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search");
echo "\" method=\"GET\">
<div class=\"uk-grid-small uk-flex uk-flex-middle uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<input class=\"uk-input\" type=\"text\" name=\"search\" id=\"search\" placeholder=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Votre ville ?"), "html", null, true);
echo "\">
</div>
<div class=\"uk-width-auto@s uk-flex uk-flex-center\">
<button class=\"uk-button uk-button-large uk-button-primary uk-flex uk-flex-center uk-flex-middle\" type=\"submit\" id=\"\" value=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recherche"), "html", null, true);
echo "\">
<span>";
// line 45
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rechercher"), "html", null, true);
echo "</span>
<img class=\"uk-margin-small-left\" uk-svg width=\"25\" height=\"25\" src=\"/static/img/icons/zoom.svg\" alt=\"";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recherche"), "html", null, true);
echo "\">
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class=\"apk-banner-bottom uk-light\">
<div class=\"uk-container\">
<div class=\"uk-grid-small uk-grid\" uk-grid>
<div class=\"uk-width-1-2@m uk-text-center\">
";
// line 60
if ((null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("messagePremium"))) {
// line 61
echo " <p><strong>";
echo twig_escape_filter($this->env, (isset($context["totalBusinesses"]) || array_key_exists("totalBusinesses", $context) ? $context["totalBusinesses"] : (function () { throw new RuntimeError('Variable "totalBusinesses" does not exist.', 61, $this->source); })()), "html", null, true);
echo "</strong> ";
echo "lieux d'accueil partenaires";
echo "</p>
";
} else {
// line 63
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("premium.hidden"), "html", null, true);
echo "</p>
";
}
// line 65
echo " </div>
<div class=\"uk-width-1-2@m uk-text-center\">
";
// line 67
if ((null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("messageAvailabilities"))) {
// line 68
echo " <p><strong>";
echo twig_escape_filter($this->env, (isset($context["availablePlaces"]) || array_key_exists("availablePlaces", $context) ? $context["availablePlaces"] : (function () { throw new RuntimeError('Variable "availablePlaces" does not exist.', 68, $this->source); })()), "html", null, true);
echo "</strong> ";
echo "places disponibles dès maintenant";
echo "</p>
";
} else {
// line 70
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("avalabilities.hidden"), "html", null, true);
echo "</p>
";
}
// line 72
echo " </div>
</div>
</div>
</div>
";
}
// line 77
echo "
</section>
";
// line 80
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content");
echo "
</main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "default/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 218 => 80, 213 => 77, 206 => 72, 200 => 70, 192 => 68, 190 => 67, 186 => 65, 180 => 63, 172 => 61, 170 => 60, 153 => 46, 149 => 45, 145 => 44, 139 => 41, 133 => 38, 127 => 35, 122 => 33, 117 => 30, 109 => 28, 107 => 27, 102 => 24, 93 => 18, 87 => 15, 81 => 12, 75 => 8, 73 => 7, 68 => 4, 58 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
<main class=\"main\" role=\"main\">
<section class=\"apk-banner\">
{% if editmode %}
<div class=\"uk-container\">
<div uk-alert>
<h2 class=\"uk-h2\">Banner avec recherche</h2>
<div class=\"uk-margin-top\">
{{ pimcore_textarea('banner-titre', {'placeholder' : 'Titre de la banner', 'nl2br' : true, 'htmlspecialchars' : true}) }}
</div>
<div class=\"uk-margin-top\">
{{ pimcore_textarea('banner-description', {'placeholder' : 'Description de la banner'}) }}
</div>
<div class=\"uk-margin-top\">
{{ pimcore_image('banner-image', {'width' : 1000 , 'height' : 400}) }}
</div>
</div>
</div>
{% else %}
<div class=\"apk-banner-container uk-cover-container\">
{% if pimcore_image('banner-image') %}
<img class=\"uk-cover\" uk-cover src=\"{{ pimcore_image('banner-image').getThumbnail('full-background') }}\" alt=\"{{ pimcore_image('banner-image').getAlt() }}\">
{% endif %}
<div class=\"uk-container uk-position-relative uk-height-1-1 uk-position-z-index\">
<div class=\"uk-flex uk-flex-bottom uk-height-1-1\">
<div class=\"apk-container-700\">
<h1 class=\"uk-h1 apk-background-lined uk-margin-remove-bottom\">{{ pimcore_textarea('banner-titre', { 'nl2br' : true, 'htmlspecialchars' : false})|raw }}</h1>
<div class=\"uk-margin-small-top\">
<span class=\"apk-description\">{{ pimcore_textarea('banner-description', {'placeholder' : 'Description de la banner'}) }}</span>
</div>
<div class=\"uk-margin-top\">
<form class=\"uk-light\" action=\"{{path('search')}}\" method=\"GET\">
<div class=\"uk-grid-small uk-flex uk-flex-middle uk-grid\" uk-grid>
<div class=\"uk-width-expand@s\">
<input class=\"uk-input\" type=\"text\" name=\"search\" id=\"search\" placeholder=\"{{'Votre ville ?' |trans}}\">
</div>
<div class=\"uk-width-auto@s uk-flex uk-flex-center\">
<button class=\"uk-button uk-button-large uk-button-primary uk-flex uk-flex-center uk-flex-middle\" type=\"submit\" id=\"\" value=\"{{'Recherche'|trans}}\">
<span>{{'Rechercher'|trans}}</span>
<img class=\"uk-margin-small-left\" uk-svg width=\"25\" height=\"25\" src=\"/static/img/icons/zoom.svg\" alt=\"{{'Recherche' | trans}}\">
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class=\"apk-banner-bottom uk-light\">
<div class=\"uk-container\">
<div class=\"uk-grid-small uk-grid\" uk-grid>
<div class=\"uk-width-1-2@m uk-text-center\">
{% if pimcore_website_config('messagePremium') is null %}
<p><strong>{{totalBusinesses}}</strong> {{ \"lieux d'accueil partenaires\" }}</p>
{% else %}
<p>{{ \"premium.hidden\"|trans }}</p>
{% endif %}
</div>
<div class=\"uk-width-1-2@m uk-text-center\">
{% if pimcore_website_config('messageAvailabilities') is null %}
<p><strong>{{availablePlaces}}</strong> {{ \"places disponibles dès maintenant\" }}</p>
{% else %}
<p>{{ \"avalabilities.hidden\"|trans }}</p>
{% endif %}
</div>
</div>
</div>
</div>
{% endif %}
</section>
{{pimcore_areablock('content')}}
</main>
{% endblock %}
", "default/home.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/default/home.html.twig");
}
}