Esempio n. 1
0
" 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;
    ?>
        <a class="button" href="<?php 
    echo rex_getUrl('', '');
    ?>
">zurück</a>
    </div>
    <?php 
} else {
    $newsList = rex_asd_news::getNewsByCategory('REX_VALUE[1]');
    $pager = new rex_asd_pager($REX['ADDON']['asd_news']['config']['max-per-page'], 'page');
    $pager->setRowCount(count($newsList));
    $newsList = $pager->filterList($newsList);
    foreach ($newsList as $news) {
        /** @var rex_asd_news $news */
        $title = $news->getValue('title');
        $url = $news->getUrl();
        $id = $news->getValue('id');
        $date = $news->getPublishDate();
        ?>
        <div class="asd-news" id="news-<?php 
        echo $id;
        ?>
">
            <h3><?php