There are a couple of things I prefer slightly differently than what Aeon5 is designed for. One of these resolves around date display of stories. I love the little calendar icon in the teasers but I was getting lost browsing through archives and not knowing the year that it was displayed on. The other is that the date isn't displayed anywhere when the full story is displayed. I modified Aeon5 as follows to provide those features:

node.tpl.php: .In a teaser, print he year after the day with class "year". Otherwise, for a node type of story, print the date at the top. Sorry for doing a quick hack and putting the formatting in a style rather than css.
--- node.tpl.php.orig 2007-04-12 19:55:55.000000000 -0500
+++ node.tpl.php 2007-04-12 19:58:30.000000000 -0500
@@ -1,6 +1,7 @@

        $day = format_date($node->created, 'custom', 'd');
        $month = format_date($node->created, 'custom', 'M');
+       $year = format_date($node->created, 'custom', 'Y');
 
print ($sticky) ? " sticky" : ""; ">
@@ -9,10 +10,15 @@
print $month
print $day
+ print $year

} else {
print $picture
+

+ if ($node->type == "story") {
+ <?= $month ?> <?= $day ?>, <?= $year ?>
+ }
};

@@ -25,7 +31,7 @@
by print theme('username', $node);

}
-

+

if ($links) {

style.css:
in .date, I changed the height to 33px to allow room for the year

.date span.month {
display:block;
font-size:9px;
/* kjh */
margin: -5px;
}

added: .date span.year {
display:block;
font-size:8px;
margin:-5px;
}

CommentFileSizeAuthor
node.tpl_.php_.diffs_.txt1.05 KBbkat

Comments

jenlampton’s picture

Status: Active » Closed (won't fix)

Closing old Drupal 5 issues since 5.x is not supported anymore. Please re-open if this is also an issue for Drupal 6.