Things should be as simple as possible, but no more.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-04-24 19:23:57 +00:00
parent c9ed8bbd43
commit 08c6accba1
3 changed files with 53 additions and 24 deletions

View File

@@ -73,6 +73,14 @@ function get_bloginfo($show='') {
case 'admin_email':
$output = get_settings('admin_email');
break;
case 'charset':
$output = get_settings('blog_charset');
if ('' == $output) $output = 'UTF-8';
break;
case 'version':
global $wp_version;
$output = $wp_version;
break;
case 'name':
default:
$output = get_settings('blogname');
@@ -199,7 +207,18 @@ function get_archives_link($url, $text, $format = "html", $before = "", $after =
}
}
function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) {
function wp_get_archives($args = '') {
parse_str($args, $r);
if (!isset($r['type'])) $r['type'] = '';
if (!isset($r['limit'])) $r['limit'] = '';
if (!isset($r['format'])) $r['format'] = 'html';
if (!isset($r['before'])) $r['before'] = '';
if (!isset($r['after'])) $r['after'] = '';
if (!isset($r['show_post_count'])) $r['show_post_count'] = false;
get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count']);
}
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
global $tableposts, $time_difference;
global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb;

View File

@@ -210,6 +210,17 @@ function get_the_excerpt($fakeit = true) {
return $output;
}
function wp_link_pages($args = '') {
parse_str($args, $r);
if (!isset($r['before'])) $r['before'] = '<p>' . __('Pages:');
if (!isset($r['after'])) $r['after'] = '</p>';
if (!isset($r['next_or_number'])) $r['next_or_number'] = 'number';
if (!isset($r['nextpagelink'])) $r['nextpagelink'] = 'Next page';
if (!isset($r['previouspagelink'])) $r['previouspagelink'] = 'Previous page';
if (!isset($r['pagelink'])) $r['pagelink'] = '%';
if (!isset($r['more_file'])) $r['more_file'] = '';
link_pages($r['before'], $r['after'], $r['next_or_number'], $r['nextpagelink'], $r['previouspagelink'], $r['pagelink'], $r['more_file']);
}
function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', $pagelink='%', $more_file='') {
global $id, $page, $numpages, $multipage, $more;