From: zorankovacevic <zorankovacevic> Date: Thu, 24 Nov 2005 20:13:45 +0000 (+0000) Subject: fixes to make the template validate through w3c validator, see also: http://www.s9y... X-Git-Tag: 1.0~273 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=623715987ced56dcefdd65d1f425c60d5afc6a55;p=s9y.git fixes to make the template validate through w3c validator, see also: http://www.s9y.org/forums/viewtopic.php?t=3588 --- diff --git a/templates/kubrick/comments.tpl b/templates/kubrick/comments.tpl index b82bc5f..97375e5 100644 --- a/templates/kubrick/comments.tpl +++ b/templates/kubrick/comments.tpl @@ -6,7 +6,7 @@ {else} {$comment.author|@default:$CONST.ANONYMOUS} {/if}</cite> {$CONST.SAYS}:<br /> - <small class="commentmetadata"> + <div class="commentmetadata"> <a href="#c{$comment.id}" title="{$CONST.LINK_TO_COMMENT|sprintf:$comment.trace}">#{$comment.trace}</a> {$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT} {if $entry.is_entry_owner} @@ -15,7 +15,7 @@ {if $entry.allow_comments} (<a href="#serendipity_CommentForm" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}';">{$CONST.REPLY}</a>) {/if} - </small> + </div> <p>{$comment.body}</p> </li> {foreachelse} diff --git a/templates/kubrick/entries.tpl b/templates/kubrick/entries.tpl index f6bd84d..32239e6 100644 --- a/templates/kubrick/entries.tpl +++ b/templates/kubrick/entries.tpl @@ -5,7 +5,7 @@ {foreach from=$dategroup.entries item="entry"} <div class="post"> <h2 id="post-{$entry.id}"><a href="{$entry.link}">{$entry.title}</a></h2> - {if !$is_single_entry}<small>{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</small>{/if} + {if !$is_single_entry}<div class="small">{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</div>{/if} {if $entry.categories} <span class="categoryIcon"> @@ -29,8 +29,7 @@ <br /><a href="{$entry.link}#extended">{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title}</a><br /><br /> {/if} - <p class="postmetadata{if $is_single_entry} graybox{/if}"> - <small> + <div class="postmetadata{if $is_single_entry} graybox{/if}"> {if $is_single_entry} {$CONST.ENTRY_POSTED_BY} <a href="{$entry.link_author}">{$entry.author}</a> {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY} {$CONST.AT} {$entry.timestamp|@formatTime:"%H:%M"}. @@ -79,8 +78,7 @@ {/if} {/if} {$entry.add_footer} - </small> - </p> + </div> </div> </div> <!-- diff --git a/templates/kubrick/style.css b/templates/kubrick/style.css index 6632673..a1bbb77 100644 --- a/templates/kubrick/style.css +++ b/templates/kubrick/style.css @@ -67,10 +67,6 @@ img.categoryIcon { line-height: 1.6em; } -.narrowcolumn .postmetadata { - text-align: center; - } - .graybox { background-color: #f8f8f8; border-top: 1px solid #ddd; @@ -82,12 +78,6 @@ img.categoryIcon { background: url("{TEMPLATE_PATH}/images/kubrickfooter.jpg") no-repeat bottom; border: none; } -small { - font-family: Arial, Helvetica, Sans-Serif; - font-size: 0.9em; - line-height: 1.5em; - } - h1, h2, h3 { font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif; font-weight: bold; @@ -170,7 +160,7 @@ h2, h2 a, h2 a:hover, h2 a:visited, h3, h3 a, h3 a:hover, h3 a:visited, #sidebar vertical-align: top; } -small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike { +.small, #sidebar ul ul li, #sidebar ul ol li, .nocomments, .postmetadata, blockquote, strike { color: #777; } @@ -266,6 +256,9 @@ body { .narrowcolumn .postmetadata { padding-top: 5px; + font-family: Arial, Helvetica, Sans-Serif; + font-size: 0.9em; + line-height: 1.5em; } .widecolumn .postmetadata { diff --git a/templates/kubrick/trackbacks.tpl b/templates/kubrick/trackbacks.tpl index 065ce11..1585111 100644 --- a/templates/kubrick/trackbacks.tpl +++ b/templates/kubrick/trackbacks.tpl @@ -2,13 +2,13 @@ <li class="{if $smarty.foreach.comments.iteration is odd}graybox{/if}"> <cite><a href="{$trackback.url|@strip_tags}" {'blank'|@xhtml_target}>{$trackback.title}</a></cite> <p>{$trackback.body|@strip_tags|@escape:all}</p> - <small class="commentmetadata"> + <div class="commentmetadata"> <b>Weblog:</b> {$trackback.author|@default:$CONST.ANONYMOUS}<br /> <b>{$CONST.TRACKED}:</b> {$trackback.timestamp|@formatTime:'%b %d, %H:%M'} {if $entry.is_entry_owner} (<a href="{$serendipityBaseURL}comment.php?serendipity[delete]={$trackback.id}&serendipity[entry]={$trackback.entry_id}&serendipity[type]=trackbacks">{$CONST.DELETE}</a>) {/if} - </small> + </div> </li> {foreachelse} <p class="nocomments">{$CONST.NO_TRACKBACKS}</p>