[geeklog-hg] geeklog: Tweaks to make Geeklog output compliant with HTML5 (fea...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jul 10 19:42:15 EDT 2014
changeset 9535:e4b47d50bfd7
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e4b47d50bfd7
user: Tom
date: Thu Jul 10 19:41:44 2014 -0400
description:
Tweaks to make Geeklog output compliant with HTML5 (feature request #0001764)
diffstat:
public_html/lib-common.php | 2 ++
system/classes/story.class.php | 7 +++++++
system/lib-story.php | 5 +++--
3 files changed, 12 insertions(+), 2 deletions(-)
diffs (69 lines):
diff -r 18fa292b41d3 -r e4b47d50bfd7 public_html/lib-common.php
--- a/public_html/lib-common.php Thu Jul 10 19:21:36 2014 -0400
+++ b/public_html/lib-common.php Thu Jul 10 19:41:44 2014 -0400
@@ -1186,6 +1186,7 @@
$header->set_var( 'site_logo', $_CONF['layout_url']
. '/images/logo.' . $_IMAGE_TYPE );
$header->set_var( 'theme', $_CONF['theme'] );
+ $header->set_var( 'datetime_html5', strftime('%FT%T', $curtime[1]) );
$header->set_var('charset', COM_getCharset());
$header->set_var('direction', $LANG_DIRECTION);
@@ -1877,6 +1878,7 @@
$header->set_var( 'site_logo', $_CONF['layout_url']
. '/images/logo.' . $_IMAGE_TYPE );
$header->set_var( 'theme', $_CONF['theme'] );
+ $header->set_var( 'datetime_html5', strftime('%FT%T', $curtime[1]) );
$header->set_var('charset', COM_getCharset());
$header->set_var('direction', $LANG_DIRECTION);
diff -r 18fa292b41d3 -r e4b47d50bfd7 system/classes/story.class.php
--- a/system/classes/story.class.php Thu Jul 10 19:21:36 2014 -0400
+++ b/system/classes/story.class.php Thu Jul 10 19:41:44 2014 -0400
@@ -1802,10 +1802,17 @@
$return = COM_getUserDateTimeFormat($this->_date);
$return = $return[0];
+
break;
+
+ case 'datetime':
+ $return = strftime('%FT%T', $this->_date);
+
+ break;
case 'unixdate':
$return = $this->_date;
+
break;
case 'hits':
diff -r 18fa292b41d3 -r e4b47d50bfd7 system/lib-story.php
--- a/system/lib-story.php Thu Jul 10 19:21:36 2014 -0400
+++ b/system/lib-story.php Thu Jul 10 19:41:44 2014 -0400
@@ -104,6 +104,7 @@
// Date formatting set by user therefore cannot be cached
$article->set_var('story_date', $story->DisplayElements('date'), false, true);
+ $article->set_var('story_datetime', $story->DisplayElements('datetime'), false, true );
// Story views increase with every visit so cannot be cached
if( $_CONF['hideviewscount'] != 1 ) {
@@ -126,7 +127,7 @@
COM_createLink(
$topicimage,
$topicurl,
- array('rel'=>"category")
+ array()
)
, false, true
);
@@ -137,7 +138,7 @@
COM_createLink(
$topicimage_noalign,
$topicurl,
- array('rel'=>"category")
+ array()
)
, false, true
);
More information about the geeklog-cvs
mailing list