[wp-cvs]
wordpress/wp-includes template-functions-general.php, 1.36, 1.37
Matthew Mullenweg
saxmatt at users.sourceforge.net
Sat Jul 10 23:34:49 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23777/wp-includes
Modified Files:
template-functions-general.php
Log Message:
A nicer meta bar.
Index: template-functions-general.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-general.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** template-functions-general.php 6 Jul 2004 17:04:07 -0000 1.36
--- template-functions-general.php 10 Jul 2004 23:34:47 -0000 1.37
***************
*** 3,6 ****
--- 3,37 ----
/* Note: these tags go anywhere in the template */
+ function wp_loginout() {
+ global $user_level;
+ get_currentuserinfo();
+
+ if (0 == $user_level) :
+ $link = '<a href="' . get_settings('siteurl') . '/wp-login.php">' . __('Login') . '</a>';
+ else :
+ $link = '<a href="' . get_settings('siteurl') . '/wp-login.php?action=logout">' . __('Logout') . '</a>';
+ endif;
+
+ echo apply_filters('loginout', $link);
+ }
+
+ function wp_register() {
+ global $user_level;
+
+ get_currentuserinfo();
+
+ if (0 == $user_level) :
+ $link = '<a href="' . get_settings('siteurl') . '/wp-register.php">' . __('Register') . '</a>';
+ else :
+ $link = '<a href="' . get_settings('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>';
+ endif;
+
+ echo apply_filters('register', $link);
+ }
+
+ function wp_meta() {
+ do_action('wp_meta', 1);
+ }
+
function bloginfo($show='') {
$info = get_bloginfo($show);
More information about the cvs
mailing list