function __construct() { parent::__construct(); epl_log('init', get_class() . " initialized", 1); $this->epl->load_config('global-discount-fields'); $this->ecm = $this->epl->load_model('epl-common-model'); global $epl_fields; $this->fields = $epl_fields; //$this->epl_fields = $this->epl_util->combine_array_keys( $this->fields ); $this->epl_fields = $epl_fields; $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->data['values'] = $this->ecm->get_post_meta_all((int) $post_ID, false, true); $this->edit_mode = epl_get_element('post', $_GET) || epl_get_element('post_ID', $_REQUEST); if (isset($_REQUEST['epl_ajax']) && $_REQUEST['epl_ajax'] == 1) { $this->run(); } else { add_action('default_title', array($this, 'pre')); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); } }
function __construct() { parent::__construct(); epl_log('init', get_class() . " initialized", 1); $this->epl->load_config('location-fields'); $this->ecm = $this->epl->load_model('epl-common-model'); global $epl_fields; $this->pricing_type = 0; $this->epl_fields = $epl_fields; //this is a multi-dimensional array of all the fields $this->ind_fields = $this->epl_util->combine_array_keys($this->epl_fields); //this is each individualt field array $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->data['values'] = $this->ecm->get_post_meta_all((int) $post_ID); $this->edit_mode = epl_get_element('post', $_GET) || epl_get_element('post_ID', $_REQUEST); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); //post list manage screen - column data add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); if (isset($_REQUEST['epl_ajax']) && $_REQUEST['epl_ajax'] == 1) { $this->run(); } }
function __construct() { parent::__construct(); epl_log('init', get_class() . " initialized", 1); $this->epl->load_config('org-fields'); $this->ecm = $this->epl->load_model('epl-common-model'); global $epl_fields; $this->pricing_type = 0; $this->epl_fields = $epl_fields; $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->data['values'] = $this->ecm->get_post_meta_all((int) $post_ID); $this->edit_mode = isset($_POST['post_action']) && $_REQUEST['post_action'] == 'edit' || isset($_GET['action']) && $_GET['action'] == 'edit'; if (isset($_REQUEST['epl_ajax']) && $_REQUEST['epl_ajax'] == 1) { $this->run(); } else { add_action('default_title', array($this, 'pre')); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); //post list manage screen - column data add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); } }
function __construct() { parent::__construct(); epl_log('init', get_class() . " initialized", 1); $this->epl->load_config('gateway-fields'); $this->ecm = $this->epl->load_model('epl-common-model'); global $epl_fields; $this->pricing_type = 0; $this->epl_fields = apply_filters('epl_pay_profile_manager_fields', $epl_fields); $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->data['values'] = $this->ecm->get_post_meta_all((int) $post_ID); $this->edit_mode = epl_get_element('post', $_GET) || epl_get_element('post_ID', $_REQUEST); if (isset($_REQUEST['epl_ajax']) && $_REQUEST['epl_ajax'] == 1) { $this->run(); } else { //add_action( 'default_title', array( $this, 'pre' ) ); add_action('admin_init', array($this, 'init')); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); } }
function __construct() { parent::__construct(); global $_on_admin; $_on_admin = true; epl_log('init', get_class() . " initialized"); global $epl_fields; $this->epl->load_config('regis-fields'); $this->epl_fields = $epl_fields; //this is a multi-dimensional array of all the fields $this->ind_fields = $this->epl_util->combine_array_keys($this->epl_fields); //this is each individualt field array $this->erm = $this->epl->load_model('epl-registration-model'); $this->rm = $this->epl->load_model('epl-regis-admin-model'); $this->ecm = $this->epl->load_model('epl-common-model'); if (isset($_REQUEST['epl_download_trigger']) || $GLOBALS['epl_ajax']) { $this->run(); } else { add_action('default_title', array($this, 'pre')); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); //post list manage screen - column data add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); } }
function __construct() { parent::__construct(); global $epl_fields; $this->fields = $epl_fields; add_action('admin_notices', array($this, 'dashboard')); }
function __construct() { parent::__construct(); epl_log('init', get_class()); $this->epl->load_config('notification-fields'); global $epl_fields; $this->ecm = $this->epl->load_model('epl-common-model'); $this->epl_fields = $epl_fields; $this->ind_fields = $this->epl_util->combine_array_keys($this->epl_fields); //this is each individualt field array $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->data['values'] = $this->ecm->get_post_meta_all((int) $post_ID, $this->epl_fields); $this->edit_mode = epl_get_element('post', $_GET) || epl_get_element('post_ID', $_REQUEST); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_edit-' . self::post_type . '_columns', array($this, 'add_new_columns')); //post list manage screen - column data add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); //add_action('init', array( &$this, 'run' )); //$this->m = $this->load_model( 'admin/epl-manage-events-model' ); }
function __construct() { parent::__construct(); $this->epl->load_config('settings-fields'); global $epl_fields; $this->fields = $epl_fields; add_action('admin_notices', array($this, 'settings_page')); add_action('admin_init', array($this, 'set_options')); }
function __construct() { parent::__construct(); epl_log('init', get_class() . " initialized"); $this->pricing_type = 0; $this->data['values'] = array(); $this->ecm = $this->epl->load_model('epl-common-model'); $this->erm = $this->epl->load_model('epl-registration-model'); $this->erptm = $this->epl->load_model('epl-report-model'); $post_ID = ''; if (isset($_GET['post'])) { $post_ID = $_GET['post']; } elseif (isset($_POST['post_ID'])) { $post_ID = $_POST['post_ID']; } $this->edit_mode = isset($_POST['post_action']) && $_REQUEST['post_action'] == 'edit' || isset($_GET['action']) && $_GET['action'] == 'edit'; //if ( $this->edit_mode ) { if ($post_ID != '') { $this->data['values'] = $this->ecm->setup_event_details((int) $post_ID, false, true); $this->event_id = $post_ID; } global $epl_fields; $this->pass_to_all_views = array('event_id' => $post_ID); $this->epl->load_config('event-fields'); $this->epl->load_config('form-fields'); $this->fields = $epl_fields; $this->override_data = get_option('_epl_override'); $this->epl_fields = $this->epl_util->combine_array_keys($this->fields); if (isset($_REQUEST['epl_download_trigger']) || $GLOBALS['epl_ajax']) { $this->run(); } elseif (epl_get_element('page', $_GET) == 'epl_event_manager') { add_action('admin_notices', array($this, 'manage_events_2')); } else { $this->erm->event_snapshot($post_ID); add_action('default_title', array($this, 'pre')); //add_filter( 'enter_title_here', array( $this, 'pre' ) ); add_action('add_meta_boxes', array($this, 'epl_add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_edit-epl_event_columns', array($this, 'add_new_epl_columns')); //post list manage screen - column data add_action('manage_epl_event_posts_custom_column', array($this, 'epl_column_data'), 10, 2); //sorting add_filter('manage_edit-epl_event_sortable_columns', array($this, 'add_new_epl_columns'), 10); add_filter('post_row_actions', array($this, 'add_post_row_action'), 10, 2); //adjust list manage screen - table header widths add_action('admin_head', array($this, 'admin_table_header')); //add category dropdown to list manage screen add_action('restrict_manage_posts', array($this, 'restrict_events_by_category'), 10, 2); add_filter('parse_query', array($this, 'convert_restrict_events')); add_filter('request', array($this, 'event_column_order_by')); add_action('admin_init', array($this, 'admin_init')); add_action('load-edit.php', array($this, 'trashed_redirect')); } }
function __construct() { global $_on_admin, $current_location; $_on_admin = false; parent::__construct(); $this->error = ''; $this->erm = $this->epl->load_model('epl-registration-model'); $this->ecm = $this->epl->load_model('epl-common-model'); $this->egm = $this->epl->load_model('epl-gateway-model'); $this->eum = $this->epl->load_model('epl-user-model'); }
function __construct() { global $_on_admin, $current_step; $_on_admin = false; parent::__construct(); epl_log('init', get_class() . " initialized"); $this->rm = $this->epl->load_model('epl-registration-model'); $this->ecm = $this->epl->load_model('epl-common-model'); if (isset($_REQUEST['epl_action'])) { $this->run(); } //add_filter( 'the_title', array( $this, '__return_empty_string' ) ); }
function __construct() { parent::__construct(); $this->epl->load_config('form-fields'); global $epl_fields; $this->fields = $epl_fields; epl_log('init', get_class() . " initialized"); $this->ecm = $this->epl->load_model('epl-common-model'); $this->d['epl_fields'] = $this->ecm->_get_fields('epl_fields'); $this->d['epl_forms'] = $this->ecm->_get_fields('epl_forms'); epl_log("debug", "<pre>" . print_r($this->d['epl_fields'], true) . "</pre>"); if (isset($_REQUEST['epl_ajax']) && $_REQUEST['epl_ajax'] == 1) { $this->run(); } else { add_action('admin_notices', array($this, 'forms_manager_page')); } }
function __construct() { parent::__construct(); $this->user_id = get_current_user_id(); $this->ecm = $this->epl->load_model('EPL_Common_Model'); $this->erm = $this->epl->load_model('EPL_registration_model'); $this->erptm = $this->epl->load_model('epl-report-model'); global $epl_fields; $this->fields = $epl_fields; //add_action( 'admin_notices', array( $this, 'regis_list_page' ) ); //add_action( 'admin_init', array( $this, 'set_options' ) ); if (isset($_REQUEST['epl_action']) || isset($_REQUEST['print']) || isset($_REQUEST['epl_download_trigger']) || $GLOBALS['epl_ajax']) { $this->run(); } else { //add_action( 'admin_notices', array( $this, 'upcoming_event_list' ) ); add_action('admin_notices', array($this, 'regis_list_page')); } }
function __construct() { parent::__construct(); global $epl_fields; $this->epl->load_config('event-fields'); $this->epl->load_config('regis-fields'); $this->fields = $epl_fields; $this->erm = $this->epl->load_model('epl-registration-model'); $this->ecm = $this->epl->load_model('epl-common-model'); $this->erptm = $this->epl->load_model('epl-report-model'); $this->edbm = $this->epl->load_model('epl-db-model'); $this->erm->on_admin = true; if (isset($_REQUEST['epl_action']) || isset($_REQUEST['print']) || isset($_REQUEST['epl_download_trigger']) || $GLOBALS['epl_ajax']) { if (!is_user_logged_in()) { exit; } $this->run(); } else { add_action('admin_notices', array($this, 'reports_page')); } }
function __construct() { parent::__construct(); global $epl_on_admin; $epl_on_admin = true; epl_log('init', get_class() . " initialized"); global $epl_fields; $this->epl->load_config('regis-fields'); $this->epl_fields = $epl_fields; //this is a multi-dimensional array of all the fields $this->ind_fields = $this->epl_util->combine_array_keys($this->epl_fields); //this is each individual field array $this->erm = $this->epl->load_model('epl-registration-model'); //$this->earm = $this->epl->load_model( 'epl-regis-admin-model' ); $this->ecm = $this->epl->load_model('epl-common-model'); $this->erptm = $this->epl->load_model('epl-report-model'); $this->edbm = $this->epl->load_model('epl-db-model'); $this->erm->on_admin = true; $this->edit_mode = epl_get_element('post', $_GET) || epl_get_element('post_ID', $_REQUEST); if (isset($_REQUEST['print']) || isset($_REQUEST['epl_download_trigger']) || $GLOBALS['epl_ajax']) { $this->run(); } else { $this->personal_field_ids = $this->ecm->get_personal_field_ids(); add_action('default_title', array($this, 'pre')); add_action('add_meta_boxes', array($this, 'add_meta_boxes')); add_action('save_post', array($this, 'save_postdata')); //post list manage screen columns - extra columns add_filter('manage_' . self::post_type . '_posts_columns', array($this, 'add_new_columns')); //post list manage screen - column data add_action('manage_' . self::post_type . '_posts_custom_column', array($this, 'column_data'), 10, 2); add_filter('restrict_manage_posts', array($this, 'filters')); //add_filter( 'request', array( $this, 'request_filter' ) ); add_filter('parse_query', array($this, 'request_filter_2')); // make these columns sortable //add_filter( "manage_edit-" . self::post_type . "_sortable_columns", array( $this,"sortable_columns") ); add_action('admin_head', array($this, 'admin_table_header')); add_action('admin_init', array($this, 'admin_init')); } }
function __construct() { parent::__construct(); add_action('admin_notices', array($this, 'settings_page')); }