<?php /** * @package Featured articles Lite - Wordpress plugin * @author CodeFlavors ( codeflavors[at]codeflavors.com ) * @version 2.4 */ // wp class extension to display tables require_once FA_dir('includes/custom_wp_list_table.php'); $sliders_table = new FA_List_Table(array('singular' => 'slider', 'plural' => 'sliders')); // set columns to be displayed $columns = array('cb' => '<input type="checkbox" />', 'post_title' => __('Title', 'falite'), 'ID' => __('Slider ID', 'falite'), 'post_author' => __('Author', 'falite'), 'post_date' => __('Date', 'falite')); $sliders_table->columns = $columns; // 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>
<?php /** * @package Featured articles Lite - Wordpress plugin * @author CodeFlavors ( http://www.codeflavors.com ) * @version 2.4 */ include FA_dir('includes/custom_wp_list_table.php'); $pages_table = new FA_List_Table(array('singular' => 'page', 'plural' => 'pages')); // set columns to be displayed // set columns to be displayed $columns = array('cb' => '', 'post_title_lbl' => __('Title', 'falite'), 'post_author' => __('Author', 'falite'), 'post_date' => __('Date', 'falite')); $pages_table->columns = $columns; $pages_table->per_page = 13; // set sortable columns $sortable_columns = array('post_title_lbl' => array('post_title', true), 'post_author' => array('post_author', false), 'post_date' => array('post_date', false)); // set delete and edit pages $pages_table->edit_page = '#'; $pages_table->bulk_actions = false; $pages_table->sortable_columns = $sortable_columns; $pages_table->post_type = 'page'; // get the records from DB $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">