<?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;
/* front/theme1/modele/parallax.html.twig */
class __TwigTemplate_bddb60fcba6651e747a9c6bb45d7b06d47f9bc374de2ca53a42480d380e993df extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "front/theme1/modele/parallax.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/modele/parallax.html.twig"));
// line 1
echo "<section id=\"widget-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 1, $this->source); })()), "id", [], "any", false, false, false, 1), "html", null, true);
echo "\" class=\"sec-parallax espace-p-bottom text-center\" style=\"background-color:";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 1, $this->source); })()), "bgcolor", [], "any", false, false, false, 1), "html", null, true);
echo "\">
";
// line 2
$context["parametre"] = $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction();
// line 3
echo " ";
$context["type_lien"] = twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 3, $this->source); })()), "typelien", [], "any", false, false, false, 3);
// line 4
echo " ";
$context["lien_interne"] = twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 4, $this->source); })()), "lieninterne", [], "any", false, false, false, 4);
// line 5
echo " ";
$context["lien_externe"] = twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 5, $this->source); })()), "lienexterne", [], "any", false, false, false, 5);
// line 6
echo " ";
$context["telephone"] = twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 6, $this->source); })()), "telephone", [], "any", false, false, false, 6);
// line 7
echo "
";
// line 8
if (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 8, $this->source); })()) != 1)) {
// line 9
echo " <a class=\"full-link\" href=\"";
if (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 9, $this->source); })()) == 2)) {
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction((isset($context["lien_interne"]) || array_key_exists("lien_interne", $context) ? $context["lien_interne"] : (function () { throw new RuntimeError('Variable "lien_interne" does not exist.', 9, $this->source); })())), "html", null, true);
} elseif (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 9, $this->source); })()) == 3)) {
echo twig_escape_filter($this->env, (isset($context["lien_externe"]) || array_key_exists("lien_externe", $context) ? $context["lien_externe"] : (function () { throw new RuntimeError('Variable "lien_externe" does not exist.', 9, $this->source); })()), "html", null, true);
} elseif (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 9, $this->source); })()) == 4)) {
echo "tel:";
echo twig_escape_filter($this->env, (isset($context["telephone"]) || array_key_exists("telephone", $context) ? $context["telephone"] : (function () { throw new RuntimeError('Variable "telephone" does not exist.', 9, $this->source); })()), "html", null, true);
}
echo "\" ";
if (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 9, $this->source); })()) == 3)) {
echo "target=\"_blank\"";
}
echo " title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 9, $this->source); })()), "buttonlabel", [], "any", false, false, false, 9), "html", null, true);
echo "\"></a>
";
}
// line 11
echo " ";
if (( !$this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile() && !$this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isTablet())) {
// line 12
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 12, $this->source); })()), "bgimage", [], "any", false, false, false, 12), "large"), "html", null, true);
echo "\" data-speed=\"-1\" class=\"img-parallax\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 12, $this->source); })()), "subTitle", [], "any", false, false, false, 12), "html", null, true);
echo "\">
";
}
// line 14
echo " <div class=\"ctn-parallax\">
<div class=\"container-fluid wrapper\">
<div class=\"item-ctn-parallax\">
";
// line 17
if ((twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 17, $this->source); })()), "actiftitre", [], "any", false, false, false, 17) == true)) {
// line 18
echo " <div class=\"titre_site\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 18, $this->source); })()), "titre", [], "any", false, false, false, 18), "html", null, true);
echo "</div>
";
}
// line 20
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 20, $this->source); })()), "subTitle", [], "any", false, false, false, 20))) {
// line 21
echo " <div class=\"sub-title wow fadeInUp\" >";
echo twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 21, $this->source); })()), "subTitle", [], "any", false, false, false, 21);
echo "</div>
";
}
// line 23
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 23, $this->source); })()), "description", [], "any", false, false, false, 23))) {
// line 24
echo " <div class=\"texte-content\">";
echo twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 24, $this->source); })()), "description", [], "any", false, false, false, 24);
echo "</div>
";
}
// line 26
echo " ";
if ((((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 26, $this->source); })()) != 1) && (twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 26, $this->source); })()), "buttonlabel", [], "any", false, false, false, 26) != ""))) {
// line 27
echo " <a class=\"bouton-bloc btn-back-pulse\" href=\"";
if (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 27, $this->source); })()) == 2)) {
echo twig_escape_filter($this->env, $this->extensions['App\Twig\FunctionExtension']->slugLinkInterneFunction((isset($context["lien_interne"]) || array_key_exists("lien_interne", $context) ? $context["lien_interne"] : (function () { throw new RuntimeError('Variable "lien_interne" does not exist.', 27, $this->source); })())), "html", null, true);
} elseif (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 27, $this->source); })()) == 3)) {
echo twig_escape_filter($this->env, (isset($context["lien_externe"]) || array_key_exists("lien_externe", $context) ? $context["lien_externe"] : (function () { throw new RuntimeError('Variable "lien_externe" does not exist.', 27, $this->source); })()), "html", null, true);
} elseif (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 27, $this->source); })()) == 4)) {
echo "tel:";
echo twig_escape_filter($this->env, (isset($context["telephone"]) || array_key_exists("telephone", $context) ? $context["telephone"] : (function () { throw new RuntimeError('Variable "telephone" does not exist.', 27, $this->source); })()), "html", null, true);
}
echo "\" ";
if (((isset($context["type_lien"]) || array_key_exists("type_lien", $context) ? $context["type_lien"] : (function () { throw new RuntimeError('Variable "type_lien" does not exist.', 27, $this->source); })()) == 3)) {
echo "target=\"_blank\"";
}
echo " title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 27, $this->source); })()), "buttonlabel", [], "any", false, false, false, 27), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 27, $this->source); })()), "buttonlabel", [], "any", false, false, false, 27), "html", null, true);
echo "</a>
";
}
// line 29
echo " </div>
</div>
</div>
</section>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "front/theme1/modele/parallax.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 154 => 29, 133 => 27, 130 => 26, 124 => 24, 121 => 23, 115 => 21, 112 => 20, 106 => 18, 104 => 17, 99 => 14, 91 => 12, 88 => 11, 69 => 9, 67 => 8, 64 => 7, 61 => 6, 58 => 5, 55 => 4, 52 => 3, 50 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<section id=\"widget-{{widget.id}}\" class=\"sec-parallax espace-p-bottom text-center\" style=\"background-color:{{widget.bgcolor}}\">
{% set parametre = ParametreSite() %}
{% set type_lien = widget.typelien %}
{% set lien_interne = widget.lieninterne %}
{% set lien_externe = widget.lienexterne %}
{% set telephone = widget.telephone %}
{% if type_lien != 1 %}
<a class=\"full-link\" href=\"{% if type_lien == 2 %}{{slug_link_interne(lien_interne) }}{% elseif type_lien == 3 %}{{lien_externe }}{% elseif type_lien == 4 %}tel:{{telephone }}{% endif %}\" {% if type_lien == 3 %}target=\"_blank\"{% endif %} title=\"{{widget.buttonlabel}}\"></a>
{% endif %}
{% if not is_mobile() and not is_tablet() %}
<img src=\"{{asset_image(widget.bgimage,'large')}}\" data-speed=\"-1\" class=\"img-parallax\" alt=\"{{widget.subTitle}}\">
{% endif %}
<div class=\"ctn-parallax\">
<div class=\"container-fluid wrapper\">
<div class=\"item-ctn-parallax\">
{% if parametre.actiftitre == true %}
<div class=\"titre_site\">{{parametre.titre}}</div>
{% endif %}
{% if widget.subTitle is not empty %}
<div class=\"sub-title wow fadeInUp\" >{{widget.subTitle|raw}}</div>
{% endif %}
{% if widget.description is not empty %}
<div class=\"texte-content\">{{widget.description|raw}}</div>
{% endif %}
{% if type_lien != 1 and widget.buttonlabel != '' %}
<a class=\"bouton-bloc btn-back-pulse\" href=\"{% if type_lien == 2 %}{{slug_link_interne(lien_interne) }}{% elseif type_lien == 3 %}{{lien_externe }}{% elseif type_lien == 4 %}tel:{{telephone }}{% endif %}\" {% if type_lien == 3 %}target=\"_blank\"{% endif %} title=\"{{widget.buttonlabel}}\">{{widget.buttonlabel}}</a>
{% endif %}
</div>
</div>
</div>
</section>", "front/theme1/modele/parallax.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/modele/parallax.html.twig");
}
}