- 08558B087CF3E86EF88E3C07596F32DD005D467318E34350E5338C5EA72A30FA069632805B4E1D1F3094483B030F9852803B3285C1D8FFC6AFDFFFB5C1B650C8
+ 653814251C9614DFF0669B2FB4EE6C90ED3C6C7FFB0239615C1286A6B41E4F13A6E1C86C4B947DD135EC4F425B958F98E79FD17940A4FD69D7A6DCEDCED0E73C
mp-wp/wp-admin/edit-form-advanced.php
(122 . 9)(122 . 7)
8899 ?>
8900 </span></b>
8901 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?>
8902 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
8903
8904 <div id="post-status-select" class="hide-if-js">
8905 <div id="post-status-select">
8906 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo $post->post_status; ?>" />
8907 <select name='post_status' id='post_status' tabindex='4'>
8908 <?php if ( 'publish' == $post->post_status ) : ?>
(137 . 8)(135 . 6)
8910 <option<?php selected( $post->post_status, 'pending' ); ?> value='pending'><?php _e('Pending Review') ?></option>
8911 <option<?php selected( $post->post_status, 'draft' ); ?> value='draft'><?php _e('Draft') ?></option>
8912 </select>
8913 <a href="#post_status" class="save-post-status hide-if-no-js button"><?php _e('OK'); ?></a>
8914 <a href="#post_status" class="cancel-post-status hide-if-no-js"><?php _e('Cancel'); ?></a>
8915 </div>
8916
8917 <?php } ?>
(162 . 9)(158 . 8)
8919 $visibility_trans = __('Public');
8920 }
8921
8922 ?><?php echo wp_specialchars( $visibility_trans ); ?></span></b> <?php if ( $can_publish ) { ?> <a href="#visibility" class="edit-visibility hide-if-no-js"><?php _e('Edit'); ?></a>
8923
8924 <div id="post-visibility-select" class="hide-if-js">
8925 ?><?php echo wp_specialchars( $visibility_trans ); ?></span></b> <?php if ( $can_publish ) { ?>
8926 <div id="post-visibility-select">
8927 <input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attribute_escape($post->post_password); ?>" />
8928 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID), true); ?> />
8929 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attribute_escape( $visibility ); ?>" />
(175 . 11)(170 . 6)
8931 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br />
8932 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo attribute_escape($post->post_password); ?>" /><br /></span>
8933 <input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br />
8934
8935 <p>
8936 <a href="#visibility" class="save-post-visibility hide-if-no-js button"><?php _e('OK'); ?></a>
8937 <a href="#visibility" class="cancel-post-visibility hide-if-no-js"><?php _e('Cancel'); ?></a>
8938 </p>
8939 </div>
8940 <?php } ?>
8941
(210 . 8)(200 . 7)
8943 <div class="misc-pub-section curtime misc-pub-section-last">
8944 <span id="timestamp">
8945 <?php printf($stamp, $date); ?></span>
8946 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
8947 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
8948 <div id="timestampdiv"><?php touch_time(($action == 'edit'),1,4); ?></div>
8949 </div><?php // /misc-pub-section ?>
8950 <?php endif; ?>
8951
(224 . 7)(213 . 7)
8953 <div id="delete-action">
8954 <?php
8955 if ( ( 'edit' == $action ) && current_user_can('delete_post', $post->ID) ) { ?>
8956 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID); ?>" onclick="if ( confirm('<?php echo 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;"><?php _e('Delete'); ?></a>
8957 <a class="submitdelete deletion" href="<?php echo wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID); ?>"><?php _e('Delete'); ?></a>
8958 <?php } ?>
8959 </div>
8960
(267 . 7)(256 . 6)
8962 ?>
8963 <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>
8964 <div id="tagchecklist"></div>
8965 <p id="tagcloud-link" class="hide-if-no-js"><a href='#'><?php _e( 'Choose from the most popular tags' ); ?></a></p>
8966 <?php
8967 }
8968 add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core');
(281 . 37)(269 . 12)
8970 */
8971 function post_categories_meta_box($post) {
8972 ?>
8973 <ul id="category-tabs">
8974 <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li>
8975 <li class="hide-if-no-js"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>
8976 </ul>
8977
8978 <div id="categories-pop" class="ui-tabs-panel" style="display: none;">
8979 <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" >
8980 <?php $popular_ids = wp_popular_terms_checklist('category'); ?>
8981 </ul>
8982 </div>
8983
8984 <div id="categories-all" class="ui-tabs-panel">
8985 <div id="categories-all">
8986 <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
8987 <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?>
8988 </ul>
8989 </div>
8990
8991 <?php if ( current_user_can('manage_categories') ) : ?>
8992 <div id="category-adder" class="wp-hidden-children">
8993 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
8994 <p id="category-add" class="wp-hidden-child">
8995 <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"/>
8996 <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 ) ); ?>
8997 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php _e( 'Add' ); ?>" tabindex="3" />
8998 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?>
8999 <span id="category-ajax-response"></span>
9000 </p>
9001 </div>
9002 <?php
9003 endif;
9004
9005 }
9006 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core');
9007
(386 . 7)(349 . 6)
9009 function post_custom_meta_box($post) {
9010 ?>
9011 <div id="postcustomstuff">
9012 <div id="ajax-response"></div>
9013 <?php
9014 $metadata = has_meta($post->ID);
9015 list_meta($metadata);
(416 . 49)(378 . 9)
9017 <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>
9018 </p>
9019 <?php
9020 $total = $wpdb->get_var($wpdb->prepare("SELECT count(1) FROM $wpdb->comments WHERE comment_post_ID = '%d' AND ( comment_approved = '0' OR comment_approved = '1')", $post_ID));
9021
9022 if ( !$post_ID || $post_ID < 0 || 1 > $total )
9023 return;
9024
9025 wp_nonce_field( 'get-comments', 'add_comment_nonce', false );
9026 ?>
9027
9028 <table class="widefat comments-box fixed" cellspacing="0" style="display:none;">
9029 <thead>
9030 <tr>
9031 <th scope="col" class="column-author"><?php _e('Author') ?></th>
9032 <th scope="col" class="column-comment"><?php echo _c('Comment|noun') ?></th>
9033 </tr>
9034 </thead>
9035 <tbody id="the-comment-list" class="list:comment">
9036 </tbody>
9037 </table>
9038 <p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="images/loading.svg" alt="" /></p>
9039 <?php
9040 $hidden = get_hidden_meta_boxes('post');
9041 if ( ! in_array('commentstatusdiv', $hidden) ) { ?>
9042 <script type="text/javascript">commentsBox.get(<?php echo $total; ?>, 10);</script>
9043 <?php
9044 }
9045 }
9046 add_meta_box('commentstatusdiv', __('Discussion'), 'post_comment_status_meta_box', 'post', 'normal', 'core');
9047
9048 /**
9049 * Display post slug form fields.
9050 *
9051 * @since 2.6.0
9052 *
9053 * @param object $post
9054 */
9055 function post_slug_meta_box($post) {
9056 ?>
9057 <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 ); ?>" />
9058 <?php
9059 }
9060 if ( !( 'pending' == $post->post_status && !current_user_can( 'publish_posts' ) ) )
9061 add_meta_box('slugdiv', __('Post Slug'), 'post_slug_meta_box', 'post', 'normal', 'core');
9062
9063 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
9064 if ( $post->post_author && !in_array($post->post_author, $authors) )
9065 $authors[] = $post->post_author;
(617 . 9)(539 . 3)
9067 </div>
9068
9069 <?php wp_comment_reply(); ?>
9070
9071 <?php if ((isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message'])) : ?>
9072 <script type="text/javascript">
9073 try{document.post.title.focus();}catch(e){}
9074 </script>
9075 <?php endif; ?>