Changeset 469 for trunk/b2-include/b2template.functions.php
- Timestamp:
- 10/26/2003 12:35:45 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2template.functions.php
r458 r469 116 116 return '<option value="'.$url.'">'.$text.'</option>'."\n"; 117 117 } 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"; 119 119 } else { // custom 120 120 return "\t".$before.'<a href="'.$url.'" title="'.$text.'">'.$text.'</a>'.$after."\n"; … … 166 166 foreach ($arcresults as $arcresult) { 167 167 $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) { 171 169 $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 } 172 174 echo get_archives_link($url, $text, $format, $before, $after); 173 175 }
Note: See TracChangeset
for help on using the changeset viewer.