var/cache/dev/twig/f9/f97cd9915c99d6a6f194d92e236a59a0.php line 54
<?phpuse 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/details/detailWeb.html.twig */class __TwigTemplate_70504fa94fc1a5949236295537cbe3ed 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/details/detailWeb.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/details/detailWeb.html.twig"));// line 1echo "<div class='elements' id=\"left\"><span class='retour_web'><img src=\"";// line 3echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((((isset($context["img_path"]) || array_key_exists("img_path", $context) ? $context["img_path"] : (function () { throw new RuntimeError('Variable "img_path" does not exist.', 3, $this->source); })()) . "/") . "web/img-retour-web.png")), "html", null, true);echo "\"/></span></div><div class=\"elements\" id=\"middle\"><span id=\"ombre\"></span><span class=\"titre\"><img src=\"";// line 7echo twig_escape_filter($this->env, (((isset($context["web_path"]) || array_key_exists("web_path", $context) ? $context["web_path"] : (function () { throw new RuntimeError('Variable "web_path" does not exist.', 7, $this->source); })()) . "/") . $this->extensions['App\Twig\WebExtension']->imgWebTitre((isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 7, $this->source); })()))), "html", null, true);echo "\"/></span><span id='img_pres'><img src=\"";// line 10echo twig_escape_filter($this->env, (((isset($context["web_path"]) || array_key_exists("web_path", $context) ? $context["web_path"] : (function () { throw new RuntimeError('Variable "web_path" does not exist.', 10, $this->source); })()) . "/") . $this->extensions['App\Twig\WebExtension']->imgWebPresentation((isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 10, $this->source); })()))), "html", null, true);echo "\"/></span></div><div class=\"elements\" id=\"right\"><div id=\"top\"><h2 class=\"title-web-responsive\">";// line 15echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 15, $this->source); })()), "title", [], "any", false, false, false, 15), "html", null, true);echo "</h2><div id=\"text\">";// line 17echo twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 17, $this->source); })()), "description", [], "any", false, false, false, 17);echo "</div><div id=\"slideshow_img_web\"><div class=\"slider\">";// line 21$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 21, $this->source); })()), "slides", [], "any", false, false, false, 21));foreach ($context['_seq'] as $context["_key"] => $context["s"]) {// line 22echo " <div class=\"elementSlideImgWeb\"><a><img src=\"";// line 23echo twig_escape_filter($this->env, (((isset($context["slide_web_path"]) || array_key_exists("slide_web_path", $context) ? $context["slide_web_path"] : (function () { throw new RuntimeError('Variable "slide_web_path" does not exist.', 23, $this->source); })()) . "/") . twig_get_attribute($this->env, $this->source, $context["s"], "picture", [], "any", false, false, false, 23)), "html", null, true);echo "\"/></a></div>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 26echo " </div></div></div><div id=\"bottom\"><div class=\"container-bottom container-bottom-link\"><span id='client'><a class='info_label'>Client </a><a class='content_info'>";// line 33echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33), "html", null, true);echo "</a></span>";// line 35if (twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 35, $this->source); })()), "partnership", [], "any", false, false, false, 35)) {// line 36echo " <span id=\"partenariat\"><a class='info_label'>Partenariat </a><a class='content_info'>";// line 38echo twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 38, $this->source); })()), "partnership", [], "any", false, false, false, 38);echo "</a></span>";}// line 41echo " ";if (twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 41, $this->source); })()), "webLink", [], "any", false, false, false, 41)) {// line 42echo " <span id=\"link_web\"><a class='info_label'>Site Web </a><a class='content_info' target=\"_blank\" href=\"http://";// line 44echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 44, $this->source); })()), "webLink", [], "any", false, false, false, 44), "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["web"]) || array_key_exists("web", $context) ? $context["web"] : (function () { throw new RuntimeError('Variable "web" does not exist.', 44, $this->source); })()), "webLink", [], "any", false, false, false, 44), "html", null, true);echo "</a></span>";}// line 47echo " </div><div class=\"container-bottom container-bottom-share\"><div id=\"shareWeb\"></div></div></div></div><script>\$('.slider').slick({draggable: false,infinite: false,lazyLoad: 'ondemand'});\$(\".retour_web\").on('click', function(){\$(\"#slide-element\").animate({'position': 'relative','left': '0px',}, 1000, function(){\$('#detail-element').html('');if(\$(window).width() > 1024){\$(\"#slide-element\").css('height', 'auto');}});});\$(\"#shareWeb\").jsSocials({shares: [\"facebook\", \"email\", \"twitter\"]});</script>";$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}public function getTemplateName(){return "front/details/detailWeb.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 137 => 47, 129 => 44, 125 => 42, 122 => 41, 116 => 38, 112 => 36, 110 => 35, 105 => 33, 96 => 26, 87 => 23, 84 => 22, 80 => 21, 73 => 17, 68 => 15, 60 => 10, 54 => 7, 47 => 3, 43 => 1,);}public function getSourceContext(){return new Source("<div class='elements' id=\"left\"><span class='retour_web'><img src=\"{{ asset(img_path ~ '/' ~ 'web/img-retour-web.png') }}\"/></span></div><div class=\"elements\" id=\"middle\"><span id=\"ombre\"></span><span class=\"titre\"><img src=\"{{ web_path ~ '/' ~ web|imgWebTitre }}\"/></span><span id='img_pres'><img src=\"{{ web_path ~ '/' ~ web|imgWebPresentation }}\"/></span></div><div class=\"elements\" id=\"right\"><div id=\"top\"><h2 class=\"title-web-responsive\">{{ web.title }}</h2><div id=\"text\">{{ web.description|raw }}</div><div id=\"slideshow_img_web\"><div class=\"slider\">{% for s in web.slides %}<div class=\"elementSlideImgWeb\"><a><img src=\"{{ slide_web_path ~ '/' ~ s.picture }}\"/></a></div>{% endfor %}</div></div></div><div id=\"bottom\"><div class=\"container-bottom container-bottom-link\"><span id='client'><a class='info_label'>Client </a><a class='content_info'>{{ web.title }}</a></span>{% if(web.partnership) %}<span id=\"partenariat\"><a class='info_label'>Partenariat </a><a class='content_info'>{{ web.partnership|raw }}</a></span>{% endif %}{% if (web.webLink) %}<span id=\"link_web\"><a class='info_label'>Site Web </a><a class='content_info' target=\"_blank\" href=\"http://{{ web.webLink }}\">{{ web.webLink }}</a></span>{% endif %}</div><div class=\"container-bottom container-bottom-share\"><div id=\"shareWeb\"></div></div></div></div><script>\$('.slider').slick({draggable: false,infinite: false,lazyLoad: 'ondemand'});\$(\".retour_web\").on('click', function(){\$(\"#slide-element\").animate({'position': 'relative','left': '0px',}, 1000, function(){\$('#detail-element').html('');if(\$(window).width() > 1024){\$(\"#slide-element\").css('height', 'auto');}});});\$(\"#shareWeb\").jsSocials({shares: [\"facebook\", \"email\", \"twitter\"]});</script>", "front/details/detailWeb.html.twig", "/var/www/vhosts/fpcrea.com/recette.fpcrea.com/templates/front/details/detailWeb.html.twig");}}