Merge pull request #100 from virtualtam/daily-timestamp

daily: display link timestamps
This commit is contained in:
nodiscc 2015-01-26 13:40:37 +01:00
commit 852613dece
3 changed files with 10 additions and 0 deletions

View file

@ -812,6 +812,10 @@ div.dailyEntryTitle {
font-weight: bold; font-weight: bold;
} }
div.dailyEntryLinkdate {
font-size: 8pt;
}
div.dailyEntryThumbnail { div.dailyEntryThumbnail {
width: 100%; width: 100%;
text-align: center; text-align: center;

View file

@ -1151,6 +1151,7 @@ function showDaily()
$linksToDisplay[$key]['taglist']=$taglist; $linksToDisplay[$key]['taglist']=$taglist;
$linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))); $linksToDisplay[$key]['formatedDescription']=nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description']))));
$linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']); $linksToDisplay[$key]['thumbnail'] = thumbnail($link['url']);
$linksToDisplay[$key]['localdate'] = linkdate2locale($link['linkdate']);
} }
/* We need to spread the articles on 3 columns. /* We need to spread the articles on 3 columns.

View file

@ -28,6 +28,11 @@
<img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink"> <img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink">
</a> </a>
</div> </div>
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
<div class="dailyEntryLinkdate">
<a href="?{$link.linkdate|smallHash}">{$link.localdate}</a>
</div>
{/if}
{if="$link.tags"} {if="$link.tags"}
<div class="dailyEntryTags"> <div class="dailyEntryTags">
{loop="link.taglist"} {loop="link.taglist"}