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/sectors/list_full.html.twig */
class __TwigTemplate_738f327e03862f14bd86b9c85c7c93de 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/sectors/list_full.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/sectors/list_full.html.twig" ));
// line 1
echo "<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"LocalBusiness\",
\"name\": \"";
// line 5
echo twig_escape_filter ( $this -> env , (isset( $context [ "sitename" ]) || array_key_exists ( "sitename" , $context ) ? $context [ "sitename" ] : (function () { throw new RuntimeError ( 'Variable "sitename" does not exist.' , 5 , $this -> source ); })()), "html" , null , true );
echo "\",
\"url\": \"";
// line 6
echo twig_escape_filter ( $this -> env , (isset( $context [ "siteurl" ]) || array_key_exists ( "siteurl" , $context ) ? $context [ "siteurl" ] : (function () { throw new RuntimeError ( 'Variable "siteurl" does not exist.' , 6 , $this -> source ); })()), "html" , null , true );
echo "\",
\"areaServed\": [
{
\"@type\": \"Place\",
\"name\": \"London\"
},
{
\"@type\": \"Place\",
\"name\": \"Esssex\"
},
{
\"@type\": \"Place\",
\"name\": \"Kent\"
},
{
\"@type\": \"Place\",
\"name\": \"Cambridge\"
},
{
\"@type\": \"Place\",
\"name\": \"Oxford\"
}
],
\"hasOfferCatalog\": {
\"@type\": \"OfferCatalog\",
\"name\": \"Our Scaffolding Services\",
\"itemListElement\": [
";
// line 33
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "sectorChunks" ]) || array_key_exists ( "sectorChunks" , $context ) ? $context [ "sectorChunks" ] : (function () { throw new RuntimeError ( 'Variable "sectorChunks" does not exist.' , 33 , $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 [ "sectors" ]) {
// line 34
echo " " ;
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( $context [ "sectors" ]);
$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 [ "sector" ]) {
// line 35
echo " {
\"@type\": \"Offer\",
\"itemOffered\": {
\"@type\": \"Service\",
\"name\": \"";
// line 39
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "title" , [], "any" , false , false , false , 39 ), "html" , null , true );
echo "\",
\"description\": \"";
// line 40
echo twig_escape_filter ( $this -> env , twig_striptags ( twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "kicker" , [], "any" , false , false , false , 40 )), "html" , null , true );
echo "\"
}
}";
// line 42
if (( twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "last" , [], "any" , false , false , false , 42 ) == false )) {
echo "," ;
}
// line 43
echo " " ;
++$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 [ 'sector' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 44
echo " " ;
if ((twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "last" , [], "any" , false , false , false , 44 ) == false )) {
echo "," ;
}
// line 45
echo " " ;
++$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 [ 'sectors' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 46
echo " ]
}
}
</script>
<div class=\"container mb-4\">
";
// line 53
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ((isset( $context [ "sectorChunks" ]) || array_key_exists ( "sectorChunks" , $context ) ? $context [ "sectorChunks" ] : (function () { throw new RuntimeError ( 'Variable "sectorChunks" does not exist.' , 53 , $this -> source ); })()));
foreach ($context [ '_seq' ] as $context [ "_key" ] => $context [ "sectors" ]) {
// line 54
echo " <div class=\"sector-grid mb-8\">
";
// line 55
$context [ '_parent' ] = $context ;
$context [ '_seq' ] = twig_ensure_traversable ( $context [ "sectors" ]);
$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 [ "sector" ]) {
// line 56
echo " <a class=\"sector-grid--item " ;
if ((twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "first" , [], "any" , false , false , false , 56 ) || ( 0 == twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index0" , [], "any" , false , false , false , 56 ) % 3 ))) {
echo "before" ;
} elseif ((0 == twig_get_attribute ( $this -> env , $this -> source , $context [ "loop" ], "index" , [], "any" , false , false , false , 56 ) % 3 )) {
echo "after" ;
} else {
echo "center" ;
}
echo "\" style=\"background-image:url('" ;
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 [ "sector" ], "getFullImagePath" , [], "any" , false , false , false , 56 )), "zoomCrop" , 1040 , 640 ), "html" , null , true );
echo "');\" href=\"" ;
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.' , 56 , $this -> source ); })()), "request" , [], "any" , false , false , false , 56 ), twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "linkedPageId" , [], "any" , false , false , false , 56 ), [ "sector_slug" => twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "slug" , [], "any" , false , false , false , 56 )]), "html" , null , true );
echo "\">
<img class=\"max-w-full h-auto md:hidden\" src=\"";
// line 57
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 [ "sector" ], "getFullImagePath" , [], "any" , false , false , false , 57 )), "zoomCrop" , 1040 , 640 ), "html" , null , true );
echo "\" alt=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "title" , [], "any" , false , false , false , 57 ), "html" , null , true );
echo "\">
<div class=\"sector-grid--info text-sm md:text-base\">
";
// line 59
echo twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "icon" , [], "any" , false , false , false , 59 );
echo "
<h3>";
// line 60
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "title" , [], "any" , false , false , false , 60 ), "html" , null , true );
echo "</h3>
";
// line 61
echo twig_get_attribute ( $this -> env , $this -> source , $context [ "sector" ], "kicker" , [], "any" , false , false , false , 61 );
echo "
<span>Read More</span>
</div>
</a>
";
++$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 [ 'sector' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 66
echo " </div>
";
}
$_parent = $context [ '_parent' ];
unset($context [ '_seq' ], $context [ '_iterated' ], $context [ '_key' ], $context [ 'sectors' ], $context [ '_parent' ], $context [ 'loop' ]);
$context = array_intersect_key ( $context , $_parent ) + $_parent ;
// line 68
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/sectors/list_full.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 259 => 68 , 252 => 66 , 233 => 61 , 229 => 60 , 225 => 59 , 218 => 57 , 203 => 56 , 186 => 55 , 183 => 54 , 179 => 53 , 170 => 46 , 156 => 45 , 151 => 44 , 137 => 43 , 133 => 42 , 128 => 40 , 124 => 39 , 118 => 35 , 100 => 34 , 83 => 33 , 53 => 6 , 49 => 5 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"LocalBusiness\",
\"name\": \"{{ sitename }}\",
\"url\": \"{{ siteurl }}\",
\"areaServed\": [
{
\"@type\": \"Place\",
\"name\": \"London\"
},
{
\"@type\": \"Place\",
\"name\": \"Esssex\"
},
{
\"@type\": \"Place\",
\"name\": \"Kent\"
},
{
\"@type\": \"Place\",
\"name\": \"Cambridge\"
},
{
\"@type\": \"Place\",
\"name\": \"Oxford\"
}
],
\"hasOfferCatalog\": {
\"@type\": \"OfferCatalog\",
\"name\": \"Our Scaffolding Services\",
\"itemListElement\": [
{% for sectors in sectorChunks %}
{% for sector in sectors %}
{
\"@type\": \"Offer\",
\"itemOffered\": {
\"@type\": \"Service\",
\"name\": \"{{ sector.title }}\",
\"description\": \"{{ sector.kicker|raw|striptags }}\"
}
}{% if loop.last == false %},{% endif %}
{% endfor %}
{% if loop.last == false %},{% endif %}
{% endfor %}
]
}
}
</script>
<div class=\"container mb-4\">
{% for sectors in sectorChunks %}
<div class=\"sector-grid mb-8\">
{% for sector in sectors %}
<a class=\"sector-grid--item {% if loop.first or loop.index0 is divisible by(3) %}before{% elseif loop.index is divisible by(3) %}after{% else %}center{% endif %}\" style=\"background-image:url('{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}');\" href=\"{{ generatePath(app.request, sector.linkedPageId, {sector_slug: sector.slug}) }}\">
<img class=\"max-w-full h-auto md:hidden\" src=\"{{ imageCache('/'~ sector.getFullImagePath, 'zoomCrop', 1040, 640) }}\" alt=\"{{ sector.title }}\">
<div class=\"sector-grid--info text-sm md:text-base\">
{{ sector.icon|raw }}
<h3>{{ sector.title }}</h3>
{{ sector.kicker|raw }}
<span>Read More</span>
</div>
</a>
{% endfor %}
</div>
{% endfor %}
</div>
", "@theme/sectors/list_full.html.twig" , "/var/www/html/k/kasscaffolding/templates/themes/theme/sectors/list_full.html.twig" );
}
}