var/cache/dev/twig/d3/d305a06f1329e3fcf7704841c7c23e74.php line 40

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. /* components/Testimonial.html.twig */
  16. class __TwigTemplate_dc47d7f4808167efb6bd4df38c5da717 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. 'image' => [$this, 'block_image'],
  30. 'content' => [$this, 'block_content'],
  31. ];
  32. }
  33. protected function doDisplay(array $context, array $blocks = []): iterable
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/Testimonial.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/Testimonial.html.twig"));
  40. // line 1
  41. $context["classes"] = (((($tmp = (isset($context["featured"]) || array_key_exists("featured", $context) ? $context["featured"] : (function () { throw new RuntimeError('Variable "featured" does not exist.', 1, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("testimonial--featured") : (""));
  42. // line 2
  43. $context["classes"] = (((($tmp = (isset($context["reverse"]) || array_key_exists("reverse", $context) ? $context["reverse"] : (function () { throw new RuntimeError('Variable "reverse" does not exist.', 2, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.', 2, $this->source); })()) . " testimonial--reverse")) : ((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.', 2, $this->source); })())));
  44. // line 3
  45. yield "
  46. <div class=\"testimonial ";
  47. // line 4
  48. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new RuntimeError('Variable "classes" does not exist.', 4, $this->source); })()), "html", null, true);
  49. yield "\">
  50. ";
  51. // line 5
  52. if ((($tmp = $this->unwrap()->renderBlock("image", $context, $blocks)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  53. // line 6
  54. yield " <div class=\"testimonial__image\">
  55. ";
  56. // line 7
  57. yield from $this->unwrap()->yieldBlock('image', $context, $blocks);
  58. // line 8
  59. yield " <img
  60. class=\"testimonial__gradient\"
  61. src=\"";
  62. // line 10
  63. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/gradient-pill.svg"), "html", null, true);
  64. yield "\"
  65. role=\"presentation\"
  66. loading=\"lazy\"
  67. >
  68. </div>
  69. ";
  70. }
  71. // line 16
  72. yield " ";
  73. if ((($tmp = $this->unwrap()->renderBlock("content", $context, $blocks)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  74. // line 17
  75. yield " <div class=\"testimonial__content\">
  76. ";
  77. // line 18
  78. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  79. // line 19
  80. yield "
  81. ";
  82. // line 20
  83. if (((isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 20, $this->source); })()) || (isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 20, $this->source); })()))) {
  84. // line 21
  85. yield " <div class=\"testimonial__author\">
  86. ";
  87. // line 22
  88. if ((($tmp = (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 22, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  89. // line 23
  90. yield " <span class=\"testimonial__author-name\">";
  91. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 23, $this->source); })()), "html", null, true);
  92. yield "</span>
  93. ";
  94. }
  95. // line 25
  96. yield " ";
  97. if (((isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 25, $this->source); })()) && (isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 25, $this->source); })()))) {
  98. // line 26
  99. yield " <span class=\"testimonial__author-separator\"> - </span>
  100. ";
  101. }
  102. // line 28
  103. yield " ";
  104. if ((($tmp = (isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 28, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  105. // line 29
  106. yield " <span class=\"testimonial__author-company\">";
  107. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 29, $this->source); })()), "html", null, true);
  108. yield "</span>
  109. ";
  110. }
  111. // line 31
  112. yield " </div>
  113. ";
  114. }
  115. // line 33
  116. yield " </div>
  117. ";
  118. }
  119. // line 35
  120. yield "</div>
  121. ";
  122. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124. yield from [];
  125. }
  126. // line 7
  127. /**
  128. * @return iterable<null|scalar|\Stringable>
  129. */
  130. public function block_image(array $context, array $blocks = []): iterable
  131. {
  132. $macros = $this->macros;
  133. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  134. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  136. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
  137. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  138. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139. yield from [];
  140. }
  141. // line 18
  142. /**
  143. * @return iterable<null|scalar|\Stringable>
  144. */
  145. public function block_content(array $context, array $blocks = []): iterable
  146. {
  147. $macros = $this->macros;
  148. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  150. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  152. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154. yield from [];
  155. }
  156. /**
  157. * @codeCoverageIgnore
  158. */
  159. public function getTemplateName(): string
  160. {
  161. return "components/Testimonial.html.twig";
  162. }
  163. /**
  164. * @codeCoverageIgnore
  165. */
  166. public function isTraitable(): bool
  167. {
  168. return false;
  169. }
  170. /**
  171. * @codeCoverageIgnore
  172. */
  173. public function getDebugInfo(): array
  174. {
  175. return array ( 163 => 18, 141 => 7, 129 => 35, 125 => 33, 121 => 31, 115 => 29, 112 => 28, 108 => 26, 105 => 25, 99 => 23, 97 => 22, 94 => 21, 92 => 20, 89 => 19, 87 => 18, 84 => 17, 81 => 16, 72 => 10, 68 => 8, 66 => 7, 63 => 6, 61 => 5, 57 => 4, 54 => 3, 52 => 2, 50 => 1,);
  176. }
  177. public function getSourceContext(): Source
  178. {
  179. return new Source("{% set classes = featured ? 'testimonial--featured' : '' %}
  180. {% set classes = reverse ? classes ~ ' testimonial--reverse' : classes %}
  181. <div class=\"testimonial {{ classes }}\">
  182. {% if block('image') %}
  183. <div class=\"testimonial__image\">
  184. {% block image %}{% endblock %}
  185. <img
  186. class=\"testimonial__gradient\"
  187. src=\"{{ asset('build/images/gradient-pill.svg') }}\"
  188. role=\"presentation\"
  189. loading=\"lazy\"
  190. >
  191. </div>
  192. {% endif %}
  193. {% if block('content') %}
  194. <div class=\"testimonial__content\">
  195. {% block content %}{% endblock %}
  196. {% if author or company %}
  197. <div class=\"testimonial__author\">
  198. {% if author %}
  199. <span class=\"testimonial__author-name\">{{ author }}</span>
  200. {% endif %}
  201. {% if author and company %}
  202. <span class=\"testimonial__author-separator\"> - </span>
  203. {% endif %}
  204. {% if company %}
  205. <span class=\"testimonial__author-company\">{{ company }}</span>
  206. {% endif %}
  207. </div>
  208. {% endif %}
  209. </div>
  210. {% endif %}
  211. </div>
  212. ", "components/Testimonial.html.twig", "/var/www/html/t/taurushr/templates/components/Testimonial.html.twig");
  213. }
  214. }