system/modules/pct_theme_templates/templates/news/news_newsteaser.html5 line 15

Open in your IDE?
  1. <?php 
  2. $GLOBALS['TL_CSS'][] = \Contao\Config::get('uploadPath').'/cto_layout/css/news/news_newsteaser.css|static';
  3. $hasText $this->hasText;
  4. ?>
  5. <div class="newsteaser autogrid one_third block <?php echo $this->class?>" itemscope itemtype="http://schema.org/Article">
  6.     <?php if ($this->addImage): ?>
  7.     <div class="image_container<?php echo $this->floatClass?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin $this->float); ?>"<?php endif; ?>>
  8.         <?php if ($hasText): ?><a href="<?php echo $this->link?><?php echo $this->attributes?> title="<?php echo $this->alt?><?php if($this->target && $this->url): ?>target="_blank" <?php endif; ?>><?php endif; ?>
  9.             <?php $this->insert('picture_default'$this->picture); ?>
  10.             <span class="news-overlay"><i class="fa fa-plus"></i></span>
  11.         <?php if ($hasText): ?></a><?php endif; ?>
  12.         <?php if ($this->date): ?>
  13.         <div class="date" itemprop="datePublished">
  14.             <span class="day"><?php echo $this->parseDate("d"$this->timestamp);?></span>
  15.             <span class="month"><?php echo $this->parseDate("M"$this->timestamp);?></span>
  16.             <span class="year"><?php echo $this->parseDate("Y"$this->timestamp);?></span>
  17.         </div>
  18.         <?php endif; ?>
  19.         <div class="info">
  20.             <?php if ($this->author): ?>
  21.             <span class="author"><?php echo $this->author?></span>
  22.             <?php endif; ?>
  23.             <?php if ($this->commentCount): ?>
  24.             <span class="comments"><?php echo $this->numberOfComments?></span>
  25.             <?php endif; ?>
  26.         </div>
  27.     </div>
  28.     <?php endif; ?>
  29.     <div class="content">
  30.         <div class="info-v2"><?php if ($this->date): ?><div class="date-v2"><?php echo $this->date?></div><?php endif; ?><?php if ($this->author): ?><div class="author-v2"><?php echo $this->author?></div><?php endif; ?><?php if ($this->commentCount): ?><div class="comments-v2"><?php echo $this->commentCount?></div><?php endif; ?></div>
  31.         <div class="h6"><?php echo $hasText $this->linkHeadline $this->newsHeadline?></div>
  32.         <div class="teaser" itemprop="description"><?php echo $this->teaser?></div>
  33.         <div class="info-v3"><?php if ($this->date): ?><div class="date-v3"><?php echo $this->date?></div><?php endif; ?><?php if ($this->author): ?><div class="author-v3"><?php echo $this->author?></div><?php endif; ?><?php if ($this->commentCount): ?><div class="comments-v3"><?php echo $this->commentCount?></div><?php endif; ?></div>
  34.     </div>
  35. </div>