]> git.mjollnir.org Git - s9y.git/commitdiff
More IDs and classes for specific outputs.
authorgarvinhicking <garvinhicking>
Mon, 30 Jan 2006 10:14:17 +0000 (10:14 +0000)
committergarvinhicking <garvinhicking>
Mon, 30 Jan 2006 10:14:17 +0000 (10:14 +0000)
Remove unnecessary <br />s.

templates/default/commentpopup.tpl
templates/default/comments.tpl
templates/default/entries_archives.tpl
templates/default/entries_summary.tpl
templates/default/plugin_categories.tpl

index 3808377fd110d4384204fd9cc4d83aff94e63940..0a08001cb1f170868f543d564ae6807072b135c7 100644 (file)
 
 {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>
 
index e8873f3f6e0ab606f9fcfadbc43e65702391bc34..0812d0cb9188ec7f7560a3056d935ef7afa2d9ca 100644 (file)
@@ -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>
index 90906e0257bfe15da8102629b42b0de99617f2b8..9c62fcf498b25f449dc15ba5ff762bfe63673d73 100644 (file)
@@ -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>
index 27b8197c185a1013e125622df0a532ce184afbe7..c8b526c990a784e0c8519c41488461f9a8c2580a 100644 (file)
@@ -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>
index f0adb5818928079c54a78e6bd17c121243cde9cd..726b3ae10a23fe1566ceffc5bfd3d94b9f8edad8 100644 (file)
     </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>