Changeset 1551
- Timestamp:
- 08/22/2004 11:24:50 PM (22 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 14 edited
-
categories.php (modified) (3 diffs)
-
edit-comments.php (modified) (1 diff)
-
edit-pages.php (modified) (1 diff)
-
edit.php (modified) (1 diff)
-
link-add.php (modified) (1 diff)
-
link-categories.php (modified) (2 diffs)
-
link-import.php (modified) (1 diff)
-
link-manager.php (modified) (3 diffs)
-
menu.php (modified) (2 diffs)
-
moderation.php (modified) (3 diffs)
-
options-general.php (modified) (1 diff)
-
options-head.php (modified) (1 diff)
-
profile.php (modified) (4 diffs)
-
users.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r1527 r1551 3 3 4 4 $title = __('Categories'); 5 $parent_file = 'edit.php'; 5 6 6 7 function add_magic_quotes($array) { … … 92 93 $cat_name = $category->cat_name; 93 94 ?> 94 <ul id="adminmenu2"> 95 <li><a href="edit.php"><?php _e('Posts') ?></a></li> 96 <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 97 <li><a href="categories.php" class="current"><?php _e('Categories') ?></a></li> 98 <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 99 <li class="last"><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 100 </ul> 95 101 96 <div class="wrap"> 102 97 <h2><?php _e('Edit Category') ?></h2> … … 153 148 $messages[3] = __('Category updated.'); 154 149 ?> 155 <ul id="adminmenu2"> 156 <li><a href="edit.php"><?php _e('Posts') ?></a></li> 157 <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 158 <li><a class="current"><?php _e('Categories') ?></a></li> 159 <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li> 160 <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 161 </ul> 150 162 151 <?php if (isset($_GET['message'])) : ?> 163 152 <div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div> -
trunk/wp-admin/edit-comments.php
r1527 r1551 4 4 $title = __('Edit Comments'); 5 5 $parent_file = 'edit.php'; 6 6 7 require_once('admin-header.php'); 7 8 if (empty($_GET['mode'])) $mode = 'view'; 8 9 else $mode = $_GET['mode']; 9 10 ?> 10 <ul id="adminmenu2"> 11 <li><a href="edit.php"><?php _e('Posts') ?></a></li> 12 <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li> 13 <li><a href="categories.php"><?php _e('Categories') ?></a></li> 14 <li><a href="edit-comments.php" class="current"><?php _e('Comments') ?></a></li> 15 <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li> 16 </ul> 11 17 12 <script type="text/javascript"> 18 13 <!-- -
trunk/wp-admin/edit-pages.php
r1528 r1551 3 3 4 4 $title = __('Pages'); 5 $parent_file = 'edit.php'; 5 6 require_once('admin-header.php'); 6 7 7 ?>8 <ul id="adminmenu2">9 <li><a href="edit.php"><?php _e('Posts') ?></a></li>10 <li><a href="edit-pages.php" class="current"><?php _e('Pages') ?></a></li>11 <li><a href="categories.php"><?php _e('Categories') ?></a></li>12 <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li>13 <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li>14 </ul>15 <?php16 8 get_currentuserinfo(); 17 9 ?> -
trunk/wp-admin/edit.php
r1536 r1551 3 3 4 4 $title = __('Posts'); 5 $parent_file = 'edit.php'; 5 6 require_once('admin-header.php'); 6 7 7 ?>8 <ul id="adminmenu2">9 <li><a href="edit.php" class="current"><?php _e('Posts') ?></a></li>10 <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li>11 <li><a href="categories.php"><?php _e('Categories') ?></a></li>12 <li><a href="edit-comments.php"><?php _e('Comments') ?></a></li>13 <li><a href="moderation.php"><?php _e('Awaiting Moderation') ?></a></li>14 </ul>15 <?php16 8 get_currentuserinfo(); 17 9 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID"); -
trunk/wp-admin/link-add.php
r1538 r1551 64 64 require('admin-header.php'); 65 65 ?> 66 <ul id="adminmenu2"> 67 <li><a href="link-manager.php"><?php _e('Manage Links') ?></a></li> 68 <li><a href="link-add.php" class="current"><?php _e('Add Link') ?></a></li> 69 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 70 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 71 </ul> 72 <style type="text/css" media="screen"> 73 th { text-align: right; } 74 </style> 66 75 67 <?php if ($_GET['added']) : ?> 76 68 <div class="updated"><p>Link added.</p></div> -
trunk/wp-admin/link-categories.php
r1509 r1551 113 113 } 114 114 ?> 115 116 <ul id="adminmenu2">117 <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>118 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>119 <li><a href="link-categories.php" class="current"><?php _e('Link Categories') ?></a></li>120 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>121 </ul>122 115 123 116 <div class="wrap"> … … 292 285 } 293 286 ?> 294 <ul id="adminmenu2"> 295 <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li> 296 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 297 <li><a href="link-categories.php" class="current"><?php _e('Link Categories') ?></a></li> 298 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 299 </ul> 287 300 288 <div class="wrap"> 301 289 <h2><?php _e('Link Categories:') ?></h2> -
trunk/wp-admin/link-import.php
r1509 r1551 23 23 $opmltype = 'blogrolling'; // default. 24 24 ?> 25 26 <ul id="adminmenu2">27 <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>28 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>29 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>30 <li class="last"><a href="link-import.php" class="current"><?php _e('Import Blogroll') ?></a></li>31 </ul>32 25 33 26 <div class="wrap"> -
trunk/wp-admin/link-manager.php
r1538 r1551 6 6 7 7 $title = __('Manage Links'); 8 $this_file = 'link-manager.php';8 $this_file = $parent_file = 'link-manager.php'; 9 9 10 10 function xfn_check($class, $value = '', $type = 'check') { … … 330 330 331 331 ?> 332 <ul id="adminmenu2"> 333 <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li> 334 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 335 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 336 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 337 </ul> 338 <style media="screen" type="text/css"> 339 th { text-align: right; } 340 </style> 332 341 333 <div class="wrap"> 342 334 <form action="" method="post" name="editlink" id="editlink"> … … 612 604 //--> 613 605 </script> 614 <ul id="adminmenu2"> 615 <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li> 616 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 617 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 618 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 619 </ul> 606 620 607 <div class="wrap"> 621 608 <form name="cats" method="post" action=""> -
trunk/wp-admin/menu.php
r1494 r1551 17 17 $menu[45] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php'); 18 18 ksort($menu); // So other files can plugin 19 20 $submenu['edit.php'][5] = array(__('Posts'), 1, 'edit.php'); 21 $submenu['edit.php'][10] = array(__('Pages'), 5, 'edit-pages.php'); 22 $submenu['edit.php'][15] = array(__('Categories'), 1, 'categories.php'); 23 $submenu['edit.php'][20] = array(__('Comments'), 1, 'edit-comments.php'); 24 $submenu['edit.php'][25] = array(__('Awaiting Moderation'), 1, 'moderation.php'); 25 26 $submenu['link-manager.php'][5] = array(__('Manage Links'), 5, 'link-manager.php'); 27 $submenu['link-manager.php'][10] = array(__('Add Link'), 5, 'link-add.php'); 28 $submenu['link-manager.php'][15] = array(__('Link Categories'), 5, 'link-categories.php'); 29 $submenu['link-manager.php'][20] = array(__('Import Links'), 5, 'link-import.php'); 30 31 $submenu['users.php'][5] = array(__('Authors & Users'), 5, 'users.php'); 32 $submenu['users.php'][10] = array(__('Your Profile'), 5, 'profile.php'); 33 34 $submenu['options-general.php'][5] = array(__('General'), 5, 'options-general.php'); 35 $submenu['options-general.php'][10] = array(__('Writing'), 5, 'options-writing.php'); 36 $submenu['options-general.php'][15] = array(__('Reading'), 5, 'options-reading.php'); 37 $submenu['options-general.php'][20] = array(__('Discussion'), 5, 'options-discussion.php'); 38 $submenu['options-general.php'][25] = array(__('Miscellaneous'), 5, 'options-misc.php'); 39 $submenu['options-general.php'][30] = array(__('Permalinks'), 5, 'options-permalink.php'); 40 $submenu['options-general.php'][35] = array(__('Link Manager'), 5, 'options-links.php'); 19 41 20 42 $self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']); … … 41 63 ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php printf(__('Logout (%s)'), $user_nickname) ?></a></li> 42 64 </ul> 65 66 <?php 67 // Sub-menu 68 if ( isset($submenu["$parent_file"]) ) : 69 ?> 70 <ul id="adminmenu2"> 71 <?php 72 foreach ($submenu["$parent_file"] as $item) : 73 if ( substr($self, -10) == substr($item[2], -10) ) $class = ' class="current"'; 74 else $class = ''; 75 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>"; 76 endforeach; 77 ?> 78 79 </ul> 80 <?php endif; ?> -
trunk/wp-admin/moderation.php
r1527 r1551 4 4 $title = __('Moderate comments'); 5 5 $parent_file = 'edit.php'; 6 /* <Moderation> */7 6 8 7 function add_magic_quotes($array) { … … 97 96 die(__('<p>Your level is not high enough to moderate comments.</p>')); 98 97 } 99 ?>100 <ul id="adminmenu2">101 <li><a href="edit.php"> <?php _e('Posts') ?></a></li>102 <li><a href="edit-pages.php"><?php _e('Pages') ?></a></li>103 <li><a href="categories.php"><?php _e('Categories') ?></a></li>104 <li><a href="edit-comments.php"> <?php _e('Comments') ?></a></li>105 <li><a href="moderation.php" class="current"><?php _e('Awaiting Moderation') ?></a></li>106 </ul>107 <?php108 98 109 99 if (isset($deleted) || isset($approved) || isset($ignored)) { … … 184 174 } 185 175 186 /* </Template> */ 187 include( "admin-footer.php") ?>176 177 include('admin-footer.php') ?> -
trunk/wp-admin/options-general.php
r1548 r1551 3 3 4 4 $title = __('General Options'); 5 $parent_file = 'options-general.php'; 5 6 6 7 function add_magic_quotes($array) { -
trunk/wp-admin/options-head.php
r1429 r1551 17 17 } 18 18 } 19 20 $submenu = '21 <ul id="adminmenu2">22 <li><a href="options-general.php">' . __('General') . '</a></li>23 <li><a href="options-writing.php">' . __('Writing') . '</a></li>24 <li><a href="options-reading.php">' . __('Reading') . '</a></li>25 <li><a href="options-discussion.php">' . __('Discussion') . '</a></li>26 <li><a href="options-misc.php">' . __('Miscellaneous') . '</a></li>27 <li><a href="options-permalink.php">' . __('Permalinks') . '</a></li>';28 29 $sublines = split("\n", $submenu);30 $_SERVER['REQUEST_URI'] = str_replace(array('?updated=true','&', 'updated=true'), '', $_SERVER['REQUEST_URI']);31 foreach ($sublines as $subline) {32 if (preg_match('/href="([^"]+)"/', $subline, $url)) {33 if (substr($_SERVER['REQUEST_URI'], -8) == substr($url[1], -8)) {34 $subline = str_replace('a hr', 'a class="current" hr', $subline);35 if (str_replace('/wp-admin/', '', $_SERVER["REQUEST_URI"]) == $url[1]) {36 $subline = preg_replace('|href=".*?"|', '', $subline);37 }38 }39 }40 echo $subline."\n";41 }42 echo $groups .43 '</ul>';44 19 ?> 45 46 20 47 21 <br clear="all" /> -
trunk/wp-admin/profile.php
r1503 r1551 3 3 4 4 $title = "Profile"; 5 /* <Profile | My Profile> */ 5 $parent_file = 'profile.php'; 6 6 7 7 function add_magic_quotes($array) { … … 106 106 break; 107 107 108 case 'viewprofile':109 110 111 $profiledata = get_userdata($user);112 if ($_COOKIE['wordpressuser_'.$cookiehash] == $profiledata->user_login)113 header ('Location: profile.php');114 115 include_once('admin-header.php');116 ?>117 118 <h2><?php _e('View Profile') ?> “119 <?php120 switch($profiledata->user_idmode) {121 case 'nickname':122 $r = $profiledata->user_nickname;123 break;124 case 'login':125 $r = $profiledata->user_login;126 break;127 case 'firstname':128 $r = $profiledata->user_firstname;129 break;130 case 'lastname':131 $r = $profiledata->user_lastname;132 break;133 case 'namefl':134 $r = $profiledata->user_firstname.' '.$profiledata->user_lastname;135 break;136 case 'namelf':137 $r = $profiledata->user_lastname.' '.$profiledata->user_firstname;138 break;139 }140 echo $r;141 ?>142 ”</h2>143 144 <div id="profile">145 <p>146 <strong><?php _e('Login') ?></strong> <?php echo $profiledata->user_login ?>147 | <strong><?php _e('User #') ?></strong> <?php echo $profiledata->ID ?> | <strong><?php _e('Level') ?></strong>148 <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts') ?></strong>149 <?php150 $posts = get_usernumposts($user);151 echo $posts;152 ?>153 </p>154 155 <p> <strong><?php _e('First name:') ?></strong> <?php echo $profiledata->user_firstname ?> </p>156 157 <p> <strong><?php _e('Last name:') ?></strong> <?php echo $profiledata->user_lastname ?> </p>158 159 <p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p>160 161 <p> <strong><?php _e('E-mail:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?>162 </p>163 164 <p> <strong><?php _e('Website:') ?></strong> <?php echo $profiledata->user_url ?> </p>165 166 <p> <strong><?php _e('ICQ:') ?></strong>167 <?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>168 </p>169 170 <p> <strong><?php _e('AIM:') ?></strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?>171 </p>172 173 <p> <strong><?php _e('MSN IM:') ?></strong> <?php echo $profiledata->user_msn ?> </p>174 175 <p> <strong><?php _e('Yahoo IM:') ?></strong> <?php echo $profiledata->user_yim ?> </p>176 177 </div>178 179 <?php180 181 break;182 183 184 108 case 'IErightclick': 185 109 … … 227 151 $bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440; 228 152 229 ?> 230 <ul id="adminmenu2"> 231 <li><a href="users.php"><?php _e('Authors & Users') ?></a></li> 232 <li><a class="current"><?php _e('Your Profile') ?></a></li> 233 </ul> 234 <?php if (isset($updated)) { ?> 153 if (isset($updated)) { ?> 235 154 <div class="updated"> 236 155 <p><strong><?php _e('Profile updated.') ?></strong></p> … … 245 164 </p> 246 165 247 <style type="text/css" media="screen">248 th { text-align: right; }249 </style>250 166 <table width="99%" border="0" cellspacing="2" cellpadding="3"> 251 167 <tr> 252 168 <th width="33%" scope="row"><?php _e('Login:') ?></th> 253 <td width=" 73%"><?php echo $profiledata->user_login; ?></td>169 <td width="67%"><?php echo $profiledata->user_login; ?></td> 254 170 </tr> 255 171 <tr> -
trunk/wp-admin/users.php
r1520 r1551 3 3 4 4 $title = __('Users'); 5 /* <Team> */ 5 $parent_file = 'users.php'; 6 6 7 7 $wpvarstoreset = array('action','standalone','redirect','profile'); … … 180 180 include ('admin-header.php'); 181 181 ?> 182 <ul id="adminmenu2">183 <li><a class="current"><?php _e('Authors & Users') ?></a></li>184 <li><a href="profile.php"><?php _e('Your Profile') ?></a></li>185 </ul>186 182 187 183 <?php if (isset($_GET['deleted'])) : ?> … … 341 337 break; 342 338 } 343 344 /* </Team> */ 339 345 340 include('admin-footer.php'); 346 341 ?>
Note: See TracChangeset
for help on using the changeset viewer.