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

var/cache/dev/twig/30/30586fb7aa3fd74266a50186274997ca.php line 81

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @theme/news/embedNewsArticle.html.twig */
  14. class __TwigTemplate_14067900e85fe791261d014ca81ce51f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/news/embedNewsArticle.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/news/embedNewsArticle.html.twig"));
  33.         // line 1
  34.         echo "<script type=\"application/ld+json\">
  35.     {
  36.         \"@context\": \"https://schema.org\",
  37.         \"@type\": \"BlogPosting\",
  38.         \"headline\": \"";
  39.         // line 5
  40.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  41.         echo "\",
  42.         \"alternativeHeadline\": \"";
  43.         // line 6
  44.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse6)), "html"nulltrue);
  45.         echo "\",
  46.         \"datePublished\": \"";
  47.         // line 7
  48.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse7), "c"), "html"nulltrue);
  49.         echo "\",
  50.         \"dateModified\": \"";
  51.         // line 8
  52.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse8), "c"), "html"nulltrue);
  53.         echo "\",
  54.         \"author\": {
  55.             \"@type\": \"Organization\",
  56.             \"name\": \"";
  57.         // line 11
  58.         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"nulltrue);
  59.         echo "\"
  60.         },
  61.         \"publisher\": {
  62.             \"@type\": \"Organization\",
  63.             \"name\": \"";
  64.         // line 15
  65.         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"nulltrue);
  66.         echo "\",
  67.             \"logo\": {
  68.                 \"@type\": \"ImageObject\",
  69.                 \"url\": \"";
  70.         // line 18
  71.         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"nulltrue);
  72.         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"560120), "html"nulltrue);
  73.         echo "\",
  74.                 \"width\": 560,
  75.                 \"height\": 120
  76.             }
  77.         },
  78.         \"image\": {
  79.             \"@type\": \"ImageObject\",
  80.             \"url\": \"";
  81.         // line 25
  82.         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"nulltrue);
  83.         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"falsefalsefalse25)), "zoomCrop"800600), "html"nulltrue);
  84.         echo "\",
  85.             \"width\": 800,
  86.             \"height\": 600
  87.         },
  88.         \"description\": \"";
  89.         // line 29
  90.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse29)), "html"nulltrue);
  91.         echo "\",
  92.         \"articleBody\": \"";
  93.         // line 30
  94.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse30), ["
  95. => " "" " => " "])), "html"nulltrue);
  96.         echo "\"
  97.     }
  98. </script>
  99. <div class=\"page-hero page-hero--themed page-hero--no-bg page-hero--fade-out news-article__hero\">
  100.   <div class=\"container\">
  101.     <div class=\"page-hero__content ";
  102.         // line 36
  103.         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"falsefalsefalse36) == null)) {
  104.             echo "!col-span-12";
  105.         }
  106.         echo "\">";
  107.         // line 37
  108.         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->sourcetwig_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"falsefalsefalse37), "pathinfo", [], "any"falsefalsefalse37))), "html"nulltrue);
  109.         // line 38
  110.         echo "<p class=\"text-sm mb-2\">";
  111.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse38), "d F Y"), "html"nulltrue);
  112.         echo "</p>
  113.       <h1 class=\"page-hero__title\">
  114.         ";
  115.         // line 40
  116.         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");
  117.         echo "
  118.       </h1>
  119.       <div class=\"page-hero__subtitle\">
  120.         ";
  121.         // line 43
  122.         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");
  123.         // line 44
  124.         echo "</div>
  125.     </div>
  126.     ";
  127.         // line 46
  128.         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"falsefalsefalse46)) {
  129.             // line 47
  130.             echo "      <div class=\"page-hero__image\">
  131.         <img
  132.           src=\"";
  133.             // line 49
  134.             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"falsefalsefalse49)), "zoomCrop"1700700), "html"nulltrue);
  135.             echo "\"
  136.           alt=\"";
  137.             // line 50
  138.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse50), "html"nulltrue);
  139.             echo "\"
  140.         >
  141.       </div>
  142.     ";
  143.         }
  144.         // line 54
  145.         echo "    </div>
  146.   </div>
  147. </div>
  148. <article class=\"news-article\">
  149.   <div class=\"container\">
  150.     <div class=\"news-article__content cms-area\">
  151.       ";
  152.         // line 60
  153.         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"falsefalsefalse60) && (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"falsefalsefalse60) <= twig_date_converter($this->env)))) ? ("") : ("<h2>PREVIEW - Article not active</h2>"));
  154.         echo "
  155.       ";
  156.         // line 61
  157.         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");
  158.         echo "
  159.       ";
  160.         // line 62
  161.         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"falsefalsefalse62) && 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"falsefalsefalse62))) {
  162.             // line 63
  163.             echo "        <a href=\"";
  164.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse63), "html"nulltrue);
  165.             echo "\" class=\"button mt-10\">";
  166.             // line 64
  167.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse64), "html"nulltrue);
  168.             // line 65
  169.             echo "</a>
  170.       ";
  171.         }
  172.         // line 67
  173.         echo "    </div>
  174.   </div>
  175. </article>
  176. ";
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName()
  186.     {
  187.         return "@theme/news/embedNewsArticle.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo()
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("<script type=\"application/ld+json\">
  206.     {
  207.         \"@context\": \"https://schema.org\",
  208.         \"@type\": \"BlogPosting\",
  209.         \"headline\": \"{{ news.title }}\",
  210.         \"alternativeHeadline\": \"{{ news.subtitle|striptags }}\",
  211.         \"datePublished\": \"{{ news.publishDate|date('c') }}\",
  212.         \"dateModified\": \"{{ news.updatedAt|date('c') }}\",
  213.         \"author\": {
  214.             \"@type\": \"Organization\",
  215.             \"name\": \"{{ sitename }}\"
  216.         },
  217.         \"publisher\": {
  218.             \"@type\": \"Organization\",
  219.             \"name\": \"{{ sitename }}\",
  220.             \"logo\": {
  221.                 \"@type\": \"ImageObject\",
  222.                 \"url\": \"{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120)  }}\",
  223.                 \"width\": 560,
  224.                 \"height\": 120
  225.             }
  226.         },
  227.         \"image\": {
  228.             \"@type\": \"ImageObject\",
  229.             \"url\": \"{{ siteurl }}{{ imageCache('/userfiles/images/news/' ~ news.image, 'zoomCrop', 800, 600) }}\",
  230.             \"width\": 800,
  231.             \"height\": 600
  232.         },
  233.         \"description\": \"{{ news.excerpt|raw|striptags }}\",
  234.         \"articleBody\": \"{{ news.content|replace({'\\n': ' ', '\\r': ' '})|striptags }}\"
  235.     }
  236. </script>
  237. <div class=\"page-hero page-hero--themed page-hero--no-bg page-hero--fade-out news-article__hero\">
  238.   <div class=\"container\">
  239.     <div class=\"page-hero__content {% if news.image == NULL %}!col-span-12{% endif %}\">
  240.       {{- breadcrumbs(news, domCheckIgnore(app.request.pathinfo) ) -}}
  241.       <p class=\"text-sm mb-2\">{{ news.createdAt | date('d F Y') }}</p>
  242.       <h1 class=\"page-hero__title\">
  243.         {{ allowInlineEditor(news, 'title')|raw }}
  244.       </h1>
  245.       <div class=\"page-hero__subtitle\">
  246.         {{ allowInlineEditor(news, 'subtitle')|raw -}}
  247.       </div>
  248.     </div>
  249.     {% if news.image %}
  250.       <div class=\"page-hero__image\">
  251.         <img
  252.           src=\"{{ imageCache('/' ~ news.getFullImagePath, 'zoomCrop', 1700, 700) }}\"
  253.           alt=\"{{ news.title }}\"
  254.         >
  255.       </div>
  256.     {% endif %}
  257.     </div>
  258.   </div>
  259. </div>
  260. <article class=\"news-article\">
  261.   <div class=\"container\">
  262.     <div class=\"news-article__content cms-area\">
  263.       {{ news.isActive and news.publishDate <= date() ? '' : '<h2>PREVIEW - Article not active</h2>' }}
  264.       {{ allowInlineEditor(news, 'content')|raw }}
  265.       {% if news.ctaText and news.ctaLink %}
  266.         <a href=\"{{ news.ctaLink }}\" class=\"button mt-10\">
  267.           {{- news.ctaText -}}
  268.         </a>
  269.       {% endif %}
  270.     </div>
  271.   </div>
  272. </article>
  273. ""@theme/news/embedNewsArticle.html.twig""/var/www/html/t/taurushr/templates/themes/base/news/embedNewsArticle.html.twig");
  274.     }
  275. }