Deprecated : Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 58
Deprecated : Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler
<?php
use Twig\Environment ;
use Twig\Error\LoaderError ;
use Twig\Error\RuntimeError ;
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 ;
/* @theme/casestudies/testimonials.html.twig */
class __TwigTemplate_d114dcf762fe9c45b97ef919f0f01292 extends Template
{
private $source ;
private $macros = [];
public function __construct ( Environment $env )
{
parent :: __construct ( $env );
$this -> source = $this -> getSourceContext ();
$this -> parent = false ;
$this -> blocks = [
];
}
protected function doDisplay (array $context , array $blocks = [])
{
$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" , "@theme/casestudies/testimonials.html.twig" ));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this -> extensions [ "Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension" ];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> enter ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile ( $this -> getTemplateName (), "template" , "@theme/casestudies/testimonials.html.twig" ));
// line 1
if (( twig_length_filter ( $this -> env , (isset( $context [ "testimonials" ]) || array_key_exists ( "testimonials" , $context ) ? $context [ "testimonials" ] : (function () { throw new RuntimeError ( 'Variable "testimonials" does not exist.' , 1 , $this -> source ); })())) > 0 )) {
// line 2
echo " <section>
<div class=\"container\">
<div class=\"grid gap-8\">
";
// line 5
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "testimonials" ]) || array_key_exists ( "testimonials" , $context ) ? $context [ "testimonials" ] : (function () { throw new RuntimeError ( 'Variable "testimonials" does not exist.' , 5 , $this -> source ); })()));
$context [ 'loop' ] = [
'parent' => $context [ '_parent' ],
'index0' => 0 ,
'index' => 1 ,
'first' => true ,
];
if (is_array ( $context [ '_seq' ]) || ( is_object ( $context [ '_seq' ]) && $context [ '_seq' ] instanceof \Countable )) {
$length = count ( $context [ '_seq' ]);
$context [ 'loop' ][ 'revindex0' ] = $length - 1 ;
$context [ 'loop' ][ 'revindex' ] = $length ;
$context [ 'loop' ][ 'length' ] = $length ;
$context [ 'loop' ][ 'last' ] = 1 === $length ;
}
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "testimonial" ]) {
// line 6
echo " <div class=\"w-full flex " ;
if (twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "image" , [], "any" , false , false , false , 6 )) {
echo "flex-row" ;
} else {
echo "flex-col" ;
}
echo " " ;
if ( !twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "last" , [], "any" , false , false , false , 6 )) {
echo "border-b" ;
}
echo " pb-8\">
";
// line 7
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "image" , [], "any" , false , false , false , 7 )) {
// line 8
echo " <img class=\"max-w-full mb-3\" src=\"" ;
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 45 }(( "/" . twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "getFullImagePath" , [], "any" , false , false , false , 8 )), "cropResize" , 1024 , 1024 ), "html" , null , true );
echo "\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "clientName" , [], "any" , false , false , false , 8 ), "html" , null , true );
echo "\" loading=\"lazy\" />
";
}
// line 10
echo " <div class=\"flex flex-col\">
<p class=\"text-lg font-light mb-4\">";
// line 11
echo twig_nl2br ( twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "content" , [], "any" , false , false , false , 11 ), "html" , null , true ));
echo "</p>
<p class=\"text-sm font-bold mb-0 text-secondary\">";
// line 12
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "attestant" , [], "any" , false , false , false , 12 ), "html" , null , true );
echo "</p>
<p class=\"text-sm text-secondary\">";
// line 13
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "testimonial" ], "jobTitle" , [], "any" , false , false , false , 13 ), "html" , null , true );
echo "</p>
</div>
</div>
";
++$context [ 'loop' ][ 'index0' ];
++$context [ 'loop' ][ 'index' ];
$context [ 'loop' ][ 'first' ] = false ;
if (isset($context [ 'loop' ][ 'length' ])) {
--$context [ 'loop' ][ 'revindex0' ];
--$context [ 'loop' ][ 'revindex' ];
$context [ 'loop' ][ 'last' ] = 0 === $context [ 'loop' ][ 'revindex0' ];
}
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'testimonial' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 17
echo " </div>
</div>
</section>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/casestudies/testimonials.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 119 => 17 , 101 => 13 , 97 => 12 , 93 => 11 , 90 => 10 , 82 => 8 , 80 => 7 , 67 => 6 , 50 => 5 , 45 => 2 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "{% if testimonials|length > 0 %}
<section>
<div class=\"container\">
<div class=\"grid gap-8\">
{% for testimonial in testimonials %}
<div class=\"w-full flex {% if testimonial.image %}flex-row{% else %}flex-col{% endif %} {% if not loop.last %}border-b{% endif %} pb-8\">
{% if testimonial.image %}
<img class=\"max-w-full mb-3\" src=\"{{ imageCache('/'~ testimonial.getFullImagePath, 'cropResize', 1024, 1024) }}\" alt=\"{{ testimonial.clientName }}\" loading=\"lazy\" />
{% endif %}
<div class=\"flex flex-col\">
<p class=\"text-lg font-light mb-4\">{{ testimonial.content|nl2br }}</p>
<p class=\"text-sm font-bold mb-0 text-secondary\">{{ testimonial.attestant }}</p>
<p class=\"text-sm text-secondary\">{{ testimonial.jobTitle }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endif %}
", "@theme/casestudies/testimonials.html.twig" , "/var/www/html/k/kasscaffolding/templates/themes/theme/casestudies/testimonials.html.twig" );
}
}