templates/theme-design/news_latest_gridCardBackground.html5 line 31

Open in your IDE?
  1. <?php include('include_helper_content.html5'); ?>
  2. <?php
  3.   $isFeature strpos($custom->classModified'is-featured');
  4. ?>
  5. <div class="col-12 <?php if($isFeature): ?>col-lg-8 col-xl-6<?php else: ?>col-md-6 col-lg-4 col-xl-3<?php endif ?>">
  6.   <div class="c-cardBackground <?= $custom->classModified ?>" data-theme="light">
  7.     <?php if ($this->addImage): ?>
  8.     <div class="c-cardBackground__media">
  9.       <?php $this->insert('image'$this->arrData); ?>
  10.     </div>
  11.     <?php endif; ?>
  12.     <div class="c-cardBackground__body">
  13.       <div class="c-cardBackground__text">
  14.         <?php if($isFeature): ?><h3><?= $this->linkHeadline ?></h3><?php else: ?><h4><?= $this->linkHeadline ?></h4><?php endif ?>
  15.         <?php if ($this->hasText || $this->hasTeaser): ?>
  16.         <p><a class="o-text-link" href="<?= $this->link ?>"><?= $GLOBALS['TL_LANG']['MSC']['more'?></a></p>
  17.         <?php endif; ?>
  18.       </div>
  19.       <?php if ($this->hasText || $this->hasTeaser): ?>
  20.       <a class="c-cardBackground__link" href="<?= $this->link ?>"></a>
  21.       <?php endif; ?>
  22.     </div>
  23.     <?php if ($this->hasMetaFields): ?>
  24.     <div class="c-cardBackground__footer">
  25.       <strong><?= $this->author ?>&ensp;ยท&ensp;</strong><time datetime="<?= $this->datetime ?>" itemprop="datePublished"><?= $this->parseDate('d.m.Y'$this->time?></time>
  26.     </div>
  27.     <?php endif; ?>
  28.   </div>
  29. </div>