post_type; $post_type_object = get_post_type_object( $post_type ); $can_publish = current_user_can( $post_type_object->cap->publish_posts ); ?>
post_status, array( 'publish', 'future', 'pending' ), true ) ) { $private_style = ''; if ( 'private' === $post->post_status ) { $private_style = 'style="display:none"'; } ?> type="submit" name="save" id="save-post" value="" tabindex="4" class="button button-highlighted" /> post_status && $can_publish ) { ?>
post_status ) { $preview_link = esc_url( get_permalink( $post->ID ) ); $preview_button = __( 'Preview Changes' ); } else { $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ), $post ) ); $preview_button = __( 'Preview' ); } ?>
post_status ) { case 'private': esc_html_e( 'Privately Published' ); break; case 'publish': esc_html_e( 'Published' ); break; case 'future': esc_html_e( 'Scheduled' ); break; case 'pending': esc_html_e( 'Pending Review' ); break; case 'draft': case 'auto-draft': esc_html_e( 'Draft' ); break; case 'auto-draft': esc_html_e( 'Unsaved' ); break; } ?> post_status || 'private' === $post->post_status || $can_publish ) { $private_style = ''; if ( 'private' === $post->post_status ) { $private_style = 'style="display:none"'; } ?> class="edit-post-status hide-if-no-js" tabindex="4">
post_status ) { $post->post_password = ''; $visibility = 'private'; $visibility_trans = __( 'Private' ); } elseif ( ! empty( $post->post_password ) ) { $visibility = 'password'; $visibility_trans = __( 'Password protected' ); } elseif ( 'post' === $post_type && is_sticky( $post->ID ) ) { $visibility = 'public'; $visibility_trans = __( 'Public, Sticky' ); } else { $visibility = 'public'; $visibility_trans = __( 'Public' ); } echo esc_html( $visibility_trans ); ?>
ID ) ); ?> /> />
ID ) ); ?> tabindex="4" />
/>

/>

ID ) { if ( 'future' === $post->post_status ) { /* translators: Post date information. %s: Date on which the post is currently scheduled to be published. */ $stamp = __( 'Scheduled for: %1$s', 'usces' ); } elseif ( 'publish' === $post->post_status || 'private' === $post->post_status ) { // Already published. /* translators: Post date information. %s: Date on which the post was published. */ $stamp = __( 'Published on: %1$s', 'usces' ); } elseif ( '0000-00-00 00:00:00' === $post->post_date_gmt ) { // Draft, 1 or more saves, no date specified. $stamp = __( 'Publish immediately', 'usces' ); } elseif ( time() < strtotime( $post->post_date_gmt . ' +0000' ) ) { // Draft, 1 or more saves, future date specified. /* translators: Post date information. %s: Date on which the post is to be published. */ $stamp = __( 'Schedule for: %1$s', 'usces' ); } else { // Draft, 1 or more saves, date specified. /* translators: Post date information. %s: Date on which the post is to be published. */ $stamp = __( 'Publish on: %1$s', 'usces' ); } $date = date_i18n( $datef, strtotime( $post->post_date ) ); } else { // Draft (no saves, and thus no date specified). $stamp = __( 'Publish immediately' ); $date = date_i18n( $datef, strtotime( current_time( 'mysql' ) ) ); } if ( $can_publish ) : // Contributors don't get to choose the date of publish. ?>
ID ) ) { if ( ! EMPTY_TRASH_DAYS ) { $delete_text = __( 'Delete Permanently' ); } else { $delete_text = __( 'Move to Trash' ); } ?>
post_status, array( 'publish', 'future', 'private' ), true ) || 0 === $post->ID ) : if ( $can_publish ) : if ( ! empty( $post->post_date_gmt ) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
helps ) ? esc_attr( $taxonomy->helps ) : esc_attr__( 'Separate tags with commas' ); $help_hint = isset( $taxonomy->help_hint ) ? $taxonomy->help_hint : __( 'Add new tag', 'usces' ); $help_nojs = isset( $taxonomy->help_nojs ) ? $taxonomy->help_nojs : __( 'Add or remove tags' ); $help_cloud = isset( $taxonomy->help_cloud ) ? $taxonomy->help_cloud : __( 'Choose from the most used tags' ); $disabled = ! current_user_can( $taxonomy->cap->assign_terms ) ? 'disabled="disabled"' : ''; ?>

cap->assign_terms ) ) : ?>

cap->assign_terms ) ) : ?>

'category' ); if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) ) { $args = array(); } else { $args = $box['args']; } extract( wp_parse_args( $args, $defaults ), EXTR_SKIP ); $tax = get_taxonomy( $taxonomy ); if ( 'category' === $args['taxonomy'] ) : ?>
"; ?>
"; ?>
cap->assign_terms ) ) : ?>

cap->edit_terms ) ) : ?>

labels->add_new_item ); ?>

$taxonomy, 'hide_empty' => 0, 'name' => 'new' . $taxonomy . '_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3, ); wp_dropdown_categories( $parent_dropdown_args ); ?>

Learn more about manual excerpts.', 'usces' ), 'https://codex.wordpress.org/Excerpt' ); ?>

to_ping ) ) . '" />'; if ( '' !== $post->pinged ) { $pings = '

' . __( 'Already pinged:' ) . '

'; } ?>

pingbacks, no other action necessary.', 'usces' ), 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ); ?>

ID ); list_meta( $metadata ); meta_form(); ?>

use in your theme.', 'usces' ), 'https://codex.wordpress.org/Using_Custom_Fields' ); ?>


$post->ID, 'number' => 1, 'count' => true, ) ); $wp_list_table = _get_list_table( 'WP_Post_Comments_List_Table' ); $wp_list_table->display( true ); if ( 1 > $total ) { echo '

' . __( 'No comments yet.' ) . '

'; } else { $hidden = get_hidden_meta_boxes( get_current_screen() ); if ( ! in_array( 'commentsdiv', $hidden, true ) ) { ?>

'authors', 'name' => 'post_author_override', 'selected' => empty( $post->ID ) ? $user_ID : $post->post_author, 'include_selected' => true, ); if ( version_compare( $wp_version, '5.9-alpha', '>=' ) ) { $params['capability'] = array( 'edit_posts' ); unset( $params['who'] ); } wp_dropdown_users( $params ); } /** * Display list of revisions. * * @since 2.6.0 * * @param WP_Post $post Current post object. */ function usces_post_revisions_meta_box( $post ) { wp_list_post_revisions(); } // // Page-related Meta Boxes. // /** * Display page attributes form fields. * * @since 2.7.0 * * @param WP_Post $post Current post object. */ function usces_page_attributes_meta_box( $post ) { $post_type_object = get_post_type_object( $post->post_type ); if ( $post_type_object->hierarchical ) : $pages = wp_dropdown_pages( array( 'post_type' => $post->post_type, 'exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __( '(no parent)' ), 'sort_column' => 'menu_order, post_title', 'echo' => 0, ) ); if ( ! empty( $pages ) ) : ?>

post_type && 0 !== $page_count ) : $template = ! empty( $post->page_template ) ? $post->page_template : false; ?>

post_type ) : ?>

link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: ''; $rels = preg_split( '/\s+/', $link_rel ); // Mark the specified value as checked if it matches the current link's relationship. if ( '' !== $xfn_value && in_array( $xfn_value, $rels, true ) ) { echo ' checked="checked"'; } if ( '' === $xfn_value ) { // Mark the 'none' value as checked if the current link does not match the specified relationship. if ( 'family' === $xfn_relationship && ! array_intersect( $link_rels, array( 'child', 'parent', 'sibling', 'spouse', 'kin' ) ) ) { echo ' checked="checked"'; } if ( 'friendship' === $xfn_relationship && ! array_intersect( $link_rels, array( 'friend', 'acquaintance', 'contact' ) ) ) { echo ' checked="checked"'; } if ( 'geographical' === $xfn_relationship && ! array_intersect( $link_rels, array( 'co-resident', 'neighbor' ) ) ) { echo ' checked="checked"'; } // Mark the 'me' value as checked if it matches the current link's relationship. if ( 'identity' === $xfn_relationship && in_array( 'me', $rels ) ) { echo ' checked="checked"'; } } } /** * Display xfn form fields. * * @since 2.6.0 * * @param object $link Current link object. */ function usces_link_xfn_meta_box( $link ) { ?>

XFN.' ); ?>

 
ID, '_thumbnail_id', true ); echo _wp_post_thumbnail_html( $thumbnail_id, $post->ID ); } /** * Handle load old item image box. * * @param object $post post info. */ function post_item_pict_box( $post ) { global $usces, $current_screen; $item_picts = array(); $item_sumnails = array(); $post_id = isset( $post->ID ) ? $post->ID : 0; $product = wel_get_product( $post_id ); $item_code = $product['itemCode']; if ( ! empty( $item_code ) ) { $pictid = (int) $usces->get_mainpictid( $item_code, false ); $item_picts[] = wp_get_attachment_image( $pictid, array( 260, 200 ), true ); $item_sumnails[] = wp_get_attachment_image( $pictid, array( 50, 50 ), true ); $item_pictids = $usces->get_pictids( $item_code, false ); $item_pictids_count = ( $item_pictids && is_array( $item_pictids ) ) ? count( $item_pictids ) : 0; for ( $i = 0; $i < $item_pictids_count; $i++ ) { $item_picts[] = wp_get_attachment_image( $item_pictids[ $i ], array( 260, 200 ), true ); $item_sumnails[] = wp_get_attachment_image( $item_pictids[ $i ], array( 50, 50 ), true ); } } ?>