system/modules/pct_theme_templates/templates/news/news_newsreader.html5 line 2

Open in your IDE?
  1. <?php // generate structured data
  2. \PCT\SEO::writeJSON($this);
  3. $GLOBALS['TL_CSS'][] = \Contao\Config::get('uploadPath').'/cto_layout/css/news/news_newsreader.css|static';
  4. ?>
  5. <div class="newsreader block <?php echo $this->class?>" itemscope itemtype="http://schema.org/Article">
  6. <?php if ($this->hasMetaFields): ?>
  7. <div class="info"><?php if ($this->date): ?><div class="date" itemprop="datePublished"><?php echo $this->date?></div><?php endif; ?><?php if ($this->author): ?><div class="author"><?php echo $this->author?></div><?php endif; ?><?php if ($this->commentCount): ?><div class="comments"><?php echo $this->commentCount?></div><?php endif; ?></div>
  8. <?php endif; ?>
  9. <?php if ($this->hasSubHeadline): ?>
  10. <?php endif; ?>
  11. <?php echo $this->text?>
  12. <?php if ($this->enclosure): ?>
  13. <div class="enclosure">
  14. <?php foreach ($this->enclosure as $enclosure): ?>
  15. <p><img src="<?php echo $enclosure['icon']; ?>" width="18" height="18" alt="<?php echo $enclosure['title']; ?>" class="mime_icon" /> <a href="<?php echo $enclosure['href']; ?>" title="<?php echo $enclosure['title']; ?>"><?php echo $enclosure['link']; ?> <span class="size">(<?php echo $enclosure['filesize']; ?>)</span></a></p>
  16. <?php endforeach; ?>
  17. </div>
  18. <?php endif; ?>
  19. </div>