From 64c8cfd2fc661ef1c5895b85877aa267caa443e0 Mon Sep 17 00:00:00 2001 From: garvinhicking <garvinhicking> Date: Mon, 30 Jan 2006 10:14:17 +0000 Subject: [PATCH] More IDs and classes for specific outputs. Remove unnecessary <br />s. --- templates/default/commentpopup.tpl | 14 +++++++------- templates/default/comments.tpl | 13 ++++++++----- templates/default/entries_archives.tpl | 18 +++++++++--------- templates/default/entries_summary.tpl | 2 +- templates/default/plugin_categories.tpl | 4 ++-- 5 files changed, 27 insertions(+), 24 deletions(-) diff --git a/templates/default/commentpopup.tpl b/templates/default/commentpopup.tpl index 3808377..0a08001 100644 --- a/templates/default/commentpopup.tpl +++ b/templates/default/commentpopup.tpl @@ -20,24 +20,24 @@ {if $is_comment_added} - {$CONST.COMMENT_ADDED}{$comment_string.0}<a href="{$comment_url}">{$comment_string.1}</a>{$comment_string.2}<a href="#" onclick="self.close()">{$comment_string.3}</a>{$comment_string.4} + <div class="popup_comments_message popup_comments_message_added">{$CONST.COMMENT_ADDED}{$comment_string.0}<a href="{$comment_url}">{$comment_string.1}</a>{$comment_string.2}<a href="#" onclick="self.close()">{$comment_string.3}</a>{$comment_string.4}</div> {elseif $is_comment_notadded} - {$CONST.COMMENT_NOT_ADDED}{$comment_string.0}<a href="{$comment_url}">{$comment_string.1}</a>{$comment_string.2}<a href="#" onclick="self.close()">{$comment_string.3}</a>{$comment_string.4} + <div class="popup_comments_message popup_comments_message_notadded">{$CONST.COMMENT_NOT_ADDED}{$comment_string.0}<a href="{$comment_url}">{$comment_string.1}</a>{$comment_string.2}<a href="#" onclick="self.close()">{$comment_string.3}</a>{$comment_string.4}</div> {elseif $is_comment_empty} - {$comment_string.0}<a href="#" onclick="history.go(-1)">{$comment_string.1}</a> + <div class="popup_comments_message popup_comments_message_empty">{$comment_string.0}<a href="#" onclick="history.go(-1)">{$comment_string.1}</a></div> {elseif $is_showtrackbacks} - <div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div><br /> + <div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div> <dl> - <dt><b>{$CONST.TRACKBACK_SPECIFIC}:</b><br /></dt> - <dd><a rel="nofollow" href="{$comment_url}">{$comment_url}</a><br /></dd> + <dt><strong>{$CONST.TRACKBACK_SPECIFIC}:</strong></dt> + <dd><a rel="nofollow" href="{$comment_url}">{$comment_url}</a></dd> - <dt><b>{$CONST.DIRECT_LINK}:</b><br /></dt> + <dt><strong>{$CONST.DIRECT_LINK}:</strong></dt> <dd><a href="{$comment_entryurl}">{$comment_entryurl}</a></dd> </dl> diff --git a/templates/default/comments.tpl b/templates/default/comments.tpl index e8873f3..0812d0c 100644 --- a/templates/default/comments.tpl +++ b/templates/default/comments.tpl @@ -3,22 +3,25 @@ <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 class="serendipity_commentBody">{$comment.body}</div> <div class="serendipity_comment_source"> - <a href="#c{$comment.id}" title="Link to comment #{$comment.trace}">#{$comment.trace}</a> + <a class="comment_source_trace" href="#c{$comment.id}">#{$comment.trace}</a> + <span class="comment_source_author"> {if $comment.email} <a href="mailto:{$comment.email}">{$comment.author|@default:$CONST.ANONYMOUS}</a> {else} {$comment.author|@default:$CONST.ANONYMOUS} {/if} + </span> {if $comment.url} - (<a href="{$comment.url}" title="{$comment.url|@escape}">Link</a>) + (<a class="comment_source_url" href="{$comment.url}" title="{$comment.url|@escape}">Link</a>) {/if} {$CONST.ON} - {$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT} + <span class="comment_source_date">{$comment.timestamp|@formatTime:$CONST.DATE_FORMAT_SHORT}</span> + {if $entry.is_entry_owner} - (<a href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">delete</a>) + (<a class="comment_source_ownerlink" href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">delete</a>) {/if} {if $entry.allow_comments} - (<a href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>) + (<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>) <div id="serendipity_replyform_{$comment.id}"></div> {/if} </div> diff --git a/templates/default/entries_archives.tpl b/templates/default/entries_archives.tpl index 90906e0..9c62fcf 100644 --- a/templates/default/entries_archives.tpl +++ b/templates/default/entries_archives.tpl @@ -1,16 +1,16 @@ {serendipity_hookPlugin hook="entries_header"} {foreach from=$archives item="archive"} -<table cellspacing="4" cellpadding="4" border="0"> - <tr> - <td colspan="4"><h2>{$archive.year}</h2></td> +<table id="archives_listing" cellspacing="4" cellpadding="4" border="0"> + <tr class="archives_header"> + <td class="archives_header" colspan="4"><h2>{$archive.year}</h2></td> </tr> {foreach from=$archive.months item="month"} - <tr> - <td width="100"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000"></td> - <td>{$month.date|@formatTime:"%B"}</td> - <td>{$month.entry_count} {$CONST.ENTRIES}</td> - <td>({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</td> - <td>({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</td> + <tr class="archives_row"> + <td class="archives_graph" width="100"><img src="{serendipity_getFile file="img/graph_bar_horisontal.png"}" height="10" width="{math width=100 equation="count * width / max" count=$month.entry_count max=$max_entries format="%d"}" style="border: 1px solid #000000"></td> + <td class="archives_date">{$month.date|@formatTime:"%B"}</td> + <td class="archives_count">{$month.entry_count} {$CONST.ENTRIES}</td> + <td class="archives_count_link">({if $month.entry_count}<a href="{$month.link}">{/if}{$CONST.VIEW_FULL}{if $month.entry_count}</a>{/if})</td> + <td class="archives_link">({if $month.entry_count}<a href="{$month.link_summary}">{/if}{$CONST.VIEW_TOPICS}{if $month.entry_count}</a>{/if})</td> </tr> {/foreach} </table> diff --git a/templates/default/entries_summary.tpl b/templates/default/entries_summary.tpl index 27b8197..c8b526c 100644 --- a/templates/default/entries_summary.tpl +++ b/templates/default/entries_summary.tpl @@ -6,7 +6,7 @@ {foreach from=$entries item="entries"} {foreach from=$entries.entries item="entry"} <li><a href="{$entry.link}">{$entry.title}</a> - <br />{$CONST.POSTED_BY} {$entry.author} {$CONST.ON} {$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</li> + <div class="summary_posted_by">{$CONST.POSTED_BY} <span class="posted_by_author">{$entry.author}</span> {$CONST.ON} <span class="posted_by_date">{$entry.timestamp|@formatTime:DATE_FORMAT_ENTRY}</span></div></li> {/foreach} {/foreach} </ul> diff --git a/templates/default/plugin_categories.tpl b/templates/default/plugin_categories.tpl index f0adb58..726b3ae 100644 --- a/templates/default/plugin_categories.tpl +++ b/templates/default/plugin_categories.tpl @@ -20,10 +20,10 @@ </ul> {if $is_form} - <br /><input type="submit" name="serendipity[isMultiCat]" value="{$CONST.GO}" /><br /> + <div class="category_submit"><input type="submit" name="serendipity[isMultiCat]" value="{$CONST.GO}" /></div> {/if} - <br /><a href="{$form_url}" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a> + <div class="category_link_all"><a href="{$form_url}" title="{$CONST.ALL_CATEGORIES}">{$CONST.ALL_CATEGORIES}</a></div> {if $is_form} </div> -- 2.39.5