Make WordPress Core


Ignore:
Timestamp:
07/25/2003 11:31:11 PM (23 years ago)
Author:
mikelittle
Message:

Minor update to get_archives_link()

File:
1 edited

Legend:

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

    r273 r274  
    111111}
    112112
     113/* link navigation hack by Orien http://icecode.com/ */
    113114function get_archives_link( $url, $text, $format ) {
    114115        if ('link' == $format) {
    115                 echo "  <link rel='Archives' title='$text' href='$url' />\n";
    116         } else {
    117                 echo "<li><a href='$url'>";
    118                 echo $text;
    119                 echo "</a></li>\n";
    120         }
    121 }
    122 
    123 function get_archives($type='', $limit='',$format='html') {
     116                echo '<link rel="Archives" title="'.$text.'" href="'.$url.'" />'."\n";
     117        } else {
     118                echo '<li><a href="'.$url.'" title="'.$text.'">'.$text.'</a></li>'."\n";
     119        }
     120}
     121
     122function get_archives($type='', $limit='', $format='html') {
    124123        global $tableposts, $dateformat, $time_difference, $siteurl, $blogfilename;
    125124    GLOBAL $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week;
Note: See TracChangeset for help on using the changeset viewer.