templates/theme-design/news_latest_gridTextSimple.html5 line 22

Open in your IDE?
  1. <?php include('include_helper_content.html5'); ?>
  2. <?php
  3.   // $isMinimal is set by news_latest_gridTextMinimal.html5
  4.   $isFeature strpos($custom->classModified'is-featured');
  5. ?>
  6. <div class="col-12 <?php if($isFeature): ?>col-lg-8<?php else: ?>col-md-6 col-lg-4<?php endif ?>">
  7.   <div class="c-newsTeaser <?= $custom->classModified ?>">
  8.     <?php if ($this->addImage): ?>
  9.     <div class="c-newsTeaser__media">
  10.       <div class="u-unroot@xs-down">
  11.         <?php $this->insert('image'$this->arrData); ?>
  12.       </div>
  13.     </div>
  14.     <?php endif; ?>
  15.     <div class="c-newsTeaser__body">
  16.       <div class="c-newsTeaser__text">
  17.         <?php if ($this->hasMetaFields): ?>
  18.         <div class="c-newsTeaser__meta">
  19.           <strong><?= $this->author ?>&ensp;ยท&ensp;</strong><time datetime="<?= $this->datetime ?>" itemprop="datePublished"><?= $this->parseDate('d. F Y'$this->time?></time>
  20.         </div>
  21.         <?php endif; ?>
  22.     
  23.         <?php if($isFeature): ?><h3><?= $this->linkHeadline ?></h3><?php else: ?><h4><?= $this->linkHeadline ?></h4><?php endif ?>
  24.         <?php if(!isset($isMinimal)): ?>
  25.         <div class="c-newsTeaser__description" itemprop="description"><?= $this->teaser ?></div>
  26.         <?php endif ?>
  27.         <?php if ($this->hasText || $this->hasTeaser): ?>
  28.           <p><a class="o-text-link" href="<?= $this->link ?>"><?= $GLOBALS['TL_LANG']['MSC']['more'?></a></p>
  29.         <?php endif; ?>
  30.       </div>
  31.     </div>
  32.   </div>
  33. </div>