summaryrefslogtreecommitdiff
path: root/views/admin/news.phtml
blob: aceb183386e638c96ee55b9ad640cdc4993064d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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'
); ?>