aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-06-19 20:13:31 +0200
committerArthurHoaro <arthur@hoa.ro>2015-06-19 20:23:58 +0200
commit4de71445d3d174b5ef3462a1c4470a95cc00017e (patch)
treea41380398d1af5a190753e518cf7f4b990f0f755
parentcbecab773526b0c39f3cffa1d4595b5caa781bda (diff)
downloadShaarli-4de71445d3d174b5ef3462a1c4470a95cc00017e.tar.gz
Shaarli-4de71445d3d174b5ef3462a1c4470a95cc00017e.tar.zst
Shaarli-4de71445d3d174b5ef3462a1c4470a95cc00017e.zip
Daily page: date format in template
It only concerns the date of the day in the main title. Fixes #182 Note that daily RSS feed is not generated through templates. Date are still hard formatted in that case.
-rw-r--r--index.php2
-rw-r--r--tpl/daily.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 9561f63b..7e94fd24 100644
--- a/index.php
+++ b/index.php
@@ -1228,7 +1228,7 @@ function showDaily()
1228 $PAGE->assign('linksToDisplay',$linksToDisplay); 1228 $PAGE->assign('linksToDisplay',$linksToDisplay);
1229 $PAGE->assign('linkcount',count($LINKSDB)); 1229 $PAGE->assign('linkcount',count($LINKSDB));
1230 $PAGE->assign('cols', $columns); 1230 $PAGE->assign('cols', $columns);
1231 $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000')))); 1231 $PAGE->assign('day',linkdate2timestamp($day.'_000000'));
1232 $PAGE->assign('previousday',$previousday); 1232 $PAGE->assign('previousday',$previousday);
1233 $PAGE->assign('nextday',$nextday); 1233 $PAGE->assign('nextday',$nextday);
1234 $PAGE->renderPage('daily'); 1234 $PAGE->renderPage('daily');
diff --git a/tpl/daily.html b/tpl/daily.html
index 919795bb..0f762490 100644
--- a/tpl/daily.html
+++ b/tpl/daily.html
@@ -13,7 +13,7 @@
13 <a href="?do=dailyrss" title="1 RSS entry per day"><img src="images/feed-icon-14x14.png#" alt="rss_feed">Daily RSS Feed</a> 13 <a href="?do=dailyrss" title="1 RSS entry per day"><img src="images/feed-icon-14x14.png#" alt="rss_feed">Daily RSS Feed</a>
14 </div> 14 </div>
15 <div class="dailyTitle"><img src="../images/floral_left.png" width="51" height="50" class="nomobile" alt="floral_left"> The Daily Shaarli <img src="../images/floral_right.png" width="51" height="50" class="nomobile" alt="floral_right"></div> 15 <div class="dailyTitle"><img src="../images/floral_left.png" width="51" height="50" class="nomobile" alt="floral_left"> The Daily Shaarli <img src="../images/floral_right.png" width="51" height="50" class="nomobile" alt="floral_right"></div>
16 <div class="dailyDate"><span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span> {$day} <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span></div> 16 <div class="dailyDate"><span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span> {function="strftime('%A %d, %B %Y', $day)"} <span class="nomobile">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</span></div>
17 <div class="clear"></div> 17 <div class="clear"></div>
18 18
19 {if="$linksToDisplay"} 19 {if="$linksToDisplay"}