var/cache/dev/twig/cf/cf7b0203ad34173c9192d17eb3a7f37e.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* theme/default/page_cms.html.twig */
  15. class __TwigTemplate_1f86dc3cd69f90af9aafad8737917d81 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'stylesheets' => [$this, 'block_stylesheets'],
  25. 'body' => [$this, 'block_body'],
  26. 'javascripts' => [$this, 'block_javascripts'],
  27. ];
  28. }
  29. protected function doGetParent(array $context)
  30. {
  31. // line 1
  32. return $this->loadTemplate((("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1, $this->source); })()), "request", [], "any", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", ["APP_THEME"], "method", false, false, false, 1)) . "/partials/base.html.twig"), "theme/default/page_cms.html.twig", 1);
  33. }
  34. protected function doDisplay(array $context, array $blocks = [])
  35. {
  36. $macros = $this->macros;
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/page_cms.html.twig"));
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "theme/default/page_cms.html.twig"));
  41. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44. }
  45. // line 3
  46. public function block_stylesheets($context, array $blocks = [])
  47. {
  48. $macros = $this->macros;
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  53. // line 4
  54. yield "\t";
  55. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  56. yield "
  57. \t";
  58. // line 5
  59. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 5, $this->source); })()), "customstyle", [], "any", false, false, false, 5))) {
  60. // line 6
  61. yield "\t\t<style>";
  62. yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 6, $this->source); })()), "customstyle", [], "any", false, false, false, 6);
  63. yield "</style>
  64. \t";
  65. }
  66. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68. return; yield '';
  69. }
  70. // line 11
  71. public function block_body($context, array $blocks = [])
  72. {
  73. $macros = $this->macros;
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  78. // line 12
  79. yield "\t<div id=\"";
  80. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id_page"]) || array_key_exists("id_page", $context) ? $context["id_page"] : (function () { throw new RuntimeError('Variable "id_page" does not exist.', 12, $this->source); })()), "html", null, true);
  81. yield "\" class=\"page-cms\">
  82. \t\t";
  83. // line 13
  84. if ((array_key_exists("breadcrumb", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 13, $this->source); })())))) {
  85. // line 14
  86. yield "\t\t\t";
  87. yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "server", [], "any", false, false, false, 14), "get", ["APP_THEME"], "method", false, false, false, 14)) . "/partials/breadcrumb.html.twig"), ["breadcrumb" => // line 15
  88. (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 15, $this->source); })()), "titre_page" => (( // line 16
  89. array_key_exists("titre_page", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["titre_page"]) || array_key_exists("titre_page", $context) ? $context["titre_page"] : (function () { throw new RuntimeError('Variable "titre_page" does not exist.', 16, $this->source); })()), "")) : ("")), "image_bandeau" => // line 17
  90. (isset($context["image_bandeau"]) || array_key_exists("image_bandeau", $context) ? $context["image_bandeau"] : (function () { throw new RuntimeError('Variable "image_bandeau" does not exist.', 17, $this->source); })()), "image_bandeau_alt" => // line 18
  91. (isset($context["image_bandeau_alt"]) || array_key_exists("image_bandeau_alt", $context) ? $context["image_bandeau_alt"] : (function () { throw new RuntimeError('Variable "image_bandeau_alt" does not exist.', 18, $this->source); })())], false);
  92. // line 19
  93. yield "
  94. \t\t";
  95. }
  96. // line 21
  97. yield "
  98. \t\t<div class=\"container-fluid content-wrapper\">
  99. \t\t\t<div class=\"content-area\">
  100. \t\t\t\t<div class=\"row content_page\">
  101. \t\t\t\t\t\t<div class=\"col-sm-12\">
  102. \t\t\t\t\t\t\t";
  103. // line 29
  104. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 29, $this->source); })()), "image", [], "any", false, false, false, 29) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 29, $this->source); })()), "showimageprincipal", [], "any", false, false, false, 29) == false))) {
  105. // line 30
  106. yield "\t\t\t\t\t\t\t\t";
  107. $context["position_image"] = ((CoreExtension::getAttribute($this->env, $this->source, ["1" => "d-flex justify-content-center", "2" => "d-flex justify-content-start", "3" => "d-flex justify-content-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 30, $this->source); })()), "positionimage", [], "any", false, false, false, 30), [], "array", true, true, false, 30)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ["1" => "d-flex justify-content-center", "2" => "d-flex justify-content-start", "3" => "d-flex justify-content-end"], CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 30, $this->source); })()), "positionimage", [], "any", false, false, false, 30), [], "array", false, false, false, 30), "d-flex justify-content-center")) : ("d-flex justify-content-center"));
  108. // line 31
  109. yield "\t\t\t\t\t\t\t\t<div class=\"";
  110. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["position_image"]) || array_key_exists("position_image", $context) ? $context["position_image"] : (function () { throw new RuntimeError('Variable "position_image" does not exist.', 31, $this->source); })()), "html", null, true);
  111. yield "\">
  112. \t\t\t\t\t\t\t\t\t<div class=\"col-image-post\">
  113. \t\t\t\t\t\t\t\t\t\t<img class=\"img-fluid principal-img\" src=\"";
  114. // line 33
  115. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 33, $this->source); })()), "image", [], "any", false, false, false, 33), "medium", ["1024x/uploads", "800x/uploads", "800x/uploads"]), "html", null, true);
  116. yield "\" alt=\"";
  117. yield (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 33, $this->source); })()), "imagealt", [], "any", false, false, false, 33))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 33, $this->source); })()), "imagealt", [], "any", false, false, false, 33)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 33, $this->source); })()), "title", [], "any", false, false, false, 33)));
  118. yield "\"/>
  119. \t\t\t\t\t\t\t\t\t</div>
  120. \t\t\t\t\t\t\t\t</div>
  121. \t\t\t\t\t\t\t";
  122. }
  123. // line 37
  124. yield "
  125. \t\t\t\t\t\t\t";
  126. // line 38
  127. $context["lien_site"] = (((((("<a href=" . $this->extensions['App\Twig\CmsFunctionExtension']->websiteUrlFunction()) . " title=") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["site_parameters"]) || array_key_exists("site_parameters", $context) ? $context["site_parameters"] : (function () { throw new RuntimeError('Variable "site_parameters" does not exist.', 38, $this->source); })()), "getParameters", [], "method", false, false, false, 38), "titre", [], "any", false, false, false, 38)) . ">") . $this->extensions['App\Twig\CmsFunctionExtension']->websiteUrlFunction()) . "</a>");
  128. // line 39
  129. yield "
  130. \t\t\t\t\t\t\t";
  131. // line 40
  132. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 40, $this->source); })()), "content", [], "any", false, false, false, 40))) {
  133. // line 41
  134. yield "\t\t\t\t\t\t\t\t<div class=\"texte-content\">";
  135. yield $this->extensions['App\Twig\ShortcodeExtension']->replaceShortcodes($this->extensions['App\Twig\MotClePostExtension']->ContentChangeByMotCleFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 41, $this->source); })()), "id", [], "any", false, false, false, 41), Twig\Extension\CoreExtension::replace(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 41, $this->source); })()), "content", [], "any", false, false, false, 41), ["[NDD]" => (isset($context["lien_site"]) || array_key_exists("lien_site", $context) ? $context["lien_site"] : (function () { throw new RuntimeError('Variable "lien_site" does not exist.', 41, $this->source); })())])));
  136. yield "</div>
  137. \t\t\t\t\t\t\t";
  138. }
  139. // line 43
  140. yield "
  141. \t\t\t\t\t\t\t";
  142. // line 44
  143. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 44, $this->source); })()), "tarifs", [], "any", false, false, false, 44))) {
  144. // line 45
  145. yield "\t\t\t\t\t\t\t\t";
  146. $context["data_tarif"] = $this->extensions['App\Twig\UnserializeExtension']->UnserializeFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 45, $this->source); })()), "tarifs", [], "any", false, false, false, 45));
  147. // line 46
  148. yield "\t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon\">
  149. \t\t\t\t\t\t\t\t\t";
  150. // line 47
  151. $context['_parent'] = $context;
  152. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["data_tarif"]) || array_key_exists("data_tarif", $context) ? $context["data_tarif"] : (function () { throw new RuntimeError('Variable "data_tarif" does not exist.', 47, $this->source); })()));
  153. foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  154. // line 48
  155. yield "\t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon_title\"><span class=\"title\">";
  156. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "globalTitle", [], "any", false, false, false, 48), "html", null, true);
  157. yield "</span> <span class=\"icon-plus\"></span></div>
  158. \t\t\t\t\t\t\t\t\t\t";
  159. // line 49
  160. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "tables", [], "any", false, false, false, 49))) {
  161. // line 50
  162. yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon_content\">
  163. \t\t\t\t\t\t\t\t\t\t\t\t";
  164. // line 51
  165. $context['_parent'] = $context;
  166. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "tables", [], "any", false, false, false, 51));
  167. foreach ($context['_seq'] as $context["_key"] => $context["tab"]) {
  168. // line 52
  169. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_tab\">
  170. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_title\">";
  171. // line 53
  172. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "tableTitle", [], "any", false, false, false, 53), "html", null, true);
  173. yield "</div>
  174. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  175. // line 54
  176. if ((CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "tableDescription", [], "any", true, true, false, 54) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "tableDescription", [], "any", false, false, false, 54)))) {
  177. // line 55
  178. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t \t<div class=\"tarif_tab_description\">";
  179. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "tableDescription", [], "any", false, false, false, 55), "html", null, true);
  180. yield "</div>
  181. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  182. }
  183. // line 57
  184. yield "
  185. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_content\">
  186. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  187. // line 59
  188. if ((CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "rows", [], "any", true, true, false, 59) && !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "rows", [], "any", false, false, false, 59)))) {
  189. // line 60
  190. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  191. $context['_parent'] = $context;
  192. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["tab"], "rows", [], "any", false, false, false, 60));
  193. foreach ($context['_seq'] as $context["_key"] => $context["row_item"]) {
  194. // line 61
  195. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line\">
  196. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_title\">";
  197. // line 62
  198. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row_item"], "titre", [], "any", false, false, false, 62), "html", null, true);
  199. yield "</div>
  200. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_subtitle\">";
  201. // line 63
  202. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row_item"], "sousTitre", [], "any", false, false, false, 63), "html", null, true);
  203. yield "</div>
  204. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_price\">";
  205. // line 64
  206. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["row_item"], "price", [], "any", false, false, false, 64), "html", null, true);
  207. yield "</div>
  208. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  209. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  210. }
  211. $_parent = $context['_parent'];
  212. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row_item'], $context['_parent'], $context['loop']);
  213. $context = array_intersect_key($context, $_parent) + $_parent;
  214. // line 67
  215. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  216. }
  217. // line 68
  218. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  219. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  220. \t\t\t\t\t\t\t\t\t\t\t\t";
  221. }
  222. $_parent = $context['_parent'];
  223. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tab'], $context['_parent'], $context['loop']);
  224. $context = array_intersect_key($context, $_parent) + $_parent;
  225. // line 71
  226. yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  227. \t\t\t\t\t\t\t\t\t\t";
  228. }
  229. // line 73
  230. yield "\t\t\t\t\t\t\t\t\t";
  231. }
  232. $_parent = $context['_parent'];
  233. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  234. $context = array_intersect_key($context, $_parent) + $_parent;
  235. // line 74
  236. yield "\t\t\t\t\t\t\t\t</div>
  237. \t\t\t\t\t\t\t";
  238. }
  239. // line 76
  240. yield "
  241. \t\t\t\t\t\t\t";
  242. // line 77
  243. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 77, $this->source); })()), "typelien", [], "any", false, false, false, 77) != 1)) {
  244. // line 78
  245. yield "\t\t\t\t\t\t\t\t";
  246. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 78, $this->source); })()), "typelien", [], "any", false, false, false, 78) == "4")) {
  247. // line 79
  248. yield "\t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  249. \t\t\t\t\t\t\t\t\t\t<a href=\"tel:";
  250. // line 80
  251. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 80, $this->source); })()), "telephone", [], "any", false, false, false, 80), "html", null, true);
  252. yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  253. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 80, $this->source); })()), "titrelien", [], "any", false, false, false, 80), "html", null, true);
  254. yield "</a>
  255. \t\t\t\t\t\t\t\t\t</div>
  256. \t\t\t\t\t\t\t\t";
  257. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 82
  258. (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 82, $this->source); })()), "typelien", [], "any", false, false, false, 82) == "2")) {
  259. // line 83
  260. yield "\t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  261. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  262. // line 84
  263. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\CmsFunctionExtension']->resolveInternalSlugLinkFunction(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 84, $this->source); })()), "lieninterne", [], "any", false, false, false, 84)), "html", null, true);
  264. yield "\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  265. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 84, $this->source); })()), "titrelien", [], "any", false, false, false, 84), "html", null, true);
  266. yield "</a>
  267. \t\t\t\t\t\t\t\t\t</div>
  268. \t\t\t\t\t\t\t\t";
  269. } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 86
  270. (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 86, $this->source); })()), "typelien", [], "any", false, false, false, 86) == "3")) {
  271. // line 87
  272. yield "\t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  273. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  274. // line 88
  275. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 88, $this->source); })()), "lienexterne", [], "any", false, false, false, 88), "html", null, true);
  276. yield "\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">";
  277. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 88, $this->source); })()), "titrelien", [], "any", false, false, false, 88), "html", null, true);
  278. yield "</a>
  279. \t\t\t\t\t\t\t\t\t</div>
  280. \t\t\t\t\t\t\t\t";
  281. }
  282. // line 91
  283. yield "\t\t\t\t\t\t\t";
  284. }
  285. // line 92
  286. yield "\t\t\t\t\t\t</div>
  287. \t\t\t\t\t\t";
  288. // line 94
  289. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 94, $this->source); })()), "urlvideo", [], "any", false, false, false, 94))) {
  290. // line 95
  291. yield "\t\t\t\t\t\t\t<div class=\"col-sm-12\">
  292. \t\t\t\t\t\t\t\t<div class=\"contenu-video\">
  293. \t\t\t\t\t\t\t\t\t";
  294. // line 97
  295. $context["id_video_externe"] = $this->extensions['App\Twig\AppExtension']->extractYoutubeId(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 97, $this->source); })()), "urlvideo", [], "any", false, false, false, 97));
  296. // line 98
  297. yield "\t\t\t\t\t\t\t\t\t<a class=\"video-thumbnail m-0\" href=\"";
  298. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 98, $this->source); })()), "urlvideo", [], "any", false, false, false, 98), "html", null, true);
  299. yield "\" data-fancybox=\"video\">
  300. \t\t\t\t\t\t\t\t\t\t<img src=\"https://img.youtube.com/vi/";
  301. // line 99
  302. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["id_video_externe"]) || array_key_exists("id_video_externe", $context) ? $context["id_video_externe"] : (function () { throw new RuntimeError('Variable "id_video_externe" does not exist.', 99, $this->source); })()), "html", null, true);
  303. yield "/maxresdefault.jpg\" class=\"img-fluid\" alt=\"youtube vidéo\"/>
  304. \t\t\t\t\t\t\t\t\t</a>
  305. \t\t\t\t\t\t\t\t</div>
  306. \t\t\t\t\t\t\t</div>
  307. \t\t\t\t\t\t";
  308. }
  309. // line 104
  310. yield "
  311. \t\t\t\t\t\t";
  312. // line 105
  313. if (((((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 105, $this->source); })()) && !Twig\Extension\CoreExtension::testEmpty((isset($context["galleries"]) || array_key_exists("galleries", $context) ? $context["galleries"] : (function () { throw new RuntimeError('Variable "galleries" does not exist.', 105, $this->source); })()))) && array_key_exists("twig_galerie", $context)) && !Twig\Extension\CoreExtension::testEmpty((isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 105, $this->source); })())))) {
  314. // line 106
  315. yield "\t\t\t\t\t\t\t<div class=\"col-sm-12\">
  316. \t\t\t\t\t\t\t\t";
  317. // line 107
  318. yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["twig_galerie"]) || array_key_exists("twig_galerie", $context) ? $context["twig_galerie"] : (function () { throw new RuntimeError('Variable "twig_galerie" does not exist.', 107, $this->source); })())));
  319. yield "
  320. \t\t\t\t\t\t\t</div>
  321. \t\t\t\t\t\t";
  322. }
  323. // line 110
  324. yield "
  325. \t\t\t\t
  326. \t\t\t\t</div>
  327. \t\t\t</div>
  328. \t\t</div>
  329. \t\t";
  330. // line 118
  331. if (array_key_exists("blocs", $context)) {
  332. // line 119
  333. yield "\t\t\t";
  334. yield Twig\Extension\CoreExtension::include($this->env, $context, (("theme/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 119, $this->source); })()), "request", [], "any", false, false, false, 119), "server", [], "any", false, false, false, 119), "get", ["APP_THEME"], "method", false, false, false, 119)) . "/partials/bloc_render.html.twig"), ["blocs" => (isset($context["blocs"]) || array_key_exists("blocs", $context) ? $context["blocs"] : (function () { throw new RuntimeError('Variable "blocs" does not exist.', 119, $this->source); })())], false);
  335. yield "
  336. \t\t";
  337. }
  338. // line 121
  339. yield "
  340. \t\t";
  341. // line 122
  342. if ((array_key_exists("post_associer", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["post_associer"]) || array_key_exists("post_associer", $context) ? $context["post_associer"] : (function () { throw new RuntimeError('Variable "post_associer" does not exist.', 122, $this->source); })())))) {
  343. // line 123
  344. yield "\t\t\t<div class=\"container-fluid content-wrapper py-5\">
  345. \t\t\t\t<div class=\"row\">
  346. \t\t\t\t\t<div class=\"col-sm-12\">
  347. \t\t\t\t\t\t<h2 class=\"title mb-5\">
  348. \t\t\t\t\t\t\tDécouvrez d'autres articles
  349. \t\t\t\t\t\t</h2>
  350. \t\t\t\t\t\t<div class=\"article-list\" data-columns=\"3\" data-style=\"compact\">
  351. \t\t\t\t\t\t\t";
  352. // line 130
  353. $context['_parent'] = $context;
  354. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["post_associer"]) || array_key_exists("post_associer", $context) ? $context["post_associer"] : (function () { throw new RuntimeError('Variable "post_associer" does not exist.', 130, $this->source); })()));
  355. foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  356. // line 131
  357. yield "\t\t\t\t\t\t\t\t<div class=\"article-item list-item \">
  358. \t\t\t\t\t\t\t\t\t<div class=\"card\">
  359. \t\t\t\t\t\t\t\t\t\t<div class=\"bx-image\">
  360. \t\t\t\t\t\t\t\t\t\t\t";
  361. // line 134
  362. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 134)) {
  363. // line 135
  364. yield "\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"";
  365. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 135), "medium", ["1024x/uploads", "800x/uploads", "800x/uploads"]), "html", null, true);
  366. yield "\" class=\"card-img-top lazyload\" alt=\"";
  367. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 135), "html", null, true);
  368. yield "\">
  369. \t\t\t\t\t\t\t\t\t\t\t";
  370. } else {
  371. // line 137
  372. yield "\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"";
  373. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/media-site/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["site_parameters"]) || array_key_exists("site_parameters", $context) ? $context["site_parameters"] : (function () { throw new RuntimeError('Variable "site_parameters" does not exist.', 137, $this->source); })()), "getParameters", [], "method", false, false, false, 137), "imagevide", [], "any", false, false, false, 137))), "html", null, true);
  374. yield "\" class=\"card-img-top lazyload\" alt=\"";
  375. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 137), "html", null, true);
  376. yield "\">
  377. \t\t\t\t\t\t\t\t\t\t\t";
  378. }
  379. // line 139
  380. yield "\t\t\t\t\t\t\t\t\t\t</div>
  381. \t\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  382. \t\t\t\t\t\t\t\t\t\t\t<div class=\"article-content\">
  383. \t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"card-title\"><a href=\"";
  384. // line 143
  385. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 143, $this->source); })()), "html", null, true);
  386. yield "\">";
  387. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 143), "html", null, true);
  388. yield "</a></h3>
  389. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"last-update\">
  390. \t\t\t\t\t\t\t\t\t\t\t\t\tDernière mise à jour : ";
  391. // line 145
  392. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "updatedAt", [], "any", false, false, false, 145), "d/m/Y"), "html", null, true);
  393. yield "
  394. \t\t\t\t\t\t\t\t\t\t\t\t</span>
  395. \t\t\t\t\t\t\t\t\t\t\t\t";
  396. // line 147
  397. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "showresume", [], "any", false, false, false, 147)) {
  398. // line 148
  399. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  400. $context["texte_content"] = $this->extensions['App\Twig\CmsFunctionExtension']->cutTextFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "summary", [], "any", false, false, false, 148));
  401. // line 149
  402. yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  403. } else {
  404. // line 150
  405. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  406. $context["texte_content"] = $this->extensions['App\Twig\CmsFunctionExtension']->cutTextFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 150));
  407. // line 151
  408. yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  409. }
  410. // line 152
  411. yield "
  412. \t\t\t\t\t\t\t\t\t\t\t\t";
  413. // line 153
  414. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["texte_content"]) || array_key_exists("texte_content", $context) ? $context["texte_content"] : (function () { throw new RuntimeError('Variable "texte_content" does not exist.', 153, $this->source); })()))) {
  415. // line 154
  416. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"card-text\">";
  417. yield (isset($context["texte_content"]) || array_key_exists("texte_content", $context) ? $context["texte_content"] : (function () { throw new RuntimeError('Variable "texte_content" does not exist.', 154, $this->source); })());
  418. yield "</p>
  419. \t\t\t\t\t\t\t\t\t\t\t\t";
  420. }
  421. // line 156
  422. yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  423. \t\t\t\t\t\t\t\t\t\t\t
  424. \t\t\t\t\t\t\t\t\t\t</div>
  425. \t\t\t\t\t\t\t\t\t</div>
  426. \t\t\t\t\t\t\t\t</div>
  427. \t\t\t\t\t\t\t";
  428. }
  429. $_parent = $context['_parent'];
  430. unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
  431. $context = array_intersect_key($context, $_parent) + $_parent;
  432. // line 163
  433. yield "\t\t\t\t\t\t</div>
  434. \t\t\t\t\t</div>
  435. \t\t\t\t</div>
  436. \t\t\t</div>
  437. \t\t";
  438. } elseif (( // line 167
  439. array_key_exists("post_aleatoire", $context) && !Twig\Extension\CoreExtension::testEmpty((isset($context["post_aleatoire"]) || array_key_exists("post_aleatoire", $context) ? $context["post_aleatoire"] : (function () { throw new RuntimeError('Variable "post_aleatoire" does not exist.', 167, $this->source); })())))) {
  440. // line 168
  441. yield "\t\t\t<div class=\"article-random\">
  442. \t\t\t\t<div class=\"container-fluid content-wrapper\">
  443. \t\t\t\t\t<div class=\"row\">
  444. \t\t\t\t\t\t<div class=\"col-sm-12\">
  445. \t\t\t\t\t\t\t<h2 class=\"title mb-5\">
  446. \t\t\t\t\t\t\t\tDécouvrez d'autres articles
  447. \t\t\t\t\t\t\t</h2>
  448. \t\t\t\t\t\t\t<div class=\"article-list\" data-columns=\"3\" data-style=\"compact\">
  449. \t\t\t\t\t\t\t\t";
  450. // line 176
  451. $context['_parent'] = $context;
  452. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["post_aleatoire"]) || array_key_exists("post_aleatoire", $context) ? $context["post_aleatoire"] : (function () { throw new RuntimeError('Variable "post_aleatoire" does not exist.', 176, $this->source); })()));
  453. foreach ($context['_seq'] as $context["key"] => $context["item"]) {
  454. // line 177
  455. yield "\t\t\t\t\t\t\t\t\t<div class=\"article-item list-item \">
  456. \t\t\t\t\t\t\t\t\t\t<div class=\"card\">
  457. \t\t\t\t\t\t\t\t\t\t\t<div class=\"bx-image\">
  458. \t\t\t\t\t\t\t\t\t\t\t\t";
  459. // line 180
  460. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 180)) {
  461. // line 181
  462. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"";
  463. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\ImagesExtenstion']->AssetImageFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "image", [], "any", false, false, false, 181), "medium", ["1024x/uploads", "800x/uploads", "800x/uploads"]), "html", null, true);
  464. yield "\" class=\"card-img-top lazyload\" alt=\"";
  465. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 181), "html", null, true);
  466. yield "\">
  467. \t\t\t\t\t\t\t\t\t\t\t\t";
  468. } else {
  469. // line 183
  470. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"";
  471. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/uploads/media-site/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["site_parameters"]) || array_key_exists("site_parameters", $context) ? $context["site_parameters"] : (function () { throw new RuntimeError('Variable "site_parameters" does not exist.', 183, $this->source); })()), "getParameters", [], "method", false, false, false, 183), "imagevide", [], "any", false, false, false, 183))), "html", null, true);
  472. yield "\" class=\"card-img-top lazyload\" alt=\"";
  473. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 183), "html", null, true);
  474. yield "\">
  475. \t\t\t\t\t\t\t\t\t\t\t\t";
  476. }
  477. // line 185
  478. yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  479. \t\t\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  480. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"article-content\">
  481. \t\t\t\t\t\t\t\t\t\t\t\t";
  482. // line 189
  483. $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["item"], "slug", [], "any", false, false, false, 189)]);
  484. // line 190
  485. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"card-title\"><a href=\"";
  486. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 190, $this->source); })()), "html", null, true);
  487. yield "\">";
  488. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 190), "html", null, true);
  489. yield "</a></h3>
  490. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"last-update\">
  491. \t\t\t\t\t\t\t\t\t\t\t\t\t\tDernière mise à jour : ";
  492. // line 192
  493. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "updatedAt", [], "any", false, false, false, 192), "d/m/Y"), "html", null, true);
  494. yield "
  495. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  496. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  497. // line 194
  498. if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "showresume", [], "any", false, false, false, 194)) {
  499. // line 195
  500. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  501. $context["texte_content"] = $this->extensions['App\Twig\CmsFunctionExtension']->cutTextFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "summary", [], "any", false, false, false, 195));
  502. // line 196
  503. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  504. } else {
  505. // line 197
  506. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  507. $context["texte_content"] = $this->extensions['App\Twig\CmsFunctionExtension']->cutTextFunction(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 197));
  508. // line 198
  509. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  510. }
  511. // line 199
  512. yield "
  513. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  514. // line 200
  515. if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["texte_content"]) || array_key_exists("texte_content", $context) ? $context["texte_content"] : (function () { throw new RuntimeError('Variable "texte_content" does not exist.', 200, $this->source); })()))) {
  516. // line 201
  517. yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"card-text\">";
  518. yield (isset($context["texte_content"]) || array_key_exists("texte_content", $context) ? $context["texte_content"] : (function () { throw new RuntimeError('Variable "texte_content" does not exist.', 201, $this->source); })());
  519. yield "</p>
  520. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  521. }
  522. // line 203
  523. yield "\t\t\t\t\t\t\t\t\t\t\t\t</div>
  524. \t\t\t\t\t\t\t\t\t\t\t\t
  525. \t\t\t\t\t\t\t\t\t\t\t</div>
  526. \t\t\t\t\t\t\t\t\t\t</div>
  527. \t\t\t\t\t\t\t\t\t</div>
  528. \t\t\t\t\t\t\t\t";
  529. }
  530. $_parent = $context['_parent'];
  531. unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
  532. $context = array_intersect_key($context, $_parent) + $_parent;
  533. // line 210
  534. yield "\t\t\t\t\t\t\t</div>
  535. \t\t\t\t\t\t</div>
  536. \t\t\t\t\t</div>
  537. \t\t\t\t</div>
  538. \t\t\t</div>
  539. \t\t";
  540. }
  541. // line 216
  542. yield "\t</div>
  543. ";
  544. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  545. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  546. return; yield '';
  547. }
  548. // line 219
  549. public function block_javascripts($context, array $blocks = [])
  550. {
  551. $macros = $this->macros;
  552. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  553. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  554. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  555. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  556. // line 220
  557. yield "\t";
  558. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  559. yield "
  560. ";
  561. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  562. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  563. return; yield '';
  564. }
  565. /**
  566. * @codeCoverageIgnore
  567. */
  568. public function getTemplateName()
  569. {
  570. return "theme/default/page_cms.html.twig";
  571. }
  572. /**
  573. * @codeCoverageIgnore
  574. */
  575. public function isTraitable()
  576. {
  577. return false;
  578. }
  579. /**
  580. * @codeCoverageIgnore
  581. */
  582. public function getDebugInfo()
  583. {
  584. return array ( 598 => 220, 588 => 219, 576 => 216, 568 => 210, 556 => 203, 550 => 201, 548 => 200, 545 => 199, 542 => 198, 539 => 197, 536 => 196, 533 => 195, 531 => 194, 526 => 192, 518 => 190, 516 => 189, 510 => 185, 502 => 183, 494 => 181, 492 => 180, 487 => 177, 483 => 176, 473 => 168, 471 => 167, 465 => 163, 453 => 156, 447 => 154, 445 => 153, 442 => 152, 439 => 151, 436 => 150, 433 => 149, 430 => 148, 428 => 147, 423 => 145, 416 => 143, 410 => 139, 402 => 137, 394 => 135, 392 => 134, 387 => 131, 383 => 130, 374 => 123, 372 => 122, 369 => 121, 363 => 119, 361 => 118, 351 => 110, 345 => 107, 342 => 106, 340 => 105, 337 => 104, 329 => 99, 324 => 98, 322 => 97, 318 => 95, 316 => 94, 312 => 92, 309 => 91, 301 => 88, 298 => 87, 296 => 86, 289 => 84, 286 => 83, 284 => 82, 277 => 80, 274 => 79, 271 => 78, 269 => 77, 266 => 76, 262 => 74, 256 => 73, 252 => 71, 244 => 68, 241 => 67, 232 => 64, 228 => 63, 224 => 62, 221 => 61, 216 => 60, 214 => 59, 210 => 57, 204 => 55, 202 => 54, 198 => 53, 195 => 52, 191 => 51, 188 => 50, 186 => 49, 181 => 48, 177 => 47, 174 => 46, 171 => 45, 169 => 44, 166 => 43, 160 => 41, 158 => 40, 155 => 39, 153 => 38, 150 => 37, 141 => 33, 135 => 31, 132 => 30, 130 => 29, 120 => 21, 116 => 19, 114 => 18, 113 => 17, 112 => 16, 111 => 15, 109 => 14, 107 => 13, 102 => 12, 92 => 11, 77 => 6, 75 => 5, 70 => 4, 60 => 3, 38 => 1,);
  585. }
  586. public function getSourceContext()
  587. {
  588. return new Source("{% extends \"theme/\"~ app.request.server.get('APP_THEME') ~\"/partials/base.html.twig\" %}
  589. {% block stylesheets %}
  590. \t{{parent()}}
  591. \t{% if page.customstyle is not empty %}
  592. \t\t<style>{{page.customstyle|raw}}</style>
  593. \t{% endif %}
  594. {% endblock %}
  595. {% block body %}
  596. \t<div id=\"{{id_page}}\" class=\"page-cms\">
  597. \t\t{% if breadcrumb is defined and breadcrumb is not empty %}
  598. \t\t\t{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig',{
  599. breadcrumb: breadcrumb,
  600. titre_page: titre_page|default(''),
  601. image_bandeau: image_bandeau,
  602. image_bandeau_alt:image_bandeau_alt
  603. }, with_context = false)}}
  604. \t\t{% endif %}
  605. \t\t<div class=\"container-fluid content-wrapper\">
  606. \t\t\t<div class=\"content-area\">
  607. \t\t\t\t<div class=\"row content_page\">
  608. \t\t\t\t\t\t<div class=\"col-sm-12\">
  609. \t\t\t\t\t\t\t{% if page.image and page.showimageprincipal == false %}
  610. \t\t\t\t\t\t\t\t{% set position_image = ({ \"1\": \"d-flex justify-content-center\", \"2\": \"d-flex justify-content-start\", \"3\": \"d-flex justify-content-end\" }[page.positionimage]|default(\"d-flex justify-content-center\")) %}
  611. \t\t\t\t\t\t\t\t<div class=\"{{position_image}}\">
  612. \t\t\t\t\t\t\t\t\t<div class=\"col-image-post\">
  613. \t\t\t\t\t\t\t\t\t\t<img class=\"img-fluid principal-img\" src=\"{{asset_image(page.image,'medium',['1024x/uploads','800x/uploads','800x/uploads'])}}\" alt=\"{{page.imagealt is not empty ? page.imagealt|raw : page.title|raw}}\"/>
  614. \t\t\t\t\t\t\t\t\t</div>
  615. \t\t\t\t\t\t\t\t</div>
  616. \t\t\t\t\t\t\t{% endif %}
  617. \t\t\t\t\t\t\t{% set lien_site = \"<a href=\"~websiteUrl()~\" title=\"~site_parameters.getParameters().titre~\">\"~websiteUrl()~\"</a>\" %}
  618. \t\t\t\t\t\t\t{% if page.content is not empty %}
  619. \t\t\t\t\t\t\t\t<div class=\"texte-content\">{{ContentChangeByMotCle(page.id,page.content|replace({'[NDD]':lien_site}))|shortcode|raw}}</div>
  620. \t\t\t\t\t\t\t{% endif %}
  621. \t\t\t\t\t\t\t{% if page.tarifs is not empty %}
  622. \t\t\t\t\t\t\t\t{% set data_tarif = unserialize(page.tarifs) %}
  623. \t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon\">
  624. \t\t\t\t\t\t\t\t\t{% for item in data_tarif %}
  625. \t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon_title\"><span class=\"title\">{{item.globalTitle}}</span> <span class=\"icon-plus\"></span></div>
  626. \t\t\t\t\t\t\t\t\t\t{% if item.tables is not empty %}
  627. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_accordeon_content\">
  628. \t\t\t\t\t\t\t\t\t\t\t\t{% for tab in item.tables %}
  629. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarifs_tab\">
  630. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_title\">{{tab.tableTitle}}</div>
  631. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tab.tableDescription is defined and tab.tableDescription is not empty %}
  632. \t\t\t\t\t\t\t\t\t\t\t\t\t \t<div class=\"tarif_tab_description\">{{tab.tableDescription}}</div>
  633. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  634. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_content\">
  635. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tab.rows is defined and tab.rows is not empty %}
  636. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for row_item in tab.rows %}
  637. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line\">
  638. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_title\">{{row_item.titre}}</div>
  639. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_subtitle\">{{row_item.sousTitre}}</div>
  640. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tarif_tab_line_price\">{{row_item.price}}</div>
  641. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  642. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  643. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  644. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  645. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  646. \t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  647. \t\t\t\t\t\t\t\t\t\t\t</div>
  648. \t\t\t\t\t\t\t\t\t\t{% endif %}
  649. \t\t\t\t\t\t\t\t\t{% endfor %}
  650. \t\t\t\t\t\t\t\t</div>
  651. \t\t\t\t\t\t\t{% endif %}
  652. \t\t\t\t\t\t\t{% if page.typelien != 1 %}
  653. \t\t\t\t\t\t\t\t{% if page.typelien == '4' %}
  654. \t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  655. \t\t\t\t\t\t\t\t\t\t<a href=\"tel:{{page.telephone}}\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{page.titrelien}}</a>
  656. \t\t\t\t\t\t\t\t\t</div>
  657. \t\t\t\t\t\t\t\t{% elseif page.typelien == '2' %}
  658. \t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  659. \t\t\t\t\t\t\t\t\t\t<a href=\"{{resolveInternalSlugLink(page.lieninterne)}}\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{page.titrelien}}</a>
  660. \t\t\t\t\t\t\t\t\t</div>
  661. \t\t\t\t\t\t\t\t{% elseif page.typelien == '3' %}
  662. \t\t\t\t\t\t\t\t\t<div class=\"text-center py-2\">
  663. \t\t\t\t\t\t\t\t\t\t<a href=\"{{page.lienexterne}}\" target=\"_blank\" class=\"btn btn-theme py-3 px-5 mt-3 btn-plus\">{{page.titrelien}}</a>
  664. \t\t\t\t\t\t\t\t\t</div>
  665. \t\t\t\t\t\t\t\t{% endif %}
  666. \t\t\t\t\t\t\t{% endif %}
  667. \t\t\t\t\t\t</div>
  668. \t\t\t\t\t\t{% if page.urlvideo is not empty %}
  669. \t\t\t\t\t\t\t<div class=\"col-sm-12\">
  670. \t\t\t\t\t\t\t\t<div class=\"contenu-video\">
  671. \t\t\t\t\t\t\t\t\t{% set id_video_externe = extract_youtube_id(page.urlvideo) %}
  672. \t\t\t\t\t\t\t\t\t<a class=\"video-thumbnail m-0\" href=\"{{page.urlvideo}}\" data-fancybox=\"video\">
  673. \t\t\t\t\t\t\t\t\t\t<img src=\"https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg\" class=\"img-fluid\" alt=\"youtube vidéo\"/>
  674. \t\t\t\t\t\t\t\t\t</a>
  675. \t\t\t\t\t\t\t\t</div>
  676. \t\t\t\t\t\t\t</div>
  677. \t\t\t\t\t\t{% endif %}
  678. \t\t\t\t\t\t{% if galleries and galleries is not empty and twig_galerie is defined and twig_galerie is not empty %}
  679. \t\t\t\t\t\t\t<div class=\"col-sm-12\">
  680. \t\t\t\t\t\t\t\t{{ include(template_from_string(twig_galerie)) }}
  681. \t\t\t\t\t\t\t</div>
  682. \t\t\t\t\t\t{% endif %}
  683. \t\t\t\t
  684. \t\t\t\t</div>
  685. \t\t\t</div>
  686. \t\t</div>
  687. \t\t{% if blocs is defined %}
  688. \t\t\t{{ include ('theme/'~ app.request.server.get('APP_THEME') ~'/partials/bloc_render.html.twig',{blocs: blocs}, with_context = false)}}
  689. \t\t{% endif %}
  690. \t\t{% if post_associer is defined and post_associer is not empty %}
  691. \t\t\t<div class=\"container-fluid content-wrapper py-5\">
  692. \t\t\t\t<div class=\"row\">
  693. \t\t\t\t\t<div class=\"col-sm-12\">
  694. \t\t\t\t\t\t<h2 class=\"title mb-5\">
  695. \t\t\t\t\t\t\tDécouvrez d'autres articles
  696. \t\t\t\t\t\t</h2>
  697. \t\t\t\t\t\t<div class=\"article-list\" data-columns=\"3\" data-style=\"compact\">
  698. \t\t\t\t\t\t\t{% for key,item in post_associer %}
  699. \t\t\t\t\t\t\t\t<div class=\"article-item list-item \">
  700. \t\t\t\t\t\t\t\t\t<div class=\"card\">
  701. \t\t\t\t\t\t\t\t\t\t<div class=\"bx-image\">
  702. \t\t\t\t\t\t\t\t\t\t\t{% if item.image %}
  703. \t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"{{asset_image(item.image,'medium',['1024x/uploads','800x/uploads','800x/uploads'])}}\" class=\"card-img-top lazyload\" alt=\"{{item.title}}\">
  704. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  705. \t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"{{asset('/uploads/media-site/'~ site_parameters.getParameters().imagevide)}}\" class=\"card-img-top lazyload\" alt=\"{{item.title}}\">
  706. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  707. \t\t\t\t\t\t\t\t\t\t</div>
  708. \t\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  709. \t\t\t\t\t\t\t\t\t\t\t<div class=\"article-content\">
  710. \t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"card-title\"><a href=\"{{link}}\">{{item.title}}</a></h3>
  711. \t\t\t\t\t\t\t\t\t\t\t\t<span class=\"last-update\">
  712. \t\t\t\t\t\t\t\t\t\t\t\t\tDernière mise à jour : {{ item.updatedAt|date('d/m/Y') }}
  713. \t\t\t\t\t\t\t\t\t\t\t\t</span>
  714. \t\t\t\t\t\t\t\t\t\t\t\t{% if item.showresume %}
  715. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set texte_content = cutText(item.summary) %}
  716. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  717. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set texte_content = cutText(item.content) %}
  718. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  719. \t\t\t\t\t\t\t\t\t\t\t\t{% if texte_content is not empty %}
  720. \t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"card-text\">{{texte_content|raw}}</p>
  721. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  722. \t\t\t\t\t\t\t\t\t\t\t</div>
  723. \t\t\t\t\t\t\t\t\t\t\t
  724. \t\t\t\t\t\t\t\t\t\t</div>
  725. \t\t\t\t\t\t\t\t\t</div>
  726. \t\t\t\t\t\t\t\t</div>
  727. \t\t\t\t\t\t\t{% endfor %}
  728. \t\t\t\t\t\t</div>
  729. \t\t\t\t\t</div>
  730. \t\t\t\t</div>
  731. \t\t\t</div>
  732. \t\t{% elseif post_aleatoire is defined and post_aleatoire is not empty %}
  733. \t\t\t<div class=\"article-random\">
  734. \t\t\t\t<div class=\"container-fluid content-wrapper\">
  735. \t\t\t\t\t<div class=\"row\">
  736. \t\t\t\t\t\t<div class=\"col-sm-12\">
  737. \t\t\t\t\t\t\t<h2 class=\"title mb-5\">
  738. \t\t\t\t\t\t\t\tDécouvrez d'autres articles
  739. \t\t\t\t\t\t\t</h2>
  740. \t\t\t\t\t\t\t<div class=\"article-list\" data-columns=\"3\" data-style=\"compact\">
  741. \t\t\t\t\t\t\t\t{% for key,item in post_aleatoire %}
  742. \t\t\t\t\t\t\t\t\t<div class=\"article-item list-item \">
  743. \t\t\t\t\t\t\t\t\t\t<div class=\"card\">
  744. \t\t\t\t\t\t\t\t\t\t\t<div class=\"bx-image\">
  745. \t\t\t\t\t\t\t\t\t\t\t\t{% if item.image %}
  746. \t\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"{{asset_image(item.image,'medium',['1024x/uploads','800x/uploads','800x/uploads'])}}\" class=\"card-img-top lazyload\" alt=\"{{item.title}}\">
  747. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  748. \t\t\t\t\t\t\t\t\t\t\t\t\t<img data-src=\"{{asset('/uploads/media-site/'~ site_parameters.getParameters().imagevide)}}\" class=\"card-img-top lazyload\" alt=\"{{item.title}}\">
  749. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  750. \t\t\t\t\t\t\t\t\t\t\t</div>
  751. \t\t\t\t\t\t\t\t\t\t\t<div class=\"card-body\">
  752. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"article-content\">
  753. \t\t\t\t\t\t\t\t\t\t\t\t{% set link = path('page',{slug:item.slug }) %}
  754. \t\t\t\t\t\t\t\t\t\t\t\t\t<h3 class=\"card-title\"><a href=\"{{link}}\">{{item.title}}</a></h3>
  755. \t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"last-update\">
  756. \t\t\t\t\t\t\t\t\t\t\t\t\t\tDernière mise à jour : {{ item.updatedAt|date('d/m/Y') }}
  757. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  758. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if item.showresume %}
  759. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set texte_content = cutText(item.summary) %}
  760. \t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  761. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set texte_content = cutText(item.content) %}
  762. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  763. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if texte_content is not empty %}
  764. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"card-text\">{{texte_content|raw}}</p>
  765. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  766. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  767. \t\t\t\t\t\t\t\t\t\t\t\t
  768. \t\t\t\t\t\t\t\t\t\t\t</div>
  769. \t\t\t\t\t\t\t\t\t\t</div>
  770. \t\t\t\t\t\t\t\t\t</div>
  771. \t\t\t\t\t\t\t\t{% endfor %}
  772. \t\t\t\t\t\t\t</div>
  773. \t\t\t\t\t\t</div>
  774. \t\t\t\t\t</div>
  775. \t\t\t\t</div>
  776. \t\t\t</div>
  777. \t\t{% endif %}
  778. \t</div>
  779. {% endblock %}
  780. {% block javascripts %}
  781. \t{{parent()}}
  782. {% endblock %}
  783. ", "theme/default/page_cms.html.twig", "/var/www/vhosts/studiojna.fr/gdelegancecars.studiojna.fr/templates/theme/default/page_cms.html.twig");
  784. }
  785. }