var/cache/dev/twig/e0/e0c79c3dfdf922ba58a51e8bb0d29bef.php line 51

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. /* @VisualMediaFaq/Faq/index.html.twig */
  14. class __TwigTemplate_8fa05ce76e1b1ce5438e7caa74ac3f35 extends \Twig\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->blocks = [
  23. 'head_javascript' => [$this, 'block_head_javascript'],
  24. 'main' => [$this, 'block_main'],
  25. 'breadcrumb' => [$this, 'block_breadcrumb'],
  26. 'content' => [$this, 'block_content'],
  27. ];
  28. }
  29. protected function doGetParent(array $context)
  30. {
  31. // line 1
  32. return "Layout/base.html.twig";
  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", "@VisualMediaFaq/Faq/index.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", "@VisualMediaFaq/Faq/index.html.twig"));
  41. $this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaFaq/Faq/index.html.twig", 1);
  42. $this->parent->display($context, array_merge($this->blocks, $blocks));
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45. }
  46. // line 3
  47. public function block_head_javascript($context, array $blocks = [])
  48. {
  49. $macros = $this->macros;
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_javascript"));
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head_javascript"));
  54. // line 4
  55. echo " ";
  56. $this->loadTemplate("@VisualMediaFaq/Faq/json_ld.html.twig", "@VisualMediaFaq/Faq/index.html.twig", 4)->display($context);
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59. }
  60. // line 7
  61. public function block_main($context, array $blocks = [])
  62. {
  63. $macros = $this->macros;
  64. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  66. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
  68. // line 8
  69. echo " <article class=\"container faq-content\">
  70. ";
  71. // line 9
  72. $this->displayBlock('breadcrumb', $context, $blocks);
  73. // line 12
  74. echo "
  75. ";
  76. // line 13
  77. $this->displayBlock('content', $context, $blocks);
  78. // line 35
  79. echo " </article>
  80. ";
  81. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83. }
  84. // line 9
  85. public function block_breadcrumb($context, array $blocks = [])
  86. {
  87. $macros = $this->macros;
  88. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
  92. // line 10
  93. echo " ";
  94. $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaFaq/Faq/index.html.twig", 10)->display($context);
  95. // line 11
  96. echo " ";
  97. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  98. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  99. }
  100. // line 13
  101. public function block_content($context, array $blocks = [])
  102. {
  103. $macros = $this->macros;
  104. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  106. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  108. // line 14
  109. echo " <div class=\"row\">
  110. <div class=\"col-12\">
  111. ";
  112. // line 16
  113. $context['_parent'] = $context;
  114. $context['_seq'] = twig_ensure_traversable((isset($context["faqs"]) || array_key_exists("faqs", $context) ? $context["faqs"] : (function () { throw new RuntimeError('Variable "faqs" does not exist.', 16, $this->source); })()));
  115. foreach ($context['_seq'] as $context["_key"] => $context["faq"]) {
  116. // line 17
  117. echo " <div id=\"accordionEx\" role=\"tablist\" aria-multiselectable=\"true\">
  118. <div class=\"faq-content_card\">
  119. <div class=\"faq-content_header\" role=\"tab\" id=\"faq_heading_";
  120. // line 19
  121. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 19), "html", null, true);
  122. echo "\">
  123. <a data-toggle=\"collapse\" data-parent=\"#accordionEx\" href=\"#faq_";
  124. // line 20
  125. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 20), "html", null, true);
  126. echo "\" aria-expanded=\"true\" aria-controls=\"faq_";
  127. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 20), "html", null, true);
  128. echo "\" class=\"collapsed\">
  129. <span>";
  130. // line 21
  131. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "title", [], "any", false, false, false, 21), "html", null, true);
  132. echo " <i class=\"fas fa-chevron-right\"></i></span>
  133. </a>
  134. <div id=\"faq_";
  135. // line 23
  136. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["faq"], "id", [], "any", false, false, false, 23), "html", null, true);
  137. echo "\" class=\"collapse\" role=\"tabpanel\" aria-labelledby=\"headingOne1\" data-parent=\"#accordionEx\">
  138. <div class=\"faq-content_body\">
  139. <p>";
  140. // line 25
  141. echo twig_get_attribute($this->env, $this->source, $context["faq"], "htmlcontent", [], "any", false, false, false, 25);
  142. echo "</p>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. ";
  149. }
  150. $_parent = $context['_parent'];
  151. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['faq'], $context['_parent'], $context['loop']);
  152. $context = array_intersect_key($context, $_parent) + $_parent;
  153. // line 32
  154. echo " </div>
  155. </div>
  156. ";
  157. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159. }
  160. public function getTemplateName()
  161. {
  162. return "@VisualMediaFaq/Faq/index.html.twig";
  163. }
  164. public function isTraitable()
  165. {
  166. return false;
  167. }
  168. public function getDebugInfo()
  169. {
  170. return array ( 191 => 32, 178 => 25, 173 => 23, 168 => 21, 162 => 20, 158 => 19, 154 => 17, 150 => 16, 146 => 14, 136 => 13, 126 => 11, 123 => 10, 113 => 9, 102 => 35, 100 => 13, 97 => 12, 95 => 9, 92 => 8, 82 => 7, 71 => 4, 61 => 3, 38 => 1,);
  171. }
  172. public function getSourceContext()
  173. {
  174. return new Source("{% extends 'Layout/base.html.twig' %}
  175. {% block head_javascript %}
  176. {% include '@VisualMediaFaq/Faq/json_ld.html.twig' %}
  177. {% endblock %}
  178. {% block main %}
  179. <article class=\"container faq-content\">
  180. {% block breadcrumb %}
  181. {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
  182. {% endblock %}
  183. {% block content %}
  184. <div class=\"row\">
  185. <div class=\"col-12\">
  186. {% for faq in faqs %}
  187. <div id=\"accordionEx\" role=\"tablist\" aria-multiselectable=\"true\">
  188. <div class=\"faq-content_card\">
  189. <div class=\"faq-content_header\" role=\"tab\" id=\"faq_heading_{{faq.id}}\">
  190. <a data-toggle=\"collapse\" data-parent=\"#accordionEx\" href=\"#faq_{{faq.id}}\" aria-expanded=\"true\" aria-controls=\"faq_{{faq.id}}\" class=\"collapsed\">
  191. <span>{{ faq.title }} <i class=\"fas fa-chevron-right\"></i></span>
  192. </a>
  193. <div id=\"faq_{{faq.id}}\" class=\"collapse\" role=\"tabpanel\" aria-labelledby=\"headingOne1\" data-parent=\"#accordionEx\">
  194. <div class=\"faq-content_body\">
  195. <p>{{ faq.htmlcontent|raw }}</p>
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. {% endfor %}
  202. </div>
  203. </div>
  204. {% endblock %}
  205. </article>
  206. {% endblock %}
  207. ", "@VisualMediaFaq/Faq/index.html.twig", "/var/www/public_html/lib/composer/FaqBundle/src/VisualMedia/FaqBundle/Resources/views/Faq/index.html.twig");
  208. }
  209. }