<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* components/Testimonial.html.twig */
class __TwigTemplate_dc47d7f4808167efb6bd4df38c5da717 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'image' => [$this, 'block_image'],
'content' => [$this, 'block_content'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/Testimonial.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "components/Testimonial.html.twig"));
// line 1
$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") : (""));
// line 2
$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); })())));
// line 3
yield "
<div class=\"testimonial ";
// line 4
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);
yield "\">
";
// line 5
if ((($tmp = $this->unwrap()->renderBlock("image", $context, $blocks)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 6
yield " <div class=\"testimonial__image\">
";
// line 7
yield from $this->unwrap()->yieldBlock('image', $context, $blocks);
// line 8
yield " <img
class=\"testimonial__gradient\"
src=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/gradient-pill.svg"), "html", null, true);
yield "\"
role=\"presentation\"
loading=\"lazy\"
>
</div>
";
}
// line 16
yield " ";
if ((($tmp = $this->unwrap()->renderBlock("content", $context, $blocks)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 17
yield " <div class=\"testimonial__content\">
";
// line 18
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 19
yield "
";
// line 20
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); })()))) {
// line 21
yield " <div class=\"testimonial__author\">
";
// line 22
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)) {
// line 23
yield " <span class=\"testimonial__author-name\">";
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);
yield "</span>
";
}
// line 25
yield " ";
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); })()))) {
// line 26
yield " <span class=\"testimonial__author-separator\"> - </span>
";
}
// line 28
yield " ";
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)) {
// line 29
yield " <span class=\"testimonial__author-company\">";
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);
yield "</span>
";
}
// line 31
yield " </div>
";
}
// line 33
yield " </div>
";
}
// line 35
yield "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_image(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "image"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "components/Testimonial.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set classes = featured ? 'testimonial--featured' : '' %}
{% set classes = reverse ? classes ~ ' testimonial--reverse' : classes %}
<div class=\"testimonial {{ classes }}\">
{% if block('image') %}
<div class=\"testimonial__image\">
{% block image %}{% endblock %}
<img
class=\"testimonial__gradient\"
src=\"{{ asset('build/images/gradient-pill.svg') }}\"
role=\"presentation\"
loading=\"lazy\"
>
</div>
{% endif %}
{% if block('content') %}
<div class=\"testimonial__content\">
{% block content %}{% endblock %}
{% if author or company %}
<div class=\"testimonial__author\">
{% if author %}
<span class=\"testimonial__author-name\">{{ author }}</span>
{% endif %}
{% if author and company %}
<span class=\"testimonial__author-separator\"> - </span>
{% endif %}
{% if company %}
<span class=\"testimonial__author-company\">{{ company }}</span>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
</div>
", "components/Testimonial.html.twig", "/var/www/html/t/taurushr/templates/components/Testimonial.html.twig");
}
}