mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 01:57:53 +01:00
Minor update to get_archives_link()
git-svn-id: http://svn.automattic.com/wordpress/trunk@274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ee44fea8f
commit
797d6fbc8b
@ -110,13 +110,12 @@ function single_month_title($prefix = '', $display = true ) {
|
||||
}
|
||||
}
|
||||
|
||||
/* link navigation hack by Orien http://icecode.com/ */
|
||||
function get_archives_link( $url, $text, $format ) {
|
||||
if ('link' == $format) {
|
||||
echo " <link rel='Archives' title='$text' href='$url' />\n";
|
||||
echo '<link rel="Archives" title="'.$text.'" href="'.$url.'" />'."\n";
|
||||
} else {
|
||||
echo "<li><a href='$url'>";
|
||||
echo $text;
|
||||
echo "</a></li>\n";
|
||||
echo '<li><a href="'.$url.'" title="'.$text.'">'.$text.'</a></li>'."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user