public function __construct() { //define some event categories related constants define('EE_VENUES_PG_SLUG', 'espresso_venues'); define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG)); define('EE_VENUES_ASSETS_URL', EE_CORE_CAF_ADMIN_URL . 'new/venues/assets/'); define('EE_VENUES_TEMPLATE_PATH', EE_CORE_CAF_ADMIN . 'new/venues/templates/'); parent::__construct(); $this->_folder_path = EE_CORE_CAF_ADMIN . 'new/' . $this->_folder_name . DS; }
public function __construct() { //define some events related constants define('EVENTS_PG_SLUG', 'espresso_events'); define('EVENTS_LABEL', __('Events', 'event_espresso')); define('EVENTS_ADMIN', EE_ADMIN_PAGES . 'events' . DS); define('EVENTS_ADMIN_URL', admin_url('admin.php?page=' . EVENTS_PG_SLUG)); define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates' . DS); define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/'); parent::__construct(); }
/** * constructor * @since 1.0.0 */ public function __construct() { define('EEA_PEOPLE_PG_SLUG', 'espresso_people'); define('EEA_PEOPLE_LABEL', __('People Admin', 'event_espresso')); define('EEA_PEOPLE_ADDON_ADMIN_URL', admin_url('admin.php?page=' . EEA_PEOPLE_PG_SLUG)); define('EEA_PEOPLE_ADDON_ADMIN_ASSETS_PATH', EEA_PEOPLE_ADDON_ADMIN . 'assets' . DS); define('EEA_PEOPLE_ADDON_ADMIN_ASSETS_URL', EEA_PEOPLE_ADDON_URL . 'admin' . DS . 'people' . DS . 'assets' . DS); define('EEA_PEOPLE_ADDON_ADMIN_TEMPLATE_PATH', EEA_PEOPLE_ADDON_ADMIN . 'templates' . DS); define('EEA_PEOPLE_ADDON_ADMIN_TEMPLATE_URL', EEA_PEOPLE_ADDON_URL . 'admin' . DS . 'people' . DS . 'templates' . DS); parent::__construct(); $this->_folder_path = EEA_PEOPLE_ADDON_ADMIN; }
/** * constructor * @Constructor * @access public * @return void */ public function __construct() { do_action('AHEE_log', __FILE__, __FUNCTION__, ''); define('REG_PG_SLUG', 'espresso_registrations'); define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG))); define('REG_ADMIN', EE_ADMIN_PAGES . 'registrations' . DS); define('REG_ADMIN_URL', admin_url('admin.php?page=' . REG_PG_SLUG)); define('REG_ASSETS_PATH', REG_ADMIN . 'assets' . DS); define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/'); define('REG_TEMPLATE_PATH', REG_ADMIN . 'templates' . DS); define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/'); parent::__construct(); }
public function __construct() { /** * define some events related constants but only if not defined (need to check because unit tests * may load) */ if (!defined('EVENTS_PG_SLUG')) { define('EVENTS_PG_SLUG', 'espresso_events'); define('EVENTS_LABEL', __('Events', 'event_espresso')); define('EVENTS_ADMIN', EE_ADMIN_PAGES . 'events' . DS); define('EVENTS_ADMIN_URL', admin_url('admin.php?page=' . EVENTS_PG_SLUG)); define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates' . DS); define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/'); } parent::__construct(); }