diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/admin/news.phtml | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/admin/news.phtml')
| -rw-r--r-- | views/admin/news.phtml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/views/admin/news.phtml b/views/admin/news.phtml new file mode 100644 index 0000000..aceb183 --- /dev/null +++ b/views/admin/news.phtml @@ -0,0 +1,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'
+); ?>
\ No newline at end of file |
