Subversion Repositories wpShopGermany4

Rev

Rev 5150 | Rev 6484 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

        /**
         * Template für den Karteireiter "News" der Konfiguration
         */

?>

<?php if (wpsg_isSizedArray($this->view['news'])) { ?>

        <br />

        <div class="wpsg_news_wrap">
        
                <?php foreach ($this->view['news'] as $news) { ?>
                <div class="wpsg_news <?php echo ((wpsg_news::isRead($news['id']))?'wpsg_news_read':''); ?>"> 
                        
                        <h2><a target="_blank" onclick="setTimeout(function() { location.href = location.href; }, 1000); return true;" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=news&read=<?php echo rawurlencode($news['id']); ?>&noheader=1"><?php echo wpsg_hspc(wpsg_formatTimestamp($news['date'], true).' - '.$news['title']); ?></a></h2>
                
                        <div class="markRead">
                                <?php echo __('gelesen', 'wpsg'); ?> <img src="<?php echo $this->getRessourceURL('gfx/tick.png'); ?>" title="<?php echo __('gelesen', 'wpsg'); ?>" alt="<?php echo __('gelesen', 'wpsg'); ?>" />
                        </div>
                        <div class="wpsg_news_content"><?php echo wpsg_news::prepareContent($news); ?></div>
                         
                </div>
                                
                <?php } ?>
        
        </div>

<?php } else { ?>

        <p><?php echo __('Derzeit stehen keine News zum Lesen bereit.', 'wpsg'); ?>

<?php } ?>

<hr />

<?php echo wpsg_translate(__('Letzte Aktualisierung: #1# [<a href="#2#">Aktualisieren</a>]', 'wpsg'),
        ((wpsg_isSizedInt($this->get_option('wpsg_news_cache_refresh')))?wpsg_formatTimestamp(wpsg_timestamp($this->get_option('wpsg_news_cache_refresh'))):'n.A.'),
        WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=news&reload=1&noheader=1'
); ?>