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

templates/themes/base/news/embedNewsArticle.html.twig line 1

Open in your IDE?
  1. <script type="application/ld+json">
  2.     {
  3.         "@context": "https://schema.org",
  4.         "@type": "BlogPosting",
  5.         "headline": "{{ news.title }}",
  6.         "alternativeHeadline": "{{ news.subtitle|striptags }}",
  7.         "datePublished": "{{ news.publishDate|date('c') }}",
  8.         "dateModified": "{{ news.updatedAt|date('c') }}",
  9.         "author": {
  10.             "@type": "Organization",
  11.             "name": "{{ sitename }}"
  12.         },
  13.         "publisher": {
  14.             "@type": "Organization",
  15.             "name": "{{ sitename }}",
  16.             "logo": {
  17.                 "@type": "ImageObject",
  18.                 "url": "{{ siteurl }}{{ imageCache(asset('build/images/logo.png'), 'cropResize', 560, 120)  }}",
  19.                 "width": 560,
  20.                 "height": 120
  21.             }
  22.         },
  23.         "image": {
  24.             "@type": "ImageObject",
  25.             "url": "{{ siteurl }}{{ imageCache('/userfiles/images/news/' ~ news.image, 'zoomCrop', 800, 600) }}",
  26.             "width": 800,
  27.             "height": 600
  28.         },
  29.         "description": "{{ news.excerpt|raw|striptags }}",
  30.         "articleBody": "{{ news.content|replace({'\n': ' ', '\r': ' '})|striptags }}"
  31.     }
  32. </script>
  33. <div class="page-hero page-hero--themed page-hero--no-bg page-hero--fade-out news-article__hero">
  34.   <div class="container">
  35.     <div class="page-hero__content {% if news.image == NULL %}!col-span-12{% endif %}">
  36.       {{- breadcrumbs(news, domCheckIgnore(app.request.pathinfo) ) -}}
  37.       <p class="text-sm mb-2">{{ news.createdAt | date('d F Y') }}</p>
  38.       <h1 class="page-hero__title">
  39.         {{ allowInlineEditor(news, 'title')|raw }}
  40.       </h1>
  41.       <div class="page-hero__subtitle">
  42.         {{ allowInlineEditor(news, 'subtitle')|raw -}}
  43.       </div>
  44.     </div>
  45.     {% if news.image %}
  46.       <div class="page-hero__image">
  47.         <img
  48.           src="{{ imageCache('/' ~ news.getFullImagePath, 'zoomCrop', 1700, 700) }}"
  49.           alt="{{ news.title }}"
  50.         >
  51.       </div>
  52.     {% endif %}
  53.     </div>
  54.   </div>
  55. </div>
  56. <article class="news-article">
  57.   <div class="container">
  58.     <div class="news-article__content cms-area">
  59.       {{ news.isActive and news.publishDate <= date() ? '' : '<h2>PREVIEW - Article not active</h2>' }}
  60.       {{ allowInlineEditor(news, 'content')|raw }}
  61.       {% if news.ctaText and news.ctaLink %}
  62.         <a href="{{ news.ctaLink }}" class="button mt-10">
  63.           {{- news.ctaText -}}
  64.         </a>
  65.       {% endif %}
  66.     </div>
  67.   </div>
  68. </article>