From 83323f8248d0774ef678ae4448fde940ee345194 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Nov 2011 20:41:16 +1100 Subject: [PATCH] Attempt at using HTML5 microdata --- inc/functions.php | 2 +- templates/post_reply.html | 12 ++++++------ templates/post_thread.html | 20 +++++++++++++------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 496de972..3f8c8a9f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -777,7 +777,7 @@ while($th = $query->fetch()) { if(!$mod && $config['cache']['enabled']) { if($built = cache::get("thread_index_{$board['uri']}_{$th['id']}")) { - $body .= '
' . $built . '
'; + $body .= $built; continue; } } diff --git a/templates/post_reply.html b/templates/post_reply.html index eaa92a74..d91c1e15 100644 --- a/templates/post_reply.html +++ b/templates/post_reply.html @@ -1,19 +1,19 @@ {% filter remove_whitespace %} {# tabs and new lines will be ignored #} -
+

{{ post.file }} ( @@ -91,7 +91,7 @@ {% endif %} {{ post.postControls }} -

+

{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}

diff --git a/templates/post_thread.html b/templates/post_thread.html index 48f57c6d..b0cac726 100644 --- a/templates/post_thread.html +++ b/templates/post_thread.html @@ -1,10 +1,14 @@ {% filter remove_whitespace %} {# tabs and new lines will be ignored #} +{% if index %} +
+{% endif %} + {% if post.embed %} {{ post.embed }} {% elseif post.file == 'deleted' %} - + {% elseif post.file and post.file %}

File: {{ post.file }} ( @@ -43,18 +47,18 @@ {{ config.uri_thumb }}{{ post.thumb }} {% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /> {% endif %} -

+