Make WordPress Core

Changeset 14 for trunk/b2archives.php


Ignore:
Timestamp:
05/06/2003 08:06:57 AM (23 years ago)
Author:
saxmatt
Message:

Update to use real lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2archives.php

    r2 r14  
    99
    1010// this is what will separate your archive links
    11 $archive_line_separator = '<br />';
    1211// this is what will separate dates on weekly archive links
    13 $archive_week_separator = ' - ';
     12$archive_week_separator = '&#8211;';
    1413
    1514
     
    6059        $arc_year  = $arc_row['YEAR(post_date)'];
    6160        $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).'">';
    6362        echo $month[zeroise($arc_month,2)].' '.$arc_year;
    64         echo '</a>';
    65         echo $archive_line_separator."\n";
     63        echo "</a></li>\n";
    6664    }
    6765} elseif ($archive_mode == 'daily') {
     
    7371        $arc_month = $arc_row['MONTH(post_date)'];
    7472        $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).'">';
    7674        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";
    8076    }
    8177} elseif ($archive_mode == 'weekly') {
     
    9692            $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']);
    9793            $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']);
    98             echo "<a href=\"$siteurl/".$blogfilename."?m=$arc_year&amp;w=$arc_w\">";
     94            echo "<li><a href=\"$siteurl/".$blogfilename."?m=$arc_year&amp;w=$arc_w\">";
    9995            echo $arc_week_start.$archive_week_separator.$arc_week_end;
    100             echo '</a>';
    101             echo $archive_line_separator."\n";
     96            echo "</a></li>\n";
    10297        }
    10398    }
     
    108103    while($row=mysql_fetch_object($resultarc)) {
    109104        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.'">';
    111106            $arc_title = stripslashes($row->post_title);
    112107            if ($arc_title) {
     
    115110                echo $row->ID;
    116111            }
    117             echo '</a>';
    118             echo $archive_line_separator."\n";
     112            echo "</a></li>\n";
    119113        }
    120114    }
    121115}
    122116
    123 #echo $querycount."<br />\n";
    124 #timer_stop(1,8);
     117# echo $querycount."<br />\n";
     118# timer_stop(1,8);
    125119?>
Note: See TracChangeset for help on using the changeset viewer.