Ejemplo n.º 1
0
 /**
  * event_espresso_require_gateway()
  *
  * @param mixed $template_file_name // Name of template file.
  * @param bool $must_exist          // Error if neither file exist.
  * @param bool $as_require_once     // True for require_once(), False for require()
  * @return void    // No return value. File already included.
  *
  * Usage: event_espresso_require_gateway('PaymentGateway.php')
  */
 function event_espresso_require_gateway($template_file_name, $must_exist = true, $as_require_once = true)
 {
     event_espresso_require_file($template_file_name, EVENT_ESPRESSO_GATEWAY_DIR . '/', EVENT_ESPRESSO_PLUGINFULLPATH . '/gateways/', $must_exist, $as_require_once);
 }
Ejemplo n.º 2
0
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/staff-management/index.php';
 } else {
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/staff-management.php';
 }
 //Main functions
 if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/functions.php')) {
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/functions.php';
 }
 //Available addons
 if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/admin_addons.php')) {
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/admin_addons.php';
 } else {
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin_addons.php';
 }
 //Admin Widget - Display event stats in your admin dashboard
 event_espresso_require_file('dashboard_widget.php', EVENT_ESPRESSO_PLUGINFULLPATH . "includes/admin-files/", '', false, true);
 //Admin only functions
 require_once "includes/functions/admin_menu.php";
 //Event Registration Subpage - Configure Organization
 if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'event_espresso') {
     require_once "includes/organization_config.php";
 }
 //Event Registration Subpage - Add/Delete/Edit Events
 if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'events') {
     require_once "includes/event-management/index.php";
 }
 //Event styles & template layouts Subpage
 if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/template_settings/index.php')) {
     require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/template_settings/index.php';
 }
 //Plugin Support