- 16C0FC9C5D8A4CC9FF746E06C54C55C30FC703F1D81D3F441454E3CC94655A0ABBCF606E3DF1126DAD1E5FFDC049F04328F33461F1EF137A46E06A5ACA0EABE9
+ 67007AE96743E9C971F9D54432741753EDA72B8C98134960A3ED97BC8368BA32EA6C57830219F47E34804FFE607DFA4B400E41846323595EAF134F43E20BFCC9
mp-wp/wp-admin/includes/template.php
(121 . 9)(121 . 8)
24875 $edit = "<a class='row-title' href='$edit_link' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "'>" . attribute_escape( $name ) . '</a><br />';
24876 $actions = array();
24877 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
24878 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
24879 if ( $default_cat_id != $category->term_id )
24880 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("categories.php?action=delete&cat_ID=$category->term_id", 'delete-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
24881 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("categories.php?action=delete&cat_ID=$category->term_id", 'delete-category_' . $category->term_id) . "'>" . __('Delete') . "</a>";
24882 $action_count = count($actions);
24883 $i = 0;
24884 $edit .= '<div class="row-actions">';
(157 . 13)(156 . 13)
24886
24887 switch ($column_name) {
24888 case 'cb':
24889 $output .= "<th scope='row' class='check-column'>";
24890 $output .= "<td scope='row' class='check-column'>";
24891 if ( $default_cat_id != $category->term_id ) {
24892 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
24893 } else {
24894 $output .= " ";
24895 }
24896 $output .= '</th>';
24897 $output .= '</td>';
24898 break;
24899 case 'name':
24900 $output .= "<td $attributes>$edit";
(191 . 80)(190 . 6)
24902 /**
24903 * {@internal Missing Short Description}}
24904 *
24905 * @since 2.7
24906 *
24907 * Outputs the HTML for the hidden table rows used in Categories, Link Caregories and Tags quick edit.
24908 *
24909 * @param string $type "tag", "category" or "link-category"
24910 * @return
24911 */
24912 function inline_edit_term_row($type) {
24913
24914 if ( ! current_user_can( 'manage_categories' ) )
24915 return;
24916
24917 $is_tag = $type == 'edit-tags';
24918 $columns = get_column_headers($type);
24919 $hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($type) ) );
24920 $col_count = count($columns) - count($hidden);
24921 ?>
24922
24923 <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
24924 <tr id="inline-edit" class="inline-edit-row" style="display: none"><td colspan="<?php echo $col_count; ?>">
24925
24926 <fieldset><div class="inline-edit-col">
24927 <h4><?php _e( 'Quick Edit' ); ?></h4>
24928
24929 <label>
24930 <span class="title"><?php _e( 'Name' ); ?></span>
24931 <span class="input-text-wrap"><input type="text" name="name" class="ptitle" value="" /></span>
24932 </label>
24933
24934 <label>
24935 <span class="title"><?php _e( 'Slug' ); ?></span>
24936 <span class="input-text-wrap"><input type="text" name="slug" class="ptitle" value="" /></span>
24937 </label>
24938
24939 <?php if ( 'category' == $type ) : ?>
24940
24941 <label>
24942 <span class="title"><?php _e( 'Parent' ); ?></span>
24943 <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('None'))); ?>
24944 </label>
24945
24946 <?php endif; // $type ?>
24947
24948 </div></fieldset>
24949
24950 <?php
24951
24952 $core_columns = array( 'cb' => true, 'description' => true, 'name' => true, 'slug' => true, 'posts' => true );
24953
24954 foreach ( $columns as $column_name => $column_display_name ) {
24955 if ( isset( $core_columns[$column_name] ) )
24956 continue;
24957 do_action( 'quick_edit_custom_box', $column_name, $type );
24958 }
24959
24960 ?>
24961
24962 <p class="inline-edit-save submit">
24963 <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
24964 <?php $update_text = ( $is_tag ) ? __( 'Update Tag' ) : __( 'Update Category' ); ?>
24965 <a accesskey="s" href="#inline-edit" title="<?php echo attribute_escape( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
24966 <img class="waiting" style="display:none;" src="images/loading.svg" alt="" />
24967 <span class="error" style="display:none;"></span>
24968 <?php wp_nonce_field( 'taxinlineeditnonce', '_inline_edit', false ); ?>
24969 <br class="clear" />
24970 </p>
24971 </td></tr>
24972 </tbody></table></form>
24973 <?php
24974 }
24975
24976 /**
24977 * {@internal Missing Short Description}}
24978 *
24979 * @since unknown
24980 *
24981 * @param unknown_type $category
(286 . 9)(211 . 8)
24983 $edit = "<a class='row-title' href='$edit_link' title='" . attribute_escape(sprintf(__('Edit "%s"'), $category->name)) . "'>$name</a><br />";
24984 $actions = array();
24985 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
24986 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
24987 if ( $default_cat_id != $category->term_id )
24988 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link-category.php?action=delete&cat_ID=$category->term_id", 'delete-link-category_' . $category->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this category '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
24989 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("link-category.php?action=delete&cat_ID=$category->term_id", 'delete-link-category_' . $category->term_id) . "'>" . __('Delete') . "</a>";
24990 $action_count = count($actions);
24991 $i = 0;
24992 $edit .= '<div class="row-actions">';
(321 . 13)(245 . 13)
24994
24995 switch ($column_name) {
24996 case 'cb':
24997 $output .= "<th scope='row' class='check-column'>";
24998 $output .= "<td scope='row' class='check-column'>";
24999 if ( absint( get_option( 'default_link_category' ) ) != $category->term_id ) {
25000 $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
25001 } else {
25002 $output .= " ";
25003 }
25004 $output .= "</th>";
25005 $output .= "</td>";
25006 break;
25007 case 'name':
25008 $output .= "<td $attributes>$edit";
(603 . 14)(527 . 13)
25010
25011 switch ($column_name) {
25012 case 'cb':
25013 $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
25014 $out .= '<td scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></td>';
25015 break;
25016 case 'name':
25017 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attribute_escape(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';
25018 $actions = array();
25019 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
25020 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
25021 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("edit-tags.php?action=delete&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "' onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this tag '%s'\n 'Cancel' to stop, 'OK' to delete."), $name )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
25022 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("edit-tags.php?action=delete&tag_ID=$tag->term_id", 'delete-tag_' . $tag->term_id) . "'>" . __('Delete') . "</a>";
25023 $action_count = count($actions);
25024 $i = 0;
25025 $out .= '<div class="row-actions">';
(686 . 13)(609 . 13)
25027 */
25028 function wp_manage_posts_columns() {
25029 $posts_columns = array();
25030 $posts_columns['cb'] = '<input type="checkbox" />';
25031 $posts_columns['cb'] = ' ';
25032 $posts_columns['title'] = _c('Post|noun');
25033 $posts_columns['author'] = __('Author');
25034 $posts_columns['categories'] = __('Categories');
25035 $posts_columns['tags'] = __('Tags');
25036 if ( !isset($_GET['post_status']) || !in_array($_GET['post_status'], array('pending', 'draft', 'future')) )
25037 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.svg" /></div>';
25038 $posts_columns['comments'] = '<div class="vers">Comments</div>';
25039 $posts_columns['date'] = __('Date');
25040 $posts_columns = apply_filters('manage_posts_columns', $posts_columns);
25041
(709 . 14)(632 . 11)
25043 */
25044 function wp_manage_media_columns() {
25045 $posts_columns = array();
25046 $posts_columns['cb'] = '<input type="checkbox" />';
25047 $posts_columns['cb'] = ' ';
25048 $posts_columns['icon'] = '';
25049 $posts_columns['media'] = _c('File|media column header');
25050 $posts_columns['author'] = __('Author');
25051 //$posts_columns['tags'] = _c('Tags|media column header');
25052 $posts_columns['parent'] = _c('Attached to|media column header');
25053 $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.svg" /></div>';
25054 //$posts_columns['comments'] = __('Comments');
25055 $posts_columns['comments'] = '<div class="vers">Comments</div>';
25056 $posts_columns['date'] = _c('Date|media column header');
25057 $posts_columns = apply_filters('manage_media_columns', $posts_columns);
25058
(732 . 14)(652 . 14)
25060 */
25061 function wp_manage_pages_columns() {
25062 $posts_columns = array();
25063 $posts_columns['cb'] = '<input type="checkbox" />';
25064 $posts_columns['cb'] = ' ';
25065 $posts_columns['title'] = __('Title');
25066 $posts_columns['author'] = __('Author');
25067 $post_status = 'all';
25068 if ( !empty($_GET['post_status']) )
25069 $post_status = $_GET['post_status'];
25070 if ( !in_array($post_status, array('pending', 'draft', 'future')) )
25071 $posts_columns['comments'] = '<div class="vers"><img alt="" src="images/comment-grey-bubble.svg" /></div>';
25072 $posts_columns['comments'] = '<div class="vers">Comments</div>';
25073 $posts_columns['date'] = __('Date');
25074 $posts_columns = apply_filters('manage_pages_columns', $posts_columns);
25075
(773 . 7)(693 . 7)
25077 break;
25078 case 'edit-comments':
25079 $_wp_column_headers[$page] = array(
25080 'cb' => '<input type="checkbox" />',
25081 'cb' => ' ',
25082 'author' => __('Author'),
25083 'comment' => _c('Comment|noun'),
25084 //'date' => __('Submitted'),
(783 . 7)(703 . 7)
25086 break;
25087 case 'link-manager':
25088 $_wp_column_headers[$page] = array(
25089 'cb' => '<input type="checkbox" />',
25090 'cb' => ' ',
25091 'name' => __('Name'),
25092 'url' => __('URL'),
25093 'categories' => __('Categories'),
(797 . 7)(717 . 7)
25095 break;
25096 case 'categories':
25097 $_wp_column_headers[$page] = array(
25098 'cb' => '<input type="checkbox" />',
25099 'cb' => ' ',
25100 'name' => __('Name'),
25101 'description' => __('Description'),
25102 'slug' => __('Slug'),
(807 . 7)(727 . 7)
25104 break;
25105 case 'edit-link-categories':
25106 $_wp_column_headers[$page] = array(
25107 'cb' => '<input type="checkbox" />',
25108 'cb' => ' ',
25109 'name' => __('Name'),
25110 'description' => __('Description'),
25111 'slug' => __('Slug'),
(817 . 7)(737 . 7)
25113 break;
25114 case 'edit-tags':
25115 $_wp_column_headers[$page] = array(
25116 'cb' => '<input type="checkbox" />',
25117 'cb' => ' ',
25118 'name' => __('Name'),
25119 'slug' => __('Slug'),
25120 'posts' => __('Posts')
(826 . 7)(746 . 7)
25122 break;
25123 case 'users':
25124 $_wp_column_headers[$page] = array(
25125 'cb' => '<input type="checkbox" />',
25126 'cb' => ' ',
25127 'username' => __('Username'),
25128 'name' => __('Name'),
25129 'email' => __('E-mail'),
(914 . 295)(834 . 6)
25131 return (array) get_user_option( 'manage-' . $page . '-columns-hidden', 0, false );
25132 }
25133
25134 /**
25135 * {@internal Missing Short Description}}
25136 *
25137 * Outputs the quick edit and bulk edit table rows for posts and pages
25138 *
25139 * @since 2.7
25140 *
25141 * @param string $type 'post' or 'page'
25142 */
25143 function inline_edit_row( $type ) {
25144 global $current_user, $mode;
25145
25146 $is_page = 'page' == $type;
25147 if ( $is_page ) {
25148 $screen = 'edit-pages';
25149 $post = get_default_page_to_edit();
25150 } else {
25151 $screen = 'edit';
25152 $post = get_default_post_to_edit();
25153 }
25154
25155 $columns = $is_page ? wp_manage_pages_columns() : wp_manage_posts_columns();
25156 $hidden = array_intersect( array_keys( $columns ), array_filter( get_hidden_columns($screen) ) );
25157 $col_count = count($columns) - count($hidden);
25158 $m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list';
25159 $can_publish = current_user_can("publish_{$type}s");
25160 $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true );
25161
25162 ?>
25163
25164 <form method="get" action=""><table style="display: none"><tbody id="inlineedit">
25165 <?php
25166 $bulk = 0;
25167 while ( $bulk < 2 ) { ?>
25168
25169 <tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="inline-edit-row inline-edit-row-<?php echo "$type ";
25170 echo $bulk ? "bulk-edit-row bulk-edit-row-$type" : "quick-edit-row quick-edit-row-$type";
25171 ?>" style="display: none"><td colspan="<?php echo $col_count; ?>">
25172
25173 <fieldset class="inline-edit-col-left"><div class="inline-edit-col">
25174 <h4><?php echo $bulk ? ( $is_page ? __( 'Bulk Edit Pages' ) : __( 'Bulk Edit Posts' ) ) : __( 'Quick Edit' ); ?></h4>
25175
25176
25177 <?php if ( $bulk ) : ?>
25178 <div id="bulk-title-div">
25179 <div id="bulk-titles"></div>
25180 </div>
25181
25182 <?php else : // $bulk ?>
25183
25184 <label>
25185 <span class="title"><?php _e( 'Title' ); ?></span>
25186 <span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
25187 </label>
25188
25189 <?php endif; // $bulk ?>
25190
25191
25192 <?php if ( !$bulk ) : ?>
25193
25194 <label>
25195 <span class="title"><?php _e( 'Slug' ); ?></span>
25196 <span class="input-text-wrap"><input type="text" name="post_name" value="" /></span>
25197 </label>
25198
25199 <label><span class="title"><?php _e( 'Date' ); ?></span></label>
25200 <div class="inline-edit-date">
25201 <?php touch_time(1, 1, 4, 1); ?>
25202 </div>
25203 <br class="clear" />
25204
25205 <?php endif; // $bulk
25206
25207 ob_start();
25208 $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
25209 if ( $authors && count( $authors ) > 1 ) :
25210 $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1);
25211 if ( $bulk )
25212 $users_opt['show_option_none'] = __('- No Change -');
25213 ?>
25214 <label>
25215 <span class="title"><?php _e( 'Author' ); ?></span>
25216 <?php wp_dropdown_users( $users_opt ); ?>
25217 </label>
25218
25219 <?php
25220 endif; // authors
25221 $authors_dropdown = ob_get_clean();
25222 ?>
25223
25224 <?php if ( !$bulk ) : echo $authors_dropdown; ?>
25225
25226 <div class="inline-edit-group">
25227 <label class="alignleft">
25228 <span class="title"><?php _e( 'Password' ); ?></span>
25229 <span class="input-text-wrap"><input type="text" name="post_password" class="inline-edit-password-input" value="" /></span>
25230 </label>
25231
25232 <em style="margin:5px 10px 0 0" class="alignleft"><?php echo _c( '–OR–|Between password field and private checkbox on post quick edit interface' ); ?></em>
25233
25234 <label class="alignleft inline-edit-private">
25235 <input type="checkbox" name="keep_private" value="private" />
25236 <span class="checkbox-title"><?php echo $is_page ? __('Private page') : __('Private post'); ?></span>
25237 </label>
25238 </div>
25239
25240 <?php endif; ?>
25241
25242 </div></fieldset>
25243
25244 <?php if ( !$is_page && !$bulk ) : ?>
25245
25246 <fieldset class="inline-edit-col-center inline-edit-categories"><div class="inline-edit-col">
25247 <span class="title inline-edit-categories-label"><?php _e( 'Categories' ); ?>
25248 <span class="catshow"><?php _e('[more]'); ?></span>
25249 <span class="cathide" style="display:none;"><?php _e('[less]'); ?></span>
25250 </span>
25251 <ul class="cat-checklist">
25252 <?php wp_category_checklist(); ?>
25253 </ul>
25254 </div></fieldset>
25255
25256 <?php endif; // !$is_page && !$bulk ?>
25257
25258 <fieldset class="inline-edit-col-right"><div class="inline-edit-col">
25259
25260 <?php
25261 if ( $bulk )
25262 echo $authors_dropdown;
25263 ?>
25264
25265 <?php if ( $is_page ) : ?>
25266
25267 <label>
25268 <span class="title"><?php _e( 'Parent' ); ?></span>
25269 <?php
25270 $dropdown_args = array('selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
25271 if ( $bulk )
25272 $dropdown_args['show_option_no_change'] = __('- No Change -');
25273 $dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
25274 wp_dropdown_pages($dropdown_args);
25275 ?>
25276 </label>
25277
25278 <?php if ( !$bulk ) : ?>
25279
25280 <label>
25281 <span class="title"><?php _e( 'Order' ); ?></span>
25282 <span class="input-text-wrap"><input type="text" name="menu_order" class="inline-edit-menu-order-input" value="<?php echo $post->menu_order ?>" /></span>
25283 </label>
25284
25285 <?php endif; // !$bulk ?>
25286
25287 <label>
25288 <span class="title"><?php _e( 'Template' ); ?></span>
25289 <select name="page_template">
25290 <?php if ( $bulk ) : ?>
25291 <option value="-1"><?php _e('- No Change -'); ?></option>
25292 <?php endif; // $bulk ?>
25293 <option value="default"><?php _e( 'Default Template' ); ?></option>
25294 <?php page_template_dropdown() ?>
25295 </select>
25296 </label>
25297
25298 <?php elseif ( !$bulk ) : // $is_page ?>
25299
25300 <label class="inline-edit-tags">
25301 <span class="title"><?php _e( 'Tags' ); ?></span>
25302 <textarea cols="22" rows="1" name="tags_input" class="tags_input"></textarea>
25303 </label>
25304
25305 <?php endif; // $is_page ?>
25306
25307 <?php if ( $bulk ) : ?>
25308
25309 <div class="inline-edit-group">
25310 <label class="alignleft">
25311 <span class="title"><?php _e( 'Comments' ); ?></span>
25312 <select name="comment_status">
25313 <option value=""><?php _e('- No Change -'); ?></option>
25314 <option value="open"><?php _e('Allow'); ?></option>
25315 <option value="closed"><?php _e('Do not allow'); ?></option>
25316 </select>
25317 </label>
25318
25319 <label class="alignright">
25320 <span class="title"><?php _e( 'Pings' ); ?></span>
25321 <select name="ping_status">
25322 <option value=""><?php _e('- No Change -'); ?></option>
25323 <option value="open"><?php _e('Allow'); ?></option>
25324 <option value="closed"><?php _e('Do not allow'); ?></option>
25325 </select>
25326 </label>
25327 </div>
25328
25329 <?php else : // $bulk ?>
25330
25331 <div class="inline-edit-group">
25332 <label class="alignleft">
25333 <input type="checkbox" name="comment_status" value="open" />
25334 <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span>
25335 </label>
25336
25337 <label class="alignleft">
25338 <input type="checkbox" name="ping_status" value="open" />
25339 <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span>
25340 </label>
25341 </div>
25342
25343 <?php endif; // $bulk ?>
25344
25345
25346 <div class="inline-edit-group">
25347 <label class="inline-edit-status alignleft">
25348 <span class="title"><?php _e( 'Status' ); ?></span>
25349 <select name="_status">
25350 <?php if ( $bulk ) : ?>
25351 <option value="-1"><?php _e('- No Change -'); ?></option>
25352 <?php endif; // $bulk ?>
25353 <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review" ?>
25354 <option value="publish"><?php _e( 'Published' ); ?></option>
25355 <option value="future"><?php _e( 'Scheduled' ); ?></option>
25356 <?php if ( $bulk ) : ?>
25357 <option value="private"><?php _e('Private') ?></option>
25358 <?php endif; // $bulk ?>
25359 <?php endif; ?>
25360 <option value="pending"><?php _e( 'Pending Review' ); ?></option>
25361 <option value="draft"><?php _e( 'Unpublished' ); ?></option>
25362 </select>
25363 </label>
25364
25365 <?php if ( !$is_page && $can_publish && current_user_can( 'edit_others_posts' ) ) : ?>
25366
25367 <?php if ( $bulk ) : ?>
25368
25369 <label class="alignright">
25370 <span class="title"><?php _e( 'Sticky' ); ?></span>
25371 <select name="sticky">
25372 <option value="-1"><?php _e( '- No Change -' ); ?></option>
25373 <option value="sticky"><?php _e( 'Sticky' ); ?></option>
25374 <option value="unsticky"><?php _e( 'Not Sticky' ); ?></option>
25375 </select>
25376 </label>
25377
25378 <?php else : // $bulk ?>
25379
25380 <label class="alignleft">
25381 <input type="checkbox" name="sticky" value="sticky" />
25382 <span class="checkbox-title"><?php _e( 'Make this post sticky' ); ?></span>
25383 </label>
25384
25385 <?php endif; // $bulk ?>
25386
25387 <?php endif; // !$is_page && $can_publish && current_user_can( 'edit_others_posts' ) ?>
25388
25389 </div>
25390
25391 </div></fieldset>
25392
25393 <?php
25394 foreach ( $columns as $column_name => $column_display_name ) {
25395 if ( isset( $core_columns[$column_name] ) )
25396 continue;
25397 do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $type);
25398 }
25399 ?>
25400 <p class="submit inline-edit-save">
25401 <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="button-secondary cancel alignleft"><?php _e('Cancel'); ?></a>
25402 <?php if ( ! $bulk ) {
25403 wp_nonce_field( 'inlineeditnonce', '_inline_edit', false );
25404 $update_text = ( $is_page ) ? __( 'Update Page' ) : __( 'Update Post' );
25405 ?>
25406 <a accesskey="s" href="#inline-edit" title="<?php _e('Update'); ?>" class="button-primary save alignright"><?php echo attribute_escape( $update_text ); ?></a>
25407 <img class="waiting" style="display:none;" src="images/loading.svg" alt="" />
25408 <?php } else {
25409 $update_text = ( $is_page ) ? __( 'Update Pages' ) : __( 'Update Posts' );
25410 ?>
25411 <input accesskey="s" class="button-primary alignright" type="submit" name="bulk_edit" value="<?php echo attribute_escape( $update_text ); ?>" />
25412 <?php } ?>
25413 <input type="hidden" name="post_view" value="<?php echo $m; ?>" />
25414 <br class="clear" />
25415 </p>
25416 </td></tr>
25417 <?php
25418 $bulk++;
25419 } ?>
25420 </tbody></table></form>
25421 <?php
25422 }
25423
25424 // adds hidden fields with the data for use in the inline editor for posts and pages
25425 /**
(1323 . 7)(954 . 7)
25427
25428 case 'cb':
25429 ?>
25430 <th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } ?></th>
25431 <td scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } ?></td>
25432 <?php
25433 break;
25434
(1383 . 8)(1014 . 6)
25436 $actions = array();
25437 if ( current_user_can('edit_post', $post->ID) ) {
25438 $actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '" title="' . attribute_escape(__('Edit this post')) . '">' . __('Edit') . '</a>';
25439 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . attribute_escape(__('Edit this post inline')) . '">' . __('Quick Edit') . '</a>';
25440 $actions['delete'] = "<a class='submitdelete' title='" . attribute_escape(__('Delete this post')) . "' 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') . "</a>";
25441 }
25442 if ( in_array($post->post_status, array('pending', 'draft')) ) {
25443 if ( current_user_can('edit_post', $post->ID) )
(1535 . 7)(1164 . 7)
25445
25446 case 'cb':
25447 ?>
25448 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th>
25449 <td scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></td>
25450 <?php
25451 break;
25452 case 'date':
(1573 . 8)(1202 . 7)
25454 $actions = array();
25455 if ( current_user_can('edit_page', $page->ID) ) {
25456 $actions['edit'] = '<a href="' . $edit_link . '" title="' . attribute_escape(__('Edit this page')) . '">' . __('Edit') . '</a>';
25457 $actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
25458 $actions['delete'] = "<a class='submitdelete' title='" . attribute_escape(__('Delete this page')) . "' href='" . wp_nonce_url("page.php?action=delete&post=$page->ID", 'delete-page_' . $page->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $page->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."), $page->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
25459 $actions['delete'] = "<a class='submitdelete' title='" . attribute_escape(__('Delete this page')) . "' href='" . wp_nonce_url("page.php?action=delete&post=$page->ID", 'delete-page_' . $page->ID) . "'>" . __('Delete') . "</a>";
25460 }
25461 if ( in_array($post->post_status, array('pending', 'draft')) ) {
25462 if ( current_user_can('edit_page', $page->ID) )
(1842 . 7)(1470 . 7)
25464
25465 switch ($column_name) {
25466 case 'cb':
25467 $r .= "<th scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></th>";
25468 $r .= "<td scope='row' class='check-column'><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' /></td>";
25469 break;
25470 case 'username':
25471 $r .= "<td $attributes>$avatar $edit</td>";
(1995 . 9)(1623 . 9)
25473 switch ($column_name) {
25474 case 'cb':
25475 if ( !$checkbox ) break;
25476 echo '<th scope="row" class="check-column">';
25477 echo '<td scope="row" class="check-column">';
25478 if ( current_user_can('edit_post', $post->ID) ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' />";
25479 echo '</th>';
25480 echo '</td>';
25481 break;
25482 case 'comment':
25483 echo "<td $attributes>";
(2031 . 9)(1659 . 6)
25485 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . _c( 'Spam|verb' ) . '</a>';
25486 $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>';
25487 $actions['edit'] = "<a href='comment.php?action=editcomment&c={$comment->comment_ID}' title='" . __('Edit comment') . "'>". __('Edit') . '</a>';
25488 $actions['quickedit'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\',\'edit\');return false;" class="vim-q" title="'.__('Quick Edit').'" href="#">' . __('Quick Edit') . '</a>';
25489 if ( 'spam' != $the_comment_status )
25490 $actions['reply'] = '<a onclick="commentReply.open(\''.$comment->comment_ID.'\',\''.$post->ID.'\');return false;" class="vim-r" title="'.__('Reply to this comment').'" href="#">' . __('Reply') . '</a>';
25491
25492 $actions = apply_filters( 'comment_row_actions', $actions, $comment );
25493
(2043 . 10)(1668 . 6)
25495 ++$i;
25496 ( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
25497
25498 // Reply and quickedit need a hide-if-no-js span when not added with ajax
25499 if ( ('reply' == $action || 'quickedit' == $action) && ! $from_ajax )
25500 $action .= ' hide-if-no-js';
25501
25502 echo "<span class='$action'>$sep$link</span>";
25503 }
25504 echo '</div>';
(2168 . 7)(1789 . 7)
25506 <a href="#comments-form" class="save button-primary alignright" tabindex="104">
25507 <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span>
25508 <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a>
25509 <img class="waiting" style="display:none;" src="images/loading.svg" alt="" />
25510 <span class="waiting" style="display:none;">loading...</span>
25511 <span class="error" style="display:none;"></span>
25512 <br class="clear" />
25513 </p>
(2362 . 8)(1983 . 7)
25515 }
25516 ?>
25517 </select>
25518 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
25519 <a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">
25520 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
25521 <span id="enternew"><?php _e('Enter new'); ?></span>
25522 <span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a>
25523 <?php } else { ?>
(2448 . 11)(2068 . 6)
25525 ?>
25526
25527 <input type="hidden" id="ss" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" />
25528
25529 <p>
25530 <a href="#edit_timestamp" class="save-timestamp hide-if-no-js button"><?php _e('OK'); ?></a>
25531 <a href="#edit_timestamp" class="cancel-timestamp hide-if-no-js"><?php _e('Cancel'); ?></a>
25532 </p>
25533 <?php
25534 }
25535
(2515 . 18)(2130 . 6)
25537 * {@internal Missing Short Description}}
25538 *
25539 * @since unknown
25540 */
25541 function browse_happy() {
25542 $getit = __( 'WordPress recommends a better browser' );
25543 echo '
25544 <div id="bh"><a href="http://browsehappy.com/" title="'.$getit.'"><img src="images/browse-happy.svg" alt="Browse Happy" /></a></div>
25545 ';
25546 }
25547
25548 /**
25549 * {@internal Missing Short Description}}
25550 *
25551 * @since unknown
25552 *
25553 * @param unknown_type $id
25554 * @return unknown
(2789 . 7)(2392 . 6)
25556 if ( in_array($box['id'], $hidden) )
25557 $style = 'style="display:none;"';
25558 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . '" ' . $style . '>' . "\n";
25559 echo '<div class="handlediv" title="' . __('Click to toggle') . '"><br /></div>';
25560 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
25561 echo '<div class="inside">' . "\n";
25562 call_user_func($box['callback'], $object, $box);
(3003 . 142)(2605 . 6)
25564 }
25565
25566 /**
25567 * {@internal Missing Short Description}}
25568 *
25569 * @since unknown
25570 *
25571 * @param unknown_type $found_action
25572 */
25573 function find_posts_div($found_action = '') {
25574 ?>
25575 <div id="find-posts" class="find-box" style="display:none;">
25576 <div id="find-posts-head" class="find-box-head"><?php _e('Find Posts or Pages'); ?></div>
25577 <div class="find-box-inside">
25578 <div class="find-box-search">
25579 <?php if ( $found_action ) { ?>
25580 <input type="hidden" name="found_action" value="<?php echo $found_action; ?>" />
25581 <?php } ?>
25582
25583 <input type="hidden" name="affected" id="affected" value="" />
25584 <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
25585 <label class="hidden" for="find-posts-input"><?php _e( 'Search' ); ?></label>
25586 <input type="text" id="find-posts-input" class="search-input" name="ps" value="" />
25587 <input type="button" onclick="findPosts.send();" value="<?php _e( 'Search' ); ?>" class="button" /><br />
25588
25589 <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" />
25590 <label for="find-posts-posts"><?php _e( 'Posts' ); ?></label>
25591 <input type="radio" name="find-posts-what" id="find-posts-pages" value="pages" />
25592 <label for="find-posts-pages"><?php _e( 'Pages' ); ?></label>
25593 </div>
25594 <div id="find-posts-response"></div>
25595 </div>
25596 <div class="find-box-buttons">
25597 <input type="button" class="button" onclick="findPosts.close();" value="<?php _e('Close'); ?>" />
25598 <input id="find-posts-submit" type="submit" class="button" value="<?php _e('Select'); ?>" />
25599 </div>
25600 </div>
25601 <script type="text/javascript">
25602 /* <![CDATA[ */
25603 (function($){
25604 findPosts = {
25605 open : function(af_name, af_val) {
25606 var st = document.documentElement.scrollTop || $(document).scrollTop();
25607
25608 if ( af_name && af_val )
25609 $('#affected').attr('name', af_name).val(af_val);
25610
25611 $('#find-posts').show().draggable({
25612 handle: '#find-posts-head'
25613 }).resizable({
25614 handles: 'all',
25615 minHeight: 150,
25616 minWidth: 280
25617 }).css({'top':st+'px','left':'50%','marginLeft':'-200px'});
25618
25619 $('.ui-resizable-handle').css({
25620 'backgroundColor': '#e5e5e5'
25621 });
25622
25623 $('.ui-resizable-se').css({
25624 'border': '0 none',
25625 'width': '15px',
25626 'height': '16px',
25627 'background': 'transparent url(images/se.svg) no-repeat scroll 0 0'
25628 });
25629
25630 $('#find-posts-input').focus().keyup(function(e){
25631 if (e.which == 27) findPosts.close(); // close on Escape
25632 });
25633
25634 return false;
25635 },
25636
25637 close : function() {
25638 $('#find-posts-response').html('');
25639 $('#find-posts').draggable('destroy').resizable('destroy').hide();
25640 },
25641
25642 send : function() {
25643 var post = {};
25644
25645 post['ps'] = $('#find-posts-input').val();
25646 post['action'] = 'find_posts';
25647 post['_ajax_nonce'] = $('#_ajax_nonce').val();
25648
25649 if ( $('#find-posts-pages:checked').val() )
25650 post['pages'] = 1;
25651 else
25652 post['posts'] = 1;
25653
25654 $.ajax({
25655 type : 'POST',
25656 url : '<?php echo admin_url('admin-ajax.php'); ?>',
25657 data : post,
25658 success : function(x) { findPosts.show(x); },
25659 error : function(r) { findPosts.error(r); }
25660 });
25661 },
25662
25663 show : function(x) {
25664
25665 if ( typeof(x) == 'string' ) {
25666 this.error({'responseText': x});
25667 return;
25668 }
25669
25670 var r = wpAjax.parseAjaxResponse(x);
25671
25672 if ( r.errors )
25673 this.error({'responseText': wpAjax.broken});
25674
25675 r = r.responses[0];
25676 $('#find-posts-response').html(r.data);
25677 },
25678
25679 error : function(r) {
25680 var er = r.statusText;
25681
25682 if ( r.responseText )
25683 er = r.responseText.replace( /<.[^<>]*?>/g, '' );
25684
25685 if ( er )
25686 $('#find-posts-response').html(er);
25687 }
25688 };
25689
25690 $(document).ready(function(){
25691 $('#find-posts-submit').click(function(e) {
25692 if ( '' == $('#find-posts-response').html() )
25693 e.preventDefault();
25694 });
25695 });
25696 })(jQuery);
25697 /* ]]> */
25698 </script>
25699 <?php
25700 }
25701
25702 /**
25703 * Display the post password.
25704 *
25705 * The password is passed through {@link attribute_escape()} to ensure that it
(3152 . 46)(2618 . 6)
25707 if ( isset( $post->post_password ) ) echo attribute_escape( $post->post_password );
25708 }
25709
25710 /**
25711 * {@internal Missing Short Description}}
25712 *
25713 * @since unknown
25714 */
25715 function favorite_actions() {
25716 $actions = array(
25717 'post-new.php' => array(__('New Post'), 'edit_posts'),
25718 'edit.php?post_status=draft' => array(__('Drafts'), 'edit_posts'),
25719 'page-new.php' => array(__('New Page'), 'edit_pages'),
25720 'media-new.php' => array(__('Upload'), 'upload_files'),
25721 'edit-comments.php' => array(__('Comments'), 'moderate_comments')
25722 );
25723
25724 $actions = apply_filters('favorite_actions', $actions);
25725
25726 $allowed_actions = array();
25727 foreach ( $actions as $action => $data ) {
25728 if ( current_user_can($data[1]) )
25729 $allowed_actions[$action] = $data[0];
25730 }
25731
25732 if ( empty($allowed_actions) )
25733 return;
25734
25735 $first = array_keys($allowed_actions);
25736 $first = $first[0];
25737 echo '<div id="favorite-actions">';
25738 echo '<div id="favorite-first"><a href="' . $first . '">' . $allowed_actions[$first] . '</a></div><div id="favorite-toggle"><br /></div>';
25739 echo '<div id="favorite-inside">';
25740
25741 array_shift($allowed_actions);
25742
25743 foreach ( $allowed_actions as $action => $label) {
25744 echo "<div class='favorite-action'><a href='$action'>";
25745 echo $label;
25746 echo "</a></div>\n";
25747 }
25748 echo "</div></div>\n";
25749 }
25750
25751 /**
25752 * Get the post title.
(3225 . 53)(2651 . 6)
25754 echo isset($_GET['s']) ? attribute_escape( stripslashes( $_GET['s'] ) ) : '';
25755 }
25756
25757 /**
25758 * Generic Iframe header for use with Thickbox
25759 *
25760 * @since 2.7.0
25761 * @param string $title Title of the Iframe page.
25762 * @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued).
25763 *
25764 */
25765 function iframe_header( $title = '', $limit_styles = false) {
25766 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25767 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
25768 <head>
25769 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
25770 <title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title>
25771 <?php
25772 wp_enqueue_style( 'global' );
25773 wp_enqueue_style( 'colors' );
25774 if ( ! $limit_styles )
25775 wp_enqueue_style( 'wp-admin' );
25776 ?>
25777 <script type="text/javascript">
25778 //<![CDATA[
25779 function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
25780 //]]>
25781 </script>
25782 <?php
25783 do_action('admin_print_styles');
25784 do_action('admin_print_scripts');
25785 do_action('admin_head');
25786 ?>
25787 </head>
25788 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>>
25789 <?php
25790 }
25791
25792 /**
25793 * Generic Iframe footer for use with Thickbox
25794 *
25795 * @since 2.7.0
25796 *
25797 */
25798 function iframe_footer() {
25799 echo '
25800 </body>
25801 </html>';
25802 }
25803
25804 function _post_states($post) {
25805 $post_states = array();
25806 if ( isset($_GET['post_status']) )
(3300 . 137)(2679 . 6)
25808 }
25809 }
25810
25811 function screen_meta($screen) {
25812 global $wp_meta_boxes, $_wp_contextual_help;
25813
25814 $screen = str_replace('.php', '', $screen);
25815 $screen = str_replace('-new', '', $screen);
25816 $screen = str_replace('-add', '', $screen);
25817 $screen = apply_filters('screen_meta_screen', $screen);
25818
25819 $column_screens = get_column_headers($screen);
25820 $meta_screens = array('index' => 'dashboard');
25821
25822 if ( isset($meta_screens[$screen]) )
25823 $screen = $meta_screens[$screen];
25824 $show_screen = false;
25825 if ( !empty($wp_meta_boxes[$screen]) || !empty($column_screens) )
25826 $show_screen = true;
25827 ?>
25828 <div id="screen-meta">
25829 <?php
25830 if ( $show_screen ) :
25831 ?>
25832 <div id="screen-options-wrap" class="hidden">
25833 <h5><?php _e('Show on screen') ?></h5>
25834 <form id="adv-settings" action="" method="get">
25835 <div class="metabox-prefs">
25836 <?php
25837 if ( !meta_box_prefs($screen) && isset($column_screens) ) {
25838 manage_columns_prefs($screen);
25839 wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false );
25840 }
25841 ?>
25842 <br class="clear" />
25843 </div></form>
25844 </div>
25845
25846 <?php
25847 endif;
25848
25849 global $title;
25850
25851 if ( !isset($_wp_contextual_help) )
25852 $_wp_contextual_help = array();
25853
25854 if ( !isset($_wp_contextual_help['post']) ) {
25855 $help = drag_drop_help();
25856 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Writing_Posts" target="_blank">Writing Posts</a>') . '</p>';
25857 $_wp_contextual_help['post'] = $help;
25858 }
25859
25860 if ( !isset($_wp_contextual_help['page']) ) {
25861 $help = drag_drop_help();
25862 $_wp_contextual_help['page'] = $help;
25863 }
25864
25865 if ( !isset($_wp_contextual_help['dashboard']) ) {
25866 $help = drag_drop_help();
25867 $_wp_contextual_help['dashboard'] = $help;
25868 }
25869
25870 if ( !isset($_wp_contextual_help['link']) ) {
25871 $help = drag_drop_help();
25872 $_wp_contextual_help['link'] = $help;
25873 }
25874
25875 if ( !isset($_wp_contextual_help['options-general']) )
25876 $_wp_contextual_help['options-general'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">General Settings</a>');
25877
25878 $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen);
25879 ?>
25880 <div id="contextual-help-wrap" class="hidden">
25881 <?php
25882 $contextual_help = '';
25883 if ( isset($_wp_contextual_help[$screen]) ) {
25884 if ( !empty($title) )
25885 $contextual_help .= '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>';
25886 else
25887 $contextual_help .= '<h5>' . __('Get help with this page') . '</h5>';
25888 $contextual_help .= '<div class="metabox-prefs">' . $_wp_contextual_help[$screen] . "</div>\n";
25889
25890 $contextual_help .= '<h5>' . __('Other Help') . '</h5>';
25891 } else {
25892 $contextual_help .= '<h5>' . __('Help') . '</h5>';
25893 }
25894
25895 $contextual_help .= '<div class="metabox-prefs">';
25896 $contextual_help .= __('<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>');
25897 $contextual_help .= '<br />';
25898 $contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
25899 $contextual_help .= "</div>\n";
25900 echo apply_filters('contextual_help', $contextual_help, $screen);
25901 ?>
25902 </div>
25903
25904 <div id="screen-meta-links">
25905 <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle">
25906 <a href="#contextual-help" id="contextual-help-link" class="show-settings"><?php _e('Help') ?></a>
25907 </div>
25908 <?php if ( $show_screen ) { ?>
25909 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
25910 <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
25911 </div>
25912 <?php } ?>
25913 </div>
25914 </div>
25915 <?php
25916 }
25917
25918 /**
25919 * Add contextual help text for a page
25920 *
25921 * @since 2.7.0
25922 *
25923 * @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
25924 * @param string $help Arbitrary help text
25925 */
25926 function add_contextual_help($screen, $help) {
25927 global $_wp_contextual_help;
25928
25929 if ( !isset($_wp_contextual_help) )
25930 $_wp_contextual_help = array();
25931
25932 $_wp_contextual_help[$screen] = $help;
25933 }
25934
25935 function drag_drop_help() {
25936 return '
25937 <p>' . __('Most of the modules on this screen can be moved. If you hover your mouse over the title bar of a module you`ll notice the 4 arrow cursor appears to let you know it is movable. Click on it, hold down the mouse button and start dragging the module to a new location. As you drag the module, notice the dotted gray box that also moves. This box indicates where the module will be placed when you release the mouse button.') . '</p>
25938 <p>' . __('The same modules can be expanded and collapsed by clicking once on their title bar and also completely hidden from the Screen Options tab.') . '</p>
25939 ';
25940 }
25941
25942 function screen_icon($name = '') {
25943 global $parent_file, $hook_suffix;
25944
(3441 . 9)(2689 . 6)
25946 $name = str_replace(array('.php', '-new', '-add'), '', $hook_suffix);
25947 }
25948 unset($hook_suffix);
25949 ?>
25950 <div id="icon-<?php echo $name; ?>" class="icon32"><br /></div>
25951 <?php
25952 }
25953
25954 ?>