Author: nick
Date: 2008-05-04 14:09:38 -0400 (Sun, 04 May 2008)
New Revision: 16503
Modified:
streetsblog/trunk/wp-content/plugins/email/email.php
streetsblog/trunk/wp-content/themes/woonerf/style.css
streetsblog/trunk/wp-content/widgets/sblog-commentTabs.php
Log:
markup & formatting for hot topics and most emailed tab widgets.
Modified: streetsblog/trunk/wp-content/plugins/email/email.php
===================================================================
--- streetsblog/trunk/wp-content/plugins/email/email.php 2008-05-04
17:38:03 UTC (rev 16502)
+++ streetsblog/trunk/wp-content/plugins/email/email.php 2008-05-04
18:09:38 UTC (rev 16503)
@@ -581,7 +581,7 @@
foreach ($mostemailed as $post) {
$post_title = ($chars > 0) ?
snippet_chars(get_the_title(), $chars) : get_the_title();
$email_total =
intval($post->email_total);
- $temp .= "<li class=\"post-title\"><a
href=\"".get_permalink()."\">".$post_title."</a> - $email_total ".__('Emails',
'wp-email')."</li>\n";
+ $temp .= "<li><h3
class=\"post-title\"><a
href=\"".get_permalink()."\">".$post_title."</a> <span
class=\"post-comment-count\">".$post->comment_count."</span></h3></li>\n";
}
} else {
$temp = '<li>'.__('N/A', 'wp-email').'</li>'."\n";
Modified: streetsblog/trunk/wp-content/themes/woonerf/style.css
===================================================================
--- streetsblog/trunk/wp-content/themes/woonerf/style.css 2008-05-04
17:38:03 UTC (rev 16502)
+++ streetsblog/trunk/wp-content/themes/woonerf/style.css 2008-05-04
18:09:38 UTC (rev 16503)
@@ -141,7 +141,11 @@
display: none;
}
+.todo {
+color: orange;
+}
+
/*-----------------------
Structural Elements
-----------------------*/
@@ -396,7 +400,7 @@
-----------------------*/
#sidebar li.widget {
list-style-type: none;
-margin-bottom: 2em;
+margin-bottom: 3em;
border-bottom: 1px dotted #b7bb8d;
clear: both;
}
@@ -414,6 +418,29 @@
border-bottom: 1px solid #edeedc;
}
+/* sidebar posts */
+
+#sidebar ul.posts li {
+margin-bottom: 0.75em;
+line-height: 1.2em;
+}
+
+#sidebar h3.post-title {
+font-size: 1.1em;
+line-height: 1.2em;
+}
+
+#sidebar h3.post-title a {
+color: #333;
+}
+
+#sidebar .post-meta {
+font-size: .9em;
+}
+
+
+
+
/* not sure we'll want to keep these... */
#sidebar a {
text-decoration: none;
@@ -639,26 +666,6 @@
border-right:1px solid #ccc;
}
-#comment-tabs .post-title a {
-font-family: georgia, serif;
-}
-
-#most-emailed ul {
-}
-
-#most-emailed ul li {
-margin: 0 0 0.5em 1em;
-list-style: square; /* ? */
-}
-
-#most-emailed li a {
-text-decoration: none;
-}
-
-#most-emailed li a:hover {
-text-decoration: underline;
-}
-
#recent-comments li {
padding: 5px;
border-bottom: 1px dotted #e1e1e1;
@@ -1409,4 +1416,8 @@
.feed {
background: url(img/silk/feed.gif) 0 0 no-repeat;
padding: 1px 0 2px 20px;
+}
+
+.post-title {
+ font-family: Georgia, serif;
}
\ No newline at end of file
Modified: streetsblog/trunk/wp-content/widgets/sblog-commentTabs.php
===================================================================
--- streetsblog/trunk/wp-content/widgets/sblog-commentTabs.php 2008-05-04
17:38:03 UTC (rev 16502)
+++ streetsblog/trunk/wp-content/widgets/sblog-commentTabs.php 2008-05-04
18:09:38 UTC (rev 16503)
@@ -26,18 +26,37 @@
</div><!-- /.tabs-area -->
<div class="widget-content unbordered">
<div id="hot-topics" <?php if (isset($_GET['most-emailed']) ||
isset($_GET['recent-comments'])) echo 'style="display:none"';?>>
- <ul>
- <?php echo "Doesn't work! Waiting for hot topics plugin to be
written"; ?>
+ <ul class="posts">
+ <li>
+ <h3 class="post-title">
+ <a href="">Eyes on the Street: Taking the Lane</a>
+ </h3>
+ <div class="post-meta">
+ <a class="post-comment-count">12</a> <a href="">Last
comment</a> by David Blaine
+ </div>
+ </li>
+ <li>
+ <h3 class="post-title">
+ <a href="">Eyes on the Street: Taking the Lane</a>
+ </h3>
+ <div class="post-meta">
+ <a class="post-comment-count">12</a> <a href="">Last
comment</a> by David Blaine
+ </div>
+ </li>
+ <li>
+ <h3 class="post-title">
+ <a href="">Eyes on the Street: Taking the Lane</a>
+ </h3>
+ <div class="post-meta">
+ <a class="post-comment-count">12</a> <a href="">Last
comment</a> by David Blaine
+ </div>
+ </li>
</ul>
+ <span class="todo">this is dummy markup</span>
</div><!-- /#hot-topics -->
- <div id="recent-comments" <?php if (!isset($_GET['recent-comments']))
echo 'style="display:none"';?>>
- <ul>
- <?php get_recent_comments(); ?>
- </ul>
- </div><!-- /#recent-comments -->
<div id="most-emailed" <?php if
(!isset($_GET['most-emailed'])) echo 'style="display:none"';?>>
<?php if
(function_exists('get_mostemailed')): ?>
- <ul>
+ <ul class="posts">
<?php get_mostemailed(); ?>
</ul>
<?php endif; ?>
@@ -54,6 +73,11 @@
*/
?>
</div><!-- /#most-emailed -->
+ <div id="recent-comments" <?php if (!isset($_GET['recent-comments']))
echo 'style="display:none"';?>>
+ <ul class="posts">
+ <?php get_recent_comments(); ?>
+ </ul>
+ </div><!-- /#recent-comments -->
</div><!-- /.widget-content-->
<div class="widget-footer">
<a href="<?php bloginfo('siteurl'); ?>/comments/">All
Comments</a>
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2008/05/1209924586077
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.