<?php $news_id = rex_asd_news::getNewsId(); if ($news_id) { /** @var rex_asd_news $news */ $news = rex_asd_news::getNewsById($news_id); $url = $news->getUrl(); $text = $news->getValue('asd_text'); $date = $news->getPublishDate(); $title = $news->getValue('title'); $id = $news->getValue('id'); $news->replaceMetaTags(array('keywords' => '', 'og:image' => $news->getImage(), 'og:published_time' => $date->format('c'), 'og:title' => $news->getValue('title'))); ?> <div class="asd-news" id="news-<?php echo $id; ?> "> <h3><?php echo $title; ?> </h3> <img src="<?php echo $news->getImage(); ?> " alt="" class="news-picture"> <span class="asd-news-date"><?php echo $date->format('d. ') . $news->getMonthName() . $date->format(' Y H:i'); ?> </span> <?php echo $text;