var/cache/dev/twig/bd/bdde706731e1763e6ef88b14adbc1104.php line 299

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. use Twig\TemplateWrapper;
  15. /* @theme/testimonial/testimonials.html.twig */
  16. class __TwigTemplate_964e106aa4bc3076a5cba843ec3a0382 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  38. // line 1
  39. yield "<section class=\"testimonials\">
  40. <div class=\"container\">
  41. ";
  42. // line 3
  43. $context['_parent'] = $context;
  44. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["testimonials"]) || array_key_exists("testimonials", $context) ? $context["testimonials"] : (function () { throw new RuntimeError('Variable "testimonials" does not exist.', 3, $this->source); })()));
  45. $context['loop'] = [
  46. 'parent' => $context['_parent'],
  47. 'index0' => 0,
  48. 'index' => 1,
  49. 'first' => true,
  50. ];
  51. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  52. $length = count($context['_seq']);
  53. $context['loop']['revindex0'] = $length - 1;
  54. $context['loop']['revindex'] = $length;
  55. $context['loop']['length'] = $length;
  56. $context['loop']['last'] = 1 === $length;
  57. }
  58. foreach ($context['_seq'] as $context["_key"] => $context["testimonial"]) {
  59. // line 4
  60. yield " ";
  61. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "featured", [], "any", false, false, false, 4)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  62. // line 5
  63. yield " ";
  64. $_v0 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  65. $preRendered = $_v0->preRender("Testimonial", Twig\Extension\CoreExtension::toArray(["featured" => true, "reverse" => (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 5) % 2 == 0), "author" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "author", [], "any", false, false, false, 5), "company" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "company", [], "any", false, false, false, 5)]));
  66. if (null !== $preRendered) {
  67. yield $preRendered;
  68. } else {
  69. $preRenderEvent = $_v0->startEmbedComponent("Testimonial", Twig\Extension\CoreExtension::toArray(["featured" => true, "reverse" => (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 5) % 2 == 0), "author" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "author", [], "any", false, false, false, 5), "company" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "company", [], "any", false, false, false, 5)]), $context, "@theme/testimonial/testimonials.html.twig", 11453225621);
  70. $embeddedContext = $preRenderEvent->getVariables();
  71. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  72. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  73. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 11453225621);
  74. $this->load("@theme/testimonial/testimonials.html.twig", 5, "11453225621")->display($embeddedContext, $embeddedBlocks);
  75. $_v0->finishEmbedComponent();
  76. }
  77. // line 15
  78. yield " ";
  79. }
  80. // line 16
  81. yield " ";
  82. ++$context['loop']['index0'];
  83. ++$context['loop']['index'];
  84. $context['loop']['first'] = false;
  85. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  86. --$context['loop']['revindex0'];
  87. --$context['loop']['revindex'];
  88. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  89. }
  90. }
  91. $_parent = $context['_parent'];
  92. unset($context['_seq'], $context['_key'], $context['testimonial'], $context['_parent'], $context['loop']);
  93. $context = array_intersect_key($context, $_parent) + $_parent;
  94. // line 17
  95. yield " ";
  96. $context['_parent'] = $context;
  97. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["testimonials"]) || array_key_exists("testimonials", $context) ? $context["testimonials"] : (function () { throw new RuntimeError('Variable "testimonials" does not exist.', 17, $this->source); })()));
  98. foreach ($context['_seq'] as $context["_key"] => $context["testimonial"]) {
  99. // line 18
  100. yield " ";
  101. if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "featured", [], "any", false, false, false, 18)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  102. // line 19
  103. yield " ";
  104. $_v1 = $this->env->getRuntime("Symfony\\UX\\TwigComponent\\Twig\\ComponentRuntime");
  105. $preRendered = $_v1->preRender("Testimonial", Twig\Extension\CoreExtension::toArray(["author" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "author", [], "any", false, false, false, 19), "company" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "company", [], "any", false, false, false, 19)]));
  106. if (null !== $preRendered) {
  107. yield $preRendered;
  108. } else {
  109. $preRenderEvent = $_v1->startEmbedComponent("Testimonial", Twig\Extension\CoreExtension::toArray(["author" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "author", [], "any", false, false, false, 19), "company" => CoreExtension::getAttribute($this->env, $this->source, $context["testimonial"], "company", [], "any", false, false, false, 19)]), $context, "@theme/testimonial/testimonials.html.twig", 19124567051);
  110. $embeddedContext = $preRenderEvent->getVariables();
  111. $embeddedContext["__parent__"] = $preRenderEvent->getTemplate();
  112. $embeddedContext["outerBlocks"] ??= new \Symfony\UX\TwigComponent\BlockStack();
  113. $embeddedBlocks = $embeddedContext["outerBlocks"]->convert($blocks, 19124567051);
  114. $this->load("@theme/testimonial/testimonials.html.twig", 19, "19124567051")->display($embeddedContext, $embeddedBlocks);
  115. $_v1->finishEmbedComponent();
  116. }
  117. // line 28
  118. yield " ";
  119. }
  120. // line 29
  121. yield " ";
  122. }
  123. $_parent = $context['_parent'];
  124. unset($context['_seq'], $context['_key'], $context['testimonial'], $context['_parent']);
  125. $context = array_intersect_key($context, $_parent) + $_parent;
  126. // line 30
  127. yield " </div>
  128. </section>
  129. ";
  130. // line 32
  131. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("WhatsAppBlock", ["alt" => "true"]);
  132. yield "
  133. ";
  134. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136. yield from [];
  137. }
  138. /**
  139. * @codeCoverageIgnore
  140. */
  141. public function getTemplateName(): string
  142. {
  143. return "@theme/testimonial/testimonials.html.twig";
  144. }
  145. /**
  146. * @codeCoverageIgnore
  147. */
  148. public function isTraitable(): bool
  149. {
  150. return false;
  151. }
  152. /**
  153. * @codeCoverageIgnore
  154. */
  155. public function getDebugInfo(): array
  156. {
  157. return array ( 140 => 32, 136 => 30, 130 => 29, 127 => 28, 112 => 19, 109 => 18, 104 => 17, 90 => 16, 87 => 15, 72 => 5, 69 => 4, 52 => 3, 48 => 1,);
  158. }
  159. public function getSourceContext(): Source
  160. {
  161. return new Source("<section class=\"testimonials\">
  162. <div class=\"container\">
  163. {% for testimonial in testimonials %}
  164. {% if testimonial.featured %}
  165. {% component 'Testimonial' with { featured: (true), reverse: (loop.index is even), author: (testimonial.author), company: (testimonial.company) } %}
  166. {% block image %}
  167. <img
  168. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  169. alt=\"{{ testimonial.author }}\"
  170. >
  171. {% endblock %}
  172. {% block content %}<h2 class=\"testimonial__name\">{{ testimonial.title }}</h2>
  173. {{ allowInlineEditor(testimonial, 'content')|raw }}
  174. {% endblock %}{% endcomponent %}
  175. {% endif %}
  176. {% endfor %}
  177. {% for testimonial in testimonials %}
  178. {% if not testimonial.featured %}
  179. {% component 'Testimonial' with { author: (testimonial.author), company: (testimonial.company) } %}
  180. {# <twig:block name=\"image\">
  181. <img
  182. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  183. alt=\"{{ testimonial.author }}\"
  184. >
  185. </twig:block> #}
  186. {% block content %}{{ testimonial.content|striptags|replace({\"&nbsp;\": \" \"})|nl2br }}
  187. {% endblock %}{% endcomponent %}
  188. {% endif %}
  189. {% endfor %}
  190. </div>
  191. </section>
  192. {{ component('WhatsAppBlock', { alt: 'true' }) }}
  193. ", "@theme/testimonial/testimonials.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/testimonial/testimonials.html.twig");
  194. }
  195. }
  196. /* @theme/testimonial/testimonials.html.twig */
  197. class __TwigTemplate_964e106aa4bc3076a5cba843ec3a0382___11453225621 extends Template
  198. {
  199. private Source $source;
  200. /**
  201. * @var array<string, Template>
  202. */
  203. private array $macros = [];
  204. public function __construct(Environment $env)
  205. {
  206. parent::__construct($env);
  207. $this->source = $this->getSourceContext();
  208. $this->blocks = [
  209. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  210. 'image' => [$this, 'block_image'],
  211. 'content' => [$this, 'block_content'],
  212. ];
  213. }
  214. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  215. {
  216. // line 5
  217. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 5, $this->source); })()), 5);
  218. }
  219. protected function doDisplay(array $context, array $blocks = []): iterable
  220. {
  221. $macros = $this->macros;
  222. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  223. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  224. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  225. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  226. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  227. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  228. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  229. }
  230. /**
  231. * @return iterable<null|scalar|\Stringable>
  232. */
  233. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  234. {
  235. $macros = $this->macros;
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  237. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  239. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  240. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  241. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  242. yield from [];
  243. }
  244. // line 6
  245. /**
  246. * @return iterable<null|scalar|\Stringable>
  247. */
  248. public function block_image(array $context, array $blocks = []): iterable
  249. {
  250. $macros = $this->macros;
  251. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  252. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
  253. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  254. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
  255. // line 7
  256. yield " <img
  257. src=\"";
  258. // line 8
  259. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('imageCache')->getCallable()(("/userfiles/images/testimonial/" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["testimonial"]) || array_key_exists("testimonial", $context) ? $context["testimonial"] : (function () { throw new RuntimeError('Variable "testimonial" does not exist.', 8, $this->source); })()), "image", [], "any", false, false, false, 8)), "zoomCrop", 738, 1150), "html", null, true);
  260. yield "\"
  261. alt=\"";
  262. // line 9
  263. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["testimonial"]) || array_key_exists("testimonial", $context) ? $context["testimonial"] : (function () { throw new RuntimeError('Variable "testimonial" does not exist.', 9, $this->source); })()), "author", [], "any", false, false, false, 9), "html", null, true);
  264. yield "\"
  265. >
  266. ";
  267. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  269. yield from [];
  270. }
  271. // line 12
  272. /**
  273. * @return iterable<null|scalar|\Stringable>
  274. */
  275. public function block_content(array $context, array $blocks = []): iterable
  276. {
  277. $macros = $this->macros;
  278. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  279. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  280. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  281. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  282. yield "<h2 class=\"testimonial__name\">";
  283. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["testimonial"]) || array_key_exists("testimonial", $context) ? $context["testimonial"] : (function () { throw new RuntimeError('Variable "testimonial" does not exist.', 12, $this->source); })()), "title", [], "any", false, false, false, 12), "html", null, true);
  284. yield "</h2>
  285. ";
  286. // line 13
  287. yield $this->env->getFunction('allowInlineEditor')->getCallable()((isset($context["testimonial"]) || array_key_exists("testimonial", $context) ? $context["testimonial"] : (function () { throw new RuntimeError('Variable "testimonial" does not exist.', 13, $this->source); })()), "content");
  288. yield "
  289. ";
  290. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  291. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  292. yield from [];
  293. }
  294. /**
  295. * @codeCoverageIgnore
  296. */
  297. public function getTemplateName(): string
  298. {
  299. return "@theme/testimonial/testimonials.html.twig";
  300. }
  301. /**
  302. * @codeCoverageIgnore
  303. */
  304. public function isTraitable(): bool
  305. {
  306. return false;
  307. }
  308. /**
  309. * @codeCoverageIgnore
  310. */
  311. public function getDebugInfo(): array
  312. {
  313. return array ( 334 => 13, 317 => 12, 303 => 9, 299 => 8, 296 => 7, 283 => 6, 240 => 5, 140 => 32, 136 => 30, 130 => 29, 127 => 28, 112 => 19, 109 => 18, 104 => 17, 90 => 16, 87 => 15, 72 => 5, 69 => 4, 52 => 3, 48 => 1,);
  314. }
  315. public function getSourceContext(): Source
  316. {
  317. return new Source("<section class=\"testimonials\">
  318. <div class=\"container\">
  319. {% for testimonial in testimonials %}
  320. {% if testimonial.featured %}
  321. {% component 'Testimonial' with { featured: (true), reverse: (loop.index is even), author: (testimonial.author), company: (testimonial.company) } %}
  322. {% block image %}
  323. <img
  324. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  325. alt=\"{{ testimonial.author }}\"
  326. >
  327. {% endblock %}
  328. {% block content %}<h2 class=\"testimonial__name\">{{ testimonial.title }}</h2>
  329. {{ allowInlineEditor(testimonial, 'content')|raw }}
  330. {% endblock %}{% endcomponent %}
  331. {% endif %}
  332. {% endfor %}
  333. {% for testimonial in testimonials %}
  334. {% if not testimonial.featured %}
  335. {% component 'Testimonial' with { author: (testimonial.author), company: (testimonial.company) } %}
  336. {# <twig:block name=\"image\">
  337. <img
  338. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  339. alt=\"{{ testimonial.author }}\"
  340. >
  341. </twig:block> #}
  342. {% block content %}{{ testimonial.content|striptags|replace({\"&nbsp;\": \" \"})|nl2br }}
  343. {% endblock %}{% endcomponent %}
  344. {% endif %}
  345. {% endfor %}
  346. </div>
  347. </section>
  348. {{ component('WhatsAppBlock', { alt: 'true' }) }}
  349. ", "@theme/testimonial/testimonials.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/testimonial/testimonials.html.twig");
  350. }
  351. }
  352. /* @theme/testimonial/testimonials.html.twig */
  353. class __TwigTemplate_964e106aa4bc3076a5cba843ec3a0382___19124567051 extends Template
  354. {
  355. private Source $source;
  356. /**
  357. * @var array<string, Template>
  358. */
  359. private array $macros = [];
  360. public function __construct(Environment $env)
  361. {
  362. parent::__construct($env);
  363. $this->source = $this->getSourceContext();
  364. $this->blocks = [
  365. 'outer__block_fallback' => [$this, 'block_outer__block_fallback'],
  366. 'content' => [$this, 'block_content'],
  367. ];
  368. }
  369. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  370. {
  371. // line 19
  372. return $this->load((isset($context["__parent__"]) || array_key_exists("__parent__", $context) ? $context["__parent__"] : (function () { throw new RuntimeError('Variable "__parent__" does not exist.', 19, $this->source); })()), 19);
  373. }
  374. protected function doDisplay(array $context, array $blocks = []): iterable
  375. {
  376. $macros = $this->macros;
  377. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  378. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  379. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  380. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/testimonial/testimonials.html.twig"));
  381. yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  382. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  383. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  384. }
  385. /**
  386. * @return iterable<null|scalar|\Stringable>
  387. */
  388. public function block_outer__block_fallback(array $context, array $blocks = []): iterable
  389. {
  390. $macros = $this->macros;
  391. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  392. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  393. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  394. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "outer__block_fallback"));
  395. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  396. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  397. yield from [];
  398. }
  399. // line 26
  400. /**
  401. * @return iterable<null|scalar|\Stringable>
  402. */
  403. public function block_content(array $context, array $blocks = []): iterable
  404. {
  405. $macros = $this->macros;
  406. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  407. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  408. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  409. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  410. yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env, $this->source, (isset($context["testimonial"]) || array_key_exists("testimonial", $context) ? $context["testimonial"] : (function () { throw new RuntimeError('Variable "testimonial" does not exist.', 26, $this->source); })()), "content", [], "any", false, false, false, 26)), ["&nbsp;" => " "]), "html", null, true));
  411. yield "
  412. ";
  413. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  414. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  415. yield from [];
  416. }
  417. /**
  418. * @codeCoverageIgnore
  419. */
  420. public function getTemplateName(): string
  421. {
  422. return "@theme/testimonial/testimonials.html.twig";
  423. }
  424. /**
  425. * @codeCoverageIgnore
  426. */
  427. public function isTraitable(): bool
  428. {
  429. return false;
  430. }
  431. /**
  432. * @codeCoverageIgnore
  433. */
  434. public function getDebugInfo(): array
  435. {
  436. return array ( 476 => 26, 433 => 19, 334 => 13, 317 => 12, 303 => 9, 299 => 8, 296 => 7, 283 => 6, 240 => 5, 140 => 32, 136 => 30, 130 => 29, 127 => 28, 112 => 19, 109 => 18, 104 => 17, 90 => 16, 87 => 15, 72 => 5, 69 => 4, 52 => 3, 48 => 1,);
  437. }
  438. public function getSourceContext(): Source
  439. {
  440. return new Source("<section class=\"testimonials\">
  441. <div class=\"container\">
  442. {% for testimonial in testimonials %}
  443. {% if testimonial.featured %}
  444. {% component 'Testimonial' with { featured: (true), reverse: (loop.index is even), author: (testimonial.author), company: (testimonial.company) } %}
  445. {% block image %}
  446. <img
  447. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  448. alt=\"{{ testimonial.author }}\"
  449. >
  450. {% endblock %}
  451. {% block content %}<h2 class=\"testimonial__name\">{{ testimonial.title }}</h2>
  452. {{ allowInlineEditor(testimonial, 'content')|raw }}
  453. {% endblock %}{% endcomponent %}
  454. {% endif %}
  455. {% endfor %}
  456. {% for testimonial in testimonials %}
  457. {% if not testimonial.featured %}
  458. {% component 'Testimonial' with { author: (testimonial.author), company: (testimonial.company) } %}
  459. {# <twig:block name=\"image\">
  460. <img
  461. src=\"{{ imageCache('/userfiles/images/testimonial/' ~ testimonial.image, 'zoomCrop', 738, 1150) }}\"
  462. alt=\"{{ testimonial.author }}\"
  463. >
  464. </twig:block> #}
  465. {% block content %}{{ testimonial.content|striptags|replace({\"&nbsp;\": \" \"})|nl2br }}
  466. {% endblock %}{% endcomponent %}
  467. {% endif %}
  468. {% endfor %}
  469. </div>
  470. </section>
  471. {{ component('WhatsAppBlock', { alt: 'true' }) }}
  472. ", "@theme/testimonial/testimonials.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/testimonial/testimonials.html.twig");
  473. }
  474. }