templates/news_full_og.html5 line 27

Open in your IDE?
  1. <?php
  2.   if($this->width $this->height) {
  3.     #Querformatbilder
  4.     $ogimage $this->getImage($this->urlEncode($this->singleSRC), 1200630 'crop');
  5.   }else{
  6.     #Hochformatbilder
  7.     $ogimage $this->getImage($this->urlEncode($this->singleSRC), 630'proportional');
  8.   }
  9.   if($ogimage != "") {
  10.     $GLOBALS['og:image'] = $this->Environment->base $ogimage
  11.   }
  12. ?>
  13. <div class="layout_full block<?= $this->class ?>" itemscope itemtype="http://schema.org/Article">
  14.   <h1 itemprop="name"><?= $this->newsHeadline ?></h1>
  15.   <?php if ($this->hasMetaFields): ?>
  16.     <p class="info"><time datetime="<?= $this->datetime ?>" itemprop="datePublished"><?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?></p>
  17.   <?php endif; ?>
  18.   <?php if ($this->hasSubHeadline): ?>
  19.     <h2><?= $this->subHeadline ?></h2>
  20.   <?php endif; ?>
  21.   <?php if ($this->hasText): ?>
  22.     <?= $this->text ?>
  23.   <?php else: ?>
  24.     <div class="ce_text block">
  25.       <?php if (!$this->addBefore): ?>
  26.         <?= $this->teaser ?>
  27.       <?php endif; ?>
  28.       <?php if ($this->addImage): ?>
  29.         <?php $this->insert('image'$this->arrData); ?>
  30.       <?php endif; ?>
  31.       <?php if ($this->addBefore): ?>
  32.         <?= $this->teaser ?>
  33.       <?php endif; ?>
  34.     </div>
  35.   <?php endif; ?>
  36.   <?php if ($this->enclosure): ?>
  37.     <ul class="enclosure">
  38.       <?php foreach ($this->enclosure as $enclosure): ?>
  39.         <li class="download-element ext-<?= $enclosure['extension'?>">
  40.            <a href="<?= $enclosure['href'?>" title="<?= $enclosure['title'?>"><?= $enclosure['link'?> <span class="size">(<?= $enclosure['filesize'?>)</span></a>
  41.         </li>
  42.       <?php endforeach; ?>
  43.     </ul>
  44.   <?php endif; ?>
  45. </div>