From 724a294df6c41980f9f5639533d6135c52dfaf80 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 10 Jul 2004 23:34:47 +0000 Subject: [PATCH] A nicer meta bar. git-svn-id: http://svn.automattic.com/wordpress/trunk@1459 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- index.php | 9 +++---- wp-admin/templates.php | 2 +- wp-includes/template-functions-general.php | 31 ++++++++++++++++++++++ 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index cddf2b6421..037f13bb5c 100644 --- a/index.php +++ b/index.php @@ -89,19 +89,16 @@ require('./wp-blog-header.php');
  • -
  • - -
  • diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 762456a794..8444dc4fed 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -130,7 +130,7 @@ default: if (!$error) { ?>
    - +

    diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 0b290f0f81..26c08894a8 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -2,6 +2,37 @@ /* Note: these tags go anywhere in the template */ +function wp_loginout() { + global $user_level; + get_currentuserinfo(); + + if (0 == $user_level) : + $link = '' . __('Login') . ''; + else : + $link = '' . __('Logout') . ''; + endif; + + echo apply_filters('loginout', $link); +} + +function wp_register() { + global $user_level; + + get_currentuserinfo(); + + if (0 == $user_level) : + $link = '' . __('Register') . ''; + else : + $link = '' . __('Site Admin') . ''; + endif; + + echo apply_filters('register', $link); +} + +function wp_meta() { + do_action('wp_meta', 1); +} + function bloginfo($show='') { $info = get_bloginfo($show); $info = apply_filters('bloginfo', $info);