Make WordPress Core


Ignore:
Timestamp:
10/26/2003 12:35:45 AM (22 years ago)
Author:
mikelittle
Message:

Moved post count outside the link in monthly version of get_archives().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2template.functions.php

    r458 r469  
    116116        return '<option value="'.$url.'">'.$text.'</option>'."\n";
    117117    } else if ('html' == $format) {
    118         return "\t".'<li><a href="'.$url.'" title="'.$text.'">'.$text.'</a></li>'."\n";
     118        return "\t".'<li><a href="'.$url.'" title="'.$text.'">'.$text.'</a>'.$after.'</li>'."\n";
    119119    } else { // custom
    120120        return "\t".$before.'<a href="'.$url.'" title="'.$text.'">'.$text.'</a>'.$after."\n";
     
    166166            foreach ($arcresults as $arcresult) {
    167167                $url  = sprintf("%s%d%02d", $archive_link_m,  $arcresult->year,   $arcresult->month);
    168                 if ($show_post_count)
    169                     $text = sprintf("%s %d (%d)", $month[zeroise($arcresult->month,2)], $arcresult->year, $arcresult->posts);
    170                 else
     168                if ($show_post_count) {
    171169                    $text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
     170                    $after = " ($arcresult->posts)";
     171                } else {
     172                    $text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
     173                }
    172174                echo get_archives_link($url, $text, $format, $before, $after);
    173175            }
Note: See TracChangeset for help on using the changeset viewer.