var/cache/dev/twig/f9/f97cd9915c99d6a6f194d92e236a59a0.php line 33

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* front/details/detailWeb.html.twig */
  14. class __TwigTemplate_70504fa94fc1a5949236295537cbe3ed extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/details/detailWeb.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/details/detailWeb.html.twig"));
  33.         // line 1
  34.         echo "
  35. <div class='elements' id=\"left\">
  36.     <span class='retour_web'><img src=\"";
  37.         // line 3
  38.         echo 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"nulltrue);
  39.         echo "\"/></span>
  40. </div>
  41. <div class=\"elements\" id=\"middle\">
  42.     <span id=\"ombre\"></span>
  43.     <span class=\"titre\"><img src=\"";
  44.         // line 7
  45.         echo 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"nulltrue);
  46.         echo "\"/></span>
  47.     <span id='img_pres'>
  48.         <img src=\"";
  49.         // line 10
  50.         echo 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"nulltrue);
  51.         echo "\"/>
  52.     </span>
  53. </div>
  54. <div class=\"elements\" id=\"right\">
  55.     <div id=\"top\">
  56.         <h2 class=\"title-web-responsive\">";
  57.         // line 15
  58.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse15), "html"nulltrue);
  59.         echo "</h2>
  60.         <div id=\"text\">
  61.             ";
  62.         // line 17
  63.         echo 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"falsefalsefalse17);
  64.         echo "
  65.         </div>
  66.         <div id=\"slideshow_img_web\">
  67.             <div class=\"slider\">
  68.                 ";
  69.         // line 21
  70.         $context['_parent'] = $context;
  71.         $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"falsefalsefalse21));
  72.         foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
  73.             // line 22
  74.             echo "                    <div class=\"elementSlideImgWeb\">
  75.                         <a><img src=\"";
  76.             // line 23
  77.             echo 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"falsefalsefalse23)), "html"nulltrue);
  78.             echo "\"/></a>
  79.                     </div>
  80.                 ";
  81.         }
  82.         $_parent $context['_parent'];
  83.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);
  84.         $context array_intersect_key($context$_parent) + $_parent;
  85.         // line 26
  86.         echo "            </div>
  87.         </div>
  88.     </div>
  89.     <div id=\"bottom\">
  90.         <div class=\"container-bottom container-bottom-link\">
  91.             <span id='client'>
  92.             <a class='info_label'>Client </a>
  93.             <a class='content_info'>";
  94.         // line 33
  95.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  96.         echo "</a>
  97.         </span>
  98.             ";
  99.         // line 35
  100.         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.'35$this->source); })()), "partnership", [], "any"falsefalsefalse35)) {
  101.             // line 36
  102.             echo "                <span id=\"partenariat\">
  103.                 <a class='info_label'>Partenariat </a>
  104.                 <a class='content_info'>";
  105.             // line 38
  106.             echo 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"falsefalsefalse38);
  107.             echo "</a>
  108.             </span>
  109.             ";
  110.         }
  111.         // line 41
  112.         echo "            ";
  113.         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"falsefalsefalse41)) {
  114.             // line 42
  115.             echo "                <span id=\"link_web\">
  116.                 <a class='info_label'>Site Web </a>
  117.                 <a class='content_info' target=\"_blank\" href=\"http://";
  118.             // line 44
  119.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse44), "html"nulltrue);
  120.             echo "\">";
  121.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse44), "html"nulltrue);
  122.             echo "</a>
  123.             </span>
  124.             ";
  125.         }
  126.         // line 47
  127.         echo "        </div>
  128.         <div class=\"container-bottom container-bottom-share\">
  129.             <div id=\"shareWeb\"></div>
  130.         </div>
  131.     </div>
  132. </div>
  133. <script>
  134.     \$('.slider').slick({
  135.         draggable: false,
  136.         infinite: false,
  137.         lazyLoad: 'ondemand'
  138.     });
  139.     \$(\".retour_web\").on('click', function(){
  140.         \$(\"#slide-element\").animate({
  141.             'position': 'relative',
  142.             'left': '0px',
  143.         }, 1000, function(){
  144.             \$('#detail-element').html('');
  145.             if(\$(window).width() > 1024){
  146.                 \$(\"#slide-element\").css('height', 'auto');
  147.             }
  148.         });
  149.     });
  150.     \$(\"#shareWeb\").jsSocials({
  151.         shares: [\"facebook\", \"email\", \"twitter\"]
  152.     });
  153. </script>";
  154.         
  155.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156.         
  157.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158.     }
  159.     public function getTemplateName()
  160.     {
  161.         return "front/details/detailWeb.html.twig";
  162.     }
  163.     public function isTraitable()
  164.     {
  165.         return false;
  166.     }
  167.     public function getDebugInfo()
  168.     {
  169.         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,);
  170.     }
  171.     public function getSourceContext()
  172.     {
  173.         return new Source("
  174. <div class='elements' id=\"left\">
  175.     <span class='retour_web'><img src=\"{{ asset(img_path ~ '/' ~ 'web/img-retour-web.png') }}\"/></span>
  176. </div>
  177. <div class=\"elements\" id=\"middle\">
  178.     <span id=\"ombre\"></span>
  179.     <span class=\"titre\"><img src=\"{{ web_path ~ '/' ~ web|imgWebTitre }}\"/></span>
  180.     <span id='img_pres'>
  181.         <img src=\"{{ web_path ~ '/' ~ web|imgWebPresentation }}\"/>
  182.     </span>
  183. </div>
  184. <div class=\"elements\" id=\"right\">
  185.     <div id=\"top\">
  186.         <h2 class=\"title-web-responsive\">{{ web.title }}</h2>
  187.         <div id=\"text\">
  188.             {{ web.description|raw }}
  189.         </div>
  190.         <div id=\"slideshow_img_web\">
  191.             <div class=\"slider\">
  192.                 {% for s in web.slides %}
  193.                     <div class=\"elementSlideImgWeb\">
  194.                         <a><img src=\"{{ slide_web_path ~ '/' ~ s.picture }}\"/></a>
  195.                     </div>
  196.                 {% endfor %}
  197.             </div>
  198.         </div>
  199.     </div>
  200.     <div id=\"bottom\">
  201.         <div class=\"container-bottom container-bottom-link\">
  202.             <span id='client'>
  203.             <a class='info_label'>Client </a>
  204.             <a class='content_info'>{{ web.title }}</a>
  205.         </span>
  206.             {% if(web.partnership) %}
  207.                 <span id=\"partenariat\">
  208.                 <a class='info_label'>Partenariat </a>
  209.                 <a class='content_info'>{{ web.partnership|raw }}</a>
  210.             </span>
  211.             {% endif %}
  212.             {% if (web.webLink) %}
  213.                 <span id=\"link_web\">
  214.                 <a class='info_label'>Site Web </a>
  215.                 <a class='content_info' target=\"_blank\" href=\"http://{{ web.webLink }}\">{{ web.webLink }}</a>
  216.             </span>
  217.             {% endif %}
  218.         </div>
  219.         <div class=\"container-bottom container-bottom-share\">
  220.             <div id=\"shareWeb\"></div>
  221.         </div>
  222.     </div>
  223. </div>
  224. <script>
  225.     \$('.slider').slick({
  226.         draggable: false,
  227.         infinite: false,
  228.         lazyLoad: 'ondemand'
  229.     });
  230.     \$(\".retour_web\").on('click', function(){
  231.         \$(\"#slide-element\").animate({
  232.             'position': 'relative',
  233.             'left': '0px',
  234.         }, 1000, function(){
  235.             \$('#detail-element').html('');
  236.             if(\$(window).width() > 1024){
  237.                 \$(\"#slide-element\").css('height', 'auto');
  238.             }
  239.         });
  240.     });
  241.     \$(\"#shareWeb\").jsSocials({
  242.         shares: [\"facebook\", \"email\", \"twitter\"]
  243.     });
  244. </script>""front/details/detailWeb.html.twig""/var/www/vhosts/fpcrea.com/recette.fpcrea.com/templates/front/details/detailWeb.html.twig");
  245.     }
  246. }