/**
     * Render the view.
     */
    public function render()
    {
        ?>

		<form method="GET">
			<input type="hidden" name="page" value="<?php 
        echo esc_attr($_GET['page']);
        ?>
">

			<?php 
        if (isset($_GET['status'])) {
            ?>
				<input type="hidden" name="status" value="<?php 
            echo esc_attr($_GET['status']);
            ?>
">
			<?php 
        }
        ?>

			<?php 
        $this->table->views();
        ?>
			<?php 
        $this->table->search_box(__("Search", Plugin::SLUG), 'itelic-search');
        ?>
			<?php 
        $this->table->display();
        ?>
		</form>

		<?php 
    }
 public function display_tablenav($which)
 {
     $screen = get_current_screen();
     if ($screen->id != 'wc_crm_accounts') {
         parent::display_tablenav($which);
     }
 }
Example #3
0
 function __construct($string_actions)
 {
     parent::__construct(array('plural' => 'lingotek-strings-translations', 'ajax' => false));
     $this->pllm = $GLOBALS['polylang']->model;
     $this->lgtm = $GLOBALS['wp_lingotek']->model;
     $this->string_actions = $string_actions;
 }
 /**
  * Get things started
  *
  * @since 1.4
  * @see WP_List_Table::__construct()
  */
 public function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => edd_get_label_singular(), 'plural' => edd_get_label_plural(), 'ajax' => false));
     add_action('edd_log_view_actions', array($this, 'downloads_filter'));
 }
Example #5
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct(array('plural' => 'logs', 'singular' => 'log', 'ajax' => TRUE));
     $this->log_folder = get_site_option('backwpup_cfg_logfolder');
     $this->log_folder = BackWPup_File::get_absolute_path($this->log_folder);
     $this->log_folder = untrailingslashit($this->log_folder);
 }
 public function __construct()
 {
     $this->load_dependencies();
     $this->db = WPSM_DB_Table::get_instance();
     global $status, $page;
     parent::__construct(array('singular' => 'table', 'plural' => 'tables', 'ajax' => false, 'screen' => $_REQUEST['page']));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'custom taxonomy', 'plural' => 'custom taxonomies', 'ajax' => true));
     $this->custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
 }
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'payment button', 'plural' => 'payment buttons', 'ajax' => false));
     $this->per_page = 50;
 }
 public function __construct($args)
 {
     parent::__construct(array('screen' => 'fw-ext-update-extensions-update'));
     $this->_extensions = $args['extensions'];
     $this->_table_columns = array('cb' => '<input type="checkbox" />', 'details' => fw_html_tag('a', array('href' => '#', 'onclick' => "jQuery(this).closest('tr').find('input[type=\"checkbox\"]:first').trigger('click'); return false;"), __('Select All', 'fw')));
     $this->_table_columns_count = count($this->_table_columns);
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'notification', 'plural' => 'notifications', 'ajax' => false));
     $this->form_id = isset($_REQUEST['form_id']) ? absint($_REQUEST['form_id']) : '';
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We 
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     global $wpdb;
     //Set parent defaults
     parent::__construct(array('singular' => 'user', 'plural' => 'users', 'ajax' => false));
 }
 /**
  * Get things started
  *
  * @access      private
  * @since       1.0
  * @return      void
  */
 function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => __('Subscriber', 'edd-recurring'), 'plural' => __('Subscribers', 'edd-recurring'), 'ajax' => false));
     $this->subscribers = $this->query();
 }
 /**
  * Constructor.
  *
  * @access public
  * @since  8.3
  *
  * @uses   cnTerm::getBy()
  *
  * @see    WP_List_Table::__construct() for more information on default arguments.
  *
  * @param array $args An associative array of arguments.
  */
 public function __construct($args = array())
 {
     $defaults = array('type' => '');
     $args = wp_parse_args($args, $defaults);
     $this->type = $args['type'];
     parent::__construct(array('plural' => 'email', 'singular' => 'email', 'ajax' => FALSE));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'custom post type', 'plural' => 'custom post types', 'ajax' => true));
     $this->custom_types = get_option('wpcf-custom-types', array());
 }
Example #15
0
 /**
  * Constructor of class 
  */
 function __construct($plugin_basename, $plugin_version, $plugin_text_domain)
 {
     $this->basename = $plugin_basename;
     $this->version = $plugin_version;
     $this->textdomain = $plugin_text_domain;
     parent::__construct(array('singular' => 'IP', 'plural' => 'IP', 'ajax' => true));
 }
Example #16
0
 function __construct()
 {
     global $status, $page, $wpdb, $table_prefix;
     //Set parent defaults
     parent::__construct(array('singular' => 'ID', 'plural' => 'ID', 'ajax' => false));
     $this->data = $wpdb->get_results("SELECT * FROM `{$table_prefix}sms_send`", ARRAY_A);
 }
 function current_action()
 {
     if (isset($_REQUEST['action']) && ('hide' == $_REQUEST['action'] || 'hide' == $_REQUEST['action2'])) {
         return 'bulk-hide';
     }
     return parent::current_action();
 }
 function __construct()
 {
     parent::__construct();
     Jetpack::init();
     // In WP 4.2 WP_List_Table will be sanitizing which values are __set()
     global $wp_version;
     if (version_compare($wp_version, '4.2-z', '>=') && $this->compat_fields && is_array($this->compat_fields)) {
         array_push($this->compat_fields, 'all_items');
     }
     $this->items = $this->all_items = Jetpack_Admin::init()->get_modules();
     $this->items = $this->filter_displayed_table_items($this->items);
     /**
      * Filters the list of modules available to be displayed in the Jetpack Settings screen.
      *
      * @since 3.0.0
      *
      * @param array $this->items Array of Jetpack modules.
      */
     $this->items = apply_filters('jetpack_modules_list_table_items', $this->items);
     $this->_column_headers = array($this->get_columns(), array(), array(), 'name');
     $modal_info = isset($_GET['info']) ? $_GET['info'] : false;
     wp_register_script('models.jetpack-modules', plugins_url('_inc/jetpack-modules.models.js', JETPACK__PLUGIN_FILE), array('backbone', 'underscore'), JETPACK__VERSION);
     wp_register_script('views.jetpack-modules', plugins_url('_inc/jetpack-modules.views.js', JETPACK__PLUGIN_FILE), array('backbone', 'underscore', 'wp-util'), JETPACK__VERSION);
     wp_register_script('jetpack-modules-list-table', plugins_url('_inc/jetpack-modules.js', JETPACK__PLUGIN_FILE), array('views.jetpack-modules', 'models.jetpack-modules', 'jquery'), JETPACK__VERSION, true);
     wp_localize_script('jetpack-modules-list-table', 'jetpackModulesData', array('modules' => Jetpack::get_translated_modules($this->all_items), 'i18n' => array('search_placeholder' => __('Search Modules…', 'jetpack')), 'modalinfo' => $this->module_info_check($modal_info, $this->all_items), 'nonces' => array('bulk' => wp_create_nonce('bulk-jetpack_page_jetpack_modules')), 'coreIconAvailable' => Jetpack::jetpack_site_icon_available_in_core()));
     wp_enqueue_script('jetpack-modules-list-table');
     /**
      * Filters the js_templates callback value.
      *
      * @since 3.6.0
      *
      * @param array array( $this, 'js_templates' ) js_templates callback.
      */
     add_action('admin_footer', apply_filters('jetpack_modules_list_table_js_template_callback', array($this, 'js_templates')), 9);
 }
Example #19
0
 /**
  * Primary class constructor.
  *
  * @since 2.0.0
  */
 public function __construct()
 {
     // Bring globals into scope for parent.
     global $status, $page;
     // Allow compat fields to be whitelisted.
     $this->compat_fields = array_merge($this->compat_fields, array('base', 'optin_id', 'optin', 'meta', 'total', 'base_url'));
     $this->compat_methods = array_merge($this->compat_methods, array('optins_data', 'get_settings_actions'));
     // Load the base class object.
     $this->base = Optin_Monster::get_instance();
     // Set the optin ID, object and meta properties.
     $this->optin_id = isset($_GET['om_optin_id']) ? $_GET['om_optin_id'] : $_POST['id'];
     $this->optin = get_post($this->optin_id);
     $this->meta = get_post_meta($this->optin_id, '_om_meta', true);
     // Utilize the parent constructor to build the main class properties.
     parent::__construct(array('singular' => 'optin', 'plural' => 'optins', 'ajax' => false));
     // Set some of the class properties.
     $this->total = $this->base->get_split_tests($this->optin_id) ? count($this->base->get_split_tests($this->optin_id)) : 0;
     $this->base_url = add_query_arg('page', 'optin-monster-settings', admin_url('admin.php'));
     // Process any bulk actions.
     $this->process_bulk_actions();
     // Load the track datastore interface.
     if (!class_exists('Optin_Monster_Track_Datastore')) {
         require plugin_dir_path($this->base->file) . 'includes/global/track-datastore.php';
     }
 }
 function current_action()
 {
     if (isset($_REQUEST['changeit']) && !empty($_REQUEST['new_role'])) {
         return 'promote';
     }
     return parent::current_action();
 }
Example #21
0
 /**
  * Constructor, we override the parent to pass our own arguments
  * We usually focus on three parameters: singular and plural labels, as well as whether the class supports AJAX.
  *
  * @param CUAR_Plugin $plugin
  * @param array       $args
  * @param             $base_url
  * @param string      $item_wrapper_class Class to wrap the WP_Post objects (leave empty to use only WP_Post)
  */
 public function __construct($plugin, $args, $base_url, $item_wrapper_class = '')
 {
     parent::__construct($args);
     $this->plugin = $plugin;
     $this->base_url = $base_url;
     $this->item_wrapper_class = $item_wrapper_class;
 }
 function __construct($args = array())
 {
     global $status, $page;
     $args = wp_parse_args($args, array('plural' => __('accounts', 'support_hub'), 'singular' => __('account', 'support_hub'), 'ajax' => false));
     parent::__construct($args);
     $this->set_columns(array('account' => __('Account', 'support_hub'), 'last_checked' => __('Last Checked', 'support_hub')));
 }
 /**
  * Get things started
  *
  * @since 1.1
  * @see   WP_List_Table::__construct()
  */
 public function __construct()
 {
     global $status, $page;
     // Set parent defaults
     parent::__construct(array('singular' => __('API Key', 'give'), 'plural' => __('API Keys', 'give'), 'ajax' => false));
     $this->query();
 }
 /**
  * Construct
  */
 public function __construct()
 {
     global $YWAR_AdvancedReview;
     $this->ywar = $YWAR_AdvancedReview;
     //Set parent defaults
     parent::__construct(array('singular' => 'review', 'plural' => 'reviews', 'ajax' => false));
 }
 function current_action()
 {
     if (isset($_REQUEST['action']) && isset($_REQUEST['delete_tags']) && ('delete' == $_REQUEST['action'] || 'delete' == $_REQUEST['action2'])) {
         return 'bulk-delete';
     }
     return parent::current_action();
 }
 /**
  * __construct function.
  * 
  * @access public
  */
 function __construct()
 {
     global $status, $page;
     $this->index = 0;
     //Set parent defaults
     parent::__construct(array('singular' => 'licence key', 'plural' => 'licence keys', 'ajax' => false));
 }
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We 
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     $this->_sendpress = new SendPress();
     //Set parent defaults
     parent::__construct(array('singular' => 'qemail', 'plural' => 'qemails', 'ajax' => false));
 }
Example #28
0
 */
class PLL_Table_String extends WP_List_Table
{
    protected $languages, $groups, $group_selected;
    /*
	 * constructor
	 *
 function __construct()
 {
     global $status, $page;
     $this->example_data = PROFILEPRESS_sql::sql_wp_list_table_registration_builder();
     parent::__construct(array('singular' => __('registration', 'profilepress'), 'plural' => __('registrations', 'profilepress'), 'ajax' => false));
     add_action('admin_head', array(&$this, 'admin_header'));
 }
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'Log', 'plural' => 'Logs', 'ajax' => true));
     $this->check_table_filters();
 }