var/cache/dev/twig/15/1526cb9a3c99abf9853c2b8c94c99449.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/detailBook.html.twig */
  14. class __TwigTemplate_c1a57fb09070174c86f5dfb675af2cf6 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/detailBook.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/detailBook.html.twig"));
  33.         // line 1
  34.         echo "<div id='detail-book'>
  35.     <div class=\"desktop\">
  36.         <div class=\"description\">
  37.             <div class='img_desc_book'>
  38.                 <a><img src=\"";
  39.         // line 5
  40.         echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'5$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookPresentation((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'5$this->source); })()))), "html"nulltrue);
  41.         echo "\"/></a>
  42.             </div>
  43.             <div class='texte_desc_book'>
  44.                 <div class='element-desc' id=\"title-contain\"><a>";
  45.         // line 8
  46.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'8$this->source); })()), "title", [], "any"falsefalsefalse8), "html"nulltrue);
  47.         echo "</a></div>
  48.                 <div class=\"element-desc\" id=\"subtitle-contain\">
  49.                     ";
  50.         // line 10
  51.         echo twig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'10$this->source); })()), "hover", [], "any"falsefalsefalse10);
  52.         echo "
  53.                 </div>
  54.                 <div class=\"element-desc\" id=\"content-contain\">
  55.                     ";
  56.         // line 13
  57.         echo twig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'13$this->source); })()), "description", [], "any"falsefalsefalse13);
  58.         echo "
  59.                 </div>
  60.                 <div class=\"element-desc\" id=\"social-contain\">
  61.                     <div id=\"share\"></div>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.         <div class='bannieres'>
  66.             <span><img src=\"";
  67.         // line 23
  68.         echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'23$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookIndex((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'23$this->source); })()))), "html"nulltrue);
  69.         echo "\"/></span>
  70.             <span><img src=\"";
  71.         // line 24
  72.         echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'24$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookBanniere((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'24$this->source); })()))), "html"nulltrue);
  73.         echo "\"/></span>
  74.         </div>
  75.         ";
  76.         // line 26
  77.         if ($this->extensions['App\Twig\BookExtension']->imgBookBanniere_2((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'26$this->source); })()))) {
  78.             // line 27
  79.             echo "            <div class='bannieres banniere_2'>
  80.                 <span><img src=\"";
  81.             // line 28
  82.             echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'28$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookBanniere_2((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'28$this->source); })()))), "html"nulltrue);
  83.             echo "\"/></span>
  84.             </div>
  85.         ";
  86.         }
  87.         // line 31
  88.         echo "        ";
  89.         if ($this->extensions['App\Twig\BookExtension']->imgBookBanniere_3((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'31$this->source); })()))) {
  90.             // line 32
  91.             echo "            <div class='bannieres banniere_3'>
  92.                 <span><img src=\"";
  93.             // line 33
  94.             echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'33$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookBanniere_3((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'33$this->source); })()))), "html"nulltrue);
  95.             echo "\"/></span>
  96.             </div>
  97.         ";
  98.         }
  99.         // line 36
  100.         echo "    </div>
  101.     <div class=\"responsive\">
  102.         <div class=\"description_responsive\">
  103.             <div class='img_desc_book'>
  104.                 <a><img src=\"";
  105.         // line 40
  106.         echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'40$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookPresentation((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'40$this->source); })()))), "html"nulltrue);
  107.         echo "\" alt=\"\"/></a>
  108.             </div>
  109.             <div class='bannieres'>
  110.                 <span><img src=\"";
  111.         // line 43
  112.         echo twig_escape_filter($this->env, (((isset($context["book_path"]) || array_key_exists("book_path"$context) ? $context["book_path"] : (function () { throw new RuntimeError('Variable "book_path" does not exist.'43$this->source); })()) . "/") . $this->extensions['App\Twig\BookExtension']->imgBookBanniere((isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'43$this->source); })()))), "html"nulltrue);
  113.         echo "\" alt=\"\"/></span>
  114.             </div>
  115.             <div class='texte_desc_book'>
  116.                 <div class='element-desc' id=\"title-contain\"><a>";
  117.         // line 46
  118.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'46$this->source); })()), "title", [], "any"falsefalsefalse46), "html"nulltrue);
  119.         echo "</a></div>
  120.                 <div class=\"element-desc\" id=\"subtitle-contain\">
  121.                     ";
  122.         // line 48
  123.         echo twig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'48$this->source); })()), "hover", [], "any"falsefalsefalse48);
  124.         echo "
  125.                 </div>
  126.                 <div class=\"element-desc\" id=\"content-contain\">
  127.                     ";
  128.         // line 51
  129.         echo twig_get_attribute($this->env$this->source, (isset($context["book"]) || array_key_exists("book"$context) ? $context["book"] : (function () { throw new RuntimeError('Variable "book" does not exist.'51$this->source); })()), "description", [], "any"falsefalsefalse51);
  130.         echo "
  131.                 </div>
  132.                 <div class=\"element-desc\" id=\"social-contain\">
  133.                     <div id=\"share\" class=\"jssocials\">
  134.                         <div class=\"jssocials-shares\">
  135.                             <div class=\"jssocials-share jssocials-share-facebook\">
  136.                                 <a href=\"";
  137.         // line 57
  138.         echo twig_escape_filter($this->env, (isset($context["share_facebook_path"]) || array_key_exists("share_facebook_path"$context) ? $context["share_facebook_path"] : (function () { throw new RuntimeError('Variable "share_facebook_path" does not exist.'57$this->source); })()), "html"nulltrue);
  139.         echo "\" target=\"_blank\" class=\"jssocials-share-link\">
  140.                                     <i class=\"fa fa-facebook jssocials-share-logo\"></i>
  141.                                     <span class=\"jssocials-share-label\">Like</span>
  142.                                 </a>
  143.                             </div>
  144.                             <div class=\"jssocials-share jssocials-share-email\">
  145.                                 <a href=\"";
  146.         // line 63
  147.         echo twig_escape_filter($this->env, (isset($context["share_twitter_path"]) || array_key_exists("share_twitter_path"$context) ? $context["share_twitter_path"] : (function () { throw new RuntimeError('Variable "share_twitter_path" does not exist.'63$this->source); })()), "html"nulltrue);
  148.         echo "\" target=\"_blank\" class=\"jssocials-share-link\">
  149.                                     <i class=\"fa fa-at jssocials-share-logo\"></i>
  150.                                     <span class=\"jssocials-share-label\">E-mail</span>
  151.                                 </a>
  152.                             </div>
  153.                             <div class=\"jssocials-share jssocials-share-twitter\">
  154.                                 <a href=\"";
  155.         // line 69
  156.         echo twig_escape_filter($this->env, (isset($context["share_twitter_path"]) || array_key_exists("share_twitter_path"$context) ? $context["share_twitter_path"] : (function () { throw new RuntimeError('Variable "share_twitter_path" does not exist.'69$this->source); })()), "html"nulltrue);
  157.         echo "\" target=\"_blank\" class=\"jssocials-share-link\">
  158.                                     <i class=\"fa fa-twitter jssocials-share-logo\"></i>
  159.                                     <span class=\"jssocials-share-label\">Tweet</span>
  160.                                 </a>
  161.                             </div>
  162.                         </div>
  163.                     </div>
  164.                 </div>
  165.             </div>
  166.         </div>
  167.     </div>
  168. </div>
  169. <script>
  170.     \$(\"#share\").jsSocials({
  171.         shares: [\"facebook\", \"email\", \"twitter\"]
  172.     });
  173. </script>";
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.     }
  179.     public function getTemplateName()
  180.     {
  181.         return "front/details/detailBook.html.twig";
  182.     }
  183.     public function isTraitable()
  184.     {
  185.         return false;
  186.     }
  187.     public function getDebugInfo()
  188.     {
  189.         return array (  167 => 69,  158 => 63,  149 => 57,  140 => 51,  134 => 48,  129 => 46,  123 => 43,  117 => 40,  111 => 36,  105 => 33,  102 => 32,  99 => 31,  93 => 28,  90 => 27,  88 => 26,  83 => 24,  79 => 23,  66 => 13,  60 => 10,  55 => 8,  49 => 5,  43 => 1,);
  190.     }
  191.     public function getSourceContext()
  192.     {
  193.         return new Source("<div id='detail-book'>
  194.     <div class=\"desktop\">
  195.         <div class=\"description\">
  196.             <div class='img_desc_book'>
  197.                 <a><img src=\"{{ book_path ~ '/' ~ book|imgBookPresentation }}\"/></a>
  198.             </div>
  199.             <div class='texte_desc_book'>
  200.                 <div class='element-desc' id=\"title-contain\"><a>{{book.title}}</a></div>
  201.                 <div class=\"element-desc\" id=\"subtitle-contain\">
  202.                     {{book.hover|raw}}
  203.                 </div>
  204.                 <div class=\"element-desc\" id=\"content-contain\">
  205.                     {{ book.description|raw }}
  206.                 </div>
  207.                 <div class=\"element-desc\" id=\"social-contain\">
  208.                     <div id=\"share\"></div>
  209.                 </div>
  210.             </div>
  211.         </div>
  212.         <div class='bannieres'>
  213.             <span><img src=\"{{ book_path ~ '/' ~ book|imgBookIndex }}\"/></span>
  214.             <span><img src=\"{{ book_path ~ '/' ~ book|imgBookBanniere }}\"/></span>
  215.         </div>
  216.         {% if book|imgBookBanniere_2 %}
  217.             <div class='bannieres banniere_2'>
  218.                 <span><img src=\"{{ book_path ~ '/' ~ book|imgBookBanniere_2 }}\"/></span>
  219.             </div>
  220.         {% endif %}
  221.         {% if book|imgBookBanniere_3 %}
  222.             <div class='bannieres banniere_3'>
  223.                 <span><img src=\"{{ book_path ~ '/' ~ book|imgBookBanniere_3 }}\"/></span>
  224.             </div>
  225.         {% endif %}
  226.     </div>
  227.     <div class=\"responsive\">
  228.         <div class=\"description_responsive\">
  229.             <div class='img_desc_book'>
  230.                 <a><img src=\"{{ book_path ~ '/' ~ book|imgBookPresentation }}\" alt=\"\"/></a>
  231.             </div>
  232.             <div class='bannieres'>
  233.                 <span><img src=\"{{ book_path ~ '/' ~ book|imgBookBanniere }}\" alt=\"\"/></span>
  234.             </div>
  235.             <div class='texte_desc_book'>
  236.                 <div class='element-desc' id=\"title-contain\"><a>{{book.title}}</a></div>
  237.                 <div class=\"element-desc\" id=\"subtitle-contain\">
  238.                     {{book.hover|raw}}
  239.                 </div>
  240.                 <div class=\"element-desc\" id=\"content-contain\">
  241.                     {{ book.description|raw }}
  242.                 </div>
  243.                 <div class=\"element-desc\" id=\"social-contain\">
  244.                     <div id=\"share\" class=\"jssocials\">
  245.                         <div class=\"jssocials-shares\">
  246.                             <div class=\"jssocials-share jssocials-share-facebook\">
  247.                                 <a href=\"{{ share_facebook_path }}\" target=\"_blank\" class=\"jssocials-share-link\">
  248.                                     <i class=\"fa fa-facebook jssocials-share-logo\"></i>
  249.                                     <span class=\"jssocials-share-label\">Like</span>
  250.                                 </a>
  251.                             </div>
  252.                             <div class=\"jssocials-share jssocials-share-email\">
  253.                                 <a href=\"{{ share_twitter_path }}\" target=\"_blank\" class=\"jssocials-share-link\">
  254.                                     <i class=\"fa fa-at jssocials-share-logo\"></i>
  255.                                     <span class=\"jssocials-share-label\">E-mail</span>
  256.                                 </a>
  257.                             </div>
  258.                             <div class=\"jssocials-share jssocials-share-twitter\">
  259.                                 <a href=\"{{ share_twitter_path }}\" target=\"_blank\" class=\"jssocials-share-link\">
  260.                                     <i class=\"fa fa-twitter jssocials-share-logo\"></i>
  261.                                     <span class=\"jssocials-share-label\">Tweet</span>
  262.                                 </a>
  263.                             </div>
  264.                         </div>
  265.                     </div>
  266.                 </div>
  267.             </div>
  268.         </div>
  269.     </div>
  270. </div>
  271. <script>
  272.     \$(\"#share\").jsSocials({
  273.         shares: [\"facebook\", \"email\", \"twitter\"]
  274.     });
  275. </script>""front/details/detailBook.html.twig""/var/www/vhosts/fpcrea.com/recette.fpcrea.com/templates/front/details/detailBook.html.twig");
  276.     }
  277. }