Changeset 14 for trunk/b2archives.php
- Timestamp:
- 05/06/2003 08:06:57 AM (23 years ago)
- File:
-
- 1 edited
-
trunk/b2archives.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2archives.php
r2 r14 9 9 10 10 // this is what will separate your archive links 11 $archive_line_separator = '<br />';12 11 // this is what will separate dates on weekly archive links 13 $archive_week_separator = ' -';12 $archive_week_separator = '–'; 14 13 15 14 … … 60 59 $arc_year = $arc_row['YEAR(post_date)']; 61 60 $arc_month = $arc_row['MONTH(post_date)']; 62 echo "< a href=\"$archive_link_m$arc_year".zeroise($arc_month,2).'">';61 echo "<li><a href=\"$archive_link_m$arc_year".zeroise($arc_month,2).'">'; 63 62 echo $month[zeroise($arc_month,2)].' '.$arc_year; 64 echo '</a>'; 65 echo $archive_line_separator."\n"; 63 echo "</a></li>\n"; 66 64 } 67 65 } elseif ($archive_mode == 'daily') { … … 73 71 $arc_month = $arc_row['MONTH(post_date)']; 74 72 $arc_dayofmonth = $arc_row['DAYOFMONTH(post_date)']; 75 echo "< a href=\"$archive_link_m$arc_year".zeroise($arc_month,2).zeroise($arc_dayofmonth,2).'">';73 echo "<li><a href=\"$archive_link_m$arc_year".zeroise($arc_month,2).zeroise($arc_dayofmonth,2).'">'; 76 74 echo mysql2date($archive_day_date_format, $arc_year.'-'.zeroise($arc_month,2).'-'.zeroise($arc_dayofmonth,2).' 00:00:00'); 77 # echo $month[zeroise($arc_month,2)]." $arc_year"; 78 echo '</a>'; 79 echo $archive_line_separator."\n"; 75 echo "</a></li>\n"; 80 76 } 81 77 } elseif ($archive_mode == 'weekly') { … … 96 92 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 97 93 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); 98 echo "< a href=\"$siteurl/".$blogfilename."?m=$arc_year&w=$arc_w\">";94 echo "<li><a href=\"$siteurl/".$blogfilename."?m=$arc_year&w=$arc_w\">"; 99 95 echo $arc_week_start.$archive_week_separator.$arc_week_end; 100 echo '</a>'; 101 echo $archive_line_separator."\n"; 96 echo "</a></li>\n"; 102 97 } 103 98 } … … 108 103 while($row=mysql_fetch_object($resultarc)) { 109 104 if ($row->post_date != '0000-00-00 00:00:00') { 110 echo "< a href=\"$archive_link_p".$row->ID.'">';105 echo "<li><a href=\"$archive_link_p".$row->ID.'">'; 111 106 $arc_title = stripslashes($row->post_title); 112 107 if ($arc_title) { … … 115 110 echo $row->ID; 116 111 } 117 echo '</a>'; 118 echo $archive_line_separator."\n"; 112 echo "</a></li>\n"; 119 113 } 120 114 } 121 115 } 122 116 123 # echo $querycount."<br />\n";124 # timer_stop(1,8);117 # echo $querycount."<br />\n"; 118 # timer_stop(1,8); 125 119 ?>
Note: See TracChangeset
for help on using the changeset viewer.