[wp-cvs] wordpress/wp-admin categories.php, 1.38, 1.39 edit-comments.php, 1.32, 1.33 edit-pages.php, 1.1, 1.2 edit.php, 1.28, 1.29 link-add.php, 1.17, 1.18 link-categories.php, 1.14, 1.15 link-import.php, 1.14, 1.15 link-manager.php, 1.36, 1.37 menu.php, 1.21, 1.22 moderation.php, 1.15, 1.16 options-general.php, 1.25, 1.26 options-head.php, 1.10, 1.11 profile.php, 1.28, 1.29 users.php, 1.34, 1.35

Matthew Mullenweg saxmatt at users.sourceforge.net
Sun Aug 22 23:24:52 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10294/wp-admin

Modified Files:
	categories.php edit-comments.php edit-pages.php edit.php 
	link-add.php link-categories.php link-import.php 
	link-manager.php menu.php moderation.php options-general.php 
	options-head.php profile.php users.php 
Log Message:
New submenu system.

Index: link-add.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-add.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** link-add.php	17 Aug 2004 13:53:06 -0000	1.17
--- link-add.php	22 Aug 2004 23:24:50 -0000	1.18
***************
*** 64,76 ****
  require('admin-header.php');
  ?>
! <ul id="adminmenu2">
! 	<li><a href="link-manager.php"><?php _e('Manage Links') ?></a></li>
!         <li><a href="link-add.php" class="current"><?php _e('Add Link') ?></a></li>
! 	<li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
! 	<li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
! </ul>
! <style type="text/css" media="screen">
! th { text-align: right; }
! </style>
  <?php if ($_GET['added']) : ?>
  <div class="updated"><p>Link added.</p></div>
--- 64,68 ----
  require('admin-header.php');
  ?>
! 
  <?php if ($_GET['added']) : ?>
  <div class="updated"><p>Link added.</p></div>

Index: options-head.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options-head.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** options-head.php	15 Jun 2004 23:24:35 -0000	1.10
--- options-head.php	22 Aug 2004 23:24:50 -0000	1.11
***************
*** 17,47 ****
  	}
  }
- 
- $submenu = '
-  <ul id="adminmenu2"> 
-  	<li><a href="options-general.php">' . __('General') . '</a></li>
- 	<li><a href="options-writing.php">' . __('Writing') . '</a></li>
- 	<li><a href="options-reading.php">' . __('Reading') . '</a></li>
- 	<li><a href="options-discussion.php">' . __('Discussion') . '</a></li>
- 	<li><a href="options-misc.php">' . __('Miscellaneous') . '</a></li>
- 	<li><a href="options-permalink.php">' . __('Permalinks') . '</a></li>';
- 
- $sublines = split("\n", $submenu);
- $_SERVER['REQUEST_URI'] = str_replace(array('?updated=true','&', 'updated=true'), '', $_SERVER['REQUEST_URI']);
- foreach ($sublines as $subline) {
- 	if (preg_match('/href="([^"]+)"/', $subline, $url)) {
- 		if (substr($_SERVER['REQUEST_URI'], -8) == substr($url[1], -8)) {
- 			$subline = str_replace('a hr', 'a class="current" hr', $subline);
- 			if (str_replace('/wp-admin/', '', $_SERVER["REQUEST_URI"]) == $url[1]) {
- 				$subline = preg_replace('|href=".*?"|', '', $subline);
- 			}
- 		}
- 	}
- 	echo $subline."\n";
- }
- echo  $groups .
-     '</ul>';
  ?>
-   
  
  <br clear="all" />
--- 17,21 ----

Index: menu.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/menu.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** menu.php	28 Jul 2004 07:18:59 -0000	1.21
--- menu.php	22 Aug 2004 23:24:50 -0000	1.22
***************
*** 18,21 ****
--- 18,43 ----
  ksort($menu); // So other files can plugin
  
+ $submenu['edit.php'][5] = array(__('Posts'), 1, 'edit.php');
+ $submenu['edit.php'][10] = array(__('Pages'), 5, 'edit-pages.php');
+ $submenu['edit.php'][15] = array(__('Categories'), 1, 'categories.php');
+ $submenu['edit.php'][20] = array(__('Comments'), 1, 'edit-comments.php');
+ $submenu['edit.php'][25] = array(__('Awaiting Moderation'), 1, 'moderation.php');
+ 
+ $submenu['link-manager.php'][5] = array(__('Manage Links'), 5, 'link-manager.php');
+ $submenu['link-manager.php'][10] = array(__('Add Link'), 5, 'link-add.php');
+ $submenu['link-manager.php'][15] = array(__('Link Categories'), 5, 'link-categories.php');
+ $submenu['link-manager.php'][20] = array(__('Import Links'), 5, 'link-import.php');
+ 
+ $submenu['users.php'][5] = array(__('Authors &amp; Users'), 5, 'users.php');
+ $submenu['users.php'][10] = array(__('Your Profile'), 5, 'profile.php');
+ 
+ $submenu['options-general.php'][5] = array(__('General'), 5, 'options-general.php');
+ $submenu['options-general.php'][10] = array(__('Writing'), 5, 'options-writing.php');
+ $submenu['options-general.php'][15] = array(__('Reading'), 5, 'options-reading.php');
+ $submenu['options-general.php'][20] = array(__('Discussion'), 5, 'options-discussion.php');
+ $submenu['options-general.php'][25] = array(__('Miscellaneous'), 5, 'options-misc.php');
+ $submenu['options-general.php'][30] = array(__('Permalinks'), 5, 'options-permalink.php');
+ $submenu['options-general.php'][35] = array(__('Link Manager'), 5, 'options-links.php');
+ 
  $self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
  if (!isset($parent_file)) $parent_file = '';
***************
*** 41,42 ****
--- 63,80 ----
  	 ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php printf(__('Logout (%s)'), $user_nickname) ?></a></li>
  </ul>
+ 
+ <?php
+ // Sub-menu
+ if ( isset($submenu["$parent_file"]) ) :
+ ?>
+ <ul id="adminmenu2">
+ <?php 
+ foreach ($submenu["$parent_file"] as $item) : 
+ 	if ( substr($self, -10) == substr($item[2], -10) ) $class = ' class="current"';
+ 	else $class = '';
+ 	echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>";
+ endforeach;
+ ?>
+ 
+ </ul>
+ <?php endif; ?>
\ No newline at end of file

Index: link-manager.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-manager.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** link-manager.php	17 Aug 2004 13:53:06 -0000	1.36
--- link-manager.php	22 Aug 2004 23:24:50 -0000	1.37
***************
*** 6,10 ****
  
  $title = __('Manage Links');
! $this_file = 'link-manager.php';
  
  function xfn_check($class, $value = '', $type = 'check') {
--- 6,10 ----
  
  $title = __('Manage Links');
! $this_file = $parent_file = 'link-manager.php';
  
  function xfn_check($class, $value = '', $type = 'check') {
***************
*** 330,342 ****
  
  ?>
! <ul id="adminmenu2"> 
!   <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li> 
!   <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 
!   <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 
!   <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 
! </ul> 
! <style media="screen" type="text/css">
! th { text-align: right; }
! </style>
  <div class="wrap"> 
    <form action="" method="post" name="editlink" id="editlink"> 
--- 330,334 ----
  
  ?>
! 
  <div class="wrap"> 
    <form action="" method="post" name="editlink" id="editlink"> 
***************
*** 612,621 ****
  //-->
  </script>
! <ul id="adminmenu2">
!     <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li>
!     <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
!     <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
!     <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
! </ul>
  <div class="wrap">
      <form name="cats" method="post" action="">
--- 604,608 ----
  //-->
  </script>
! 
  <div class="wrap">
      <form name="cats" method="post" action="">

Index: users.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/users.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** users.php	8 Aug 2004 20:38:19 -0000	1.34
--- users.php	22 Aug 2004 23:24:50 -0000	1.35
***************
*** 3,7 ****
  
  $title = __('Users');
! /* <Team> */
  	
  $wpvarstoreset = array('action','standalone','redirect','profile');
--- 3,7 ----
  
  $title = __('Users');
! $parent_file = 'users.php';
  	
  $wpvarstoreset = array('action','standalone','redirect','profile');
***************
*** 180,187 ****
  	include ('admin-header.php');
  	?>
- <ul id="adminmenu2">
- 	<li><a class="current"><?php _e('Authors &amp; Users') ?></a></li>
-     <li><a href="profile.php"><?php _e('Your Profile') ?></a></li>
- </ul>
  
  <?php if (isset($_GET['deleted'])) : ?>
--- 180,183 ----
***************
*** 341,346 ****
  break;
  }
! 	
! /* </Team> */
  include('admin-footer.php');
! ?>
--- 337,341 ----
  break;
  }
! 
  include('admin-footer.php');
! ?>
\ No newline at end of file

Index: link-categories.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-categories.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** link-categories.php	4 Aug 2004 03:35:49 -0000	1.14
--- link-categories.php	22 Aug 2004 23:24:50 -0000	1.15
***************
*** 114,124 ****
  ?>
  
- <ul id="adminmenu2">
- 	<li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>
- 	<li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
- 	<li><a href="link-categories.php" class="current"><?php _e('Link Categories') ?></a></li>
- 	<li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
- </ul>
- 
  <div class="wrap">
    <h2>Edit &#8220;<?php echo htmlspecialchars($row->cat_name)?>&#8221; Category </h2>
--- 114,117 ----
***************
*** 292,301 ****
      }
  ?>
! <ul id="adminmenu2">
! 	<li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>
! 	<li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
! 	<li><a href="link-categories.php" class="current"><?php _e('Link Categories') ?></a></li>
! 	<li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
! </ul>
  <div class="wrap">
              <h2><?php _e('Link Categories:') ?></h2>
--- 285,289 ----
      }
  ?>
! 
  <div class="wrap">
              <h2><?php _e('Link Categories:') ?></h2>
***************
*** 449,451 ****
  } // end case
  ?>
! <?php include('admin-footer.php'); ?>
--- 437,439 ----
  } // end case
  ?>
! <?php include('admin-footer.php'); ?>
\ No newline at end of file

Index: options-general.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/options-general.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** options-general.php	21 Aug 2004 21:26:23 -0000	1.25
--- options-general.php	22 Aug 2004 23:24:50 -0000	1.26
***************
*** 3,6 ****
--- 3,7 ----
  
  $title = __('General Options');
+ $parent_file = 'options-general.php';
  
  function add_magic_quotes($array) {

Index: edit-comments.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-comments.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** edit-comments.php	10 Aug 2004 05:35:58 -0000	1.32
--- edit-comments.php	22 Aug 2004 23:24:50 -0000	1.33
***************
*** 4,18 ****
  $title = __('Edit Comments');
  $parent_file = 'edit.php';
  require_once('admin-header.php');
  if (empty($_GET['mode'])) $mode = 'view';
  else $mode = $_GET['mode'];
  ?>
! <ul id="adminmenu2">
! 	<li><a href="edit.php"><?php _e('Posts') ?></a></li>
!   <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 
! 	<li><a href="categories.php"><?php _e('Categories') ?></a></li>
! 	<li><a href="edit-comments.php" class="current"><?php _e('Comments') ?></a></li>
! 	<li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li>
! </ul>
  <script type="text/javascript">
  <!--
--- 4,13 ----
  $title = __('Edit Comments');
  $parent_file = 'edit.php';
+ 
  require_once('admin-header.php');
  if (empty($_GET['mode'])) $mode = 'view';
  else $mode = $_GET['mode'];
  ?>
! 
  <script type="text/javascript">
  <!--

Index: categories.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/categories.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** categories.php	10 Aug 2004 05:35:58 -0000	1.38
--- categories.php	22 Aug 2004 23:24:50 -0000	1.39
***************
*** 3,6 ****
--- 3,7 ----
  
  $title = __('Categories');
+ $parent_file = 'edit.php';
  
  function add_magic_quotes($array) {
***************
*** 92,102 ****
      $cat_name = $category->cat_name;
      ?>
! <ul id="adminmenu2"> 
!   <li><a href="edit.php"><?php _e('Posts') ?></a></li> 
!   <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 
!   <li><a href="categories.php" class="current"><?php _e('Categories') ?></a></li>
!   <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 
!   <li class="last"><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 
! </ul> 
  <div class="wrap">
      <h2><?php _e('Edit Category') ?></h2>
--- 93,97 ----
      $cat_name = $category->cat_name;
      ?>
! 
  <div class="wrap">
      <h2><?php _e('Edit Category') ?></h2>
***************
*** 153,163 ****
  $messages[3] = __('Category updated.');
  ?>
! <ul id="adminmenu2"> 
! 	<li><a href="edit.php"><?php _e('Posts') ?></a></li> 
!     <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 
! 	<li><a class="current"><?php _e('Categories') ?></a></li>
! 	<li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 
! 	<li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 
! </ul> 
  <?php if (isset($_GET['message'])) : ?>
  <div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
--- 148,152 ----
  $messages[3] = __('Category updated.');
  ?>
! 
  <?php if (isset($_GET['message'])) : ?>
  <div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>

Index: moderation.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/moderation.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** moderation.php	10 Aug 2004 05:35:58 -0000	1.15
--- moderation.php	22 Aug 2004 23:24:50 -0000	1.16
***************
*** 4,8 ****
  $title = __('Moderate comments');
  $parent_file = 'edit.php';
- /* <Moderation> */
  
  function add_magic_quotes($array) {
--- 4,7 ----
***************
*** 97,109 ****
  		die(__('<p>Your level is not high enough to moderate comments.</p>'));
  	}
- ?>
- <ul id="adminmenu2">
- 	<li><a href="edit.php"> <?php _e('Posts') ?></a></li>
-     <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 
- 	<li><a href="categories.php"><?php _e('Categories') ?></a></li>
- 	<li><a href="edit-comments.php"> <?php _e('Comments') ?></a></li>
- 	<li><a href="moderation.php" class="current"><?php _e('Awaiting Moderation') ?></a></li>
- </ul>
- <?php
  
  if (isset($deleted) || isset($approved) || isset($ignored)) {
--- 96,99 ----
***************
*** 184,187 ****
  }
  
! /* </Template> */
! include("admin-footer.php") ?>
--- 174,177 ----
  }
  
! 
! include('admin-footer.php') ?>
\ No newline at end of file

Index: edit-pages.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-pages.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** edit-pages.php	10 Aug 2004 05:58:19 -0000	1.1
--- edit-pages.php	22 Aug 2004 23:24:50 -0000	1.2
***************
*** 3,17 ****
  
  $title = __('Pages');
  require_once('admin-header.php');
  
- ?>
-  <ul id="adminmenu2"> 
-   <li><a href="edit.php"><?php _e('Posts') ?></a></li> 
-   <li><a href="edit-pages.php" class="current"><?php _e('Pages') ?></a></li> 
-   <li><a href="categories.php"><?php _e('Categories') ?></a></li>
-   <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 
-   <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 
- </ul> 
- <?php
  get_currentuserinfo();
  ?>
--- 3,9 ----
  
  $title = __('Pages');
+ $parent_file = 'edit.php';
  require_once('admin-header.php');
  
  get_currentuserinfo();
  ?>

Index: profile.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/profile.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** profile.php	1 Aug 2004 08:04:39 -0000	1.28
--- profile.php	22 Aug 2004 23:24:50 -0000	1.29
***************
*** 3,7 ****
  
  $title = "Profile";
! /* <Profile | My Profile> */
  
  function add_magic_quotes($array) {
--- 3,7 ----
  
  $title = "Profile";
! $parent_file = 'profile.php';
  
  function add_magic_quotes($array) {
***************
*** 106,185 ****
  break;
  
- case 'viewprofile':
- 
- 
- 	$profiledata = get_userdata($user);
- 	if ($_COOKIE['wordpressuser_'.$cookiehash] == $profiledata->user_login)
- 		header ('Location: profile.php');
- 	
- 	include_once('admin-header.php');
- 	?>
- 
- <h2><?php _e('View Profile') ?> &#8220;
-   <?php
- 	switch($profiledata->user_idmode) {
- 		case 'nickname':
- 			$r = $profiledata->user_nickname;
- 			break;
- 		case 'login':
- 			$r = $profiledata->user_login;
- 			break;
- 		case 'firstname':
- 			$r = $profiledata->user_firstname;
- 			break;
- 		case 'lastname':
- 			$r = $profiledata->user_lastname;
- 			break;
- 		case 'namefl':
- 			$r = $profiledata->user_firstname.' '.$profiledata->user_lastname;
- 			break;
-  		case 'namelf':
- 			$r = $profiledata->user_lastname.' '.$profiledata->user_firstname;
- 			break;
- 	}
- 	echo $r;
- 	?>
-   &#8221;</h2>
- 	  
-   <div id="profile">
- <p> 
-   <strong><?php _e('Login') ?></strong> <?php echo $profiledata->user_login ?>
-   | <strong><?php _e('User #') ?></strong> <?php echo $profiledata->ID ?> | <strong><?php _e('Level') ?></strong> 
-   <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts') ?></strong> 
-   <?php
- 	$posts = get_usernumposts($user);
- 	echo $posts;
- 	?>
- </p>
- 
- <p> <strong><?php _e('First name:') ?></strong> <?php echo $profiledata->user_firstname ?> </p>
-   
- <p> <strong><?php _e('Last name:') ?></strong> <?php echo $profiledata->user_lastname ?> </p>
-   
- <p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p>
-   
- <p> <strong><?php _e('E-mail:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?> 
- </p>
-   
- <p> <strong><?php _e('Website:') ?></strong> <?php echo $profiledata->user_url ?> </p>
-   
- <p> <strong><?php _e('ICQ:') ?></strong> 
-   <?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>
- </p>
-   
- <p> <strong><?php _e('AIM:') ?></strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?> 
- </p>
-   
- <p> <strong><?php _e('MSN IM:') ?></strong> <?php echo $profiledata->user_msn ?> </p>
-   
- <p> <strong><?php _e('Yahoo IM:') ?></strong> <?php echo $profiledata->user_yim ?> </p>
-   
- </div>
- 
- 	<?php
- 
- break;
- 
- 
  case 'IErightclick':
  
--- 106,109 ----
***************
*** 227,236 ****
  	$bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440;
  
! 	?>
! <ul id="adminmenu2">
! 	<li><a href="users.php"><?php _e('Authors &amp; Users') ?></a></li>
!     <li><a class="current"><?php _e('Your Profile') ?></a></li>
! </ul>
! <?php if (isset($updated)) { ?>
  <div class="updated">
  <p><strong><?php _e('Profile updated.') ?></strong></p>
--- 151,155 ----
  	$bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440;
  
! if (isset($updated)) { ?>
  <div class="updated">
  <p><strong><?php _e('Profile updated.') ?></strong></p>
***************
*** 245,255 ****
    </p>
  
- 	<style type="text/css" media="screen">
- 	th { text-align: right; }
- 	</style>
    <table width="99%"  border="0" cellspacing="2" cellpadding="3">
      <tr>
        <th width="33%" scope="row"><?php _e('Login:') ?></th>
!       <td width="73%"><?php echo $profiledata->user_login; ?></td>
      </tr>
      <tr>
--- 164,171 ----
    </p>
  
    <table width="99%"  border="0" cellspacing="2" cellpadding="3">
      <tr>
        <th width="33%" scope="row"><?php _e('Login:') ?></th>
!       <td width="67%"><?php echo $profiledata->user_login; ?></td>
      </tr>
      <tr>

Index: edit.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** edit.php	16 Aug 2004 22:50:06 -0000	1.28
--- edit.php	22 Aug 2004 23:24:50 -0000	1.29
***************
*** 3,17 ****
  
  $title = __('Posts');
  require_once('admin-header.php');
  
- ?>
-  <ul id="adminmenu2"> 
-   <li><a href="edit.php" class="current"><?php _e('Posts') ?></a></li> 
-   <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 
-   <li><a href="categories.php"><?php _e('Categories') ?></a></li>
-   <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 
-   <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 
- </ul> 
- <?php
  get_currentuserinfo();
  $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");
--- 3,9 ----
  
  $title = __('Posts');
+ $parent_file = 'edit.php';
  require_once('admin-header.php');
  
  get_currentuserinfo();
  $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");

Index: link-import.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/link-import.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** link-import.php	4 Aug 2004 03:35:49 -0000	1.14
--- link-import.php	22 Aug 2004 23:24:50 -0000	1.15
***************
*** 24,34 ****
  ?>
  
- <ul id="adminmenu2">
-         <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>
- 	<li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
- 	<li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
- 	<li class="last"><a href="link-import.php"  class="current"><?php _e('Import Blogroll') ?></a></li>
- </ul>
- 
  <div class="wrap">
  
--- 24,27 ----




More information about the cvs mailing list