[gnomeweb-wp] polished press release list
- From: Vinicius Scopel Depizzol <vdepizzol src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnomeweb-wp] polished press release list
- Date: Wed, 6 Apr 2011 00:58:02 +0000 (UTC)
commit 48fc08f0fe7b2d6b5dfc7dc3ba8597658f06b92e
Author: Vinicius Depizzol <vdepizzol gmail com>
Date: Tue Apr 5 21:57:53 2011 -0300
polished press release list
wp-content/themes/gnome-grass/css/news.css | 18 ++++++++++++++++--
wp-content/themes/gnome-grass/page-press.php | 3 +++
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/css/news.css b/wp-content/themes/gnome-grass/css/news.css
index 058e179..8da3f53 100644
--- a/wp-content/themes/gnome-grass/css/news.css
+++ b/wp-content/themes/gnome-grass/css/news.css
@@ -26,20 +26,34 @@
display: table;
}
.press_list li {
- padding: 10px 0;
display: table-row;
}
+.press_list li.year {
+ font-weight: bold;
+ font-size: 16px;
+}
+.press_list li.year:not(:first-child) span {
+ display: table-cell;
+ padding-top: 20px;
+}
.press_list li .date {
font-family: 'Droid Serif', 'DejaVu Serif', Cambria, Georgia, serif;
color: #888a85;
- padding-top: 0.1em;
+ padding-top: 10px;
+ padding-right: 10px;
display: table-cell;
+ vertical-align: top;
+ line-height: 20px;
+ min-width: 140px;
}
.press_list li a {
font-weight: bold;
font-size: 18px;
line-height: normal;
display: table-cell;
+ padding: 8px 0 4px;
+ vertical-align: top;
+ line-height: 20px;
}
/* Social Network List */
diff --git a/wp-content/themes/gnome-grass/page-press.php b/wp-content/themes/gnome-grass/page-press.php
index be83c36..d9f8a23 100644
--- a/wp-content/themes/gnome-grass/page-press.php
+++ b/wp-content/themes/gnome-grass/page-press.php
@@ -36,11 +36,14 @@ require_once("header.php"); ?>
?>
<ul class="press_list">
+ <?php $current_year = ''; ?>
<?php while ( have_posts() ) : the_post(); ?>
+ <?php if ($current_year != get_the_date('Y')) echo '<li class="year"><span>'.get_the_date('Y').'</span></li>'; ?>
<li>
<span class="date"><?php the_date(); ?></span>
<a href="<?php the_permalink();?>"><?php the_title(); ?></a>
</li>
+ <?php $current_year = get_the_date('Y'); ?>
<?php endwhile; // End the loop. Whew. ?>
</ul>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]