Line 13... |
Line 13... |
13 |
<?php foreach ($this->view['news'] as $news) { ?>
|
13 |
<?php foreach ($this->view['news'] as $news) { ?>
|
14 |
<div class="wpsg_news <?php echo ((wpsg_news::isRead($news['id']))?'wpsg_news_read':''); ?>">
|
14 |
<div class="wpsg_news <?php echo ((wpsg_news::isRead($news['id']))?'wpsg_news_read':''); ?>">
|
15 |
|
15 |
|
16 |
<?php
|
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>';
|
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'));
|
18 |
echo wpsg_drawForm_AdminboxStart(__($temp, 'wpsg'), '', array('panel-body-class' => ((wpsg_news::isRead($news['id']))?'bg-success':'bg-info')));
|
19 |
|
19 |
|
20 |
?>
|
20 |
?>
|
21 |
|
21 |
|
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>
|
- |
|
25 |
<div class="wpsg_news_content"><?php echo wpsg_news::prepareContent($news); ?></div>
|
22 |
<div class="wpsg_news_content"><?php echo wpsg_news::prepareContent($news); ?></div>
|
26 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
23 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
27 |
|
24 |
|
28 |
</div>
|
25 |
</div>
|
29 |
|
26 |
|