Subversion Repositories wpShopGermany4

Rev

Rev 6484 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4799 daniel 1
<?php
2
 
3
	/**
4
	 * Template für den Karteireiter "News" der Konfiguration
5
	 */
6
 
7
?>
8
 
9
<?php if (wpsg_isSizedArray($this->view['news'])) { ?>
6484 daniel 10
 
4799 daniel 11
	<div class="wpsg_news_wrap">
12
 
13
		<?php foreach ($this->view['news'] as $news) { ?>
14
		<div class="wpsg_news <?php echo ((wpsg_news::isRead($news['id']))?'wpsg_news_read':''); ?>">
15
 
6005 hartmut 16
			<?php
17
			$temp = '<a target="_blank" onclick="setTimeout(function() { location.href = location.href; }, 1000); return true;" href="'.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=news&read='.rawurlencode($news['id']).'&noheader=1">'.wpsg_hspc(wpsg_formatTimestamp($news['date'], true).' - '.$news['title']).'</a>';
6526 daniel 18
			echo wpsg_drawForm_AdminboxStart(__($temp, 'wpsg'), '', array('panel-body-class' => ((wpsg_news::isRead($news['id']))?'bg-success':'bg-info')));
6005 hartmut 19
 
20
			?>
6526 daniel 21
 
4799 daniel 22
			<div class="wpsg_news_content"><?php echo wpsg_news::prepareContent($news); ?></div>
6005 hartmut 23
			<?php echo wpsg_drawForm_AdminboxEnd(); ?>
4799 daniel 24
 
25
		</div>
26
 
27
		<?php } ?>
28
 
29
	</div>
30
 
31
<?php } else { ?>
32
 
33
	<p><?php echo __('Derzeit stehen keine News zum Lesen bereit.', 'wpsg'); ?>
34
 
35
<?php } ?>
36
 
37
<hr />
38
 
39
<?php echo wpsg_translate(__('Letzte Aktualisierung: #1# [<a href="#2#">Aktualisieren</a>]', 'wpsg'),
40
	((wpsg_isSizedInt($this->get_option('wpsg_news_cache_refresh')))?wpsg_formatTimestamp(wpsg_timestamp($this->get_option('wpsg_news_cache_refresh'))):'n.A.'),
41
	WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=news&reload=1&noheader=1'
42
); ?>