Skip to content

Commit

Permalink
add classes to sidebar lists - #61
Browse files Browse the repository at this point in the history
  • Loading branch information
cnb committed Mar 16, 2013
1 parent 45c358a commit bc73fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions news_manager/inc/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function nm_list_recent() {
global $NMRECENTPOSTS;
$posts = nm_get_posts();
if (!empty($posts)) {
echo '<ul>';
echo '<ul class="nm_recent">';
$posts = array_slice($posts, 0, $NMRECENTPOSTS, true);
foreach ($posts as $post) {
$url = nm_get_url('post') . $post->slug;
Expand All @@ -32,7 +32,7 @@ function nm_list_recent() {
function nm_list_archives() {
$archives = array_keys(nm_get_archives());
if (!empty($archives)) {
echo '<ul>';
echo '<ul class="nm_archives">';
foreach ($archives as $archive) {
list($y, $m) = str_split($archive, 4);
$title = nm_get_date('%B %Y', mktime(0, 0, 0, $m, 1, $y));
Expand Down

0 comments on commit bc73fce

Please sign in to comment.