<?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/fin-concours.html.twig */
class __TwigTemplate_1271d3947b1b60a8703623c99e869115 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout-no-menu.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/fin-concours.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/fin-concours.html.twig"));
$this->parent = $this->loadTemplate("layout-no-menu.html.twig", "default/fin-concours.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo "
";
// line 10
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "myAreablock");
echo "
";
// line 11
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "contentTop");
echo "
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-page-fin-concours\">
";
// line 16
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })())) {
// line 17
echo " <div uk-alert>
<div>Sens de l'image</div>
";
// line 20
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "flex-first", ["store" => [0 => [0 => "", 1 => "Droite"], 1 => [0 => "uk-flex-first@s", 1 => "Gauche"]], "defaultValue" => ""]);
// line 26
echo "
<div class=\"uk-text-bold\">Image de banner</div>
";
// line 29
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["width" => 300]);
echo "
<div class=\"uk-text-bold\">Titre</div>
";
// line 32
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "title", ["nl2br" => true]);
echo "
<div class=\"uk-text-bold\">Sous-titre</div>
";
// line 35
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "subtitle", ["nl2br" => true]);
echo "
<div class=\"uk-text-bold\">Texte</div>
";
// line 38
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text", ["nl2br" => true]);
echo "
</div>
";
} else {
// line 43
echo " <div class=\"apk-banner\">
";
// line 44
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image"), "thumbnail", [0 => "full-background"], "method", false, false, false, 44), "html", [], "method", false, false, false, 44);
echo "
</div>
<div class=\"uk-container apk-container-1400\">
<div class=\"apk-content\">
<h1>";
// line 50
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "title", ["nl2br" => true]);
echo "</h1>
<p><strong>";
// line 51
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "subtitle", ["nl2br" => true]);
echo "</strong></p>
<p>";
// line 52
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "text", ["nl2br" => true]);
echo "</p>
<div class=\"uk-flex apk-icon-social-media\">
";
// line 55
if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 55, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 55)) {
// line 56
echo " <div class=\"uk-margin-right\">
<a href=\"";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 57, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 57), "html", null, true);
echo "\" target=\"_blank\">
<img src=\"/static/img/pictos/icon-facebook.png\" alt=\"Facebook\">
</a>
</div>
";
}
// line 62
echo "
";
// line 63
if (twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 63, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 63)) {
// line 64
echo " <div>
<a href=\"";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 65, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 65), "html", null, true);
echo "\" target=\"_blank\">
<img src=\"/static/img/pictos/icon-instagram.png\" alt=\"Instagram\">
</a>
</div>
";
}
// line 70
echo " </div>
</div>
</div>
";
}
// line 75
echo " </div>
</main><!-- end #main -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 81
public function block_inlinescripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 82
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/fin-concours.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 210 => 82, 200 => 81, 186 => 75, 179 => 70, 171 => 65, 168 => 64, 166 => 63, 163 => 62, 155 => 57, 152 => 56, 150 => 55, 144 => 52, 140 => 51, 136 => 50, 127 => 44, 124 => 43, 116 => 38, 110 => 35, 104 => 32, 98 => 29, 93 => 26, 91 => 20, 86 => 17, 84 => 16, 76 => 11, 72 => 10, 69 => 9, 59 => 8, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout-no-menu.html.twig\" %}
{#
{% use AppBundle/Helper/Apik %}
#}
{% block content %}
{{ pimcore_areablock(\"myAreablock\") }}
{{ pimcore_areablock('contentTop') }}
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-page-fin-concours\">
{% if editmode %}
<div uk-alert>
<div>Sens de l'image</div>
{{ pimcore_select(\"flex-first\", {
\"store\" : [
['', 'Droite'],
['uk-flex-first@s', 'Gauche'],
],
\"defaultValue\" : \"\"
}) }}
<div class=\"uk-text-bold\">Image de banner</div>
{{ pimcore_image('image', { width: 300 }) }}
<div class=\"uk-text-bold\">Titre</div>
{{ pimcore_textarea('title',{'nl2br' : true}) }}
<div class=\"uk-text-bold\">Sous-titre</div>
{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}
<div class=\"uk-text-bold\">Texte</div>
{{ pimcore_textarea('text',{'nl2br' : true}) }}
</div>
{% else %}
<div class=\"apk-banner\">
{{ pimcore_image('image').thumbnail('full-background').html()|raw }}
</div>
<div class=\"uk-container apk-container-1400\">
<div class=\"apk-content\">
<h1>{{ pimcore_textarea('title',{'nl2br' : true}) }}</h1>
<p><strong>{{ pimcore_textarea('subtitle',{'nl2br' : true}) }}</strong></p>
<p>{{ pimcore_textarea('text',{'nl2br' : true}) }}</p>
<div class=\"uk-flex apk-icon-social-media\">
{% if document.property('facebookUrl') %}
<div class=\"uk-margin-right\">
<a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\">
<img src=\"/static/img/pictos/icon-facebook.png\" alt=\"Facebook\">
</a>
</div>
{% endif %}
{% if document.property('instagramUrl') %}
<div>
<a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\">
<img src=\"/static/img/pictos/icon-instagram.png\" alt=\"Instagram\">
</a>
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>
</main><!-- end #main -->
{% endblock %}
{% block inlinescripts %}
{% endblock inlinescripts %}", "default/fin-concours.html.twig", "/var/www/magnecapsv2.atypic-pp.be/www/templates/default/fin-concours.html.twig");
}
}