Example #1
0
// set sortable columns
$sortable_columns = array('post_title' => array('post_title', false), 'post_author' => array('post_author', false), 'post_date' => array('post_date', true));
// set delete and edit pages
$sliders_table->edit_page = 'featured-articles-lite';
$sliders_table->post_type = 'fa_slider';
$sliders_table->sortable_columns = $sortable_columns;
// get the records from DB
$sliders_table->prepare_items();
?>
<div class="wrap">
	<div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
	<h2>Featured Articles Sliders <a class="button add-new-h2" href="<?php 
menu_page_url('featured-articles-lite-new-slideshow');
?>
"><?php 
_e('Add New', 'falite');
?>
</a> </h2>
	<form method="post" action="<?php 
echo $current_page . '&noheader=true';
?>
">
		<?php 
wp_nonce_field('featured-articles-sliders-bulk-delete', 'FA_bulk_del');
?>
		<?php 
$sliders_table->display();
?>
    </form>       
	<br class="clear">
</div>
Example #2
0
$pages_table->prepare_items();
// styling and scripts
// styling and scripts
wp_enqueue_style('FA_add_content', FA_path('styles/add_content_modal.css'));
wp_enqueue_script('FA_content_add_script', FA_path('scripts/admin/display_control_modal.js'), array('jquery'));
// output iframe header
iframe_header(__('Pages', 'falite'));
?>
<div class="wrap">
	<div class="icon32 icon32-posts-page" id="icon-edit"><br></div>
    <h2><?php 
_e('Select pages', 'falite');
?>
</h2>
    <?php 
$pages_table->display();
?>
    <input class="button-primary" value="<?php 
_e('Close window', '');
?>
" id="close_window" type="button" />
</div>
<script language="javascript" type="text/javascript">
	var FA_parent_item = '#pages_display';
	var FA_item_id_prefix = 'FA_page_display_';
	var FA_fields_prefix = 'page_display';
</script>
<?php 
// output iframe footer
iframe_footer();
die;