Deprecated : Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/translation/Resources/functions.php on line 18
Deprecated : Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/dotenv/Dotenv.php on line 110
Deprecated : Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/GenericRuntime.php on line 89
Deprecated : Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/runtime/RuntimeInterface.php on line 26
Deprecated : Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46
Deprecated : Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/ArgvInput.php on line 46
Deprecated : Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/t/taurushr/vendor/symfony/console/Input/Input.php on line 36
Deprecated : Constant E_STRICT is deprecated in /var/www/html/t/taurushr/vendor/symfony/error-handler/ErrorHandler.php on line 58
Deprecated : Constant E_STRICT is deprecated in /var/www/html/t/taurushr/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/news/embedNewsArticle.html.twig */
class __TwigTemplate_14067900e85fe791261d014ca81ce51f 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/news/embedNewsArticle.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/news/embedNewsArticle.html.twig" ));
// line 1
echo "<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BlogPosting\",
\"headline\": \"";
// line 5
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 5 , $this -> source ); })()), "title" , [], "any" , false , false , false , 5 ), "html" , null , true );
echo "\",
\"alternativeHeadline\": \"";
// line 6
echo twig_escape_filter ( $this -> env , twig_striptags ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 6 , $this -> source ); })()), "subtitle" , [], "any" , false , false , false , 6 )), "html" , null , true );
echo "\",
\"datePublished\": \"";
// line 7
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 7 , $this -> source ); })()), "publishDate" , [], "any" , false , false , false , 7 ), "c" ), "html" , null , true );
echo "\",
\"dateModified\": \"";
// line 8
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 8 , $this -> source ); })()), "updatedAt" , [], "any" , false , false , false , 8 ), "c" ), "html" , null , true );
echo "\",
\"author\": {
\"@type\": \"Organization\",
\"name\": \"";
// line 11
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.' , 11 , $this -> source ); })()), "html" , null , true );
echo "\"
},
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"";
// line 15
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.' , 15 , $this -> source ); })()), "html" , null , true );
echo "\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"";
// line 18
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.' , 18 , $this -> source ); })()), "html" , null , true );
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 44 }( $this -> extensions [ 'Symfony\Bridge\Twig\Extension\AssetExtension' ]-> getAssetUrl ( "build/images/logo.png" ), "cropResize" , 560 , 120 ), "html" , null , true );
echo "\",
\"width\": 560,
\"height\": 120
}
},
\"image\": {
\"@type\": \"ImageObject\",
\"url\": \"";
// line 25
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.' , 25 , $this -> source ); })()), "html" , null , true );
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 44 }(( "/userfiles/images/news/" . twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 25 , $this -> source ); })()), "image" , [], "any" , false , false , false , 25 )), "zoomCrop" , 800 , 600 ), "html" , null , true );
echo "\",
\"width\": 800,
\"height\": 600
},
\"description\": \"";
// line 29
echo twig_escape_filter ( $this -> env , twig_striptags ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 29 , $this -> source ); })()), "excerpt" , [], "any" , false , false , false , 29 )), "html" , null , true );
echo "\",
\"articleBody\": \"";
// line 30
echo twig_escape_filter ( $this -> env , twig_striptags ( twig_replace_filter ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 30 , $this -> source ); })()), "content" , [], "any" , false , false , false , 30 ), [ "
" => " " , "
" => " " ])), "html" , null , true );
echo "\"
}
</script>
<div class=\"page-hero page-hero--themed page-hero--no-bg page-hero--fade-out news-article__hero\">
<div class=\"container\">
<div class=\"page-hero__content ";
// line 36
if (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 36 , $this -> source ); })()), "image" , [], "any" , false , false , false , 36 ) == null )) {
echo "!col-span-12" ;
}
echo "\">" ;
// line 37
echo twig_escape_filter ( $this -> env , $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 46 }((isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 37 , $this -> source ); })()), $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 53 }( twig_get_attribute ( $this -> env , $this -> source , 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.' , 37 , $this -> source ); })()), "request" , [], "any" , false , false , false , 37 ), "pathinfo" , [], "any" , false , false , false , 37 ))), "html" , null , true );
// line 38
echo "<p class=\"text-sm mb-2\">" ;
echo twig_escape_filter ( $this -> env , twig_date_format_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 38 , $this -> source ); })()), "createdAt" , [], "any" , false , false , false , 38 ), "d F Y" ), "html" , null , true );
echo "</p>
<h1 class=\"page-hero__title\">
";
// line 40
echo $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 50 }((isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 40 , $this -> source ); })()), "title" );
echo "
</h1>
<div class=\"page-hero__subtitle\">
";
// line 43
echo $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 50 }((isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 43 , $this -> source ); })()), "subtitle" );
// line 44
echo "</div>
</div>
";
// line 46
if ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 46 , $this -> source ); })()), "image" , [], "any" , false , false , false , 46 )) {
// line 47
echo " <div class=\"page-hero__image\">
<img
src=\"";
// line 49
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 [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 49 , $this -> source ); })()), "getFullImagePath" , [], "any" , false , false , false , 49 )), "zoomCrop" , 1700 , 700 ), "html" , null , true );
echo "\"
alt=\"";
// line 50
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 50 , $this -> source ); })()), "title" , [], "any" , false , false , false , 50 ), "html" , null , true );
echo "\"
>
</div>
";
}
// line 54
echo " </div>
</div>
</div>
<article class=\"news-article\">
<div class=\"container\">
<div class=\"news-article__content cms-area\">
";
// line 60
echo ((( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 60 , $this -> source ); })()), "isActive" , [], "any" , false , false , false , 60 ) && ( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 60 , $this -> source ); })()), "publishDate" , [], "any" , false , false , false , 60 ) <= twig_date_converter ( $this -> env )))) ? ( "" ) : ( "<h2>PREVIEW - Article not active</h2>" ));
echo "
";
// line 61
echo $this -> extensions [ 'App\Twig\TwigExtension' ]->{ closure : App\Twig\TwigExtension :: getFunctions (): 50 }((isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 61 , $this -> source ); })()), "content" );
echo "
";
// line 62
if (( twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 62 , $this -> source ); })()), "ctaText" , [], "any" , false , false , false , 62 ) && twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 62 , $this -> source ); })()), "ctaLink" , [], "any" , false , false , false , 62 ))) {
// line 63
echo " <a href=\"" ;
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 63 , $this -> source ); })()), "ctaLink" , [], "any" , false , false , false , 63 ), "html" , null , true );
echo "\" class=\"button mt-10\">" ;
// line 64
echo twig_escape_filter ( $this -> env , twig_get_attribute ( $this -> env , $this -> source , (isset( $context [ "news" ]) || array_key_exists ( "news" , $context ) ? $context [ "news" ] : (function () { throw new RuntimeError ( 'Variable "news" does not exist.' , 64 , $this -> source ); })()), "ctaText" , [], "any" , false , false , false , 64 ), "html" , null , true );
// line 65
echo "</a>
";
}
// line 67
echo " </div>
</div>
</article>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2 -> leave ( $__internal_5a27a8ba21ca79b61932376b2fa922d2_prof );
$__internal_6f47bbe9983af81f1e7450e9a3e3768f -> leave ( $__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof );
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName ()
{
return "@theme/news/embedNewsArticle.html.twig" ;
}
/**
* @codeCoverageIgnore
*/
public function isTraitable ()
{
return false ;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo ()
{
return array ( 183 => 67 , 179 => 65 , 177 => 64 , 173 => 63 , 171 => 62 , 167 => 61 , 163 => 60 , 155 => 54 , 148 => 50 , 144 => 49 , 140 => 47 , 138 => 46 , 134 => 44 , 132 => 43 , 126 => 40 , 120 => 38 , 118 => 37 , 113 => 36 , 103 => 30 , 99 => 29 , 91 => 25 , 80 => 18 , 74 => 15 , 67 => 11 , 61 => 8 , 57 => 7 , 53 => 6 , 49 => 5 , 43 => 1 ,);
}
public function getSourceContext ()
{
return new Source ( "<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"BlogPosting\",
\"headline\": \"{{ news.title }}\",
\"alternativeHeadline\": \"{{ news.subtitle|striptags }}\",
\"datePublished\": \"{{ news.publishDate|date('c') }}\",
\"dateModified\": \"{{ news.updatedAt|date('c') }}\",
\"author\": {
\"@type\": \"Organization\",
\"name\": \"{{ sitename }}\"
},
\"publisher\": {
\"@type\": \"Organization\",
\"name\": \"{{ sitename }}\",
\"logo\": {
\"@type\": \"ImageObject\",
\"url\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120) }}\",
\"width\": 560,
\"height\": 120
}
},
\"image\": {
\"@type\": \"ImageObject\",
\"url\": \"{{ siteurl }}{{ imageCache('/userfiles/images/news/' ~ news.image, 'zoomCrop', 800, 600) }}\",
\"width\": 800,
\"height\": 600
},
\"description\": \"{{ news.excerpt|raw|striptags }}\",
\"articleBody\": \"{{ news.content|replace({'\\n': ' ', '\\r': ' '})|striptags }}\"
}
</script>
<div class=\"page-hero page-hero--themed page-hero--no-bg page-hero--fade-out news-article__hero\">
<div class=\"container\">
<div class=\"page-hero__content {% if news.image == NULL %}!col-span-12{% endif %}\">
{{- breadcrumbs(news, domCheckIgnore(app.request.pathinfo) ) -}}
<p class=\"text-sm mb-2\">{{ news.createdAt | date('d F Y') }}</p>
<h1 class=\"page-hero__title\">
{{ allowInlineEditor(news, 'title')|raw }}
</h1>
<div class=\"page-hero__subtitle\">
{{ allowInlineEditor(news, 'subtitle')|raw -}}
</div>
</div>
{% if news.image %}
<div class=\"page-hero__image\">
<img
src=\"{{ imageCache('/' ~ news.getFullImagePath, 'zoomCrop', 1700, 700) }}\"
alt=\"{{ news.title }}\"
>
</div>
{% endif %}
</div>
</div>
</div>
<article class=\"news-article\">
<div class=\"container\">
<div class=\"news-article__content cms-area\">
{{ news.isActive and news.publishDate <= date() ? '' : '<h2>PREVIEW - Article not active</h2>' }}
{{ allowInlineEditor(news, 'content')|raw }}
{% if news.ctaText and news.ctaLink %}
<a href=\"{{ news.ctaLink }}\" class=\"button mt-10\">
{{- news.ctaText -}}
</a>
{% endif %}
</div>
</div>
</article>
", "@theme/news/embedNewsArticle.html.twig" , "/var/www/html/t/taurushr/templates/themes/base/news/embedNewsArticle.html.twig" );
}
}