From 1c4f2394c1cf2bda956ac6887706125cf567ed3e Mon Sep 17 00:00:00 2001 From: garvinhicking <garvinhicking> Date: Tue, 7 Feb 2006 19:30:15 +0000 Subject: [PATCH] Default template improvements --- templates/default/comments.tpl | 6 +++--- templates/default/content.tpl | 4 ++++ templates/default/entries_archives.tpl | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/default/comments.tpl b/templates/default/comments.tpl index 0812d0c..b7c4c91 100644 --- a/templates/default/comments.tpl +++ b/templates/default/comments.tpl @@ -1,6 +1,6 @@ -{foreach from=$comments item=comment} +{foreach from=$comments item=comment name="comments"} <a id="c{$comment.id}"></a> - <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}" style="padding-left: {$comment.depth*20}px"> + <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: {$comment.depth*20}px"> <div class="serendipity_commentBody">{$comment.body}</div> <div class="serendipity_comment_source"> <a class="comment_source_trace" href="#c{$comment.id}">#{$comment.trace}</a> @@ -27,5 +27,5 @@ </div> </div> {foreachelse} - <div class="serendipity_center">{$CONST.NO_COMMENTS}</div> + <div class="serendipity_center nocomments">{$CONST.NO_COMMENTS}</div> {/foreach} diff --git a/templates/default/content.tpl b/templates/default/content.tpl index dd6e045..5f6f487 100644 --- a/templates/default/content.tpl +++ b/templates/default/content.tpl @@ -1,12 +1,16 @@ <!-- CONTENT START --> {if $searchresult_tooShort} + <h3 class="serendipity_date">{$CONST.QUICKSEARCH}</h3> <div class="serendipity_search serendipity_search_tooshort">{$content_message}</div> {elseif $searchresult_error} + <h3 class="serendipity_date">{$CONST.QUICKSEARCH}</h3> <div class="serendipity_search serendipity_search_error">{$content_message}</div> {elseif $searchresult_noEntries} + <h3 class="serendipity_date">{$CONST.QUICKSEARCH}</h3> <div class="serendipity_search serendipity_search_noentries">{$content_message}</div> {elseif $searchresult_results} + <h3 class="serendipity_date">{$CONST.QUICKSEARCH}</h3> <div class="serendipity_search serendipity_search_results">{$content_message}</div> {else} <div class="serendipity_content_message">{$content_message}</div> diff --git a/templates/default/entries_archives.tpl b/templates/default/entries_archives.tpl index 9c62fcf..768ae8c 100644 --- a/templates/default/entries_archives.tpl +++ b/templates/default/entries_archives.tpl @@ -1,4 +1,5 @@ {serendipity_hookPlugin hook="entries_header"} +<h3 class="serendipity_date">{$CONST.ARCHIVES}</h3> {foreach from=$archives item="archive"} <table id="archives_listing" cellspacing="4" cellpadding="4" border="0"> <tr class="archives_header"> @@ -15,5 +16,5 @@ {/foreach} </table> {/foreach} -<div class='serendipity_entryFooter' style="text-align: center"> +<div class="serendipity_pageFooter" style="text-align: center"> {serendipity_hookPlugin hook="entries_footer"}</div> -- 2.39.5