version = '1.0.0'; $this->inc = trailingslashit( plugin_dir_path( __FILE__ ) . '/includes' ); $this->load_dependencies(); $this->load_admin(); } /** * Load the required dependencies for the plugin. * * - Admin loads the backend functionality * - Public provides front-end functionality * - Dashboard Glancer loads the helper class for the admin dashboard * * @since 1.0.0 */ private function load_dependencies() { require_once( $this->inc . 'class-arconix-flexslider-admin.php' ); require_once( $this->inc . 'class-arconix-flexslider-public.php' ); require_once( $this->inc . 'class-arconix-flexslider-widget.php' ); } /** * Load the Administration portion * * @since 1.0.0 */ private function load_admin() { new Arconix_Flexslider_Admin( $this->get_version() ); } /** * Get the current version of the plugin * * @since 1.0.0 * @return string Plugin current version */ public function get_version() { return $this->version; } } /** Vroom vroom */ add_action( 'plugins_loaded', 'arconix_flexslider_plugin_run' ); function arconix_flexslider_plugin_run() { new Arconix_Flexslider_Plugin; }