post_type); if( $post->post_type == 'page' ){ $is_page_in_apm_tree = Apm::get_page_is_in_apm_tree(); if( $is_page_in_apm_tree ){ $marked = Apm::get_page_flag(); $marked = $marked > 0; $page_tree_positions = Apm::get_page_tree_positions(); $page_apm_id = Apm::get_page_apm_id(); ?> ID, '_wp_page_template', true); $template = !empty($template_meta) ? $template_meta : false; ?>

:

*/ ?>
parent) ? get_edit_post_link($page_tree_positions->parent) : '' ?>
>
previous_sibling) ? get_edit_post_link($page_tree_positions->previous_sibling) : '' ?> > next_sibling) ? get_edit_post_link($page_tree_positions->next_sibling) : '' ?> >
children) ): ?> children) ."'"; $sql = "SELECT ID,post_title FROM $wpdb->posts WHERE ID IN ($children_sql) ORDER BY FIELD(ID,$children_sql) LIMIT 100 "; //100 for perf security measure : don't display too much pages... $sub_pages = $wpdb->get_results($sql); ?>
children) ? 'onclick="return false"' : '' ?> children) ? 'disabled="disabled"': '' ?>>
post_status,$allowed_post_status) ): ?>