Ticket #7552: crazy_merge.diff
| File crazy_merge.diff, 172.4 KB (added by , 17 years ago) |
|---|
-
wp-includes/version.php
8 8 * 9 9 * @global string $wp_version 10 10 */ 11 $wp_version = '2.7- bleeding';11 $wp_version = '2.7-crazyhorse'; 12 12 13 13 /** 14 14 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. -
wp-includes/js/autosave.js
107 107 post_id: post_id, 108 108 getpermalinknonce: jQuery('#getpermalinknonce').val() 109 109 }, function(permalink) { 110 jQuery('#previewview').html('<a target="_blank" href="'+permalink+'" tabindex="4">'+previewText+'</a>');110 jQuery('#previewview').html('<a class="button" target="_blank" href="'+permalink+'" tabindex="4">'+previewText+'</a>'); 111 111 112 112 // Autosave when the preview button is clicked. 113 113 jQuery('#previewview a').click(function(e) { -
wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js
10 10 11 11 // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('...'); 12 12 ed.addCommand('WP_EditImage', function() { 13 var el = ed.selection.getNode() ;13 var el = ed.selection.getNode(), vp = tinymce.DOM.getViewPort(), H = vp.h, W = ( 720 < vp.w ) ? 720 : vp.w; 14 14 15 15 if ( ed.dom.getAttrib(el, 'class').indexOf('mceItem') != -1 || el.nodeName != 'IMG' ) 16 16 return; 17 17 18 18 tb_show('', url + '/editimage.html?ver=311f&TB_iframe=true'); 19 tinymce.DOM.setStyles('TB_window', { 20 'top':'20px', 21 'marginTop':'0', 22 'width':( W - 50 )+'px', 23 'height':( H - 45 )+'px', 24 'margin-left':'-'+parseInt((( W - 50 ) / 2),10) + 'px' 25 }); 26 tinymce.DOM.setStyles('TB_iframeContent', { 27 'width':( W - 50 )+'px', 28 'height':( H - 75 )+'px' 29 }); 19 30 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 20 31 }); 21 32 -
wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
7 7 <script type="text/javascript" src="js/editimage.js?ver=311f"></script> 8 8 <script type="text/javascript" src="../../utils/form_utils.js?ver=311b"></script> 9 9 10 <link rel="stylesheet" href="css/media26.css?ver=2.6" type="text/css" media="all" /> 10 11 <link rel="stylesheet" href="css/editimage.css?ver=311f" type="text/css" media="all" /> 11 <link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=20080709" type="text/css" media="all" /> 12 12 13 <script type="text/javascript"> 13 14 if ( 'rtl' == tinyMCEPopup.editor.getParam('directionality','') ) 14 15 document.write('<link rel="stylesheet" href="css/editimage-rtl.css?ver=311b" type="text/css" media="all" />'); -
wp-includes/general-template.php
969 969 <?php } 970 970 } 971 971 972 if ( $media_buttons ) { ?>972 /* if ( $media_buttons ) { ?> 973 973 <div id="media-buttons" class="hide-if-no-js"> 974 974 <?php do_action( 'media_buttons' ); ?> 975 975 </div> 976 <?php } ?>976 <?php } */ ?> 977 977 </div> 978 978 979 979 <div id="quicktags"> -
wp-includes/script-loader.php
48 48 'broken' => __('An unidentified error has occurred.') 49 49 ) ); 50 50 51 $scripts->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080 622' );51 $scripts->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080701' ); 52 52 53 53 $scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080729' ); 54 54 $scripts->localize( 'wp-lists', 'wpListL10n', array( … … 128 128 $scripts->add( 'admin-forms', '/wp-admin/js/forms.js', array('jquery'), '20080729'); 129 129 $scripts->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); 130 130 $scripts->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); 131 $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery '), '20080128' );131 $scripts->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery-ui-sortable'), '20080723' ); 132 132 $scripts->localize( 'postbox', 'postboxL10n', array( 133 133 'requestFile' => admin_url('admin-ajax.php'), 134 134 ) ); … … 138 138 'save' => __('Save'), 139 139 'cancel' => __('Cancel'), 140 140 ) ); 141 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20080 629' );141 $scripts->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20080701' ); 142 142 $scripts->localize( 'post', 'postL10n', array( 143 143 'tagsUsed' => __('Tags used on this post:'), 144 144 'add' => attribute_escape(__('Add')), … … 159 159 'edit' => __('Edit'), 160 160 ) ); 161 161 $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20080709' ); 162 $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '200807 10' );162 $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080723' ); 163 163 $scripts->localize( 'upload', 'uploadL10n', array( 164 164 'browseTitle' => attribute_escape(__('Browse your files')), 165 165 'back' => __('« Back'), -
wp-admin/menu-header.php
Property changes on: wp-content/plugins ___________________________________________________________________ Name: svn:externals - akismet http://plugins.svn.wordpress.org/akismet/trunk/ + akismet http://plugins.svn.wordpress.org/akismet/trunk/ crazy-stats http://svn.wp-plugins.org/stats/branches/crazyhorse
20 20 21 21 get_admin_page_parent(); 22 22 23 // We're going to do this loop three times 24 ?> 23 function _wp_menu_output( &$menu, &$submenu, $submenu_as_parent = true ) { 24 global $self, $parent_file, $submenu_file, $plugin_page; 25 25 26 <ul id="dashmenu"> 27 <?php 28 foreach ( $menu as $key => $item ) { 29 if ( 3 < $key ) // get each menu item before 3 30 continue; 31 $class = ''; 32 // 0 = name, 1 = capability, 2 = file 33 if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; 26 $first = true; 27 // 0 = name, 1 = capability, 2 = file, 3 = class 28 foreach ( $menu as $key => $item ) { 29 $class = array(); 30 if ( $first ) { 31 $class[] = 'wp-first-item'; 32 $first = false; 33 } 34 if ( !empty($submenu[$item[2]]) ) 35 $class[] = 'wp-has-submenu'; 34 36 35 if ( !empty($submenu[$item[2]]) ) { 36 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 37 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 38 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 39 echo "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 40 else 41 echo "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 42 } else if ( current_user_can($item[1]) ) { 43 $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); 44 if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) ) 45 echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 46 else 47 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>"; 48 } 49 } 50 do_action( 'dashmenu' ); 51 ?> 52 </ul> 37 if ( ( $parent_file && $item[2] == $parent_file ) || strcmp($self, $item[2]) == 0 ) { 38 if ( !empty($submenu[$item[2]]) ) 39 $class[] = 'wp-has-current-submenu wp-menu-open'; 40 else 41 $class[] = 'current'; 42 } 53 43 54 <ul id="adminmenu"> 55 <?php 56 foreach ( $menu as $key => $item ) { 57 if ( 5 > $key || $key > 25 ) // get each menu item before 3 58 continue; 44 if ( isset($item[3]) ) 45 $class[] = $item[3]; 59 46 60 $class ='';47 $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; 61 48 62 // 0 = name, 1 = capability, 2 = file 63 if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; 49 echo "\n\t<li$class>"; 64 50 65 if ( !empty($submenu[$item[2]]) ) { 66 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 67 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 68 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 69 echo "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 70 else 71 echo "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 72 } else if ( current_user_can($item[1]) ) { 73 $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); 74 if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) ) 75 echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 76 else 77 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>"; 78 } 79 } 51 if ( $submenu_as_parent && !empty($submenu[$item[2]]) ) { 52 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 53 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 54 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 55 echo "<a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 56 else 57 echo "\n\t<a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 58 } else if ( current_user_can($item[1]) ) { 59 $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); 60 if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) ) 61 echo "\n\t<a href='admin.php?page={$item[2]}'$class>{$item[0]}</a>"; 62 else 63 echo "\n\t<a href='{$item[2]}'$class>{$item[0]}</a>"; 64 } 80 65 81 foreach ( $menu as $key => $item ) { 82 if ( $key < 41 ) // there is a more efficient way to do this! 83 continue; 66 if ( !empty($submenu[$item[2]]) ) { 67 echo "\n\t<ul class='wp-submenu'>"; 68 $first = true; 69 foreach ( $submenu[$item[2]] as $sub_key => $sub_item ) { 70 if ( !current_user_can($sub_item[1]) ) 71 continue; 84 72 85 $class = ''; 73 $class = array(); 74 if ( $first ) { 75 $class[] = 'wp-first-item'; 76 $first = false; 77 } 78 if ( isset($submenu_file) ) { 79 if ( $submenu_file == $sub_item[2] ) 80 $class[] = 'current'; 81 } else if ( (isset($plugin_page) && $plugin_page == $sub_item[2]) || (!isset($plugin_page) && $self == $sub_item[2]) ) { 82 $class[] = 'current'; 83 } 86 84 87 // 0 = name, 1 = capability, 2 = file 88 if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"'; 85 $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; 89 86 90 if ( !empty($submenu[$item[2]]) ) { 91 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 92 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 93 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 94 echo "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 95 else 96 echo "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a></li>"; 97 } else if ( current_user_can($item[1]) ) { 98 $menu_hook = get_plugin_page_hook($item[2], 'admin.php'); 99 if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) ) 100 echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 101 else 102 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>"; 87 $menu_hook = get_plugin_page_hook($sub_item[2], $item[2]); 88 89 if ( file_exists(WP_PLUGIN_DIR . "/{$sub_item[2]}") || ! empty($menu_hook) ) { 90 if ( 'admin.php' == $pagenow ) 91 echo "\n\t\t<li$class><a href='admin.php?page={$sub_item[2]}'$class>{$sub_item[0]}</a></li>"; 92 else 93 echo "\n\t\t<li$class><a href='{$item[2]}?page={$sub_item[2]}'$class>{$sub_item[0]}</a></li>"; 94 } else { 95 echo "\n\t\t<li$class><a href='{$sub_item[2]}'$class>{$sub_item[0]}</a></li>"; 96 } 97 } 98 echo "\n\t</ul>"; 99 } 100 echo "</li>"; 103 101 } 104 102 } 105 103 106 do_action( 'adminmenu' );107 104 ?> 108 </ul>109 105 110 <ul id="sidemenu"> 106 <ul id="dashmenu" class="wp-menu"> 107 111 108 <?php 112 $side_items = array();113 foreach ( $menu as $key => $item ) {114 if ( 26 > $key || $key > 40 )115 continue;116 109 117 $class = ''; 110 _wp_menu_output( $top_menu, $top_submenu, false ); 111 do_action( 'dashmenu' ); 118 112 119 // 0 = name, 1 = capability, 2 = file120 if (( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file))) $class = ' class="current"';121 122 if ( !empty($submenu[$item[2]]) ) {123 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index.124 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]);125 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook))126 $side_items[] = "\n\t<li><a href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";127 else128 $side_items[] = "\n\t<li><a href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";129 } else if ( current_user_can($item[1]) ) {130 $menu_hook = get_plugin_page_hook($item[2], 'admin.php');131 if ( file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || !empty($menu_hook) )132 $side_items[] = "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a>";133 else134 $side_items[] = "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a>";135 }136 }137 echo implode(' </li>', $side_items) . '</li>';138 unset($side_items);139 do_action( 'sidemenu' );140 113 ?> 114 115 141 116 </ul> 142 117 143 118 144 <?php 145 // Sub-menu 146 if ( isset($submenu["$parent_file"]) ) : 147 ?> 148 <ul id="submenu"> 149 <?php 150 foreach ($submenu["$parent_file"] as $item) : 151 if ( !current_user_can($item[1]) ) 152 continue; 119 <ul id="adminmenu" class="wp-menu"> 153 120 154 if ( isset($submenu_file) ) { 155 if ( $submenu_file == $item[2] ) $class = ' class="current"'; 156 else $class = ''; 157 } else if ( (isset($plugin_page) && $plugin_page == $item[2]) || (!isset($plugin_page) && $self == $item[2]) ) $class = ' class="current"'; 158 else $class = ''; 121 <li class="write-new-button"><a class="button-secondary" href="post-new.php">Write New Post</a></li> 159 122 160 $menu_hook = get_plugin_page_hook($item[2], $parent_file); 123 <?php 161 124 162 if (file_exists(WP_PLUGIN_DIR . "/{$item[2]}") || ! empty($menu_hook)) { 163 if ( 'admin.php' == $pagenow ) 164 echo "\n\t<li><a href='admin.php?page={$item[2]}'$class>{$item[0]}</a></li>"; 165 else 166 echo "\n\t<li><a href='{$parent_file}?page={$item[2]}'$class>{$item[0]}</a></li>"; 167 } else { 168 echo "\n\t<li><a href='{$item[2]}'$class>{$item[0]}</a></li>"; 169 } 170 endforeach; 125 _wp_menu_output( $menu, $submenu ); 126 do_action( 'adminmenu' ); 127 171 128 ?> 172 129 130 173 131 </ul> 132 174 133 <?php 175 else :176 ?>177 <div id="minisub"></div>178 <?php179 134 180 endif;181 182 135 do_action('admin_notices'); 183 136 184 ?> 185 No newline at end of file 137 ?> -
wp-admin/users.php
22 22 $update = ''; 23 23 24 24 if ( empty($action) ) { 25 if ( isset($_GET['deleteit']) ) 26 $action = 'delete'; 27 elseif ( isset($_GET['changeit']) && !empty($_GET['new_role']) ) 25 if ( isset($_GET['changeit']) && !empty($_GET['new_role']) ) 28 26 $action = 'promote'; 29 27 } 30 28 … … 258 256 <div class="wrap"> 259 257 <form id="posts-filter" action="" method="get"> 260 258 <?php if ( $wp_user_search->is_search() ) : ?> 261 <h2><?php printf( __('Users Matching "%s"'), wp_specialchars($wp_user_search->search_term)); ?></h2>259 <h2><?php printf( current_user_can('create_users') ? __('Users Matching "%2$s" (<a href="%1$s">Add New</a>)') : __('Add New'), '#add-new-user', wp_specialchars($wp_user_search->search_term) ); ?></h2> 262 260 <?php else : ?> 263 <h2><?php _e('Manage Users'); ?></h2>261 <h2><?php printf( current_user_can('create_users') ? __('Users (<a href="%s">Add New</a>)') : __('Add New'), '#add-new-user' ); ?></h2> 264 262 <?php endif; ?> 265 263 266 264 <ul class="subsubsub"> … … 301 299 unset($role_links); 302 300 ?> 303 301 </ul> 302 304 303 <p id="post-search"> 305 304 <label class="hidden" for="post-search-input"><?php _e( 'Search Users' ); ?>:</label> 306 305 <input type="text" id="post-search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> … … 314 313 <?php endif; ?> 315 314 316 315 <div class="alignleft"> 317 <input type="submit" value="<?php _e('Delete'); ?>" name="deleteit" class="button-secondary delete" /> 316 <select name="action"> 317 <option value="" selected><?php _e('Actions'); ?></option> 318 <option value="delete"><?php _e('Delete'); ?></option> 319 </select> 320 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" /> 318 321 <label class="hidden" for="new_role"><?php _e('Change role to…') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to…') ?></option>"<?php wp_dropdown_roles(); ?></select> 319 322 <input type="submit" value="<?php _e('Change'); ?>" name="changeit" class="button-secondary" /> 320 323 <?php wp_nonce_field('bulk-users'); ?> -
wp-admin/options-privacy.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <ul class="wp-menu"> 20 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 21 </ul> 19 22 <h2><?php _e('Privacy Settings') ?></h2> 20 23 <form method="post" action="options.php"> 21 24 <?php wp_nonce_field('update-options') ?> -
wp-admin/admin-ajax.php
182 182 if ( $_POST['new'] == $current ) 183 183 die('1'); 184 184 185 if ( 'unapproved' == $current) {185 if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) { 186 186 check_ajax_referer( "approve-comment_$id" ); 187 187 if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) ) 188 188 die('1'); … … 648 648 $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : ''; 649 649 die(get_sample_permalink_html($post_id, $title, $slug)); 650 650 break; 651 case 'meta-box-order': 652 check_ajax_referer( 'meta-box-order' ); 653 update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] ); 654 die('1'); 655 break; 651 656 default : 652 657 do_action( 'wp_ajax_' . $_POST['action'] ); 653 658 die('0'); -
wp-admin/post-new.php
9 9 /** Load WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 $title = __('Create New Post'); 12 $parent_file = 'post-new.php'; 12 $parent_file = 'edit.php'; 13 $submenu_file = 'edit.php'; 13 14 $editing = true; 14 15 wp_enqueue_script('autosave'); 15 16 wp_enqueue_script('post'); -
wp-admin/wp-admin.css
246 246 display: none; 247 247 } 248 248 249 .unapproved .approve {249 .unapproved .approve, .spam .approve { 250 250 display: inline; 251 251 } 252 252 … … 279 279 } 280 280 281 281 #postdiv, #titlediv, #guiddiv, #poststuff .stuffbox { 282 margin: 0 8px 0 0;282 margin: 0; 283 283 padding: 0; 284 284 } 285 285 286 # titlediv, #namediv, #poststuff #namediv{287 margin-top: 10px;286 #emaildiv input, #uridiv input { 287 width: 94%; 288 288 } 289 289 290 290 #postdivrich { … … 409 409 width: auto; 410 410 } 411 411 412 #poststuff #post-body {413 margin-right: 230px;414 }415 416 412 #save { 417 413 width: 15em; 418 414 } … … 507 503 } 508 504 509 505 .comment-column { 510 margin-left: 5px;506 width: 50%; 511 507 } 512 508 509 .comment-column p { 510 margin-top: 0; 511 } 512 513 .author-column { 514 width: 20%; 515 } 516 517 .response-column { 518 width: 20%; 519 } 520 521 .author-column img { 522 float: left; 523 margin-right: 10px; 524 margin-top: 3px; 525 } 526 513 527 .tablenav a.button-secondary { 514 528 display: block; 515 529 margin: 1px 8px 0 0; … … 586 600 #user_info { 587 601 position: absolute; 588 602 right: 15px; 589 top: 11px;603 top: 0; 590 604 font-size: 11px; 605 line-height: 31px; 606 height: 31px; 591 607 } 592 608 593 609 #user_info p { 594 610 margin: 0; 595 611 padding: 0; 612 line-height: 31px; 596 613 } 597 614 598 615 #wphead { 599 border- top-width: 30px;600 border- top-style: solid;616 border-width: 31px 0 0; 617 border-style: solid; 601 618 } 602 619 603 #wphead a, #dashmenu a, #adminmenu a, #s ubmenu a, #sidemenu a, #taglist a, #catlist a {620 #wphead a, #dashmenu a, #adminmenu a, #sidemenu a, #taglist a, #catlist a { 604 621 text-decoration: none; 605 622 } 606 623 … … 622 639 border-radius: 3px; 623 640 } 624 641 642 ul#adminmenu li.write-new-button { 643 margin: -10px 18px 12px; 644 } 645 ul#adminmenu li.write-new-button a { 646 line-height: 1.2em; 647 font: 12px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 648 padding: 6px 4px; 649 letter-spacing: normal; 650 border-width: 1px; 651 border-style: solid; 652 -moz-border-radius: 3px; 653 -khtml-border-radius: 3px; 654 -webkit-border-radius: 3px; 655 border-radius: 3px; 656 text-indent: 0; 657 text-align: center; 658 color: #246; 659 } 660 661 625 662 #wphead h1 { 626 663 font: normal 36px Georgia, "Times New Roman", Times, serif; 627 664 padding: 11px 170px 16px 12px; … … 631 668 632 669 /* menu stuff */ 633 670 671 #dashmenu .wp-submenu, #adminmenu .wp-submenu { 672 display: none; 673 list-style: none; 674 margin: 2px 0 0; 675 padding: 0; 676 } 677 678 #adminmenu li.wp-menu-open .wp-submenu { 679 display: block; 680 } 681 634 682 #dashmenu { 635 margin: 0; 683 margin: 0 0 0 12px; 684 background: url(images/logo-ghost.png) no-repeat center left; 636 685 list-style: none; 637 686 position: absolute; 638 top: 7px;687 top: 0; 639 688 left: 0; 689 height: 31px; 640 690 font-size: 11px; 641 padding -left: 9px;691 padding: 0 0 0 30px; 642 692 } 643 693 694 #dashmenu li { 695 display: block; 696 float: left; 697 list-style: none; 698 white-space: nowrap; 699 margin: 0 5px 0 0; 700 padding: 0; 701 position: relative; 702 } 703 704 #dashmenu li.highlighted { 705 margin-left: 6px; 706 text-align: center; 707 padding: 1 px 0; 708 } 709 710 #dashmenu li.highlighted a { 711 background: #666; 712 border: 1px solid #888; 713 -webkit-border-radius: 3px; 714 -moz-border-radius: 3px; 715 -border-radius: 3px; 716 color: #ddd; 717 margin-top: 4px; 718 display: block; 719 padding: 5px 10px; 720 line-height: 1em; 721 } 722 723 #dashmenu li.highlighted a:hover { 724 color: #fff; 725 border-color: #aaa; 726 } 727 728 /* Temp */ 729 #dashmenu li.wp-has-submenu > a:after { 730 content: " \25BC"; 731 } 732 644 733 #dashmenu a { 645 734 padding: 5px 6px; 646 line-height: 220%; 647 margin-right: 8px; 735 line-height: 31px; 648 736 } 649 737 650 #dashmenu a.current { 651 border: none; 652 -moz-border-radius-topleft: 3px; 653 -khtml-border-top-left-radius: 3px; 654 -webkit-border-top-left-radius: 3px; 655 border-top-left-radius: 3px; 656 -moz-border-radius-topright: 3px; 657 -khtml-border-top-right-radius: 3px; 658 -webkit-border-top-right-radius: 3px; 659 border-top-right-radius: 3px; 738 #dashmenu ul { 739 position: absolute; 740 top: 29px; 741 left: 0; 742 min-width: 100%; 660 743 } 661 744 745 #dashmenu ul { 746 background: #fff; 747 border: 1px solid #c6d9e9; 748 -webkit-border-bottom-left-radius:7px; 749 -webkit-border-bottom-right-radius:7px; 750 -webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2); 751 -moz-border-radius-bottomleft: 7px; 752 -moz-border-radius-bottomright: 7px; 753 -moz-box-shadow:0 2px 6px rgba(0,0,0,0.2); 754 } 755 756 #dashmenu ul a { 757 color: #2583ad; 758 display: block; 759 padding: 0 4px; 760 } 761 762 #dashmenu ul a:hover { 763 color: #d54e21; 764 } 765 766 #dashmenu ul li { 767 float: none; 768 margin-left: 5px; 769 } 770 662 771 #adminmenu { 663 772 margin: 0; 773 padding: 10px 0 0 10px; 664 774 list-style: none; 665 padding-left: 11px;666 border-bottom-width: 1px;667 border-bottom-style: solid;668 775 } 669 776 670 #adminmenu a { 671 font-size: 16px; 672 padding: 5px 7px; 673 line-height: 30px; 777 #adminmenu li { 778 margin-bottom: 10px; 674 779 } 675 780 676 #adminmenu a.current, #sidemenu a.current { 677 font-weight: normal; 678 padding-left: 6px; 679 padding-right: 6px; 680 -moz-border-radius-topleft: 4px; 681 -khtml-border-top-left-radius: 4px; 682 -webkit-border-top-left-radius: 4px; 683 border-top-left-radius: 4px; 684 -moz-border-radius-topright: 4px; 685 -khtml-border-top-right-radius: 4px; 686 -webkit-border-top-right-radius: 4px; 687 border-top-right-radius: 4px; 781 #adminmenu li.current { 688 782 border-width: 1px; 689 783 border-style: solid; 784 position: relative; 785 right: -1px; 786 padding: 2px 0; 690 787 } 691 788 692 #adminmenu a.current{693 border-bottom-width: 2px;789 #adminmenu li .wp-submenu { 790 margin-top: 4px; 694 791 } 695 792 696 #sidemenu { 697 margin: -30px 15px 0 315px; 698 list-style: none; 699 position: relative; 700 float: right; 701 padding-left: 10px; 702 font-size:12px; 793 #adminmenu li .wp-submenu li { 794 padding: 3px 0 3px 1px; 795 margin-bottom: 0; 703 796 } 704 797 705 #sidemenu a { 706 padding: 0 7px; 707 display: block; 708 float: left; 709 line-height: 28px; 710 border-top-width: 1px; 711 border-top-style: solid; 712 border-bottom-width: 1px; 713 border-bottom-style: solid; 798 #adminmenu li .wp-submenu li.current { 799 padding: 2px 0; 714 800 } 715 801 716 #dashmenu li, #adminmenu li, #submenu li, #sidemenu li { 717 display: inline; 718 line-height: 200%; 719 list-style: none; 720 text-align: center; 721 white-space: nowrap; 722 margin: 0; 723 padding: 0; 802 #adminmenu li.wp-has-submenu > a { 803 background-image: url(images/menu-closed.png); 804 background-repeat: no-repeat; 805 background-position: left center; 724 806 } 725 807 726 # submenu li{727 padding: 0 0 8px 17px;808 #adminmenu li.wp-menu-open > a { 809 background-image: url(images/menu-open.png); 728 810 } 729 811 812 #adminmenu a { 813 font-size: 13px; 814 padding: 0px 7px 0px 36px; 815 line-height: 1.1; 816 display: block; 817 text-indent: -18px; 818 } 819 820 #adminmenu li.current a { 821 padding-left: 34px; 822 } 823 730 824 #adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins { 731 825 position: absolute; 732 margin-left: -0.4em;733 826 margin-top: 0.2em; 734 827 font-size: 0.7em; 735 828 background-repeat: no-repeat; … … 796 889 border-radius: 3px; 797 890 } 798 891 799 #submenu { 800 margin: 0; 892 #wpbody ul.wp-menu { 801 893 list-style: none; 802 padding: 6px 0 3px 0; 894 margin: 10px 0; 895 padding: 0; 896 font-size: 16px; 803 897 } 804 898 805 # submenu li {806 font-size: 14px;899 #wpbody ul.wp-menu li { 900 display: inline; 807 901 } 808 902 809 # minisub { /* for empty submenus */810 height: 15px;903 #wpbody ul.wp-menu li:before { 904 content: " | "; 811 905 } 812 906 907 #wpbody ul.wp-menu li.wp-first-item:before { 908 content: ""; 909 } 910 911 #wpbody ul.wp-menu li.current a { 912 text-decoration: none; 913 color: #666; 914 } 915 813 916 /* end menu stuff */ 814 917 815 918 /* Admin Footer */ … … 821 924 position: relative; 822 925 min-height: 100%; 823 926 } 824 #wpcontent{825 padding-bottom: 95px;826 }827 927 #footer { 828 928 clear: both; 829 929 height: 65px; … … 947 1047 948 1048 /* Post Screen */ 949 1049 950 #tagsdiv #newtag { 1050 #normal-sortables { 1051 min-height: 50px; 1052 } 1053 1054 .postbox { 1055 position: relative; 1056 min-width: 195px; 1057 } 1058 1059 1060 #mediadiv img { 1061 float: left; 1062 margin-right: 1em; 1063 } 1064 1065 #mediadiv h4 { 1066 margin: 0 0 .5em; 1067 } 1068 1069 #post-body #tagsdiv #newtag { 951 1070 margin-right: 5px; 952 1071 width: 16em; 953 1072 } 954 1073 1074 #side-info-column input#post_password { 1075 width: 94% 1076 } 1077 1078 #side-info-column #tagsdiv #newtag { 1079 width: 68%; 1080 } 1081 1082 #post-status-info { 1083 font-size: 12px; 1084 line-height: 2; 1085 padding: 0 7px; 1086 border: 1px solid; 1087 border-top: none; 1088 } 1089 1090 #editorcontent #post-status-info { 1091 border: none; 1092 } 1093 1094 #submitdiv div.inside { 1095 padding: 0; 1096 margin: 0; 1097 } 1098 1099 .submitbox { 1100 /* margin: 1em 0; */ 1101 } 1102 1103 .submitbox p { 1104 /* padding: 0; 1105 margin: 0; */ 1106 } 1107 1108 .submitbox .submit { 1109 text-align: left; 1110 padding: 12px 10px 10px; 1111 font-size: 11px; 1112 } 1113 1114 .submitbox .submitdelete { 1115 border-bottom-width: 1px; 1116 border-bottom-style: solid; 1117 text-decoration: none; 1118 margin-left: 8px; 1119 padding-bottom: 1px; 1120 } 1121 1122 .submitbox .submit a:hover { 1123 border-bottom-width: 1px; 1124 border-bottom-style: solid; 1125 } 1126 1127 .submitbox .submit input { 1128 margin-bottom: 8px; 1129 margin-right: 3px; 1130 padding: 6px 4px; 1131 border: none; 1132 } 1133 1134 955 1135 #tagchecklist { 956 1136 margin-left: 10px; 957 1137 … … 1032 1212 } 1033 1213 1034 1214 #poststuff .postbox, #poststuff .stuffbox { 1035 margin-left: 20px;1036 1215 padding: 2px; 1037 1216 margin-bottom: 20px; 1038 margin-right: 8px;1039 1217 border-width: 1px; 1040 1218 border-style: solid; 1041 1219 } 1042 1220 1221 #poststuff .inside { 1222 font-size:11px; 1223 margin:0 12px 12px; 1224 } 1225 1043 1226 #titlediv, #poststuff .postarea { 1044 margin-left: 20px;1045 1227 margin-bottom: 20px; 1046 margin-right: 8px;1047 1228 } 1048 1229 1049 1230 #titlediv { … … 1068 1249 border-style: solid; 1069 1250 } 1070 1251 1071 #poststuff .inside {1252 #poststuff .inside-submitbox { 1072 1253 margin: 0 12px 12px; 1073 1254 font-size: 11px; 1074 1255 } … … 1100 1281 font-weight: bold; 1101 1282 } 1102 1283 1284 .postarea h3 label { 1285 float: left; 1286 } 1287 1288 .postarea #add-media-button { 1289 float:right; 1290 margin:7px 0pt 0pt; 1291 position:relative; 1292 right:10px; 1293 } 1294 1103 1295 #poststuff #editor-toolbar { 1296 clear: both; 1104 1297 position: relative; 1105 height: 30px; 1106 margin-top: -41px; 1298 margin-top: -10px; 1107 1299 } 1300 #poststuff #editor-toolbar #edButtonHTML, #poststuff #editor-toolbar #edButtonPreview { 1301 position: relative; 1302 top: -5px; 1303 } 1108 1304 1109 1305 #poststuff #edButtonPreview, #poststuff #edButtonHTML { 1110 1306 display: block; … … 1117 1313 1118 1314 #poststuff #editor-toolbar .active { 1119 1315 font-weight: bold; 1120 -moz-border-radius- topright: 3px;1121 -khtml-border-top- right-radius: 3px;1122 -webkit-border- top-right-radius: 3px;1123 border- top-right-radius: 3px;1124 -moz-border-radius- topleft: 3px;1125 -khtml-border- top-left-radius: 3px;1126 -webkit-border- top-left-radius: 3px;1127 border- top-left-radius: 3px;1316 -moz-border-radius-bottomright: 3px; 1317 -khtml-border-top-bottom-radius: 3px; 1318 -webkit-border-bottom-right-radius: 3px; 1319 border-bottom-right-radius: 3px; 1320 -moz-border-radius-bottomleft: 3px; 1321 -khtml-border-bottom-left-radius: 3px; 1322 -webkit-border-bottom-left-radius: 3px; 1323 border-bottom-left-radius: 3px; 1128 1324 } 1129 1325 1130 1326 #poststuff #media-buttons { … … 1150 1346 background-repeat: no-repeat; 1151 1347 display: block; 1152 1348 height: 37px; 1153 margin-left: - 21px;1154 margin-top: - 10px;1349 margin-left: -14px; 1350 margin-top: -3px; 1155 1351 overflow: hidden; 1156 1352 position: absolute; 1157 1353 text-indent: -9999px; … … 1178 1374 background-position: 4px 15px; 1179 1375 } 1180 1376 1181 .submitbox { 1182 width: 220px; 1183 float: right; 1377 #side-info-column #side-sortables { 1378 height: 100%; 1184 1379 } 1185 1380 1186 .submitbox .inside strong {1187 font-size: 14px;1188 }1189 1190 1381 .submitbox .submitdelete { 1191 1382 border-bottom-width: 1px; 1192 1383 border-bottom-style: solid; … … 1195 1386 padding-bottom: 1px; 1196 1387 } 1197 1388 1198 1199 .submitbox #previewview {1200 padding: 15px 10px;1201 -moz-border-radius-topleft: 3px;1202 -khtml-border-top-left-radius: 3px;1203 -webkit-border-top-left-radius: 3px;1204 border-top-left-radius: 3px;1205 -moz-border-radius-topright: 3px;1206 -khtml-border-top-right-radius: 3px;1207 -webkit-border-top-right-radius: 3px;1208 border-top-right-radius: 3px;1209 }1210 1211 .submitbox #previewview a {1212 padding: 6px;1213 text-decoration: none;1214 font-weight: normal;1215 border-bottom: none;1216 font-size: 14px;1217 -moz-border-radius: 3px;1218 -khtml-border-radius: 3px;1219 -webkit-border-radius: 3px;1220 border-radius: 3px;1221 }1222 1223 .submitbox .submit {1224 text-align: left;1225 padding: 12px 10px 10px 10px;1226 font-size: 11px;1227 }1228 1229 1389 .submitbox .submit a:hover { 1230 1390 border-bottom-width: 1px; 1231 1391 border-bottom-style: solid; … … 1234 1394 .submitbox .submit input { 1235 1395 margin-bottom: 8px; 1236 1396 margin-right: 3px; 1237 padding: 6px 4px; 1238 border: none; 1397 padding: 6px; 1239 1398 } 1240 1399 1241 .submitbox #autosave .error {1242 margin-top: 10px;1243 }1244 1245 1400 /* Categories */ 1246 1401 1247 #category div #category-adder {1402 #category-adder { 1248 1403 margin-left: 120px; 1249 1404 padding: 4px 0; 1250 1405 } 1251 1406 1252 #category-add input, #category-add select { 1407 #category-adder h4 { 1408 margin: 0 0 8px; 1409 } 1410 1411 #side-info-column #category-adder { 1412 margin: 0; 1413 } 1414 1415 #post-body #category-add input, #category-add select { 1253 1416 width: 30%; 1254 1417 } 1255 1418 1419 #side-info-column #category-add input { 1420 width: 94%; 1421 } 1422 1423 #side-info-column #category-add select { 1424 width: 100%; 1425 } 1426 1256 1427 #category-add input#category-add-sumbit { 1257 1428 width: auto; 1258 1429 } 1259 1430 1260 # categorydivul#category-tabs {1431 #post-body ul#category-tabs { 1261 1432 float: left; 1262 1433 width: 120px; 1263 1434 text-align: right; … … 1266 1437 padding: 0; 1267 1438 } 1268 1439 1269 ul#category-tabs li {1440 #post-body ul#category-tabs li { 1270 1441 padding: 8px; 1271 1442 } 1272 1443 1273 ul#category-tabs li.ui-tabs-selected {1444 #post-body ul#category-tabs li.ui-tabs-selected { 1274 1445 -moz-border-radius-topleft: 3px; 1275 1446 -khtml-border-top-left-radius: 3px; 1276 1447 -webkit-border-top-left-radius: 3px; … … 1281 1452 border-bottom-left-radius: 3px; 1282 1453 } 1283 1454 1284 ul#category-tabs li.ui-tabs-selected a {1455 #post-body ul#category-tabs li.ui-tabs-selected a { 1285 1456 color: #333; 1286 1457 font-weight: bold; 1287 1458 text-decoration: none; 1288 1459 } 1289 1460 1290 div.ui-tabs-panel { 1461 #categorydiv div.ui-tabs-panel, #linkcategorydiv div.ui-tabs-panel { 1462 padding: .5em .9em; 1463 } 1464 1465 #post-body #categorydiv div.ui-tabs-panel, #post-body #linkcategorydiv div.ui-tabs-panel { 1291 1466 margin: 0 5px 0 120px; 1292 padding: .5em .9em;1293 1467 height: 10em; 1294 1468 overflow: auto; 1295 1469 border-width: 4px; 1296 1470 border-style: solid; 1297 1471 } 1298 1472 1299 #categorydiv ul { 1473 #side-info-column #category-tabs, #side-info-column #categories-pop { 1474 display: none; 1475 } 1476 1477 #categorydiv ul, #linkcategorydiv ul { 1300 1478 list-style: none; 1301 1479 padding: 0; 1302 1480 margin: 0; 1303 1481 } 1304 1482 1305 #categorydiv ul.categorychecklist ul {1483 #categorydiv ul.categorychecklist ul, #linkcategorydiv ul.categorychecklist ul { 1306 1484 margin-left: 18px; 1307 1485 } 1308 1486 … … 1312 1490 line-height: 19px; 1313 1491 } 1314 1492 1315 #linkcategorydiv #category-adder { 1316 margin-left: 120px; 1317 padding: 4px 0; 1318 } 1319 1320 #category-adder h4 { 1321 margin: 0; 1322 } 1323 1324 #linkcategorydiv ul#category-tabs { 1325 float: left; 1326 width: 120px; 1327 text-align: right; 1328 /* Negative margin for the sake of those without JS: all tabs display */ 1329 margin: 0 -120px 0 0; 1330 padding: 0; 1331 } 1332 1333 #linkcategorydiv ul { 1334 list-style: none; 1335 padding: 0; 1336 margin: 0; 1337 } 1338 1339 #linkcategorydiv ul.categorychecklist ul { 1340 margin-left: 18px; 1341 } 1342 1343 /* pasitioning etc. */ 1493 /* positioning etc. */ 1344 1494 form#tags-filter { 1345 1495 position: relative; 1346 1496 } … … 1356 1506 position: relative; 1357 1507 } 1358 1508 1359 p# post-search{1509 p#big-add-button { 1360 1510 position: absolute; 1361 1511 right: 0; 1362 1512 top: 0; 1363 1513 margin: 0; 1364 1514 } 1365 1515 1516 p#big-add-button .button { 1517 font-size: 18px; 1518 padding: 3px 30px; 1519 } 1520 1521 p#post-search { 1522 position: absolute; 1523 right: 0; 1524 top: -64px; 1525 margin: 0; 1526 } 1527 1366 1528 #post-search .button, #widget-search .button { 1367 1529 padding: 3px; 1368 1530 font-size: 13px; 1369 1531 } 1370 1532 1533 #post-search-input { 1534 margin-right: 2px; 1535 border-width: 1px; 1536 border-style: solid; 1537 } 1538 1371 1539 #posts-filter fieldset { 1372 1540 float: left; 1373 1541 margin: 0 1.5ex 1em 0; … … 1477 1645 word-wrap: break-word; 1478 1646 } 1479 1647 1480 #the-comment-list td.comment p {1481 margin-left: 8px;1482 }1483 1484 1648 #the-comment-list .check-column { 1485 1649 padding-top: 8px; 1486 1650 } … … 1489 1653 text-decoration: none; 1490 1654 } 1491 1655 1492 .curtime {1656 #submitpost p.curtime { 1493 1657 background-image: url(images/date-button.gif); 1494 1658 background-repeat: no-repeat; 1495 background-position: left 2px;1659 background-position: left 4px; 1496 1660 padding-left: 18px; 1661 padding-top: 2px; 1497 1662 } 1498 1663 1499 1664 .tablenav .delete { … … 1525 1690 text-align: right; 1526 1691 } 1527 1692 1528 #poststuff h3, #poststuff .closed h3 {1529 cursor: pointer;1530 }1531 1532 1693 .hide-if-no-js { 1533 1694 display: none; 1534 1695 } … … 1621 1782 border-color: #555; 1622 1783 background-color: #ccc; 1623 1784 } 1785 1786 .settings-toggle { 1787 text-align: right; 1788 margin: 5px 7px 15px 0; 1789 font-size: 12px; 1790 } 1791 1792 .settings-toggle h3 { 1793 margin: 0; 1794 } 1795 1796 p.meta-options { 1797 border: 1px solid; 1798 padding: 1em .5em; 1799 } 1800 1801 .ui-sortable .postbox h3 { 1802 cursor:move; 1803 } 1804 1805 a.togbox { 1806 cursor: pointer; 1807 } 1808 1809 1810 /* fixed bottom bar */ 1811 .postarea h3 label { 1812 1813 } 1814 1815 #footer { 1816 z-index: -1; 1817 } 1818 1819 #fixedbar { 1820 bottom:0pt; 1821 height:80px; 1822 position:fixed; 1823 width:100%; 1824 z-index: 100; 1825 } 1826 1827 #fixedbar #submitpost { 1828 1829 } 1830 1831 #fixedbar .submit { 1832 padding-top: 10px; 1833 } 1834 1835 #fixedbar .button { 1836 border: none; 1837 -moz-border-radius: 6px; 1838 -khtml-border-radius: 6px; 1839 -webkit-border-radius: 6px; 1840 border-radius: 6px; 1841 } 1842 1843 #fixedbar .button:hover { 1844 background: #fff; 1845 } 1846 1847 #fixedbar #publish { 1848 font-weight:bold; 1849 width:160px; 1850 } 1851 1852 #fixedbar #save-post { 1853 width:80px; 1854 font-weight:normal; 1855 } 1856 1857 #fixedbar .submitbox { 1858 padding: 14px 18px; 1859 border-left: 1px solid #aaa; 1860 width: 690px; 1861 } 1862 1863 #fixedbar #post-time-info, 1864 #fixedbar #comment-time-info { 1865 margin-top: 16px; 1866 } 1867 1868 #fixedbar #timestampdiv input, 1869 #fixedbar #timestampdiv select { 1870 background-color:#464646; 1871 border:1px solid #777777; 1872 color:#CCCCCC; 1873 padding:2px; 1874 } 1875 1876 #fixedbar-wrap { 1877 width: 100%; 1878 } 1879 1880 #preview-link { 1881 text-align: right; 1882 } 1883 1884 #preview-link a { 1885 padding-right:10px; 1886 } 1887 1888 p#post-search-prep { 1889 margin:0pt; 1890 position:absolute; 1891 right:20px; 1892 top:50px; 1893 } 1894 1895 #jj, #hh, #mn { 1896 width: 1.5em; 1897 } 1898 1899 #aa { 1900 width: 2.7em; 1901 } 1902 1903 #inbox-filter .actions { 1904 margin-left: 6px; 1905 background: url(images/archive-link.png) 0px 12px no-repeat; 1906 padding-left: 16px; 1907 } 1908 1909 #inbox-filter .actions .button { 1910 font-size: 11px; 1911 padding: 2px; 1912 } 1913 1914 /* media popup 0819 */ 1915 1916 #sidemenu { 1917 margin: -30px 15px 0 315px; 1918 list-style: none; 1919 position: relative; 1920 float: right; 1921 padding-left: 10px; 1922 font-size:12px; 1923 } 1924 1925 #sidemenu a { 1926 padding: 0 7px; 1927 display: block; 1928 float: left; 1929 line-height: 28px; 1930 border-top-width: 1px; 1931 border-top-style: solid; 1932 border-bottom-width: 1px; 1933 border-bottom-style: solid; 1934 } 1935 1936 #sidemenu li { 1937 display: inline; 1938 line-height: 200%; 1939 list-style: none; 1940 text-align: center; 1941 white-space: nowrap; 1942 margin: 0; 1943 padding: 0; 1944 } 1945 1946 #sidemenu a.current { 1947 font-weight: normal; 1948 padding-left: 6px; 1949 padding-right: 6px; 1950 -moz-border-radius-topleft: 4px; 1951 -khtml-border-top-left-radius: 4px; 1952 -webkit-border-top-left-radius: 4px; 1953 border-top-left-radius: 4px; 1954 -moz-border-radius-topright: 4px; 1955 -khtml-border-top-right-radius: 4px; 1956 -webkit-border-top-right-radius: 4px; 1957 border-top-right-radius: 4px; 1958 border-width: 1px; 1959 border-style: solid; 1960 } 1961 1962 #sidemenu { 1963 margin: -30px 15px 0 315px; 1964 list-style: none; 1965 position: relative; 1966 float: right; 1967 padding-left: 10px; 1968 font-size:12px; 1969 } 1970 1971 #sidemenu a { 1972 padding: 0 7px; 1973 display: block; 1974 float: left; 1975 line-height: 28px; 1976 border-top-width: 1px; 1977 border-top-style: solid; 1978 border-bottom-width: 1px; 1979 border-bottom-style: solid; 1980 } 1981 1982 #sidemenu li a .count-0 { 1983 display: none; 1984 } 1985 1986 #previewview { 1987 float:right; 1988 margin-top:-53px; 1989 } 1990 1991 #previewview a { 1992 display:block; 1993 font-size:16px; 1994 font-weight:normal; 1995 padding:4px 8px; 1996 text-align:center; 1997 text-decoration:none; 1998 width:200px; 1999 } -
wp-admin/includes/comment.php
126 126 add_filter( 'comment_author', 'floated_admin_avatar' ); 127 127 } 128 128 129 function wp_get_inbox_items() { 130 $r = array(); 131 $r[] = (object) array( 132 'text' => 'Your take on the evolution of Dr. Who is ridiculous. The fact that the actors are getting younger has nothing to do with Gallifrey lore, and everything to do with celebrity culture.', 133 'date' => '2008/09/07', 134 'time' => '4:19pm', 135 'from' => 'I. monroe', 136 'type' => 'comment', 137 'parent' => '1', 138 'href' => '#' 139 ); 140 141 $r[] = (object) array( 142 'text' => 'Announcement: WordPress introduces new features for mobile blogging.', 143 'date' => '2008/09/06', 144 'time' => '3:24pm', 145 'from' => 'WordPress.org', 146 'type' => 'announcement', 147 'parent' => '0', 148 'href' => '#' 149 ); 150 151 $r[] = (object) array( 152 'text' => 'Great review. You left out a few things, but maybe you were trying to avoid spoilers? Will check back later in a week.', 153 'date' => '2008/09/06', 154 'time' => '2:46pm', 155 'from' => 'matt', 156 'type' => 'comment', 157 'parent' => '2', 158 'href' => '#' 159 ); 160 161 $r[] = (object) array( 162 'text' => 'nice picture!', 163 'date' => '2008/08/05', 164 'time' => '9:17am', 165 'from' => 'caped crusader', 166 'type' => 'comment', 167 'parent' => '3', 168 'href' => '#' 169 ); 170 171 return $r; 172 } 173 129 174 ?> -
wp-admin/includes/update.php
45 45 46 46 echo "<div id='update-nag'>$msg</div>"; 47 47 } 48 add_action( 'admin_notices', 'update_nag', 3 ); 48 //add_action( 'admin_notices', 'update_nag', 3 ); // crazyhorse 49 49 50 50 // Called directly from dashboard 51 51 function update_right_now_message() { -
wp-admin/includes/post.php
691 691 // Otherwise create the new autosave as a special post revision 692 692 return _wp_put_post_revision( $_POST, true ); 693 693 } 694 695 /** 696 * wp_teeny_mce() - adds a trimmed down version of the tinyMCE editor used on the Write -> Post screen. 697 * 698 * @package WordPress 699 * @since 2.6 700 */ 701 function wp_teeny_mce( $args = null ) { 702 if ( !user_can_richedit() ) 703 return; 704 705 $defaults = array( 706 'buttons1' => 'bold,italic,underline,blockquote,separator,strikethrough,bullist,numlist,undo,redo,link,unlink' 707 ); 708 $args = wp_parse_args( $args, $defaults ); 709 if ( is_array( $args['buttons1'] ) ) 710 $args['buttons1'] = join( ',', $args['buttons1'] ); 711 712 $language = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); 713 714 ?> 715 716 <script type="text/javascript" src="<?php echo clean_url( site_url( 'wp-includes/js/tinymce/tiny_mce.js' ) ); ?>"></script> 717 <script type="text/javascript"> 718 /* <![CDATA[ */ 719 <?php 720 // Add TinyMCE languages 721 @include_once( ABSPATH . WPINC . '/js/tinymce/langs/wp-langs.php' ); 722 723 if ( isset($strings) ) 724 echo $strings; 725 726 ?> 727 (function() { 728 var base = tinymce.baseURL, sl = tinymce.ScriptLoader, ln = "<?php echo $language; ?>"; 729 730 sl.markDone(base + '/langs/' + ln + '.js'); 731 sl.markDone(base + '/themes/advanced/langs/' + ln + '.js'); 732 sl.markDone(base + '/themes/advanced/langs/' + ln + '_dlg.js'); 733 })(); 734 735 var wpTeenyMCEInit = function() { 736 tinyMCE.init({ 737 mode: "textareas", 738 editor_selector: "mceEditor", 739 language : "<?php echo $language; ?>", 740 width: "100%", 741 theme : "advanced", 742 theme_advanced_buttons1 : "<?php echo $args['buttons1']; ?>", 743 theme_advanced_buttons2 : "", 744 theme_advanced_buttons3 : "", 745 theme_advanced_toolbar_location : "top", 746 theme_advanced_toolbar_align : "left", 747 theme_advanced_statusbar_location : "bottom", 748 theme_advanced_resizing : true, 749 theme_advanced_resize_horizontal : false, 750 skin : "wp_theme", 751 dialog_type : "modal", 752 relative_urls : false, 753 remove_script_host : false, 754 convert_urls : false, 755 apply_source_formatting : false, 756 remove_linebreaks : true, 757 accessibility_focus : false, 758 tab_focus : ":next", 759 plugins : "safari,inlinepopups", 760 entities : "38,amp,60,lt,62,gt", 761 force_p_newlines : true, 762 save_callback : 'switchEditors.saveCallback' 763 }); 764 }; 765 wpTeenyMCEInit(); 766 /* ]]> */ 767 </script> 768 769 <?php 770 } -
wp-admin/includes/dashboard.php
35 35 array( 'all_link' => 'edit-comments.php', 'notice' => $notice, 'width' => 'half' ) 36 36 ); 37 37 38 39 // QuickPress Widget 40 if ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['action'] ) && 0 === strpos( $_POST['action'], 'post-quickpress' ) ) { 41 $view = get_permalink( $_POST['post_ID'] ); 42 $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); 43 if ( 'post-quickpress-publish' == $_POST['action'] ) 44 $notice = sprintf( __( 'Post Published. <a href="%s">View post</a> | <a href="%s">Edit post</a>' ), clean_url( $view ), $edit ); 45 else 46 $notice = sprintf( __( 'Draft Saved. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ), clean_url( add_query_arg( 'preview', 1, $view ) ), $edit ); 47 } else { 48 $notice = ''; 49 } 50 wp_register_sidebar_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press', 51 array( 'all_link' => array( 'edit.php?post_status=draft', __('View All Drafts') ), 'width' => 'half', 'height' => 'double', 'notice' => $notice ) 52 ); 53 wp_register_widget_control( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_empty_control', 54 array( 'widget_id' => 'dashboard_quick_press' ) 55 ); 56 57 // Inbox Widget 58 wp_register_sidebar_widget( 'dashboard_inbox', __( 'Inbox' ), 'wp_dashboard_inbox', 59 array( 'all_link' => 'inbox.php', 'height' => 'double' ) 60 ); 61 wp_register_widget_control( 'dashboard_inbox', __( 'Inbox' ), 'wp_dashboard_empty_control', 62 array( 'widget_id' => 'dashboard_inbox' ) 63 ); 64 38 65 // Incoming Links Widget 39 66 if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) { 40 67 $update = true; … … 106 133 /* Dashboard Widget Template 107 134 wp_register_sidebar_widget( $widget_id (unique slug) , $widget_title, $output_callback, 108 135 array( 109 'all_link' => full url for " SeeAll" link,136 'all_link' => full url for "View All" link, 110 137 'feed_link' => full url for "RSS" link, 111 138 'width' => 'fourth', 'third', 'half', 'full' (defaults to 'half'), 112 139 'height' => 'single', 'double' (defaults to 'single'), … … 132 159 133 160 // Hard code the sidebar's widgets and order 134 161 $dashboard_widgets = array(); 162 $dashboard_widgets[] = 'dashboard_inbox'; 163 $dashboard_widgets[] = 'dashboard_quick_press'; 164 /* 135 165 $dashboard_widgets[] = 'dashboard_recent_comments'; 136 166 $dashboard_widgets[] = 'dashboard_incoming_links'; 137 167 $dashboard_widgets[] = 'dashboard_primary'; 138 168 if ( current_user_can( 'activate_plugins' ) ) 139 169 $dashboard_widgets[] = 'dashboard_plugins'; 170 */ 140 171 $dashboard_widgets[] = 'dashboard_secondary'; 141 172 142 173 // Filter widget order 143 174 $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', $dashboard_widgets ); 175 if ( in_array( 'dashboard_quick_press', $dashboard_widgets ) ) { 176 // add_action( 'admin_head', 'wp_teeny_mce' ); 177 add_action( 'admin_head', 'wp_dashboard_quick_press_js' ); 178 } 144 179 145 180 $wp_dashboard_sidebars = array( 'wp_dashboard' => $dashboard_widgets, 'array_version' => 3.5 ); 146 181 … … 205 240 if ( $the_classes ) 206 241 $sidebar_before_widget = str_replace( "<div class='dashboard-widget-holder ", "<div class='dashboard-widget-holder " . join( ' ', $the_classes ) . ' ', $sidebar_before_widget ); 207 242 208 $links = array(); 209 if ( $widget_all_link ) 210 $links[] = '<a href="' . clean_url( $widget_all_link ) . '">' . __( 'See All' ) . '</a>'; 243 $top_links = $bottom_links = array(); 244 if ( $widget_all_link ) { 245 $widget_all_link = (array) $widget_all_link; 246 $bottom_links[] = '<a href="' . clean_url( $widget_all_link[0] ) . '">' . ( isset($widget_all_link[1]) ? $widget_all_link[1] : __( 'View All' ) ) . '</a>'; 247 } 211 248 212 249 $content_class = 'dashboard-widget-content'; 213 250 if ( current_user_can( 'edit_dashboard' ) && isset($wp_registered_widget_controls[$widget_id]) && is_callable($wp_registered_widget_controls[$widget_id]['callback']) ) { … … 219 256 $params[1] = 'wp_dashboard_trigger_widget_control'; 220 257 $sidebar_before_widget .= '<form action="' . clean_url(remove_query_arg( 'edit' )) . '" method="post">'; 221 258 $sidebar_after_widget = "<div class='dashboard-widget-submit'><input type='hidden' name='sidebar' value='wp_dashboard' /><input type='hidden' name='widget_id' value='$widget_id' /><input type='submit' value='" . __( 'Save' ) . "' /></div></form>$sidebar_after_widget"; 222 $ links[] = '<a href="' . clean_url(remove_query_arg( 'edit' )) . '">' . __( 'Cancel' ) . '</a>';259 $top_links[] = '<a href="' . clean_url(remove_query_arg( 'edit' )) . '">' . __( 'Cancel' ) . '</a>'; 223 260 } else { 224 $ links[] = '<a href="' . clean_url(add_query_arg( 'edit', $widget_id )) . "#$widget_id" . '">' . __( 'Edit' ) . '</a>';261 $top_links[] = '<a href="' . clean_url(add_query_arg( 'edit', $widget_id )) . "#$widget_id" . '">' . __( 'Edit' ) . '</a>'; 225 262 } 226 263 } 227 264 228 265 if ( $widget_feed_link ) 229 $ links[] = '<img class="rss-icon" src="' . includes_url('images/rss.png') . '" alt="' . __( 'rss icon' ) . '" /> <a href="' . clean_url( $widget_feed_link ) . '">' . __( 'RSS' ) . '</a>';266 $bottom_links[] = '<img class="rss-icon" src="' . includes_url('images/rss.png') . '" alt="' . __( 'rss icon' ) . '" /> <a href="' . clean_url( $widget_feed_link ) . '">' . __( 'RSS' ) . '</a>'; 230 267 231 $ links = apply_filters( "wp_dashboard_widget_links_$widget_id", $links );268 $bottom_links = apply_filters( "wp_dashboard_widget_links_$widget_id", $bottom_links ); 232 269 233 // Add links to widget's title bar234 if ( $links ) {235 $sidebar_before_title .= '<span>';236 $sidebar_after_title = '</span><small>' . join( ' | ', $links ) . "</small><br class='clear' />$sidebar_after_title";237 }238 239 270 // Could have put this in widget-content. Doesn't really matter 240 271 if ( $widget_notice ) 241 272 $sidebar_after_title .= "\t\t\t<div class='dashboard-widget-notice'>$widget_notice</div>\n\n"; … … 245 276 246 277 $sidebar_after_title .= "\t\t\t<div class='$content_class'>\n\n"; 247 278 279 // Add links to widget's title bar 280 if ( $top_links ) { 281 $sidebar_before_title .= '<span>'; 282 $sidebar_after_title = '</span><small>' . join( ' | ', $top_links ) . "</small><br class='clear' />$sidebar_after_title"; 283 } 284 285 // Add links to bottom of widget 286 if ( $bottom_links ) 287 $sidebar_after_widget .= "<p class='dashboard-widget-links'>" . join( ' | ', $bottom_links ) . "</p>"; 288 248 289 $sidebar_after_widget .= "\t\t\t</div>\n\n"; 249 290 250 291 foreach( array_keys( $params[0] ) as $key ) … … 258 299 259 300 /* Dashboard Widgets */ 260 301 302 function wp_dashboard_quick_press( $sidebar_args ) { 303 extract( $sidebar_args, EXTR_SKIP ); 304 305 echo $before_widget; 306 307 echo $before_title; 308 echo $widget_name; 309 echo $after_title; 310 311 if ( ( 'post' === strtolower( $_SERVER['REQUEST_METHOD'] ) ) && 'post-quickpress-save-cont' === $_POST['action'] ) { 312 $post = get_post_to_edit( $_POST['post_ID'] ); 313 } else { 314 $_REQUEST = array(); // hack 315 $post = get_default_post_to_edit(); 316 } 317 ?> 318 319 <form name="post" action="<?php echo clean_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press"> 320 <h3 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h3> 321 <div class="input-text-wrap"> 322 <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" /> 323 </div> 324 325 <h3><label for="content"><?php _e('Post') ?></label></h3> 326 <div class="textarea-wrap"> 327 <textarea name="content" id="quickpress-content" class="mceEditor" rows="3" cols="15"><?php echo $post->post_content; ?></textarea> 328 </div> 329 330 <h3><label for="tags-input"><?php _e('Tags') ?></label></h3> 331 <div class="input-text-wrap"> 332 <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /> 333 </div> 334 <p class='field-tip'><?php _e('Separate tags with commas'); ?></p> 335 336 <p class="submit"> 337 <input type="hidden" name="action" id="quickpost-action" value="post-quickpress-save" /> 338 <input type="hidden" name="quickpress_post_ID" value="<?php echo (int) $post->ID; ?>" /> 339 <?php wp_nonce_field('add-post'); ?> 340 <input type="submit" name="save" id="save-post" class="button" value="<?php _e('Save'); ?>" /> 341 <input type="submit" name="save-cont" id="save-cont" class="button" value="<?php _e('Save and Continue'); ?>" /> 342 <input type="submit" name="publish" id="publish" accesskey="p" class="button button-highlighted" value="<?php _e('Publish'); ?>" /> 343 </p> 344 345 <?php 346 $drafts_query = new WP_Query( array( 347 'post_type' => 'post', 348 'what_to_show' => 'posts', 349 'post_status' => 'draft', 350 'author' => $GLOBALS['current_user']->ID, 351 'posts_per_page' => 5, 352 'orderby' => 'modified', 353 'order' => 'DESC' 354 ) ); 355 356 if ( $drafts_query->posts ) : 357 $list = array(); 358 foreach ( $drafts_query->posts as $draft ) { 359 $url = get_edit_post_link( $draft->ID ); 360 $title = get_the_title( $draft->ID ); 361 $list[] = "<a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a>"; 362 } 363 ?> 364 365 <h3><?php _e('Recent Drafts'); ?></h3> 366 <p id='recent-drafts'> 367 <?php echo join( ', ', $list ); ?> 368 </p> 369 370 <?php 371 372 endif; // drafts 373 374 ?> 375 376 </form> 377 378 <?php 379 380 echo $after_widget; 381 } 382 383 function wp_dashboard_quick_press_js() { 384 ?> 385 <script type="text/javascript"> 386 /* <![CDATA[ */ 387 var quickPressLoad = function($) { 388 var act = $('#quickpost-action'); 389 var t = $('#quick-press').submit( function() { 390 if ( 'post-quickpress-save-cont' == act.val() ) { 391 return true; 392 } 393 394 var head = $('#dashboard_quick_press div.dashboard-widget').children( 'div').hide().end().find('h3 small'); 395 head.prepend( '<img src="images/loading.gif" style="margin: 0 6px 0 0; vertical-align: middle" />' ); 396 397 if ( 'post' == act.val() ) { act.val( 'post-quickpress-publish' ); } 398 399 if ( 'undefined' != typeof tinyMCE ) { 400 tinyMCE.get('quickpress-content').save(); 401 tinyMCE.get('quickpress-content').remove(); 402 } 403 404 $('#dashboard_quick_press').load( t.attr( 'action' ) + ' #dashboard_quick_press > *', t.serializeArray(), function() { 405 if ( 'undefined' != typeof wpTeenyMCEInit && $.isFunction( wpTeenyMCEInit ) ) { wpTeenyMCEInit(); } 406 quickPressLoad($); 407 } ); 408 return false; 409 } ); 410 411 $('#publish').click( function() { act.val( 'post-quickpress-publish' ); } ); 412 $('#save-cont').click( function() { act.val( 'post-quickpress-save-cont' ); t.attr( 'action', 'post.php' ); } ); 413 }; 414 jQuery( quickPressLoad ); 415 /* ]]> */ 416 </script> 417 <?php 418 } 419 420 421 function wp_dashboard_inbox( $sidebar_args ) { 422 extract( $sidebar_args, EXTR_SKIP ); 423 424 echo $before_widget; 425 426 echo $before_title; 427 echo $widget_name; 428 echo $after_title; 429 430 ?> 431 432 <style type="text/css"> 433 #inbox-filter ul { 434 list-style: none; 435 margin: 0; 436 padding: 0; 437 position: relative; 438 } 439 #inbox-filter ul li { 440 position: relative; 441 padding-right: 20px; 442 } 443 #inbox-filter ul input.checkbox { 444 float: left; 445 } 446 #inbox-filter ul p { 447 float: left; 448 margin: 0; 449 margin-left: -40px; 450 width: 100%; 451 position: relative; 452 left: 50px; 453 } 454 #inbox-message { 455 margin:0 0 0 7.5em; 456 padding:5px; 457 } 458 </style> 459 <script type="text/javascript"> 460 jQuery( function($) { 461 $('#inbox-filter').submit( function() { return false; } ) 462 .find( ':button' ).click( function() { 463 var done = $(':checked').size().toString(), txt = (done == '1') ? '<?php _e(' item archived'); ?>' : '<?php _e(' items archived'); ?>'; 464 $(':checked').parent().slideUp( 'normal', function() { 465 $('.inbox-count').text( $('#inbox-filter li:visible').size().toString() ); 466 $('#inbox-message').addClass('updated'); 467 $('#inbox-message').text(done+txt+" (This feature isn't enabled in this prototype)"); 468 } ); 469 } ); 470 } ); 471 </script> 472 473 <form id="inbox-filter" action="" method="get"> 474 <p class="actions"><input type="button" value="Archive" name="archive" class="button"></p> 475 <div id="inbox-message"></div> 476 <br class="clear" /> 477 478 <ul> 479 480 <?php $crazy_posts = array( '', 'some post', 'a post', 'my cool post' ); foreach ( wp_get_inbox_items() as $k => $item ) : // crazyhorse ?> 481 482 <li id="message-<?php echo $k; ?>"> 483 <input type="checkbox" name="messages[]" value="<?php echo $k; ?>" class="checkbox" /> 484 <p><?php 485 if ( $item->href ) 486 echo "<a href='$item->href' class='no-crazy'>"; 487 echo wp_specialchars( $item->text ); 488 if ( strlen( $item->text ) > 180 ) // crazyhorse 489 echo '<br/><span class="inbox-more">more…</span>'; 490 if ( $item->href ) 491 echo '</a>'; 492 ?><br /> 493 -- <cite><?php 494 echo $item->from; 495 if ( 'comment' == $item->type ) // crazyhorse 496 echo " on "<a href='#' class='no-crazy'>{$crazy_posts[$item->parent]}</a>""; 497 ?></cite>, <?php echo "$item->date, $item->time"; ?> 498 </p> 499 <br class="clear" /> 500 </li> 501 502 <?php endforeach; ?> 503 504 </ul> 505 </form> 506 507 <?php 508 509 echo $after_widget; 510 } 511 261 512 function wp_dashboard_recent_comments( $sidebar_args ) { 262 513 global $comment; 263 514 extract( $sidebar_args, EXTR_SKIP ); … … 509 760 510 761 /* Dashboard Widgets Controls. Ssee also wp_dashboard_empty() */ 511 762 763 // Temp 764 function wp_dashboard_empty_control() { 765 echo "This feature isn't enabled in this prototype."; 766 } 767 512 768 // Calls widget_control callback 513 769 function wp_dashboard_trigger_widget_control( $widget_control_id = false ) { 514 770 global $wp_registered_widget_controls; -
wp-admin/post.php
35 35 $location = $_POST['referredby']; 36 36 } elseif ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) { 37 37 $location = 'sidebar.php?a=b'; 38 } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) {38 } elseif ( ( isset($_POST['save']) || isset($_POST['publish']) ) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) { 39 39 if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post.php') === false && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post-new.php') === false ) 40 40 $location = add_query_arg( array( 41 41 '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), 42 42 'message' => 1 43 43 ), get_edit_post_link( $post_ID, 'url' ) ); 44 44 else 45 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) );45 $location = add_query_arg( 'message', 6, get_edit_post_link( $post_ID, 'url' ) ); 46 46 } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { 47 47 $location = add_query_arg( 'message', 2, wp_get_referer() ); 48 48 $location = explode('#', $location); … … 62 62 $location = "post-new.php?posted=$post_ID"; 63 63 } elseif ($action == 'editattachment') { 64 64 $location = 'attachments.php'; 65 } elseif ( 'post-quickpress-save-cont' == $_POST['action'] ) { 66 $location = "post.php?action=edit&post=$post_ID&message=7"; 65 67 } else { 66 68 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) ); 67 69 } … … 75 77 switch($action) { 76 78 case 'postajaxpost': 77 79 case 'post': 80 case 'post-quickpress-publish': 81 case 'post-quickpress-save': 82 case 'post-quickpress-save-cont': 78 83 check_admin_referer('add-post'); 79 84 80 $post_ID = 'post' == $action ? write_post() : edit_post(); 85 if ( 'post-quickpress-publish' == $action ) 86 $_POST['publish'] = 'publish'; // tell write_post() to publish 81 87 88 if ( !empty( $_POST['quickpress_post_ID'] ) ) { 89 $_POST['post_ID'] = (int) $_POST['quickpress_post_ID']; 90 $post_ID = edit_post(); 91 } else { 92 $post_ID = 'postajaxpost' == $action ? edit_post() : write_post(); 93 } 94 95 if ( 'post-quickpress-save-cont' != $action && 0 === strpos( $action, 'post-quickpress' ) ) { 96 $_POST['post_ID'] = $post_ID; 97 // output the quickpress dashboard widget 98 require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); 99 add_filter( 'wp_dashboard_widgets', create_function( '$a', 'return array( "dashboard_quick_press" );' ) ); 100 wp_dashboard_setup(); 101 wp_dashboard(); 102 exit; 103 } 104 82 105 redirect_post($post_ID); 83 106 exit(); 84 107 break; -
wp-admin/js/edit-comments.js
55 55 var n = parseInt(a.html(),10) - 1; 56 56 a.html( n.toString() ); 57 57 }); 58 $('li span.spam-comment-count' ).each( function() { 59 var a = $(this); 60 var n = parseInt(a.html(),10); 61 if ( $(settings.target).parents( 'span.spam' ).size() ) { // we marked a comment as spam 62 n = n + 1; 63 } else if ( $('#' + settings.element).is('.spam') ) { // we approved or deleted a comment marked as spam 64 n = n - 1; 65 } 66 if ( n < 0 ) { n = 0; } 67 a.html( n.toString() ); 68 }); 58 69 59 70 if ( theExtraList.size() == 0 || theExtraList.children().size() == 0 ) { 60 71 return; -
wp-admin/js/page.js
1 1 jQuery(document).ready( function() { 2 add_postbox_toggles('page');2 postboxes.add_postbox_toggles('page'); 3 3 make_slugedit_clickable(); 4 4 5 5 // close postboxes that should be closed 6 6 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 7 7 8 // show things that should be visible, hide what should be hidden9 jQuery('.hide-if-no-js').show();10 jQuery('.hide-if-js').hide();11 12 8 jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } ); 13 9 14 10 // hide advanced slug field … … 16 12 17 13 jQuery('.edit-timestamp').click(function () { 18 14 if (jQuery('#timestampdiv').is(":hidden")) { 15 jQuery('#curtime').slideUp("normal"); 19 16 jQuery('#timestampdiv').slideDown("normal"); 20 jQuery('.edit-timestamp').text(postL10n.cancel);21 17 } else { 22 jQuery('#timestampdiv'). hide();18 jQuery('#timestampdiv').slideUp("normal"); 23 19 jQuery('#mm').val(jQuery('#hidden_mm').val()); 24 20 jQuery('#jj').val(jQuery('#hidden_jj').val()); 25 21 jQuery('#aa').val(jQuery('#hidden_aa').val()); 26 22 jQuery('#hh').val(jQuery('#hidden_hh').val()); 27 23 jQuery('#mn').val(jQuery('#hidden_mn').val()); 28 jQuery(' .edit-timestamp').text(postL10n.edit);24 jQuery('#curtime').slideDown("normal"); 29 25 } 30 26 return false; 31 }); 27 }); 28 29 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 30 jQuery('#timestampdiv').hide(); 31 var link = jQuery('.timestamp a').clone( true ); 32 jQuery('.timestamp').show().html( 33 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 34 jQuery('#jj').val() + ',' + 35 jQuery('#aa').val() + '@' + 36 jQuery('#hh').val() + ':' + 37 jQuery('#mn').val() + ' ' 38 ).append( link ); 39 jQuery('#curtime').slideDown("normal"); 40 return false; 41 }); 32 42 }); 43 No newline at end of file -
wp-admin/js/post.js
64 64 // close postboxes that should be closed 65 65 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 66 66 67 // show things that should be visible, hide what should be hidden68 jQuery('.hide-if-no-js').show();69 jQuery('.hide-if-js').hide();70 71 67 // postboxes 72 add_postbox_toggles('post');68 postboxes.add_postbox_toggles('post'); 73 69 74 70 // Editable slugs 75 71 make_slugedit_clickable(); … … 161 157 162 158 jQuery('.edit-timestamp').click(function () { 163 159 if (jQuery('#timestampdiv').is(":hidden")) { 160 jQuery('#curtime').slideUp("normal"); 164 161 jQuery('#timestampdiv').slideDown("normal"); 165 jQuery('.edit-timestamp').text(postL10n.cancel);166 162 } else { 167 jQuery('#timestampdiv'). hide();163 jQuery('#timestampdiv').slideUp("normal"); 168 164 jQuery('#mm').val(jQuery('#hidden_mm').val()); 169 165 jQuery('#jj').val(jQuery('#hidden_jj').val()); 170 166 jQuery('#aa').val(jQuery('#hidden_aa').val()); 171 167 jQuery('#hh').val(jQuery('#hidden_hh').val()); 172 168 jQuery('#mn').val(jQuery('#hidden_mn').val()); 173 jQuery(' .edit-timestamp').text(postL10n.edit);169 jQuery('#curtime').slideDown("normal"); 174 170 } 175 171 return false; 172 }); 176 173 174 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 175 jQuery('#timestampdiv').hide(); 176 var link = jQuery('.timestamp a').clone( true ); 177 jQuery('.timestamp').show().html( 178 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 179 jQuery('#jj').val() + ',' + 180 jQuery('#aa').val() + '@' + 181 jQuery('#hh').val() + ':' + 182 jQuery('#mn').val() + ' ' 183 ).append( link ); 184 jQuery('#curtime').slideDown("normal"); 185 return false; 177 186 }); 178 187 179 188 // Custom Fields -
wp-admin/js/common.js
4 4 5 5 // Reveal 6 6 jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' ); 7 8 // show things that should be visible, hide what should be hidden 9 jQuery('.hide-if-no-js').show(); 10 jQuery('.hide-if-js').hide(); 7 11 8 12 // Basic form validation 9 13 if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) { 10 14 jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } ); 11 15 } 16 17 jQuery('a.no-crazy').click( function() { 18 alert( "This feature isn't enabled in this prototype." ); 19 return false; 20 } ); 12 21 }); 13 22 14 23 (function(JQ) { … … 25 34 el.find('img').removeAttr('alt'); 26 35 27 36 el.mouseover(function(e) { 28 txt = el.attr('tip'), o = el.offset(); ;37 txt = el.attr('tip'), o = el.offset(); 29 38 30 39 clearTimeout(TT.sD); 31 40 TT.find('p').html(txt); … … 42 51 } 43 52 }(jQuery)); 44 53 54 jQuery( function($) { 55 var menuToggle = function(ul, effect) { 56 if ( !effect ) { 57 effect = 'slideToggle'; 58 } 59 ul[effect]().parent().toggleClass( 'wp-menu-open' ); 60 return false; 61 }; 62 63 jQuery('#adminmenu li.wp-has-submenu > a').click( function() { return menuToggle( jQuery(this).siblings('ul') ); } ); 64 65 jQuery('#dashmenu li.wp-has-submenu').bind( 'mouseenter mouseleave', function() { return menuToggle( jQuery(this).children('ul'), 'toggle' ); } ); 66 67 // Temp 68 if ( !$('#post-search, #widget-search').size() ) { 69 $('#wphead').append( '<p id="post-search-prep"><input id="post-search-input" type="text" /><input class="button" type="button" value="Search" /></p>' ); 70 } 71 72 // Temp 2 73 var minH = $(window).height()-185+"px" 74 $('#wpbody-content').css("min-height", minH); 75 76 } ); 77 45 78 jQuery(function(){jQuery('#media-buttons a').tTips();}); -
wp-admin/js/link.js
4 4 5 5 jQuery('#link_name').focus(); 6 6 // postboxes 7 add_postbox_toggles('link');7 postboxes.add_postbox_toggles('link'); 8 8 9 9 // category tabs 10 10 var categoryTabs = jQuery('#category-tabs').tabs(); -
wp-admin/js/postbox.js
1 function add_postbox_toggles(page) {2 jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');3 jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );4 }5 1 2 (function($) { 3 postboxes = { 4 add_postbox_toggles : function(page) { 5 $('.postbox h3').before('<a class="togbox">+</a> '); 6 $('.postbox a.togbox').click( function() { $($(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } ); 7 8 if ( $.browser.msie ) { 9 $('#side-sortables').append( '<div id="make-it-tall"></div>' ); 10 } else { 11 $('#side-sortables').append( '<div id="make-it-tall" style="margin-bottom: -2000px; padding-bottom: 2001px"></div>' ); 12 } 13 $('#wpbody-content').css( 'overflow', 'hidden' ); 14 15 this.init(page); 16 }, 17 18 expandSidebar : function( doIt ) { 19 if ( doIt || $.trim( $( '#side-info-column' ).text() ) ) { 20 $( '#post-body' ).addClass( 'has-sidebar' ); 21 $( '#side-sortables' ).css('z-index','0'); 22 } else { 23 $( '#post-body' ).removeClass( 'has-sidebar' ); 24 $( '#side-sortables' ).css('z-index','-1'); 25 } 26 }, 27 28 init : function(page) { 29 jQuery('.meta-box-sortables').sortable( { 30 connectWith: [ '.meta-box-sortables' ], 31 items: '> .postbox', 32 handle: 'h3', 33 stop: function() { 34 if ( 'side-sortables' == this.id ) { // doing this with jQuery doesn't work for some reason: make-it-tall gets duplicated 35 var makeItTall = document.getElementById( 'make-it-tall' ); 36 var sideSort = makeItTall.parentNode; 37 sideSort.removeChild( makeItTall ); 38 sideSort.appendChild( makeItTall ); 39 40 } 41 var postVars = { 42 action: 'meta-box-order', 43 _ajax_nonce: jQuery('#meta-box-order-nonce').val(), 44 page: page 45 } 46 jQuery('.meta-box-sortables').each( function() { 47 postVars["order[" + this.id.split('-')[0] + "]"] = jQuery(this).sortable( 'toArray' ).join(','); 48 } ); 49 jQuery.post( postboxL10n.requestFile, postVars, function() { 50 postboxes.expandSidebar(); 51 } ); 52 }, 53 over: function(e, ui) { 54 if ( !ui.element.is( '#side-sortables' ) ) 55 return; 56 postboxes.expandSidebar( true ); 57 } 58 } ); 59 } 60 } 61 }(jQuery)); 62 63 jQuery(document).ready(function(){postboxes.expandSidebar();}); 64 6 65 function save_postboxes_state(page) { 7 66 var closed = jQuery('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','); 8 67 jQuery.post(postboxL10n.requestFile, { -
wp-admin/js/comment.js
1 1 jQuery(document).ready( function() { 2 add_postbox_toggles('comment');2 postboxes.add_postbox_toggles('comment'); 3 3 4 4 // close postboxes that should be closed 5 5 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); … … 10 10 11 11 jQuery('.edit-timestamp').click(function () { 12 12 if (jQuery('#timestampdiv').is(":hidden")) { 13 jQuery('#curtime').slideUp("normal"); 13 14 jQuery('#timestampdiv').slideDown("normal"); 14 jQuery('.edit-timestamp').text(commentL10n.cancel);15 15 } else { 16 jQuery('#timestampdiv'). hide();16 jQuery('#timestampdiv').slideUp("normal"); 17 17 jQuery('#mm').val(jQuery('#hidden_mm').val()); 18 18 jQuery('#jj').val(jQuery('#hidden_jj').val()); 19 19 jQuery('#aa').val(jQuery('#hidden_aa').val()); 20 20 jQuery('#hh').val(jQuery('#hidden_hh').val()); 21 21 jQuery('#mn').val(jQuery('#hidden_mn').val()); 22 jQuery(' .edit-timestamp').text(commentL10n.edit);22 jQuery('#curtime').slideDown("normal"); 23 23 } 24 24 return false; 25 }); 26 }); 27 No newline at end of file 25 }); 26 27 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 28 jQuery('#timestampdiv').hide(); 29 var link = jQuery('.timestamp a').clone( true ); 30 jQuery('.timestamp').show().html( 31 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 32 jQuery('#jj').val() + ',' + 33 jQuery('#aa').val() + '@' + 34 jQuery('#hh').val() + ':' + 35 jQuery('#mn').val() + ' ' 36 ).append( link ); 37 jQuery('#curtime').slideDown("normal"); 38 return false; 39 }); 40 }); -
wp-admin/admin.php
105 105 include(ABSPATH . "wp-admin/import/$importer.php"); 106 106 } 107 107 108 $parent_file = ' edit.php';108 $parent_file = 'users.php'; 109 109 $submenu_file = 'import.php'; 110 110 $title = __('Import'); 111 111 -
wp-admin/edit-page-form.php
44 44 45 45 $temp_ID = (int) $temp_ID; 46 46 $user_ID = (int) $user_ID; 47 48 47 ?> 49 48 49 <form name="post" action="page.php" method="post" id="post"> 50 <div id="wpbody-content"> 51 50 52 <?php if ( $notice ) : ?> 51 53 <div id="notice" class="error"><p><?php echo $notice ?></p></div> 52 54 <?php endif; ?> … … 54 56 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 55 57 <?php endif; ?> 56 58 57 <form name="post" action="page.php" method="post" id="post">58 <div class="wrap">59 <h2><?php _e('Write Page') ?></h2>60 61 59 <?php 62 wp_nonce_field($nonce_action); 63 64 if (isset($mode) && 'bookmarklet' == $mode) 65 echo '<input type="hidden" name="mode" value="bookmarklet" />'; 60 function page_submit_meta_box($post) { 61 global $action; 66 62 ?> 67 <input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" />68 <input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' />69 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />70 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />71 <?php echo $form_extra ?>72 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />73 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />74 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />75 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>76 77 <div id="poststuff">78 79 63 <div class="submitbox" id="submitpage"> 80 64 81 <div id="previewview"> 82 <?php if ( 'publish' == $post->post_status ) { ?> 83 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Page'); ?></a> 84 <?php } elseif ( 'edit' == $action ) { ?> 85 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a> 86 <?php } ?> 87 </div> 88 89 <div class="inside"> 65 <div class="inside-submitbox"> 90 66 <p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p> 91 67 <p> 92 68 <select name='post_status' tabindex='4' id='post_status'> … … 108 84 <?php endif; ?> 109 85 110 86 <?php 111 if ( 0 != $post _ID ) {87 if ( 0 != $post->ID ) { 112 88 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 113 89 $stamp = __('Scheduled for:<br />%1$s at %2$s'); 114 90 } else if ( 'publish' == $post->post_status ) { // already published … … 137 113 <?php do_action('page_submitbox_start'); ?> 138 114 <input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" /> 139 115 <?php 140 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post _ID ) {116 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { 141 117 ?> 142 118 <?php if ( current_user_can('publish_pages') ) : ?> 143 119 <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> … … 147 123 <?php 148 124 } 149 125 150 if ( ('edit' == $action) && current_user_can('delete_page', $post _ID) )151 echo "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&post=$post _ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>";126 if ( ('edit' == $action) && current_user_can('delete_page', $post->ID) ) 127 echo "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&post=$post->ID", 'delete-page_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>"; 152 128 ?> 153 129 <br class="clear" /> 154 <?php if ( 0 != $post_ID ) : ?> 155 <?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 130 131 <!-- moved under the editor 132 <?php if ( 0 != $post->ID ) : ?> 133 <?php if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) { 156 134 $last_user = get_userdata($last_id); 157 135 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 158 136 } else { … … 161 139 ?> 162 140 <br class="clear" /> 163 141 <?php endif; ?> 164 <span id="autosave"></span>165 <span id="wp-word-count"></span> 142 --> 143 166 144 </p> 167 168 <div class="side-info">169 <h5><?php _e('Related') ?></h5>170 171 <ul>172 <?php if ( 0 != $post_ID ) : ?>173 <li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li>174 <?php endif; ?>175 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li>176 <li><a href="edit-pages.php"><?php _e('Manage All Pages') ?></a></li>177 <?php do_action('page_relatedlinks_list'); ?>178 </ul>179 145 </div> 180 <?php do_action('submitpage_box'); ?> 181 </div> 146 <?php 147 } 148 add_meta_box('pagesubmitdiv', __('Publish'), 'page_submit_meta_box', 'page', 'side', 'core'); 182 149 183 <div id="post-body">184 <div id="titlediv">185 <h3><label for="title"><?php _e('Title') ?></label></h3>186 <div id="titlewrap">187 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />188 </div>189 <div class="inside">190 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?>191 <div id="edit-slug-box">192 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) :193 echo $sample_permalink_html;194 endif; ?>195 </div>196 </div>197 </div>198 199 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">200 <h3><label for="content"><?php _e('Page') ?></label></h3>201 <?php the_editor($post->post_content); ?>202 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>203 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>204 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?>205 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?>206 </div>207 208 <?php do_meta_boxes('page', 'normal', $post); ?>209 210 <?php do_action('edit_page_form'); ?>211 212 <h2><?php _e('Advanced Options'); ?></h2>213 214 215 <?php216 150 function page_custom_meta_box($post){ 217 151 ?> 218 152 <div id="postcustomstuff"> … … 231 165 <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p> 232 166 <?php 233 167 } 234 add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', ' advanced', 'core');168 add_meta_box('pagecustomdiv', __('Custom Fields'), 'page_custom_meta_box', 'page', 'normal', 'core'); 235 169 236 170 function page_comments_status_meta_box($post){ 237 171 ?> … … 243 177 <p><?php _e('These settings apply to this page only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p> 244 178 <?php 245 179 } 246 add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', ' advanced', 'core');180 add_meta_box('pagecommentstatusdiv', __('Comments & Pings'), 'page_comments_status_meta_box', 'page', 'normal', 'core'); 247 181 248 182 function page_password_meta_box($post){ 249 183 ?> … … 251 185 <p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p> 252 186 <?php 253 187 } 254 add_meta_box('pagepassworddiv', __('Password Protect This Page'), 'page_password_meta_box', 'page', ' advanced', 'core');188 add_meta_box('pagepassworddiv', __('Password Protect This Page'), 'page_password_meta_box', 'page', 'normal', 'core'); 255 189 256 190 function page_slug_meta_box($post){ 257 191 ?> 258 192 <label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /> 259 193 <?php 260 194 } 261 add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', ' advanced', 'core');195 add_meta_box('pageslugdiv', __('Page Slug'), 'page_slug_meta_box', 'page', 'normal', 'core'); 262 196 263 197 function page_parent_meta_box($post){ 264 198 ?> … … 270 204 <p><?php _e('You can arrange your pages in hierarchies, for example you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p> 271 205 <?php 272 206 } 273 add_meta_box('pageparentdiv', __('Page Parent'), 'page_parent_meta_box', 'page', ' advanced', 'core');207 add_meta_box('pageparentdiv', __('Page Parent'), 'page_parent_meta_box', 'page', 'normal', 'core'); 274 208 275 209 if ( 0 != count( get_page_templates() ) ) { 276 210 function page_template_meta_box($post){ … … 282 216 <p><?php _e('Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you’ll see them above.'); ?></p> 283 217 <?php 284 218 } 285 add_meta_box('pagetemplatediv', __('Page Template'), 'page_template_meta_box', 'page', ' advanced', 'core');219 add_meta_box('pagetemplatediv', __('Page Template'), 'page_template_meta_box', 'page', 'normal', 'core'); 286 220 } 287 221 288 222 function page_order_meta_box($post){ … … 291 225 <p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it’ll be better in future releases.)'); ?></p> 292 226 <?php 293 227 } 294 add_meta_box('pageorderdiv', __('Page Order'), 'page_order_meta_box', 'page', ' advanced', 'core');228 add_meta_box('pageorderdiv', __('Page Order'), 'page_order_meta_box', 'page', 'normal', 'core'); 295 229 296 230 297 231 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM … … 307 241 <label class="hidden" for="post_author_override"><?php _e('Page Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> 308 242 <?php 309 243 } 310 add_meta_box('pageauthordiv', __('Page Author'), 'page_author_meta_box', 'page', ' advanced', 'core');244 add_meta_box('pageauthordiv', __('Page Author'), 'page_author_meta_box', 'page', 'normal', 'core'); 311 245 } 312 246 313 247 … … 315 249 function page_revisions_meta_box($post) { 316 250 wp_list_post_revisions(); 317 251 } 318 add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', ' advanced', 'core');252 add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'normal', 'core'); 319 253 endif; 254 ?> 320 255 256 <div class="wrap"> 257 <h2><?php 258 if ( !isset($post_ID) || 0 == $post_ID ) 259 printf( __( '<a href="%s">Pages</a> / Write New Page' ), 'edit-pages.php' ); 260 else 261 printf( __( '<a href="%s">Pages</a> / Edit Page' ), 'edit-pages.php' ); 262 ?></h2> 263 264 <div id="previewview"> 265 <?php if ( 'publish' == $post->post_status ) { ?> 266 <a class="button" href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Page'); ?></a> 267 <?php } elseif ( 'edit' == $action ) { ?> 268 <a class="button" href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a> 269 <?php } ?> 270 </div> 271 272 <?php 273 wp_nonce_field($nonce_action); 274 275 if (isset($mode) && 'bookmarklet' == $mode) 276 echo '<input type="hidden" name="mode" value="bookmarklet" />'; 277 ?> 278 <input type="hidden" id="user-id" name="user_ID" value="<?php echo $user_ID ?>" /> 279 <input type="hidden" id="hiddenaction" name="action" value='<?php echo $form_action ?>' /> 280 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" /> 281 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" /> 282 <?php echo $form_extra ?> 283 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 284 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 285 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 286 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 287 288 <!-- TODO 289 <div class="inside"> 290 <p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p> 291 <p> 292 <select name='post_status' tabindex='4' id='post_status'> 293 <?php // Show publish in dropdown if user can publish or if they can re-publish this page ('edit_published_pages') 294 // 'publish' option will be selected for published AND private posts (checkbox overrides dropdown) 295 if ( current_user_can('publish_pages') OR ( $post->post_status == 'publish' AND current_user_can('edit_page', $post->ID) ) ) : 296 ?> 297 <option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option> 298 <?php endif; ?> 299 <?php if ( 'future' == $post->post_status ) : ?> 300 <option<?php selected( $post->post_status, 'future' ); ?> value='future'><?php _e('Pending') ?></option> 301 <?php endif; ?> 302 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option> 303 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Unpublished') ?></option> 304 </select> 305 </p> 306 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 307 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p> 308 <?php endif; ?> 309 310 <h5><?php _e('Related') ?></h5> 311 <ul> 312 <?php if ($post_ID): ?> 313 <li><a href="edit-pages.php?page_id=<?php echo $post_ID ?>"><?php _e('See Comments on this Page') ?></a></li> 314 <?php endif; ?> 315 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 316 <li><a href="edit-pages.php"><?php _e('Manage All Pages') ?></a></li> 317 <?php do_action('page_relatedlinks_list'); ?> 318 </ul> 319 320 --> 321 322 <div id="poststuff"> 323 324 <div id="side-info-column" class="inner-sidebar"> 325 326 <?php 327 328 do_action('submitpage_box'); 329 $side_meta_boxes = do_meta_boxes('page', 'side', $page); 330 331 ?> 332 </div> 333 334 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 335 <div id="post-body-content" class="has-sidebar-content"> 336 337 <div id="titlediv"> 338 <h3><label for="title"><?php _e('Title') ?></label></h3> 339 <div id="titlewrap"> 340 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" /> 341 </div> 342 <div class="inside"> 343 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?> 344 <div id="edit-slug-box"> 345 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) : 346 echo $sample_permalink_html; 347 endif; ?> 348 </div> 349 </div> 350 </div> 351 352 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 353 354 <div id="add-media-button"><a href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&type=image&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Add Media' ); ?></a></div> 355 356 <h3><?php _e('Page') ?></h3> 357 <?php the_editor($post->post_content); ?> 358 <div id="post-status-info"> 359 <span id="wp-word-count" class="alignleft"></span> 360 <span class="alignright"> 361 <span id="autosave"> </span> 362 363 <?php 364 if ($post_ID) { 365 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 366 $last_user = get_userdata($last_id); 367 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 368 } else { 369 printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 370 } 371 } 372 ?> 373 </span> 374 <br class="clear" /> 375 </div> 376 377 378 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> 379 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 380 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 381 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 382 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 383 </div> 384 385 <?php 386 387 do_meta_boxes('page', 'normal', $post); 388 do_action('edit_page_form'); 321 389 do_meta_boxes('page', 'advanced', $post); 390 322 391 ?> 323 392 324 393 </div> 325 394 </div> 395 </div> 326 396 327 397 </div> 328 398 399 <br class="clear" /> 400 </div> 329 401 </form> 330 402 331 403 <script type="text/javascript"> -
wp-admin/rtl.css
101 101 margin-left:15%; 102 102 padding: 11px 12px 16px 170px; 103 103 } 104 105 #curtime 106 { 107 background-position:right 2px; 108 padding-left:0; 109 padding-right: 9px; 110 } 111 104 112 #dashmenu { 105 113 right:0; 106 114 left:auto; -
wp-admin/comment.php
34 34 $title = __('Edit Comment'); 35 35 36 36 wp_enqueue_script('comment'); 37 $fixed_bar = true; 37 38 38 39 require_once('admin-header.php'); 39 40 -
wp-admin/options-general.php
10 10 require_once('./admin.php'); 11 11 12 12 $title = __('General Settings'); 13 $parent_file = 'options-general.php';14 13 15 14 include('./admin-header.php'); 16 15 ?> 17 16 18 17 <div class="wrap"> 18 <ul class="wp-menu"> 19 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 20 </ul> 19 21 <h2><?php _e('General Settings') ?></h2> 20 22 <form method="post" action="options.php"> 21 23 <?php wp_nonce_field('update-options') ?> -
wp-admin/index.php
53 53 ?> 54 54 55 55 <div class="wrap"> 56 57 <h2><?php _e('Dashboard'); ?></h2>58 59 <div id="rightnow">60 <h3 class="reallynow">61 <span><?php _e('Right Now'); ?></span>62 63 <?php if ( $can_edit_posts = current_user_can( 'edit_posts' ) ) : ?>64 <a href="post-new.php" class="rbutton"><strong><?php _e('Write a New Post'); ?></strong></a>65 <?php endif; if ( $can_edit_pages = current_user_can( 'edit_pages' ) ) : ?>66 <a href="page-new.php" class="rbutton"><?php _e('Write a New Page'); ?></a>67 <?php endif; ?>68 <br class="clear" />69 </h3>70 71 <?php72 $num_posts = wp_count_posts( 'post' );73 $num_pages = wp_count_posts( 'page' );74 75 $num_cats = wp_count_terms('category');76 77 $num_tags = wp_count_terms('post_tag');78 79 $num_comm = get_comment_count( );80 81 $post_type_texts = array();82 83 if ( !empty($num_posts->publish) ) { // with feeds, anyone can tell how many posts there are. Just unlink if !current_user_can84 $post_text = sprintf( __ngettext( '%s post', '%s posts', $num_posts->publish ), number_format_i18n( $num_posts->publish ) );85 $post_type_texts[] = $can_edit_posts ? "<a href='edit.php'>$post_text</a>" : $post_text;86 }87 if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can88 $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';89 }90 if ( $can_edit_posts && !empty($num_posts->draft) ) {91 $post_type_texts[] = '<a href="edit.php?post_status=draft">'.sprintf( __ngettext( '%s draft', '%s drafts', $num_posts->draft ), number_format_i18n( $num_posts->draft ) ).'</a>';92 }93 if ( $can_edit_posts && !empty($num_posts->future) ) {94 $post_type_texts[] = '<a href="edit.php?post_status=future">'.sprintf( __ngettext( '%s scheduled post', '%s scheduled posts', $num_posts->future ), number_format_i18n( $num_posts->future ) ).'</a>';95 }96 97 if ( current_user_can('publish_posts') && !empty($num_posts->pending) ) {98 $pending_text = sprintf( __ngettext( 'There is <a href="%1$s">%2$s post</a> pending your review.', 'There are <a href="%1$s">%2$s posts</a> pending your review.', $num_posts->pending ), 'edit.php?post_status=pending', number_format_i18n( $num_posts->pending ) );99 } else {100 $pending_text = '';101 }102 103 $cats_text = sprintf( __ngettext( '%s category', '%s categories', $num_cats ), number_format_i18n( $num_cats ) );104 $tags_text = sprintf( __ngettext( '%s tag', '%s tags', $num_tags ), number_format_i18n( $num_tags ) );105 if ( current_user_can( 'manage_categories' ) ) {106 $cats_text = "<a href='categories.php'>$cats_text</a>";107 $tags_text = "<a href='edit-tags.php'>$tags_text</a>";108 }109 110 $total_comments = sprintf( __ngettext( '%1$s total', '%1$s total', $num_comm['total_comments'] ), number_format_i18n($num_comm['total_comments']) );111 $approved_comments = sprintf( __ngettext( '%1$s approved', '%1$s approved', $num_comm['approved'] ), number_format_i18n($num_comm['approved']) );112 $spam_comments = sprintf( __ngettext( '%1$s spam', '%1$s spam', $num_comm['spam'] ), number_format_i18n($num_comm['spam']) );113 $moderated_comments = sprintf( __ngettext( '%1$s awaiting moderation', '%1$s awaiting moderation', $num_comm['awaiting_moderation'] ), number_format_i18n($num_comm['awaiting_moderation']) );114 115 if( current_user_can( 'moderate_comments' ) ) {116 $total_comments = "<a href='edit-comments.php'>{$total_comments}</a>";117 $approved_comments = "<a href='edit-comments.php?comment_status=approved'>{$approved_comments}</a>";118 $moderated_comments = "<a href='edit-comments.php?comment_status=moderated'>{$moderated_comments}</a>";119 }120 121 $comm_text = sprintf( __ngettext( 'You have %1$s comment, %2$s, %3$s and %4$s.', 'You have %1$s comments, %2$s, %3$s and %4$s.', $num_comm['total_comments'] ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );122 123 $post_type_text = implode(', ', $post_type_texts);124 125 // There is always a category126 $sentence = sprintf( __( 'You have %1$s, contained within %2$s and %3$s. %4$s %5$s' ), $post_type_text, $cats_text, $tags_text, $pending_text, $comm_text );127 $sentence = apply_filters( 'dashboard_count_sentence', $sentence, $post_type_text, $cats_text, $tags_text, $pending_text, $comm_text );128 129 ?>130 <p class="youhave"><?php echo $sentence; ?></p>131 <?php132 $ct = current_theme_info();133 $sidebars_widgets = wp_get_sidebars_widgets();134 $num_widgets = array_reduce( $sidebars_widgets, create_function( '$prev, $curr', 'return $prev+count($curr);' ), 0 );135 $widgets_text = sprintf( __ngettext( '%d widget', '%d widgets', $num_widgets ), $num_widgets );136 if ( $can_switch_themes = current_user_can( 'switch_themes' ) )137 $widgets_text = "<a href='widgets.php'>$widgets_text</a>";138 ?>139 <p class="youare">140 <?php printf( __( 'You are using the %1$s theme with %2$s.' ), $ct->title, $widgets_text ); ?>141 <?php if ( $can_switch_themes ) : ?>142 <a href="themes.php" class="rbutton"><?php _e('Change Theme'); ?></a>143 <?php endif; ?>144 <?php update_right_now_message(); ?>145 </p>146 <?php do_action( 'rightnow_end' ); ?>147 <?php do_action( 'activity_box_end' ); ?>148 </div><!-- rightnow -->149 150 <br class="clear" />151 152 56 <div id="dashboard-widgets-wrap"> 153 57 154 58 <?php wp_dashboard(); ?> -
wp-admin/edit-link-form.php
7 7 */ 8 8 9 9 if ( ! empty($link_id) ) { 10 /** 11 * @var string 12 */ 13 $heading = __('Edit Link'); 10 $heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' ); 14 11 $submit_text = __('Save Changes'); 15 12 $form = '<form name="editlink" id="editlink" method="post" action="link.php">'; 16 13 $nonce_action = 'update-bookmark_' . $link_id; 17 14 } else { 18 $heading = __('Add Link');15 $heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' ); 19 16 $submit_text = __('Add Link'); 20 17 $form = '<form name="addlink" id="addlink" method="post" action="link.php">'; 21 18 $nonce_action = 'add-bookmark'; … … 40 37 } 41 38 ?> 42 39 43 <?php echo $form ?> 44 <?php wp_nonce_field($nonce_action); ?> 45 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 46 47 <div class="wrap"> 48 <h2><?php echo $heading; ?></h2> 49 50 <div id="poststuff"> 51 40 <?php function link_submit_meta_box($link) { ?> 52 41 <div class="submitbox" id="submitlink"> 53 42 54 <div id="previewview"> 55 <?php if ( !empty($link_id) ) { ?> 56 <a href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 57 <?php } ?> 58 </div> 59 60 <div class="inside"> 43 <div class="inside-submitbox"> 61 44 <p><label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label></p> 62 45 </div> 63 46 … … 65 48 <input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" /> 66 49 <?php 67 50 if ( ( 'edit' == $action) && current_user_can('manage_links') ) 68 echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link _id", 'delete-bookmark_' . $link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a>";51 echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a>"; 69 52 ?> 70 53 </p> 71 72 <div class="side-info">73 <h5><?php _e('Related') ?></h5>74 75 <ul>76 <li><a href="link-manager.php"><?php _e('Manage All Links') ?></a></li>77 <li><a href="edit-link-categories.php"><?php _e('Manage All Link Categories') ?></a></li>78 <li><a href="link-import.php"><?php _e('Import Links') ?></a></li>79 <?php do_action('link_relatedlinks_list'); ?>80 </ul>81 </div>82 54 <?php do_action('submitlink_box'); ?> 83 55 </div> 56 <?php 57 } 58 add_meta_box('linksubmitdiv', __('Save'), 'link_submit_meta_box', 'link', 'side', 'core'); 84 59 85 <div id="post-body"> 86 <div id="namediv" class="stuffbox"> 87 <h3><label for="link_name"><?php _e('Name') ?></label></h3> 88 <div class="inside"> 89 <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br /> 90 <?php _e('Example: Nifty blogging software'); ?> 91 </div> 92 </div> 93 94 <div id="addressdiv" class="stuffbox"> 95 <h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 96 <div class="inside"> 97 <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br /> 98 <?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?> 99 </div> 100 </div> 101 102 <div id="descriptiondiv" class="stuffbox"> 103 <h3><label for="link_description"><?php _e('Description') ?></label></h3> 104 <div class="inside"> 105 <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo ( isset( $link->link_description ) ? $link->link_description : ''); ?>" id="link_description" /><br /> 106 <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> 107 </div> 108 </div> 109 110 <?php function link_categories_meta_box($link) { ?> 60 function link_categories_meta_box($link) { ?> 111 61 <div id="category-adder" class="wp-hidden-children"> 112 62 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> 113 63 <p id="link-category-add" class="wp-hidden-child"> … … 143 93 <?php 144 94 } 145 95 add_meta_box('linkcategorydiv', __('Categories'), 'link_categories_meta_box', 'link', 'normal', 'core'); 146 ?>147 96 148 <?php do_meta_boxes('link', 'normal', $link); ?> 149 150 <h2><?php _e('Advanced Options'); ?></h2> 151 152 <?php function link_target_meta_box($link) { ?> 97 function link_target_meta_box($link) { ?> 153 98 <fieldset><legend class="hidden"><?php _e('Target') ?></legend> 154 99 <label for="link_target_blank" class="selectit"> 155 100 <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> … … 164 109 <p><?php _e('Choose the frame your link targets. Essentially this means if you choose <code>_blank</code> your link will open in a new window.'); ?></p> 165 110 <?php 166 111 } 167 add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', ' advanced', 'core');112 add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', 'link', 'normal', 'core'); 168 113 169 114 function link_xfn_meta_box($link) { 170 115 ?> … … 277 222 <p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p> 278 223 <?php 279 224 } 280 add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', ' advanced', 'core');225 add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', 'link', 'normal', 'core'); 281 226 282 227 function link_advanced_meta_box($link) { 283 228 ?> … … 310 255 </table> 311 256 <?php 312 257 } 313 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', ' advanced', 'core');258 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); 314 259 260 ?> 261 262 <?php echo $form ?> 263 <div id="wpbody-content"> 264 265 <?php echo $link_added; ?> 266 267 <?php wp_nonce_field($nonce_action); ?> 268 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 269 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 270 271 <div class="wrap"> 272 <h2><?php echo $heading; ?></h2> 273 274 <?php if ( !empty($link->link_id) ) { ?> 275 <div id="previewview"> 276 <a class="button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 277 </div> 278 <?php } ?> 279 280 <!-- 281 <p id="big-add-button"> 282 <span id="previewview"> 283 <?php if ( !empty($link_id) ) { ?> 284 <a class="button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 285 <?php } ?> 286 </span> 287 </p> 288 --> 289 290 <!-- TODO 291 <div class="inside"> 292 <p><label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label></p> 293 </div> 294 295 <div class="side-info"> 296 <h5><?php _e('Related') ?></h5> 297 298 <ul> 299 <li><a href="link-manager.php"><?php _e('Manage All Links') ?></a></li> 300 <li><a href="edit-link-categories.php"><?php _e('Manage All Link Categories') ?></a></li> 301 <li><a href="link-import.php"><?php _e('Import Links') ?></a></li> 302 <?php do_action('link_relatedlinks_list'); ?> 303 </ul> 304 </div> 305 --> 306 307 <div id="poststuff"> 308 309 <div id="side-info-column" class="inner-sidebar"> 310 <?php 311 312 do_action('submitlink_box'); 313 $side_meta_boxes = do_meta_boxes( 'link', 'side', $link ); 314 315 ?> 316 </div> 317 318 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 319 <div id="post-body-content" class="has-sidebar-content"> 320 <div id="namediv" class="stuffbox"> 321 <h3><label for="link_name"><?php _e('Name') ?></label></h3> 322 <div class="inside"> 323 <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo $link->link_name; ?>" id="link_name" /><br /> 324 <?php _e('Example: Nifty blogging software'); ?> 325 </div> 326 </div> 327 328 <div id="addressdiv" class="stuffbox"> 329 <h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 330 <div class="inside"> 331 <input type="text" name="link_url" size="30" tabindex="1" value="<?php echo $link->link_url; ?>" id="link_url" /><br /> 332 <?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?> 333 </div> 334 </div> 335 336 <div id="descriptiondiv" class="stuffbox"> 337 <h3><label for="link_description"><?php _e('Description') ?></label></h3> 338 <div class="inside"> 339 <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo $link->link_description; ?>" id="link_description" /><br /> 340 <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> 341 </div> 342 </div> 343 344 <?php 345 346 do_meta_boxes('link', 'normal', $link); 347 315 348 do_meta_boxes('link', 'advanced', $link); 316 349 317 350 if ( $link_id ) : ?> … … 325 358 326 359 </div> 327 360 </div> 361 </div> 328 362 329 363 </div> 330 364 365 <br class="clear" /> 366 </div> 367 331 368 </form> -
wp-admin/options-misc.php
17 17 ?> 18 18 19 19 <div class="wrap"> 20 <ul class="wp-menu"> 21 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 22 </ul> 20 23 <h2><?php _e('Miscellaneous Settings') ?></h2> 21 24 <form method="post" action="options.php"> 22 25 <?php wp_nonce_field('update-options') ?> … … 159 162 </form> 160 163 </div> 161 164 162 <?php include('./admin-footer.php'); ?> 163 No newline at end of file 165 <?php include('./admin-footer.php'); ?> -
wp-admin/edit-form-comment.php
16 16 ?> 17 17 18 18 <form name="post" action="comment.php" method="post" id="post"> 19 <div id="wpbody-content"> 20 19 21 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 20 22 <div class="wrap"> 21 23 <h2><?php echo $toprow_title; ?></h2> 24 25 <div id="previewview"> 26 <a class="button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a> 27 </div> 28 22 29 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 23 30 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 31 <?php 32 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 24 33 25 <div id="poststuff"> 26 34 function comment_submit_meta_box($comment) { 35 ?> 27 36 <div class="submitbox" id="submitcomment"> 37 <div class="inside-submitbox"> 28 38 29 <div id="previewview">30 <a href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a>31 </div>32 33 <div class="inside">34 35 39 <p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p> 36 40 <p> 37 41 <select name='comment_status' id='comment_status'> … … 59 63 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>"; 60 64 ?> 61 65 </p> 66 </div> 67 <?php 68 } 69 add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core'); 70 ?> 62 71 63 <div class="side-info"> 64 <h5><?php _e('Related') ?></h5> 72 <div id="side-info-column" class="inner-sidebar"> 65 73 66 <ul> 67 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 68 <li><a href="edit-comments.php?comment_status=moderated"><?php _e('Moderate Comments') ?></a></li> 69 <?php do_action('comment_relatedlinks_list'); ?> 70 </ul> 74 <?php $side_meta_boxes = do_meta_boxes('comment', 'side', $comment); ?> 75 71 76 </div> 72 <?php do_action('submitcomment_box'); ?>73 </div>74 77 75 <div id="post-body"> 78 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 79 <div id="post-body-content" class="has-sidebar-content"> 80 76 81 <div id="namediv" class="stuffbox"> 77 82 <h3><label for="name"><?php _e('Name') ?></label></h3> 78 83 <div class="inside"> … … 80 85 </div> 81 86 </div> 82 87 88 <div id="postdiv" class="postarea"> 89 <h3><?php _e('Comment') ?></h3> 90 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?> 91 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 92 </div> 93 83 94 <div id="emaildiv" class="stuffbox"> 84 95 <h3><label for="email"><?php _e('E-mail') ?></label></h3> 85 96 <div class="inside"> … … 94 105 </div> 95 106 </div> 96 107 97 <div id="postdiv" class="postarea">98 <h3><label for="content"><?php _e('Comment') ?></label></h3>99 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>100 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>101 </div>102 103 108 <?php do_meta_boxes('comment', 'normal', $comment); ?> 104 109 105 110 <input type="hidden" name="c" value="<?php echo $comment->comment_ID ?>" /> … … 107 112 <input name="referredby" type="hidden" id="referredby" value="<?php echo wp_get_referer(); ?>" /> 108 113 <?php wp_original_referer_field(true, 'previous'); ?> 109 114 <input type="hidden" name="noredir" value="1" /> 115 110 116 </div> 111 117 </div> 112 118 </div> 119 </div> 120 </div> 113 121 114 122 </form> 115 123 -
wp-admin/edit-form-advanced.php
21 21 $messages[2] = __('Custom field updated.'); 22 22 $messages[3] = __('Custom field deleted.'); 23 23 $messages[4] = __('Post updated.'); 24 $messages[6] = __('Post published.'); 25 $messages[7] = __('Post saved.'); 24 26 25 27 if ( isset($_GET['revision']) ) 26 28 $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ); … … 52 54 } 53 55 54 56 ?> 55 <?php if ( $notice ) : ?>56 <div id="notice" class="error"><p><?php echo $notice ?></p></div>57 <?php endif; ?>58 <?php if (isset($_GET['message'])) : ?>59 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>60 <?php endif; ?>61 57 62 58 <form name="post" action="post.php" method="post" id="post"> 63 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> 64 <input type="hidden" name="mode" value="bookmarklet" /> 65 <?php endif; ?> 59 <div id="wpbody-content"> 66 60 67 <div class="wrap"> 68 <h2><?php _e('Write Post') ?></h2> 61 69 62 <?php 70 63 71 if ( 0 == $post_ID) 72 wp_nonce_field('add-post'); 73 else 74 wp_nonce_field('update-post_' . $post_ID); 64 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 75 65 76 $form_pingback = '<input type="hidden" name="post_pingback" value="' . (int) get_option('default_pingback_flag') . '" id="post_pingback" />'; 77 78 $form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />'; 79 80 $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />'; 81 66 function post_submit_meta_box($post) { 67 global $action; 82 68 ?> 69 <div class="submitbox" id="submitpost"> 83 70 84 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />85 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" />86 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" />87 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" />88 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />89 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />90 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />91 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>92 71 93 <?php echo $form_extra ?>94 72 95 <div id="poststuff">73 <div class="inside-submitbox"> 96 74 97 <div class="submitbox" id="submitpost">98 99 <div id="previewview">100 <?php if ( 'publish' == $post->post_status ) { ?>101 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a>102 <?php } elseif ( 'edit' == $action ) { ?>103 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Post'); ?></a>104 <?php } ?>105 </div>106 107 <div class="inside">108 109 75 <p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p> 110 76 <p> 111 77 <select name='post_status' id='post_status' tabindex='4'> … … 130 96 <?php endif; ?> 131 97 <?php endif; ?> 132 98 <?php 133 if ( 0 != $post _ID ) {99 if ( 0 != $post->ID ) { 134 100 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 135 101 $stamp = __('Scheduled for:<br />%1$s at %2$s'); 136 102 } else if ( 'publish' == $post->post_status ) { // already published … … 161 127 <?php do_action('post_submitbox_start'); ?> 162 128 <input type="submit" name="save" id="save-post" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" /> 163 129 <?php 164 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post _ID ) {130 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { 165 131 ?> 166 132 <?php if ( current_user_can('publish_posts') ) : ?> 167 133 <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> … … 171 137 <?php 172 138 } 173 139 174 if ( ( 'edit' == $action) && current_user_can('delete_post', $post _ID) )175 echo "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post _ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>";140 if ( ( 'edit' == $action) && current_user_can('delete_post', $post->ID) ) 141 echo "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>"; 176 142 ?> 177 143 <br class="clear" /> 178 <?php if ( 0 != $post_ID ): ?> 179 <?php if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 144 145 <!-- moved under the editor 146 <?php if ( 0 != $post->ID ): ?> 147 <?php if ( $last_id = get_post_meta($post->ID, '_edit_last', true) ) { 180 148 $last_user = get_userdata($last_id); 181 149 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 182 150 } else { … … 185 153 ?> 186 154 <br class="clear" /> 187 155 <?php endif; ?> 188 <span id="autosave"></span>189 <span id="wp-word-count"></span> 156 --> 157 190 158 </p> 159 </div> 160 <?php 161 } 162 add_meta_box('submitdiv', __('Publish'), 'post_submit_meta_box', 'post', 'side', 'core'); 191 163 192 <div class="side-info"> 193 <h5><?php _e('Related') ?></h5> 164 function post_tags_meta_box($post) { 165 ?> 166 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> 167 <div id="tagchecklist"></div> 168 <p><a href='#'><?php _e( 'Choose from tags' ); ?></a></p> 169 <?php 170 } 171 add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core'); 194 172 195 <ul> 196 <?php if ( 0 != $post_ID ): ?> 197 <li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li> 198 <?php endif; ?> 199 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 200 <li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li> 201 <li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li> 202 <li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li> 203 <li><a href="edit.php?post_status=draft"><?php _e('View Drafts'); ?></a></li> 204 <?php do_action('post_relatedlinks_list'); ?> 205 </ul> 173 function post_media_meta_box($post) { 174 echo "<p><small><em>This feature isn't fully functional in this prototype.</em></small></p>"; 206 175 207 <h5><?php _e('Shortcuts') ?></h5> 208 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?> <a href="<?php echo get_shortcut_link(); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p> 209 </div> 176 if ( empty( $post->ID ) ) 177 return; 210 178 211 <?php do_action('submitpost_box'); ?> 212 </div> 179 $atts = get_children( array( 180 'post_parent' => $post->ID, 181 'post_type' => 'attachment' 182 ) ); 213 183 214 <div id="post-body"> 215 <div id="titlediv"> 216 <h3><label for="title"><?php _e('Title') ?></label></h3> 217 <div id="titlewrap"> 218 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" /> 219 </div> 220 <div class="inside"> 221 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?> 222 <div id="edit-slug-box"> 223 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) : 224 echo $sample_permalink_html; 225 endif; ?> 226 </div> 227 </div> 228 </div> 184 if ( !$atts ) { 185 _e( 'No media.' ); 186 return; 187 } 229 188 230 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 231 <h3><label for="content"><?php _e('Post') ?></label></h3> 232 <?php the_editor($post->post_content); ?> 233 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> 234 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 235 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 236 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 237 </div> 189 foreach ( $atts as $att ) { 190 if ( $thumb = wp_get_attachment_image( $att->ID, array(60, 45), true ) ) { 191 ?> 192 <a href="media.php?action=edit&attachment_id=<?php echo $att->ID ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $att->post_title)); ?>"> 193 <?php echo $thumb; ?> 194 </a> 238 195 239 <?php echo $form_pingback ?> 240 <?php echo $form_prevstatus ?> 196 <?php 197 } 198 echo "<h4>$att->post_title</h4>"; 241 199 242 <?php 243 function post_tags_meta_box($post) { 244 ?> 245 <p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> 246 <div id="tagchecklist"></div> 247 <?php 200 echo "<a href='#' class='no-crazy'>Remove</a> | "; 201 echo "<a href='media.php?action=edit&attachment_id=$att->ID'>Edit</a>"; 202 203 echo "<br class='clear' />"; 204 } 205 248 206 } 249 add_meta_box( 'tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'normal', 'core');207 add_meta_box( 'mediadiv', __('Media added to this Post' ), 'post_media_meta_box', 'post', 'side', 'core' ); 250 208 251 209 function post_categories_meta_box($post) { 252 210 ?> 253 <div id="category-adder" class="wp-hidden-children">254 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>255 <p id="category-add" class="wp-hidden-child">256 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>257 <label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>258 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />259 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>260 <span id="category-ajax-response"></span>261 </p>262 </div>263 264 211 <ul id="category-tabs"> 265 212 <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 266 213 <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> … … 277 224 <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> 278 225 </ul> 279 226 </div> 227 228 <div id="category-adder" class="wp-hidden-children"> 229 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 230 <p id="category-add" class="wp-hidden-child"> 231 <label class="hidden" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 232 <label class="hidden" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 233 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 234 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> 235 <span id="category-ajax-response"></span> 236 </p> 237 </div> 238 280 239 <?php 281 240 } 282 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'normal', 'core'); 283 ?> 241 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); 284 242 285 <?php do_meta_boxes('post', 'normal', $post); ?>286 287 <?php do_action('edit_form_advanced'); ?>288 289 <h2><?php _e('Advanced Options'); ?></h2>290 291 <?php292 243 function post_excerpt_meta_box($post) { 293 244 ?> 294 245 <label class="hidden" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> 295 246 <p><?php _e('Excerpts are optional hand-crafted summaries of your content. You can <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" target="_blank">use them in your template</a>'); ?></p> 296 247 <?php 297 248 } 298 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', ' advanced', 'core');249 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'normal', 'core'); 299 250 300 251 function post_trackback_meta_box($post) { 301 252 $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />'; … … 309 260 } 310 261 311 262 ?> 263 <p class="meta-options"> 264 <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a> on this post') ?></label> 265 </p> 312 266 <p><label for="trackback"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p> 313 267 <p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs they’ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p> 314 268 <?php 315 269 if ( ! empty($pings) ) 316 270 echo $pings; 317 271 } 318 add_meta_box('trackbacksdiv', __('Trackbacks '), 'post_trackback_meta_box', 'post', 'advanced', 'core');272 add_meta_box('trackbacksdiv', __('Trackbacks and Pings'), 'post_trackback_meta_box', 'post', 'normal', 'core'); 319 273 320 274 function post_custom_meta_box($post) { 321 275 ?> … … 335 289 <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p> 336 290 <?php 337 291 } 338 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', ' advanced', 'core');292 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', 'normal', 'core'); 339 293 340 294 do_action('dbx_post_advanced'); 341 295 342 296 function post_comment_status_meta_box($post) { 297 global $wpdb, $post_ID; 343 298 ?> 344 299 <input name="advanced_view" type="hidden" value="1" /> 345 <p><label for="comment_status" class="selectit"> 346 <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> 347 <?php _e('Allow Comments') ?></label></p> 348 <p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p> 349 <p><?php _e('These settings apply to this post only. “Pings” are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p> 300 <p class="meta-options"> 301 <label for="comment_status" class="selectit"> <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /><?php _e('Allow comments on this post') ?></label> 302 </p> 350 303 <?php 304 305 306 if ( !$post_ID || $post_ID < 0 ) 307 return; 308 309 if ( !$comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $post_ID) ) ) 310 return; 311 312 // Make sure comments, post, and post_author are cached 313 // update_comment_cache($comments); 314 ?> 315 316 <table class="widefat"> 317 <thead> 318 <tr> 319 <th scope="col"><?php _e('Comments') ?></th> 320 <th scope="col"><?php _e('Submitted') ?></th> 321 </tr> 322 </thead> 323 <tbody id="the-comment-list" class="list:comment"> 324 <?php 325 foreach ($comments as $comment) 326 _wp_comment_row( $comment, 'single', false, false ); 327 ?> 328 </tbody> 329 </table> 330 331 332 <?php 333 334 335 351 336 } 352 add_meta_box('commentstatusdiv', __('Comments & Pings'), 'post_comment_status_meta_box', 'post', 'advanced', 'core');337 add_meta_box('commentstatusdiv', __('Comments on this Post'), 'post_comment_status_meta_box', 'post', 'normal', 'core'); 353 338 354 339 function post_password_meta_box($post) { 355 340 ?> 356 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php if ( isset( $post->post_password ) ) : echo attribute_escape( $post->post_password ); endif; ?>" /></p> 341 <p> 342 <input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label> 343 </p> 344 <h4><?php _e( 'Post Password' ); ?></h4> 345 <p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p> 357 346 <p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p> 358 347 <?php 359 348 } 360 add_meta_box('passworddiv', __('P assword Protect This Post'), 'post_password_meta_box', 'post', 'advanced', 'core');349 add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'normal', 'core'); 361 350 362 351 function post_slug_meta_box($post) { 363 352 ?> 364 353 <label class="hidden" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" /> 365 354 <?php 366 355 } 367 add_meta_box('slugdiv', __('Post Slug'), 'post_slug_meta_box', 'post', ' advanced', 'core');356 add_meta_box('slugdiv', __('Post Slug'), 'post_slug_meta_box', 'post', 'normal', 'core'); 368 357 369 358 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM 370 359 if ( $post->post_author && !in_array($post->post_author, $authors) ) … … 379 368 <label class="hidden" for="post_author_override"><?php _e('Post Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> 380 369 <?php 381 370 } 382 add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', ' advanced', 'core');371 add_meta_box('authordiv', __('Post Author'), 'post_author_meta_box', 'post', 'normal', 'core'); 383 372 endif; 384 373 385 374 if ( 0 < $post_ID && wp_get_post_revisions( $post_ID ) ) : 386 375 function post_revisions_meta_box($post) { 387 376 wp_list_post_revisions(); 388 377 } 389 add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', ' advanced', 'core');378 add_meta_box('revisionsdiv', __('Post Revisions'), 'post_revisions_meta_box', 'post', 'normal', 'core'); 390 379 endif; 391 380 381 ?> 382 383 <?php if ( $notice ) : ?> 384 <div id="notice" class="error"><p><?php echo $notice ?></p></div> 385 <?php endif; ?> 386 <?php if (isset($_GET['message'])) : ?> 387 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 388 <?php endif; ?> 389 390 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> 391 <input type="hidden" name="mode" value="bookmarklet" /> 392 <?php endif; ?> 393 394 <div class="wrap"> 395 <h2><?php 396 if ( !isset($post_ID) || 0 == $post_ID) 397 printf( __( '<a href="%s">Posts</a> / Write New Post' ), 'edit.php' ); 398 else 399 printf( __( '<a href="%s">Posts</a> / Edit Post' ), 'edit.php' ); 400 ?></h2> 401 402 <div id="previewview"> 403 <?php if ( 'publish' == $post->post_status ) { ?> 404 <a class="button" href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a> 405 <?php } elseif ( 'edit' == $action ) { ?> 406 <a class="button" href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Post'); ?></a> 407 <?php } ?> 408 </div> 409 410 <?php 411 412 if ( 0 == $post_ID) 413 wp_nonce_field('add-post'); 414 else 415 wp_nonce_field('update-post_' . $post_ID); 416 417 $form_pingback = '<input type="hidden" name="post_pingback" value="' . (int) get_option('default_pingback_flag') . '" id="post_pingback" />'; 418 419 $form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />'; 420 421 $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />'; 422 423 ?> 424 425 <input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 426 <input type="hidden" id="hiddenaction" name="action" value="<?php echo $form_action ?>" /> 427 <input type="hidden" id="originalaction" name="originalaction" value="<?php echo $form_action ?>" /> 428 <input type="hidden" id="post_author" name="post_author" value="<?php echo attribute_escape( $post->post_author ); ?>" /> 429 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 430 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 431 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 432 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 433 434 <?php echo $form_extra ?> 435 436 <div id="poststuff"> 437 438 <div id="side-info" style="display: none;"><?php // TODO ?> 439 440 <h5><?php _e('Related') ?></h5> 441 <ul> 442 <?php if ($post_ID): ?> 443 <li><a href="edit.php?p=<?php echo $post_ID ?>"><?php _e('See Comments on this Post') ?></a></li> 444 <?php endif; ?> 445 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 446 <li><a href="edit.php"><?php _e('Manage All Posts') ?></a></li> 447 <li><a href="categories.php"><?php _e('Manage All Categories') ?></a></li> 448 <li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li> 449 <li><a href="edit.php?post_status=draft"><?php _e('View Drafts'); ?></a></li> 450 <?php do_action('post_relatedlinks_list'); ?> 451 </ul> 452 453 <h5><?php _e('Shortcuts') ?></h5> 454 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?> <a href="<?php echo get_shortcut_link(); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p> 455 </div> 456 457 <div id="side-info-column" class="inner-sidebar"> 458 459 <?php do_action('submitpost_box'); ?> 460 461 <?php $side_meta_boxes = do_meta_boxes('post', 'side', $post); ?> 462 463 </div> 464 465 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 466 <div id="post-body-content" class="has-sidebar-content"> 467 <div id="titlediv"> 468 <h3><label for="title"><?php _e('Title') ?></label></h3> 469 <div id="titlewrap"> 470 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" /> 471 </div> 472 <div class="inside"> 473 <?php $sample_permalink_html = get_sample_permalink_html($post->ID); ?> 474 <div id="edit-slug-box"> 475 <?php if ( ! empty($post->ID) && ! empty($sample_permalink_html) ) : 476 echo $sample_permalink_html; 477 endif; ?> 478 </div> 479 </div> 480 </div> 481 482 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 483 484 <div id="add-media-button"><a href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&type=image&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Add Media' ); ?></a></div> 485 486 <h3><?php _e('Post') ?></h3> 487 488 <?php the_editor($post->post_content); ?> 489 490 <div id="post-status-info"> 491 <span id="wp-word-count" class="alignleft"></span> 492 <span class="alignright"> 493 <span id="autosave"> </span> 494 <?php 495 if ( $post_ID ) { 496 echo '<span id="last-edit">'; 497 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 498 $last_user = get_userdata($last_id); 499 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 500 } else { 501 printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 502 } 503 echo '</span>'; 504 } 505 ?> 506 </span> 507 <br class="clear" /> 508 </div> 509 510 511 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> 512 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 513 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 514 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 515 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 516 </div> 517 518 <?php 519 520 echo $form_pingback; 521 echo $form_prevstatus; 522 523 do_meta_boxes('post', 'normal', $post); 524 525 do_action('edit_form_advanced'); 526 392 527 do_meta_boxes('post', 'advanced', $post); 393 528 394 529 do_action('dbx_post_sidebar'); 530 395 531 ?> 532 396 533 </div> 397 534 </div> 535 </div><!-- /poststuff --> 398 536 399 537 </div> 538 <br class="clear" /> 539 </div> 400 540 401 541 </form> 402 542 -
wp-admin/menu.php
18 18 * @name $menu 19 19 * @var array 20 20 */ 21 $menu[0] = array(__('Dashboard'), 'read', 'index.php');22 21 23 if (strpos($_SERVER['REQUEST_URI'], 'edit-pages.php') !== false) 24 $menu[5] = array(__('Write'), 'edit_pages', 'page-new.php'); 25 elseif (strpos($_SERVER['REQUEST_URI'], 'link-manager.php') !== false) 26 $menu[5] = array(__('Write'), 'manage_links', 'link-add.php'); 27 else 28 $menu[5] = array(__('Write'), 'edit_posts', 'post-new.php'); 22 $awaiting_mod = wp_count_comments(); 23 $awaiting_mod = $awaiting_mod->moderated; 29 24 30 if (strpos($_SERVER['REQUEST_URI'], 'page-new.php') !== false) 31 $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php'); 32 elseif (strpos($_SERVER['REQUEST_URI'], 'link-add.php') !== false) 33 $menu[10] = array(__('Manage'), 'manage_links', 'link-manager.php'); 34 else 35 $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php'); 36 25 $inbox_num = count( wp_get_inbox_items() ); 37 26 $awaiting_mod = wp_count_comments(); 38 27 $awaiting_mod = $awaiting_mod->moderated; 39 $menu[15] = array(__('Design'), 'switch_themes', 'themes.php');40 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php');41 $menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');42 28 43 $update_plugins = get_option( 'update_plugins' ); 44 $update_count = 0; 45 if ( isset( $update_plugins->response ) ) 46 $update_count = count( $update_plugins->response ); 29 $top_menu = $top_submenu = $menu = $submenu = array(); 47 30 48 $menu[35] = array( sprintf( __('Plugins %s'), "<span id='update-plugins' class='count-$update_count'><span class='plugin-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'activate_plugins', 'plugins.php'); 49 if ( current_user_can('edit_users') ) 50 $menu[40] = array(__('Users'), 'edit_users', 'users.php'); 51 else 52 $menu[40] = array(__('Profile'), 'read', 'profile.php'); 31 $top_menu[5] = array( __('My Account'), 'read', 'profile.php' ); 32 $top_menu[10] = array( __('My Dashboard'), 'read', 'index.php' ); 33 $top_menu[15] = array( __('New Post'), 'edit_posts', 'post-new.php', 'highlighted' ); 34 //$top_menu[20] = array( sprintf( __('Inbox (%s)'), "<span id='inbox-num' class='count-$inbox_num'><span class='inbox-count'>" . number_format_i18n($inbox_num) . "</span></span>" ), 'edit_posts', 'inbox.php' ); 35 $top_menu[20] = array( sprintf( __('Comments (%s)'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>" . number_format_i18n($awaiting_mod) . "</span></span>" ), 'edit_posts', 'edit-comments.php'); 36 $top_menu[25] = array( __('Help'), 'read', 'index.php?help' ); // place holder 53 37 54 $_wp_real_parent_file['post.php'] = 'post-new.php'; // Back-compat 55 $submenu['post-new.php'][5] = array(__('Post'), 'edit_posts', 'post-new.php'); 56 $submenu['post-new.php'][10] = array(__('Page'), 'edit_pages', 'page-new.php'); 57 $submenu['post-new.php'][15] = array(__('Link'), 'manage_links', 'link-add.php'); 38 $top_submenu['profile.php'][5] = array( __('Profile'), 'read', 'profile.php' ); 39 $top_submenu['profile.php'][10] = array( __('Stats'), 'read', 'inbox.php?page=stats' ); // place holder 58 40 59 $submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php');60 41 61 $submenu['edit.php'][5] = array(__('Posts'), 'edit_posts', 'edit.php'); 62 $submenu['edit.php'][10] = array(__('Pages'), 'edit_pages', 'edit-pages.php'); 63 $submenu['edit.php'][15] = array(__('Links'), 'manage_links', 'link-manager.php'); 64 $submenu['edit.php'][20] = array(__('Categories'), 'manage_categories', 'categories.php'); 65 $submenu['edit.php'][25] = array(__('Tags'), 'manage_categories', 'edit-tags.php'); 66 $submenu['edit.php'][30] = array(__('Link Categories'), 'manage_categories', 'edit-link-categories.php'); 67 $submenu['edit.php'][35] = array(__('Media Library'), 'upload_files', 'upload.php'); 68 $submenu['edit.php'][40] = array(__('Import'), 'import', 'import.php'); 69 $submenu['edit.php'][45] = array(__('Export'), 'import', 'export.php'); 42 $menu[0] = array( __('Dashboard'), 'read', 'index.php' ); 70 43 71 if ( current_user_can('edit_users') ) { 72 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. 73 $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php'); 74 $submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php'); 75 } else { 76 $_wp_real_parent_file['users.php'] = 'profile.php'; 77 $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php'); 78 } 44 $menu[5] = array( __('Content'), 'edit_posts', 'edit.php', 'wp-menu-open' ); 45 $submenu['edit.php'][5] = array( __('Posts'), 'edit_posts', 'edit.php' ); 46 $submenu['edit.php'][10] = array( __('Comments'), 'edit_posts', 'edit-comments.php' ); 47 $submenu['edit.php'][15] = array( __('Media Library'), 'upload_files', 'upload.php' ); 48 $submenu['edit.php'][20] = array( __('Links'), 'manage_links', 'link-manager.php' ); 49 $submenu['edit.php'][25] = array( __('Pages'), 'edit_pages', 'edit-pages.php' ); 79 50 80 $submenu['options-general.php'][10] = array(__('General'), 'manage_options', 'options-general.php'); 81 $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php'); 82 $submenu['options-general.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php'); 83 $submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php'); 84 $submenu['options-general.php'][30] = array(__('Privacy'), 'manage_options', 'options-privacy.php'); 85 $submenu['options-general.php'][35] = array(__('Permalinks'), 'manage_options', 'options-permalink.php'); 86 $submenu['options-general.php'][40] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php'); 87 88 $submenu['plugins.php'][5] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); 89 $submenu['plugins.php'][10] = array(__('Plugin Editor'), 'edit_plugins', 'plugin-editor.php'); 51 $menu[10] = array( __('Templates'), 'switch_themes', 'themes.php' ); 52 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 53 $submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php'); 90 54 $submenu['plugins.php'][15] = array(__('Install Plugins'), 'install_plugins', 'plugin-install.php'); 91 55 92 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 93 $submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php'); 56 $menu[15] = array( __('Utilities'), 'read', 'users.php' ); // placeholder - should be inbox 57 $submenu['users.php'][5] = array( __('Inbox'), 'read', 'inbox.php' ); 58 $submenu['users.php'][10] = array( __('Tags'), 'manage_categories', 'edit-tags.php' ); 59 $submenu['users.php'][15] = array( __('Categories'), 'manage_categories', 'categories.php' ); 60 $submenu['users.php'][20] = array( __('Link Categories'), 'manage_categories', 'edit-link-categories.php' ); 61 $submenu['users.php'][25] = array( __('Users'), 'edit_users', 'users.php' ); 62 $submenu['users.php'][30] = array( __('Import'), 'import', 'import.php' ); 63 $submenu['users.php'][35] = array( __('Export'), 'import', 'export.php' ); 64 $submenu['users.php'][40] = array( __('Settings'), 'manage_options', 'options-general.php' ); 65 $_wp_real_parent_file['options-general.php'] = 'users.php'; 66 $submenu['options-general.php'][10] = array( __('General'), 'manage_options', 'options-general.php' ); 67 $submenu['options-general.php'][15] = array( __('Writing'), 'manage_options', 'options-writing.php' ); 68 $submenu['options-general.php'][20] = array( __('Reading'), 'manage_options', 'options-reading.php' ); 69 $submenu['options-general.php'][25] = array( __('Discussion'), 'manage_options', 'options-discussion.php' ); 70 $submenu['options-general.php'][30] = array( __('Privacy'), 'manage_options', 'options-privacy.php' ); 71 $submenu['options-general.php'][35] = array( __('Permalinks'), 'manage_options', 'options-permalink.php' ); 72 $submenu['options-general.php'][40] = array( __('Miscellaneous'), 'manage_options', 'options-misc.php' ); 94 73 74 $menu[20] = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); 75 $submenu['plugins.php'][5] = array( __('Plugins'), 'activate_plugins', 'plugins.php' ); 76 $submenu['plugins.php'][10] = array( __('Plugin Editor'), 'edit_plugins', 'plugin-editor.php' ); 77 95 78 do_action('_admin_menu'); 96 79 97 80 // Create list of page plugin hook names. … … 102 85 $_wp_submenu_nopriv = array(); 103 86 $_wp_menu_nopriv = array(); 104 87 // Loop over submenus and remove pages for which the user does not have privs. 105 foreach ($submenu as $parent => $sub) { 106 foreach ($sub as $index => $data) { 107 if ( ! current_user_can($data[1]) ) { 108 unset($submenu[$parent][$index]); 109 $_wp_submenu_nopriv[$parent][$data[2]] = true; 88 foreach ( array( 'top_submenu', 'submenu' ) as $sub_loop ) { 89 foreach ($$sub_loop as $parent => $sub) { 90 foreach ($sub as $index => $data) { 91 if ( ! current_user_can($data[1]) ) { 92 unset(${$sub_loop}[$parent][$index]); 93 $_wp_submenu_nopriv[$parent][$data[2]] = true; 94 } 110 95 } 111 }112 96 113 if ( empty($submenu[$parent]) ) 114 unset($submenu[$parent]); 97 if ( empty(${$sub_loop}[$parent]) ) 98 unset(${$sub_loop}[$parent]); 99 } 115 100 } 116 101 117 102 // Loop over the top-level menu. -
wp-admin/options-discussion.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <ul class="wp-menu"> 20 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 21 </ul> 19 22 <h2><?php _e('Discussion Settings') ?></h2> 20 23 <form method="post" action="options.php"> 21 24 <?php wp_nonce_field('update-options') ?> -
wp-admin/admin-header.php
8 8 9 9 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 10 10 if (!isset($_GET["page"])) require_once('admin.php'); 11 if ( $editing ) {12 if ( user_can_richedit() )13 wp_enqueue_script( 'wp_tiny_mce' );14 }15 11 wp_enqueue_script( 'wp-gears' ); 16 12 17 13 $min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php', 'link.php' ); … … 33 29 add_filter( 'admin_body_class', 'add_minwidth' ); 34 30 } 35 31 32 $fixed_bar_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php' ); 33 if ( ! isset($fixed_bar) ) $fixed_bar = in_array( $the_current_page, $fixed_bar_pages ) ? true : false; 34 36 35 get_admin_page_title(); 37 36 38 37 ?> … … 143 142 } 144 143 ?> 145 144 <div id="wpbody"> 145 146 <?php if ( ! $fixed_bar ) { ?> 147 <div id="wpbody-content"> 148 <?php } ?> -
wp-admin/plugins.php
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
17 17 } 18 18 } 19 19 20 if( isset($_ GET['action']) )21 $action = $_ GET['action'];20 if( isset($_REQUEST['action']) ) 21 $action = $_REQUEST['action']; 22 22 23 23 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin'] : ''; 24 24 … … 327 327 328 328 <div class="tablenav"> 329 329 <div class="alignleft"> 330 <input type="submit" name="deactivate-selected" value="<?php _e('Deactivate') ?>" class="button-secondary" /> 330 <select name="action"> 331 <option value="" selected><?php _e('Actions'); ?></option> 332 <option value="deactivate-selected"><?php _e('Deactivate'); ?></option> 333 </select> 334 <input type="submit" name="doaction" value="<?php _e('Apply'); ?>" class="button-secondary action" /> 331 335 </div> 332 336 </div> 333 337 <br class="clear" /> … … 345 349 346 350 <div class="tablenav"> 347 351 <div class="alignleft"> 348 <input type="submit" name="activate-selected" value="<?php _e('Activate') ?>" class="button-secondary" /> 352 <select name="action"> 353 <option value="" selected><?php _e('Actions'); ?></option> 354 <option value="activate-selected"><?php _e('Activate'); ?></option> 349 355 <?php if( current_user_can('delete_plugins') ) : ?> 350 <input type="submit" name="delete-selected" value="<?php _e('Delete') ?>" class="button-secondary" />356 <option value="delete-selected"><?php _e('Delete'); ?></option> 351 357 <?php endif; ?> 358 </select> 359 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" class="button-secondary action" /> 352 360 <input type="submit" name="clear-recent-list" value="<?php _e('Clear List') ?>" class="button-secondary" /> 353 361 </div> 354 362 </div> -
wp-admin/link-add.php
11 11 12 12 $title = __('Add Link'); 13 13 $this_file = 'link-manager.php'; 14 $parent_file = 'post-new.php'; 14 $parent_file = 'edit.php'; 15 $submenu_file = 'link-manager.php'; 15 16 16 17 17 18 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', … … 22 23 wp_enqueue_script('link'); 23 24 wp_enqueue_script('xfn'); 24 25 26 $link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ? 27 '<div id="message" class="updated fade"><p>' . __('Link added.') . '</p></div>' : ''; 28 29 $fixed_bar = true; 25 30 require('admin-header.php'); 26 31 ?> 27 32 -
wp-admin/options.php
58 58 include('admin-header.php'); ?> 59 59 60 60 <div class="wrap"> 61 <ul class="wp-menu"> 62 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 63 </ul> 61 64 <h2><?php _e('All Settings'); ?></h2> 62 65 <form name="form" action="options.php" method="post" id="all-options"> 63 66 <?php wp_nonce_field('update-options') ?> -
wp-admin/link.php
106 106 if (!$link = get_link_to_edit($link_id)) 107 107 wp_die(__('Link not found.')); 108 108 109 $fixed_bar = true; 109 110 include_once ('admin-header.php'); 110 111 include ('edit-link-form.php'); 111 112 include ('admin-footer.php'); -
wp-admin/press-this.php
334 334 wp_enqueue_style('press-this'); 335 335 wp_enqueue_style('press-this-ie'); 336 336 wp_enqueue_style( 'colors' ); 337 wp_enqueue_script( 'post');337 wp_enqueue_script( 'post' ); 338 338 wp_enqueue_script('editor_functions'); 339 339 340 // wp_teeny_mce(); 341 340 342 do_action('admin_print_styles'); 341 343 do_action('admin_print_scripts'); 342 344 do_action('admin_head'); … … 572 574 </div> 573 575 </form> 574 576 </body> 575 </html> 576 No newline at end of file 577 </html> -
wp-admin/css/global.css
1 /* 2 column liquid layout */ 2 div#wpbody { 3 float: right; 4 clear: right; 5 width: 100%; 6 margin-left: -185px; 7 } 8 9 div#wpbody-content { 10 margin-left: 175px; 11 border-width: 1px 0 0 1px; 12 border-style: solid; 13 border-color: #c6d9e9; 14 padding-top: 10px; 15 } 16 17 ul#adminmenu { 18 float: left; 19 clear: left; 20 width: 165px; /* + 10 padding */ 21 position: relative; 22 } 23 24 /* inner 2 column liquid layout */ 25 26 .inner-sidebar { 27 float: right; 28 clear: right; 29 width: 220px; 30 position: relative; 31 } 32 33 .has-sidebar { 34 float: left; 35 clear: left; 36 width: 100%; 37 margin-right: -240px; 38 } 39 40 .has-sidebar .has-sidebar-content { 41 margin-right: 245px; 42 } 43 44 1 45 /* styles for use by people extending the WordPress interface */ 2 46 3 4 47 body { 5 48 margin: 0; 6 49 padding: 0; … … 91 134 92 135 .subsubsub li { display: inline; margin: 0; padding: 0; } 93 136 137 /* make it small? */ 138 .subsubsub li.spam { 139 font-size: .9em; 140 } 141 94 142 .widefat { 95 143 border-width: 1px; 96 144 border-style: solid; … … 151 199 text-align: center; 152 200 } 153 201 202 #wpbody .wrap { 203 position: relative; 204 } 205 154 206 .wrap, .updated, .error { 155 margin: 0; 156 margin-left: 15px; 157 margin-right: 15px; 207 margin: 0 15px; 158 208 padding: 0; 159 max-width: 980px;160 209 } 161 210 162 211 .updated, .error { 163 212 border-width: 1px; 164 213 border-style: solid; 165 214 padding: 0 0.6em; 166 max-width: 950px;167 215 margin-bottom: 1em; 168 216 } 169 217 … … 189 237 border-bottom-style: solid; 190 238 clear: both; 191 239 font: 24px Georgia, "Times New Roman", Times, serif; 192 margin: 5px 0 0-4px;240 margin: 5px 0 10px -4px; 193 241 padding: 0; 194 242 padding-bottom: 7px; 195 243 padding-right: 280px; -
wp-admin/css/colors-fresh.css
1 #wpcontent, #wpbody { 2 background-color: #e4f2fd; 3 } 4 #wpbody-content { 5 background-color: #fff; 6 } 1 7 a.page-numbers:hover { 2 8 border-color: #999; 3 9 } … … 11 17 border-bottom-color: #fff; 12 18 } 13 19 14 div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat { 20 div#current-widgets, #postcustomstuff table, #your-profile fieldset, 21 a.page-numbers, #rightnow, div.dashboard-widget, 22 #dashboard-widgets p.dashboard-widget-links, .widefat { 15 23 border-color: #ccc; 16 24 } 17 25 … … 35 43 background-color: #ccc; 36 44 } 37 45 38 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, li.widget-list-control-item h4.widget-title a, 46 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, 47 #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 48 li.widget-list-control-item h4.widget-title a, 39 49 #dragHelper li.widget-list-control-item h4.widget-title a, 40 #draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, 41 #plugin-information .action-button a, #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { 50 #draghelper li.widget-list-control-item h4.widget-title a:visited, 51 .login #backtoblog a:hover, #plugin-information .action-button a, 52 #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { 42 53 color: #fff; 43 54 } 44 55 45 li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title { 56 li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 57 ul.view-switch li.current, .form-table tr, #poststuff h3, 58 .login form, h3.info-box-title, #post-status-info { 46 59 background-color: #eaf3fa; 47 60 } 48 61 … … 55 68 background-color: #2583ad; 56 69 } 57 70 58 ul#category-tabs li.ui-tabs-selected, .button-secondary, #quicktags, #login form .submit input { 71 #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, 72 #quicktags, #login form .submit input, #post-search .button, 73 #post-search-prep .button { 59 74 background-color: #cee1ef !important; 60 75 } 61 76 … … 120 135 border-color: #c00 !important; 121 136 } 122 137 123 .form-table input, .form-table textarea {138 .form-table input, .form-table textarea, #post-search-input { 124 139 border-color: #c6d9e9; 125 140 } 126 141 … … 133 148 color: #d54e21; 134 149 } 135 150 136 #user_info, .howto, .nonessential, #dashmenu a, # sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite {151 #user_info, .howto, .nonessential, #dashmenu a, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { 137 152 color: #999; 138 153 } 139 154 … … 197 212 border-color: #535353; 198 213 } 199 214 200 .submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #adminmenu a:hover, #sidemenu a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, #media-upload a.del-link:hover, .ui-tabs-nav a:hover { 215 .submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, 216 #adminmenu a:hover, #adminmenu ul.wp-submenu a:hover, #the-comment-list .comment a:hover, 217 #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, 218 #login form .submit input:hover, div.dashboard-widget-submit input:hover, 219 #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, 220 #media-upload a.del-link:hover, .ui-tabs-nav a:hover { 201 221 color: #d54e21; 202 222 } 203 223 … … 205 225 border-color: #328ab2; 206 226 } 207 227 208 .submitbox #autosave .error,ul.view-switch li.current a {228 ul.view-switch li.current a { 209 229 color: #333; 210 230 } 211 231 212 .submitbox #previewview { 213 background-color: #2683ae; 214 } 215 216 .submitbox #previewview a, #rightnow .rbutton { 232 #rightnow .rbutton { 217 233 background-color: #ebebeb; 218 234 color: #264761; 219 235 } … … 265 281 border-bottom-color: #ccc; 266 282 } 267 283 268 .widefat thead, .thead {284 .widefat thead, .thead, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small { 269 285 background-color: #464646; 270 286 color: #d7d7d7; 271 287 } 272 288 289 h3.dashboard-widget-title small a { 290 color: #d7d7d7; 291 } 292 293 h3.dashboard-widget-title small a:hover { 294 color: #fff; 295 } 296 273 297 .widget-control-save, .widget-control-remove { 274 298 background-color: #cee1ef; 275 299 color: #246; … … 280 304 color: #666; 281 305 } 282 306 283 #adminmenu a, #submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a { 307 #adminmenu li.wp-has-submenu a { 308 color: #333; 309 } 310 311 #adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a { 284 312 color: #2583ad; 285 313 } 286 314 287 315 /* Because we don't want visited on these links */ 288 #adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover {316 #adminmenu li.current a, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { 289 317 background-color: #fff; 290 318 border-color: #c6d9e9; 291 319 border-bottom-color: #fff; 292 320 color: #d54e21; 293 321 } 294 322 295 #adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins { 323 #adminmenu li.current { 324 background-color: #fff; 325 border-color: #c6d9e9; 326 border-right-color: #fff; 327 } 328 329 #adminmenu li a #awaiting-mod { 296 330 background-image: url(../images/comment-stalk-fresh.gif); 297 331 } 298 332 … … 305 339 background-color: #264761; 306 340 } 307 341 308 #adminmenu,div#media-upload-header, div#plugin-information-header {342 div#media-upload-header, div#plugin-information-header { 309 343 background-color: #e4f2fd; 310 344 border-bottom-color: #c6d9e9; 311 345 } … … 326 360 background-color: #ddd; 327 361 } 328 362 329 #dashmenu a.current {330 background-color: #e4f2fd;331 color: #555;332 }333 334 363 #dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { 335 364 background-color: #2683ae; 336 365 color: #fff; … … 401 430 background-color: #fff; 402 431 } 403 432 433 #poststuff #editor-toolbar { 434 background-color: #cee1ef; 435 } 436 404 437 #poststuff #editor-toolbar .active { 405 background-color: # cee1ef;438 background-color: #EAF3FA; 406 439 color: #333; 407 440 } 408 441 … … 434 467 color: #448abd; 435 468 } 436 469 437 #sidemenu a {438 background-color: #e4f2fd;439 border-bottom-color: #c6d9e9;440 border-top-color: #e4f2fd;441 }442 443 470 #tagchecklist span a { 444 471 background: url(../images/xit.gif) no-repeat; 445 472 } … … 490 517 border-top-color: #247fab; 491 518 } 492 519 493 .login #backtoblog a, .curtime, #user_infoa {520 .login #backtoblog a, #curtime, #user_info a, #dashmenu a { 494 521 color: #ccc; 495 522 } 496 523 … … 512 539 border-color: #328ab2; 513 540 } 514 541 515 #wphead h1, # dashmenu a.current:hover, #login form input {542 #wphead h1, #wphead h1 a, #login form input { 516 543 color: #555; 517 544 } 518 545 546 #wphead h1 a:hover { 547 text-decoration: underline; 548 } 549 519 550 div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover { 520 551 color: #f00; 521 552 } … … 674 705 border-color: #464646; 675 706 } 676 707 677 #editorcontainer {708 #editorcontainer, #post-status-info { 678 709 border-color: #ccc; 679 710 } 680 711 … … 682 713 border-color: #ccc; 683 714 } 684 715 685 .curtime {716 #curtime { 686 717 color: #666; 687 718 } 688 719 … … 705 736 table.diff .diff-addedline ins { 706 737 background-color: #99ff99; 707 738 } 739 740 #adminmenu, 741 #att-info { 742 background-color: #E4F2FD; 743 } 744 745 746 /* fixed tool bar */ 747 #fixedbar { 748 background-color:#464646; 749 color: #ccc; 750 } 751 752 #html-upload-help { 753 color: #328AB2; 754 } 755 756 #fixedbar #last-edit { 757 758 } 759 760 #fixedbar a, 761 #fixedbar #curtime { 762 color: #ccc; 763 } 764 765 #fixedbar a:hover { 766 color: #fff; 767 } 768 769 #fixedbar a.button { 770 color: #246; 771 } 772 773 #fixedbar a.button:hover { 774 color: #d54e21; 775 } 776 777 #timestampdiv { 778 color: #ccc; 779 } 780 781 /* media popup 0819 */ 782 #sidemenu a { 783 background-color: #e4f2fd; 784 border-bottom-color: #c6d9e9; 785 border-top-color: #e4f2fd; 786 } 787 788 .submitbox .submitdelete { 789 color: #fff; 790 } -
wp-admin/css/colors-classic.css
1 #wpcontent, #wpbody { 2 background-color: #14568A; 3 } 4 #wpbody-content { 5 background-color: #fff; 6 } 1 7 a.page-numbers:hover { 2 8 border-color: #999; 3 9 } … … 11 17 border-bottom-color: #fff; 12 18 } 13 19 14 div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat { 20 div#current-widgets, #postcustomstuff table, #your-profile fieldset, 21 a.page-numbers, #rightnow, div.dashboard-widget, 22 #dashboard-widgets p.dashboard-widget-links, .widefat { 15 23 border-color: #ccc; 16 24 } 17 25 … … 27 35 border-top-color: #ccc; 28 36 } 29 37 38 div.ui-tabs-panel { 39 border-color: #F0F6FB; 40 } 41 30 42 input.disabled, textarea.disabled { 31 43 background-color: #ccc; 32 44 } 33 45 34 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, li.widget-list-control-item h4.widget-title a, 46 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, 47 #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 48 li.widget-list-control-item h4.widget-title a, 35 49 #dragHelper li.widget-list-control-item h4.widget-title a, 36 #draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, 37 #plugin-information .action-button a, #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { 50 #draghelper li.widget-list-control-item h4.widget-title a:visited, 51 .login #backtoblog a:hover, #plugin-information .action-button a, 52 #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { 38 53 color: #fff; 39 54 } 40 55 41 ul#category-tabs li.ui-tabs-selected, li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title { 56 li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, 57 ul.view-switch li.current, .form-table tr, #poststuff h3, 58 .login form, h3.info-box-title, #post-status-info { 42 59 background-color: #cfebf7; 43 60 } 44 61 45 div.ui-tabs-panel {46 border-color: #cfebf7;47 }48 49 62 select { 50 63 background-color: #fff; 51 64 border-color: #ddd; … … 55 68 background-color: #2583ad; 56 69 } 57 70 58 .button-secondary, #login form .submit input { 71 #post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, 72 #quicktags, #login form .submit input, #post-search .button, 73 #post-search-prep .button { 59 74 background-color: #8ebddc !important; 60 75 } 61 76 … … 133 148 color: #d54e21; 134 149 } 135 150 136 .howto, .nonessential, # sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite {151 .howto, .nonessential, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { 137 152 color: #999; 138 153 } 139 154 140 #dashmenu a, #user_info a {141 color: #88b4d7;142 }143 144 155 .media-item { 145 156 border-bottom-color: #d0d0d0; 146 157 } … … 197 208 background-color: #999; 198 209 } 199 210 200 .tablenav .button-secondary {201 border-color: #5396c5;202 }203 204 211 .submit input:hover, .button:hover, #edit-slug-buttons a.save:hover { 205 212 border-color: #535353; 206 213 } 207 214 208 .submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.del-link:hover { 215 .submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, 216 #adminmenu a:hover, #adminmenu ul.wp-submenu a:hover, #the-comment-list .comment a:hover, 217 #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, 218 #login form .submit input:hover, div.dashboard-widget-submit input:hover, 219 #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, 220 #media-upload a.del-link:hover, .ui-tabs-nav a:hover { 209 221 color: #d54e21; 210 222 } 211 223 212 #adminmenu a:hover, #sidemenu a:hover, .ui-tabs-nav a:hover {213 color: #97c4d8;214 }215 216 224 .button-secondary:hover, #login form .submit input:hover { 217 225 border-color: #328ab2; 218 226 background-color: #a6d2e5 !important; … … 283 291 color: #d7d7d7; 284 292 } 285 293 294 h3.dashboard-widget-title small a { 295 color: #d7d7d7; 296 } 297 298 h3.dashboard-widget-title small a:hover { 299 color: #fff; 300 } 301 286 302 .widget-control-save, .widget-control-remove { 287 303 background-color: #83b4d5; 288 304 color: #246; … … 301 317 color: #cfebf6; 302 318 } 303 319 304 #submenu a {305 color: #2782af306 }307 320 /* Because we don't want visited on these links */ 308 #adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover {321 #adminmenu li.current a, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { 309 322 background-color: #fff; 310 323 border-color: #07273e; 311 324 border-bottom-color: #fff; … … 313 326 font-weight: bold; 314 327 } 315 328 316 #adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins { 329 #adminmenu li.current { 330 background-color: #fff; 331 border-right-color: #fff; 332 } 333 334 #adminmenu li a #awaiting-mod { 317 335 background-image: url(../images/comment-stalk-classic.gif); 318 336 } 319 337 … … 332 350 background-color: #07273E; 333 351 } 334 352 335 #adminmenu,div#media-upload-header, div#plugin-information-header {353 div#media-upload-header, div#plugin-information-header { 336 354 background-color: #14568a; 337 355 border-bottom-color: #07273e; 338 356 } … … 353 371 background-color: #ddd; 354 372 } 355 373 356 #dashmenu a.current {357 background-color: #14568a;358 color: #cfebf6;359 }360 361 374 #dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { 362 375 background-color: #2683ae; 363 376 color: #fff; … … 432 445 background-color: #fff; 433 446 } 434 447 448 #poststuff #editor-toolbar { 449 background-color: #83b4d5; 450 } 451 435 452 #poststuff #editor-toolbar .active { 436 background-color: # 83b4d5;453 background-color: #CFEBF7; 437 454 color: #333; 438 455 } 439 456 … … 465 482 color: #448abd; 466 483 } 467 484 468 #sidemenu a {469 background-color: #14568a;470 border-bottom-color: #07273e;471 border-top-color: #14568a;472 color: #cfebf6;473 }474 475 485 #tagchecklist span a { 476 486 background: url(../images/xit.gif) no-repeat; 477 487 } … … 544 554 color: #07273e; 545 555 } 546 556 547 #wphead h1, #dashmenu a.current:hover { 557 #wphead h1, #wphead h1 a, #login form input { 558 color: #555; 559 } 560 561 #wphead h1 { 548 562 color: #cfebf6; 549 563 } 550 564 565 #media-upload a.delete { 566 color: #888; 567 } 568 551 569 div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover { 552 570 color: #f00; 553 571 } … … 715 733 color: #333; 716 734 } 717 735 736 #att-info { 737 background-color: #E4F2FD; 738 } 739 718 740 /* Diff */ 719 741 720 742 table.diff .diff-deletedline { … … 729 751 table.diff .diff-addedline ins { 730 752 background-color: #99ff99; 731 753 } 754 755 /* media popup 0819 */ 756 #sidemenu a { 757 background-color: #14568a; 758 border-bottom-color: #07273e; 759 border-top-color: #14568a; 760 color: #CFEBF6; 761 } 762 763 .submitbox .submitdelete { 764 color: #fff; 765 } -
wp-admin/css/dashboard.css
1 /* Right Now */ 2 3 #rightnow { 1 form .input-text-wrap { 2 border-style: solid; 4 3 border-width: 1px; 5 border-style: solid; 6 padding: 2px; 7 margin-top: 10px; 8 margin-right: 7px; 4 padding: 2px 3px; 5 border-color: #CCCCCC; 9 6 } 10 7 11 #rightnow .reallynow { 12 padding: 6px; 13 font-size: 15px; 14 line-height: 2; 15 margin: 0; 8 form .input-text-wrap input { 9 border: 0pt none; 10 outline-color: -moz-use-text-color; 11 outline-style: none; 12 outline-width: medium; 13 padding: 0pt; 14 width: 99%; 15 border-style: solid; 16 color: #333333; 16 17 } 17 18 18 #rightnow .rbutton { 19 font-weight: normal; 20 padding: 6px; 21 border-bottom: none; 22 -moz-border-radius: 2px; 23 -khtml-border-radius: 2px; 24 -webkit-border-radius: 2px; 25 border-radius: 2px; 26 text-decoration: none; 19 form .textarea-wrap { 20 border-style: solid; 21 border-width: 1px; 22 padding: 2px; 23 border-color: #CCCCCC; 27 24 } 28 25 29 #rightnow .reallynow span { 30 display: block; 31 text-align: left; 32 float: left; 33 padding: 0 6px; 26 form .textarea-wrap textarea { 27 border: 0pt none; 28 padding: 0; 29 width: 99%; 34 30 } 35 31 36 #rightnow .reallynow a {37 display: block;38 text-align: right;39 float: right;40 padding: 0 6px;41 font-size: 14px;42 margin: 1px 6px 0 0;43 }44 32 45 #rightnow .youhave {46 font-size: 14px;47 padding: 10px;48 }49 50 #rightnow h3, #rightnow p {51 padding: 0 10px;52 }53 54 #rightnow a {55 font-weight: bold;56 }57 58 33 /* Widgets */ 59 34 60 35 div#dashboard-widgets-wrap { 61 margin-top: -20px;62 36 margin-right: -13px; /* 20 (div.dashboard-widget margin-right) - 7 (#rightnow margin-right) */ 63 37 } 64 38 … … 86 60 87 61 div.dashboard-widget-holder.double div.dashboard-widget { 88 62 height: 54em; 89 padding-bottom: 28px /* lame */63 padding-bottom: 28px /* lame */ 90 64 } 91 65 92 66 div.dashboard-widget { … … 94 68 margin-right: 20px; 95 69 border-width: 1px; 96 70 border-style: solid; 97 padding: 2px;98 71 height: 27em; 99 72 overflow: auto; 100 73 font-size: 11px; 101 74 } 102 75 76 #dashboard-widgets p.dashboard-widget-links { 77 padding: 2px; 78 font-size: 11px; 79 line-height: 2; 80 border-width: 1px; 81 margin: 0 20px 0 0; 82 padding: 0 7px; 83 border: 1px solid; 84 border-top: none; 85 } 86 103 87 h3.dashboard-widget-title { 104 margin: 0;88 margin: 2px; 105 89 padding: 0 7px; 106 90 font-size: 14px; 107 91 line-height: 2; … … 121 105 line-height: 2.67; /* math: it works, bitches */ 122 106 } 123 107 124 h3.dashboard-widget-titleimg.rss-icon {108 p.dashboard-widget-links img.rss-icon { 125 109 vertical-align: middle; 126 margin: .5em 0;127 110 } 128 111 129 112 div.dashboard-widget-notice { … … 278 261 line-height: 1.5em; 279 262 } 280 263 281 .widget-loading { 264 #dashboard_inbox div.dashboard-widget, #dashboard_quick_press div.dashboard-widget { 265 height: 35em; 266 padding-bottom: 0; 282 267 } 268 269 #dashboard_quick_press div.dashboard-widget-content { 270 padding-bottom: 0; 271 } 272 273 #dashboard_inbox p.actions { 274 margin-bottom:0pt; 275 margin-top: 0; 276 float:left; 277 } 278 279 #dashboard_quick_press h3 { 280 margin-bottom: 3px; 281 } 282 283 #dashboard_quick_press h3#quick-post-title { 284 margin-top: 0; 285 } 286 287 #dashboard_quick_press p.field-tip { 288 margin-top: 0; 289 font-style: italic; 290 } 291 292 #dashboard_quick_press .submit { 293 padding: 0 0 1em 0; 294 border-top: none; 295 border-bottom: 1px solid #ccc; 296 } 297 298 #dashboard_quick_press p#recent-drafts { 299 margin: 0; 300 } -
wp-admin/options-reading.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <ul class="wp-menu"> 20 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 21 </ul> 19 22 <h2><?php _e('Reading Settings') ?></h2> 20 23 <form name="form1" method="post" action="options.php"> 21 24 <?php wp_nonce_field('update-options') ?> -
wp-admin/page-new.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 $title = __('New Page'); 12 $parent_file = 'post-new.php'; 12 $parent_file = 'edit.php'; 13 $submenu_file = 'edit-pages.php'; 13 14 $editing = true; 14 15 wp_enqueue_script('autosave'); 15 16 wp_enqueue_script('page'); -
wp-admin/import.php
9 9 /** Load WordPress Bootstrap */ 10 10 require_once ('admin.php'); 11 11 $title = __('Import'); 12 $parent_file = 'edit.php';13 12 require_once ('admin-header.php'); 14 13 ?> 15 14 -
wp-admin/options-permalink.php
123 123 <?php endif; ?> 124 124 125 125 <div class="wrap"> 126 <ul class="wp-menu"> 127 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 128 </ul> 126 129 <h2><?php _e('Customize Permalink Structure') ?></h2> 127 130 <form name="form" action="options-permalink.php" method="post"> 128 131 <?php wp_nonce_field('update-permalink') ?> -
wp-admin/options-writing.php
16 16 ?> 17 17 18 18 <div class="wrap"> 19 <ul class="wp-menu"> 20 <?php $array = array(); _wp_menu_output( $submenu['options-general.php'], $array ); unset($array); ?> 21 </ul> 19 22 <h2><?php _e('Writing Settings') ?></h2> 20 23 <form method="post" action="options.php"> 21 24 <?php wp_nonce_field('update-options') ?> -
wp-admin/export.php
12 12 /** Load WordPress export API */ 13 13 require_once('includes/export.php'); 14 14 $title = __('Export'); 15 $parent_file = 'edit.php';16 15 17 16 if ( isset( $_GET['download'] ) ) { 18 17 export_wp( $_GET['author'] ); -
wp-admin/admin-footer.php
5 5 * @package WordPress 6 6 * @subpackage Administration 7 7 */ 8 ?> 8 9 if ( ! $fixed_bar ) { ?> 10 <br class="clear" /></div><!-- wpbody-content --> 11 <?php } ?> 12 9 13 </div><!-- wpbody --> 10 14 </div><!-- wpcontent --> 11 15 </div><!-- wpwrap -->