示例#1
0
 /**
  * Load all the required library files.
  */
 protected function loadLibraries()
 {
     // Tribe common resources
     require_once $this->pluginPath . 'vendor/tribe-common-libraries/tribe-common-libraries.class.php';
     // Load CSV importer
     require_once $this->pluginPath . 'src/io/csv/ecp-events-importer.php';
     // Load Template Tags
     require_once $this->pluginPath . 'src/functions/template-tags/query.php';
     require_once $this->pluginPath . 'src/functions/template-tags/general.php';
     require_once $this->pluginPath . 'src/functions/template-tags/month.php';
     require_once $this->pluginPath . 'src/functions/template-tags/loop.php';
     require_once $this->pluginPath . 'src/functions/template-tags/google-map.php';
     require_once $this->pluginPath . 'src/functions/template-tags/organizer.php';
     require_once $this->pluginPath . 'src/functions/template-tags/venue.php';
     require_once $this->pluginPath . 'src/functions/template-tags/date.php';
     require_once $this->pluginPath . 'src/functions/template-tags/link.php';
     require_once $this->pluginPath . 'src/functions/template-tags/widgets.php';
     require_once $this->pluginPath . 'src/functions/template-tags/meta.php';
     require_once $this->pluginPath . 'src/functions/template-tags/tickets.php';
     // Load Advanced Functions
     require_once $this->pluginPath . 'src/functions/advanced-functions/event.php';
     require_once $this->pluginPath . 'src/functions/advanced-functions/venue.php';
     require_once $this->pluginPath . 'src/functions/advanced-functions/organizer.php';
     // Load Deprecated Template Tags
     if (!defined('TRIBE_DISABLE_DEPRECATED_TAGS')) {
         require_once $this->pluginPath . 'src/functions/template-tags/deprecated.php';
     }
     // Load multisite defaults
     if (is_multisite()) {
         $tribe_events_mu_defaults = array();
         if (file_exists(WP_CONTENT_DIR . '/tribe-events-mu-defaults.php')) {
             require_once WP_CONTENT_DIR . '/tribe-events-mu-defaults.php';
         }
         self::$tribeEventsMuDefaults = apply_filters('tribe_events_mu_defaults', $tribe_events_mu_defaults);
     }
 }