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/casestudies.html.twig */
class __TwigTemplate_fc7a3d0590fe87bced3f41fbc470757e 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/casestudies.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/casestudies.html.twig" ));
// line 1
echo "
<div class=\"container\">
<div class=\"row\">
";
// line 4
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "studies" ]) || array_key_exists ( "studies" , $context ) ? $context [ "studies" ] : (function () { throw new RuntimeError ( 'Variable "studies" does not exist.' , 4 , $this -> source ); })()));
$context [ '_iterated' ] = false ;
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "study" ]) {
// line 5
echo " <div class=\"md:col-6\">
<a class=\"block mb-12 img-hover\" href=\"";
// line 6
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 44 }( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "app" ]) || array_key_exists ( "app" , $context ) ? $context [ "app" ] : (function () { throw new RuntimeError ( 'Variable "app" does not exist.' , 6 , $this -> source ); })()), "request" , [], "any" , false , false , false , 6 ), twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "linkedPageId" , [], "any" , false , false , false , 6 ), [ "caseStudy_slug" => twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "slug" , [], "any" , false , false , false , 6 )]), "html" , null , true );
echo "\">
<div class=\"article-img\">
<img class=\"max-w-full h-auto mb-8\" src=\"";
// line 8
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 [ "study" ], "getFullImage5Path" , [], "any" , false , false , false , 8 )), "zoomCrop" , 1040 , 720 ), "html" , null , true );
echo "\" width=\"670\" height=\"464\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "clientName" , [], "any" , false , false , false , 8 ), "html" , null , true );
echo "\">
</div>
<div class=\"flex justify-between items-stretch\">
";
// line 11
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "image" , [], "any" , false , false , false , 11 )) {
// line 12
echo " <div class=\"w-1/2 flex items-center\">
<img class=\"h-auto max-h-[60px] w-auto max-w-full\" src=\"";
// line 13
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 [ "study" ], "getFullImagePath" , [], "any" , false , false , false , 13 )), "cropResize" , 200 , 200 ), "html" , null , true );
echo "\" height=\"100\" width=\"100\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "clientName" , [], "any" , false , false , false , 13 ), "html" , null , true );
echo "\" loading=\"lazy\" />
</div>
";
}
// line 16
echo " <div class=\"" ;
if (twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "image" , [], "any" , false , false , false , 16 )) {
echo "w-1/2 border-l border-dark pl-4 " ;
} else {
echo "w-full" ;
}
echo " flex flex-col justify-center\">
<p class=\"text-sm mb-0 text-secondary\"><strong>Project</strong></p>
<h3 class=\"capitalize text-dark mt-0 mb-0\">";
// line 18
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "projectName" , [], "any" , false , false , false , 18 ), "html" , null , true );
echo "</h3>
";
// line 19
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "createdAt" , [], "any" , false , false , false , 19 )) {
// line 20
echo " <p class=\"text-sm text-dark mb-0\">" ;
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "study" ], "createdAt" , [], "any" , false , false , false , 20 ), "d F Y" ), "html" , null , true );
echo "</p>
";
}
// line 22
echo " </div>
</div>
</a>
</div>
";
$context [ '_iterated' ] = true ;
}
if (!$context [ '_iterated' ]) {
// line 27
echo " <div class=\"col-12\">
<p>No case studies found</p>
</div>
";
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'study' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 31
echo " </div>
</div>
";
// line 34
echo $this -> extensions [ 'Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension' ]-> render ( $this -> env , (isset( $context [ "studies" ]) || array_key_exists ( "studies" , $context ) ? $context [ "studies" ] : (function () { throw new RuntimeError ( 'Variable "studies" does not exist.' , 34 , $this -> source ); })()));
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/casestudies/casestudies.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 127 => 34 , 122 => 31 , 113 => 27 , 104 => 22 , 98 => 20 , 96 => 19 , 92 => 18 , 82 => 16 , 74 => 13 , 71 => 12 , 69 => 11 , 61 => 8 , 56 => 6 , 53 => 5 , 48 => 4 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "
<div class=\"container\">
<div class=\"row\">
{% for study in studies %}
<div class=\"md:col-6\">
<a class=\"block mb-12 img-hover\" href=\"{{ generatePath(app.request, study.linkedPageId, { 'caseStudy_slug': study.slug }) }}\">
<div class=\"article-img\">
<img class=\"max-w-full h-auto mb-8\" src=\"{{ imageCache('/' ~ study.getFullImage5Path, 'zoomCrop', 1040, 720) }}\" width=\"670\" height=\"464\" alt=\"{{ study.clientName }}\">
</div>
<div class=\"flex justify-between items-stretch\">
{% if study.image %}
<div class=\"w-1/2 flex items-center\">
<img class=\"h-auto max-h-[60px] w-auto max-w-full\" src=\"{{ imageCache('/'~ study.getFullImagePath, \"cropResize\", 200, 200) }}\" height=\"100\" width=\"100\" alt=\"{{ study.clientName }}\" loading=\"lazy\" />
</div>
{% endif %}
<div class=\"{% if study.image %}w-1/2 border-l border-dark pl-4 {% else %}w-full{% endif %} flex flex-col justify-center\">
<p class=\"text-sm mb-0 text-secondary\"><strong>Project</strong></p>
<h3 class=\"capitalize text-dark mt-0 mb-0\">{{ study.projectName }}</h3>
{% if study.createdAt %}
<p class=\"text-sm text-dark mb-0\">{{ study.createdAt|date('d F Y') }}</p>
{% endif %}
</div>
</div>
</a>
</div>
{% else %}
<div class=\"col-12\">
<p>No case studies found</p>
</div>
{% endfor %}
</div>
</div>
{{ knp_pagination_render(studies) }}
", "@theme/casestudies/casestudies.html.twig" , "/var/www/html/k/kasscaffolding/templates/themes/theme/casestudies/casestudies.html.twig" );
}
}