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>';
|
|
|
18 |
echo wpsg_drawForm_AdminboxStart(__($temp, 'wpsg'));
|
|
|
19 |
|
|
|
20 |
?>
|
4799 |
daniel |
21 |
|
4803 |
daniel |
22 |
<div class="markRead">
|
|
|
23 |
<?php echo __('gelesen', 'wpsg'); ?> <img src="<?php echo $this->getRessourceURL('gfx/tick.png'); ?>" title="<?php echo __('gelesen', 'wpsg'); ?>" alt="<?php echo __('gelesen', 'wpsg'); ?>" />
|
|
|
24 |
</div>
|
4799 |
daniel |
25 |
<div class="wpsg_news_content"><?php echo wpsg_news::prepareContent($news); ?></div>
|
6005 |
hartmut |
26 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
4799 |
daniel |
27 |
|
|
|
28 |
</div>
|
|
|
29 |
|
|
|
30 |
<?php } ?>
|
|
|
31 |
|
|
|
32 |
</div>
|
|
|
33 |
|
|
|
34 |
<?php } else { ?>
|
|
|
35 |
|
|
|
36 |
<p><?php echo __('Derzeit stehen keine News zum Lesen bereit.', 'wpsg'); ?>
|
|
|
37 |
|
|
|
38 |
<?php } ?>
|
|
|
39 |
|
|
|
40 |
<hr />
|
|
|
41 |
|
|
|
42 |
<?php echo wpsg_translate(__('Letzte Aktualisierung: #1# [<a href="#2#">Aktualisieren</a>]', 'wpsg'),
|
|
|
43 |
((wpsg_isSizedInt($this->get_option('wpsg_news_cache_refresh')))?wpsg_formatTimestamp(wpsg_timestamp($this->get_option('wpsg_news_cache_refresh'))):'n.A.'),
|
|
|
44 |
WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=news&reload=1&noheader=1'
|
|
|
45 |
); ?>
|