summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-16 13:26:03 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-16 13:26:03 +0200
commit1154465787112ff153191222edfdc70857d0e1b0 (patch)
treeda52ed59a86cb3421e65bd739de3ff6f3e5cdf74 /templates
parentd6fd252bb449ef134518ae64226a3de2a09578b2 (diff)
parent9132f6a27d8f26bfbf333a3d6d36361d1e0a2fa3 (diff)
added and formatted the feedtimestamp properly
Diffstat (limited to 'templates')
-rw-r--r--templates/part.items.php3
-rw-r--r--templates/part.nofeeds.php22
2 files changed, 25 insertions, 0 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index da4855dc4..3d9c366d6 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -40,6 +40,9 @@ foreach($items as $item) {
echo '</ul>';
echo '</div>';
+ echo '<h2 class="item_date"><time class="timeago" datetime="' .
+ date('c', $item->getDate()) . '">' . date('F j, Y, g:i a', $item->getDate()) . '</time>' . '</h2>';
+
echo '<h1 class="item_title"><a target="_blank" href="' . $item->getUrl() . '">' . $item->getTitle() . '</a></h1>';
if(trim($item->getAuthor()) == ''){
diff --git a/templates/part.nofeeds.php b/templates/part.nofeeds.php
index c1e639321..99ae15362 100644
--- a/templates/part.nofeeds.php
+++ b/templates/part.nofeeds.php
@@ -2,6 +2,28 @@
<div id="firstrun">
<?php echo $l->t('You have no feeds in your reader.') ?>
<div id="selections">
+ <div id="addfeed_dialog_firstrun">
+ <table width="200px" style="border: 2px;">
+ <tr>
+ <td>Add new feed</td>
+ <td>
+ <div class="add_parentfolder">
+ <button id="dropdownBtn" onclick="News.DropDownMenu.dropdown(this)">
+ <?php echo $l->t('Choose folder'); ?>
+ </button>
+ <input id="inputfolderid" type="hidden" name="folderid" value="0" />
+ <ul class="menu" id="dropdownmenu">
+ <?php echo $this->inc("part.folderlist"); ?>
+ </ul>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td><input type="text" id="feed_add_url" placeholder="<?php echo $l->t('URL'); ?>" class="news_input" /></td>
+ <td><input type="submit" value="<?php echo $l->t('Add feed'); ?>" onclick="News.Feed.submit(this)" id="feed_add_submit" /></td>
+ </tr>
+ </table>
+ </div>
<input type="button" id="addfeedbtn" value="<?php echo $l->t('Add feed') ?>" /><br />
<input type="button" id="importopmlbtn" value="<?php echo $l->t('Import OPML') ?>" />
</div>