var/cache/dev/twig/82/82a316edb55df70172e45ba4d12e2328.php line 33

Open in your IDE?
  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. /* composantsPages/homeComponents/preview/service.html.twig */
  14. class __TwigTemplate_acc8a1fd7c27f0ba5c94e78be6c166d4 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""composantsPages/homeComponents/preview/service.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""composantsPages/homeComponents/preview/service.html.twig"));
  33.         // line 1
  34.         echo "<section id=\"page-content\" class=\"sidebar-right\">
  35.     <div class=\"container\">
  36.         <div class=\"row\">
  37.             <div class=\"content col-lg-9\">
  38.                 <div id=\"service\" class=\"single-post\">
  39.                     <div class=\"post-item\">
  40.                         <div class=\"post-item-wrap\">
  41.                             <div class=\"post-image\">
  42.                                 <a href=\"\">
  43.                                     <img alt=\"";
  44.         // line 13
  45.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'13$this->source); })()), "altDescription", [], "any"falsefalsefalse13), "html"nulltrue);
  46.         echo "\" ";
  47.         echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'13$this->source); })()), "image", [], "any"falsefalsefalse13))));
  48.         echo ">
  49.                                 </a>
  50.                             </div>
  51.                             <div class=\"post-item-description\">
  52.                                 <h2>";
  53.         // line 17
  54.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'17$this->source); })()), "titre", [], "any"falsefalsefalse17), "html"nulltrue);
  55.         echo "</h2>
  56.                                 <div class=\"service-content\">
  57.                                     <div>";
  58.         // line 19
  59.         echo twig_get_attribute($this->env$this->source, (isset($context["service"]) || array_key_exists("service"$context) ? $context["service"] : (function () { throw new RuntimeError('Variable "service" does not exist.'19$this->source); })()), "displayContent", [], "any"falsefalsefalse19);
  60.         echo "</div>
  61.                                 </div>
  62.                             </div>
  63.                             <div class=\"post-navigation\">
  64.                                 ";
  65.         // line 23
  66.         if ( !(null === (isset($context["previousService"]) || array_key_exists("previousService"$context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.'23$this->source); })()))) {
  67.             // line 24
  68.             echo "                                    <a href=\"";
  69.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($this->env$this->source, (isset($context["previousService"]) || array_key_exists("previousService"$context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.'24$this->source); })()), "id", [], "any"falsefalsefalse24)]), "html"nulltrue);
  70.             echo "\" class=\"post-prev\">
  71.                                         <div class=\"post-prev-title\"><span>";
  72.             // line 25
  73.             echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.previous");
  74.             echo "</span>";
  75.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["previousService"]) || array_key_exists("previousService"$context) ? $context["previousService"] : (function () { throw new RuntimeError('Variable "previousService" does not exist.'25$this->source); })()), "titre", [], "any"falsefalsefalse25), "html"nulltrue);
  76.             echo "</div>
  77.                                     </a>
  78.                                 ";
  79.         }
  80.         // line 28
  81.         echo "                                <a href=\"";
  82.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("services");
  83.         echo "\" class=\"post-all\">
  84.                                     <i class=\"icon-grid\"> </i>
  85.                                 </a>
  86.                                 ";
  87.         // line 31
  88.         if ( !(null === (isset($context["nextService"]) || array_key_exists("nextService"$context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.'31$this->source); })()))) {
  89.             // line 32
  90.             echo "                                    <a href=\"";
  91.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($this->env$this->source, (isset($context["nextService"]) || array_key_exists("nextService"$context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.'32$this->source); })()), "id", [], "any"falsefalsefalse32)]), "html"nulltrue);
  92.             echo "\" class=\"post-next\">
  93.                                         <div class=\"post-next-title\"><span>";
  94.             // line 33
  95.             echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.next");
  96.             echo "</span>";
  97.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["nextService"]) || array_key_exists("nextService"$context) ? $context["nextService"] : (function () { throw new RuntimeError('Variable "nextService" does not exist.'33$this->source); })()), "titre", [], "any"falsefalsefalse33), "html"nulltrue);
  98.             echo "</div>
  99.                                     </a>
  100.                                 ";
  101.         }
  102.         // line 36
  103.         echo "                            </div>
  104.                         </div>
  105.                     </div>
  106.                 </div>
  107.             </div>
  108.             <div class=\"sidebar sticky-sidebar col-lg-3\">
  109.                 <div class=\"widget\">
  110.                     <h2 class=\"widget-title\">";
  111.         // line 48
  112.         echo $this->extensions['App\Twig\TransExtension']->trans("components.service_preview.other");
  113.         echo "</h2>
  114.                     <div class=\"post-thumbnail-list\">
  115.                         ";
  116.         // line 50
  117.         $context['_parent'] = $context;
  118.         $context['_seq'] = twig_ensure_traversable((isset($context["otherServices"]) || array_key_exists("otherServices"$context) ? $context["otherServices"] : (function () { throw new RuntimeError('Variable "otherServices" does not exist.'50$this->source); })()));
  119.         foreach ($context['_seq'] as $context["_key"] => $context["service"]) {
  120.             // line 51
  121.             echo "                            <div class=\"post-thumbnail-entry\">
  122.                                 <img alt=\"";
  123.             // line 52
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "altDescription", [], "any"falsefalsefalse52), "html"nulltrue);
  125.             echo "\" ";
  126.             echo $this->extensions['App\Twig\ImageRenderExtension']->generateSrc($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" twig_get_attribute($this->env$this->source$context["service"], "image", [], "any"falsefalsefalse52))));
  127.             echo ">
  128.                                 <div class=\"post-thumbnail-content\">
  129.                                     <a href=\"";
  130.             // line 54
  131.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("service", ["id" => twig_get_attribute($this->env$this->source$context["service"], "id", [], "any"falsefalsefalse54)]), "html"nulltrue);
  132.             echo "\">";
  133.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["service"], "titre", [], "any"falsefalsefalse54), "html"nulltrue);
  134.             echo "</a>
  135.                                 </div>
  136.                             </div>
  137.                         ";
  138.         }
  139.         $_parent $context['_parent'];
  140.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['service'], $context['_parent'], $context['loop']);
  141.         $context array_intersect_key($context$_parent) + $_parent;
  142.         // line 58
  143.         echo "
  144.                     </div>
  145.                 </div>
  146.             </div>
  147.         </div>
  148.     </div>
  149. </section>
  150. ";
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  155.     }
  156.     public function getTemplateName()
  157.     {
  158.         return "composantsPages/homeComponents/preview/service.html.twig";
  159.     }
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         return array (  160 => 58,  148 => 54,  141 => 52,  138 => 51,  134 => 50,  129 => 48,  115 => 36,  107 => 33,  102 => 32,  100 => 31,  93 => 28,  85 => 25,  80 => 24,  78 => 23,  71 => 19,  66 => 17,  57 => 13,  43 => 1,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("<section id=\"page-content\" class=\"sidebar-right\">
  171.     <div class=\"container\">
  172.         <div class=\"row\">
  173.             <div class=\"content col-lg-9\">
  174.                 <div id=\"service\" class=\"single-post\">
  175.                     <div class=\"post-item\">
  176.                         <div class=\"post-item-wrap\">
  177.                             <div class=\"post-image\">
  178.                                 <a href=\"\">
  179.                                     <img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
  180.                                 </a>
  181.                             </div>
  182.                             <div class=\"post-item-description\">
  183.                                 <h2>{{ service.titre }}</h2>
  184.                                 <div class=\"service-content\">
  185.                                     <div>{{ service.displayContent | raw }}</div>
  186.                                 </div>
  187.                             </div>
  188.                             <div class=\"post-navigation\">
  189.                                 {% if previousService is not null %}
  190.                                     <a href=\"{{ path('service',{'id' : previousService.id}) }}\" class=\"post-prev\">
  191.                                         <div class=\"post-prev-title\"><span>{{ 'components.service_preview.previous' | admintrans | raw }}</span>{{ previousService.titre }}</div>
  192.                                     </a>
  193.                                 {% endif %}
  194.                                 <a href=\"{{ path('services') }}\" class=\"post-all\">
  195.                                     <i class=\"icon-grid\"> </i>
  196.                                 </a>
  197.                                 {% if nextService is not null %}
  198.                                     <a href=\"{{ path('service',{'id' : nextService.id}) }}\" class=\"post-next\">
  199.                                         <div class=\"post-next-title\"><span>{{ 'components.service_preview.next' | admintrans | raw }}</span>{{ nextService.titre }}</div>
  200.                                     </a>
  201.                                 {% endif %}
  202.                             </div>
  203.                         </div>
  204.                     </div>
  205.                 </div>
  206.             </div>
  207.             <div class=\"sidebar sticky-sidebar col-lg-3\">
  208.                 <div class=\"widget\">
  209.                     <h2 class=\"widget-title\">{{ 'components.service_preview.other' | admintrans | raw }}</h2>
  210.                     <div class=\"post-thumbnail-list\">
  211.                         {% for service in otherServices %}
  212.                             <div class=\"post-thumbnail-entry\">
  213.                                 <img alt=\"{{ service.altDescription }}\" {{ responsive_src(asset('images/upload/' ~ service.image)) | raw }}>
  214.                                 <div class=\"post-thumbnail-content\">
  215.                                     <a href=\"{{ path('service',{'id' : service.id}) }}\">{{ service.titre }}</a>
  216.                                 </div>
  217.                             </div>
  218.                         {% endfor %}
  219.                     </div>
  220.                 </div>
  221.             </div>
  222.         </div>
  223.     </div>
  224. </section>
  225. ""composantsPages/homeComponents/preview/service.html.twig""/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/composantsPages/homeComponents/preview/service.html.twig");
  226.     }
  227. }