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/image-text-grid/grids.html.twig */
class __TwigTemplate_492cf881186bbfb13780b5c4218e8f11 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/image-text-grid/grids.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/image-text-grid/grids.html.twig" ));
// line 1
echo "<div class=\"container mt-12 mb-12 text-xl font-light\">
";
// line 2
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "grids" ]) || array_key_exists ( "grids" , $context ) ? $context [ "grids" ] : (function () { throw new RuntimeError ( 'Variable "grids" does not exist.' , 2 , $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 [ "grid" ]) {
// line 3
echo " <div class=\"md:flex\">
";
// line 4
if (( twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 4 ) % 2 != 0 )) {
// line 5
echo " <div class=\"md:w-1/2\">
<img src=\"";
// line 6
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 [ "grid" ], "getFullImagePath" , [], "any" , false , false , false , 6 )), "cropResize" , 1200 , 800 ), "html" , null , true );
echo "\" width=\"685\" height=\"460\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 6 ), "html" , null , true );
echo "\" loading=\"lazy\" />
</div>
";
}
// line 9
echo "
";
// line 10
if (( twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 10 ) % 2 == 0 )) {
// line 11
echo " <div class=\"md:hidden md:w-1/2\">
<img src=\"";
// line 12
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 [ "grid" ], "getFullImagePath" , [], "any" , false , false , false , 12 )), "cropResize" , 1200 , 800 ), "html" , null , true );
echo "\" width=\"685\" height=\"440\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 12 ), "html" , null , true );
echo "\" loading=\"lazy\" />
</div>
";
}
// line 15
echo "
<div class=\"md:w-1/2 flex flex-col justify-center cms-area py-12 ";
// line 16
echo ((( twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 16 ) % 2 != 0 )) ? ( "md:pl-12" ) : ( "" ));
echo " " ;
echo (((twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 16 ) % 2 == 0 )) ? ( "md:pr-12" ) : ( "" ));
echo "\">
<p><strong>";
// line 17
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "subtitle" , [], "any" , false , false , false , 17 ), "html" , null , true );
echo "</strong></p>
<h2>";
// line 18
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 18 ), "html" , null , true );
echo "</h2>
<div>";
// line 19
echo twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "content" , [], "any" , false , false , false , 19 );
echo "</div>
";
// line 21
if ((( twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image2" , [], "any" , false , false , false , 21 ) || twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image3" , [], "any" , false , false , false , 21 )) || twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image4" , [], "any" , false , false , false , 21 ))) {
// line 22
echo " <div class=\"flex space-x-2 mt-4\">
";
// line 23
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image2" , [], "any" , false , false , false , 23 )) {
// line 24
echo " <img 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 [ "grid" ], "getFullImage2Path" , [], "any" , false , false , false , 24 )), "scaleResize" , 240 , 160 ), "html" , null , true );
echo "\" height=\"80\" width=\"120\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 24 ), "html" , null , true );
echo "\" loading=\"lazy\" />
";
}
// line 26
echo "
";
// line 27
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image3" , [], "any" , false , false , false , 27 )) {
// line 28
echo " <img 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 [ "grid" ], "getFullImage3Path" , [], "any" , false , false , false , 28 )), "scaleResize" , 240 , 160 ), "html" , null , true );
echo "\" height=\"80\" width=\"120\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 28 ), "html" , null , true );
echo "\" loading=\"lazy\" />
";
}
// line 30
echo "
";
// line 31
if ( twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "image4" , [], "any" , false , false , false , 31 )) {
// line 32
echo " <img 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 [ "grid" ], "getFullImage4Path" , [], "any" , false , false , false , 32 )), "scaleResize" , 240 , 160 ), "html" , null , true );
echo "\" height=\"80\" width=\"120\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 32 ), "html" , null , true );
echo "\" loading=\"lazy\" />
";
}
// line 34
echo " </div>
";
}
// line 36
echo " </div>
";
// line 38
if (( twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 38 ) % 2 == 0 )) {
// line 39
echo " <div class=\"hidden md:block md:w-1/2\">
<img src=\"";
// line 40
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 [ "grid" ], "getFullImagePath" , [], "any" , false , false , false , 40 )), "cropResize" , 1200 , 800 ), "html" , null , true );
echo "\" width=\"685\" height=\"440\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "grid" ], "title" , [], "any" , false , false , false , 40 ), "html" , null , true );
echo "\" loading=\"lazy\" />
</div>
";
}
// line 43
echo " </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 [ 'grid' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 45
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/image-text-grid/grids.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 194 => 45 , 179 => 43 , 171 => 40 , 168 => 39 , 166 => 38 , 162 => 36 , 158 => 34 , 150 => 32 , 148 => 31 , 145 => 30 , 137 => 28 , 135 => 27 , 132 => 26 , 124 => 24 , 122 => 23 , 119 => 22 , 117 => 21 , 112 => 19 , 108 => 18 , 104 => 17 , 98 => 16 , 95 => 15 , 87 => 12 , 84 => 11 , 82 => 10 , 79 => 9 , 71 => 6 , 68 => 5 , 66 => 4 , 63 => 3 , 46 => 2 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "<div class=\"container mt-12 mb-12 text-xl font-light\">
{% for grid in grids %}
<div class=\"md:flex\">
{% if loop.index is odd %}
<div class=\"md:w-1/2\">
<img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"460\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
</div>
{% endif %}
{% if loop.index is even %}
<div class=\"md:hidden md:w-1/2\">
<img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"440\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
</div>
{% endif %}
<div class=\"md:w-1/2 flex flex-col justify-center cms-area py-12 {{ loop.index is odd ? 'md:pl-12' }} {{ loop.index is even ? 'md:pr-12' }}\">
<p><strong>{{ grid.subtitle }}</strong></p>
<h2>{{ grid.title }}</h2>
<div>{{ grid.content|raw }}</div>
{% if grid.image2 or grid.image3 or grid.image4 %}
<div class=\"flex space-x-2 mt-4\">
{% if grid.image2 %}
<img src=\"{{ imageCache('/' ~ grid.getFullImage2Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
{% endif %}
{% if grid.image3 %}
<img src=\"{{ imageCache('/' ~ grid.getFullImage3Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
{% endif %}
{% if grid.image4 %}
<img src=\"{{ imageCache('/' ~ grid.getFullImage4Path, 'scaleResize', 240, 160) }}\" height=\"80\" width=\"120\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
{% endif %}
</div>
{% endif %}
</div>
{% if loop.index is even %}
<div class=\"hidden md:block md:w-1/2\">
<img src=\"{{ imageCache('/' ~ grid.getFullImagePath, 'cropResize', 1200, 800) }}\" width=\"685\" height=\"440\" alt=\"{{ grid.title }}\" loading=\"lazy\" />
</div>
{% endif %}
</div>
{% endfor %}
</div>
", "@theme/image-text-grid/grids.html.twig" , "/var/www/html/k/kasscaffolding/templates/themes/theme/image-text-grid/grids.html.twig" );
}
}