require_files(); } /** * Loads the core framework files * * @since 1.0.0 * @return void */ public function require_files() { require EOF_DIR . 'core/class-eof-admin.php'; require EOF_DIR . 'core/class-eof-views.php'; require EOF_DIR . 'core/class-eof-settings.php'; require EOF_DIR . 'core/class-eof-import-export.php'; require EOF_DIR . 'core/class-eof.php'; } /** * Enqueue the core framework scripts * * @since 1.0.0 * @return void */ public function enqueue_scripts() { if ( ! function_exists( 'adzworld_is_plugin_admin_screen' ) || ! adzworld_is_plugin_admin_screen() ) { return; } wp_enqueue_script( 'jquery' ); wp_enqueue_style( 'jquery-ui' ); wp_enqueue_style( 'eof-style', EOF_URL . 'css/eof-style.css', array(), (string) filemtime( EOF_DIR . 'css/eof-style.css' ) ); wp_enqueue_script( 'eof_custom_js', EOF_URL . 'js/eof-custom.js', array( 'jquery', 'wp-color-picker' ), (string) filemtime( EOF_DIR . 'js/eof-custom.js' ), true ); wp_localize_script( 'eof_custom_js', 'adzworldSettings', array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ) ) ); } /** * Add donate link to plugin description in /wp-admin/plugins.php * * @since 1.0.0 * @param array $plugin_meta Existing plugin metadata links. * @param string $plugin_file Plugin entry filename. * @return array */ public function donate_link( $plugin_meta, $plugin_file ) { if ( strpos( $plugin_file, 'eof.php' ) !== false ) { $plugin_meta[] = sprintf( '%s', 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mr%2emoyus%40gmail%2ecom&lc=US&item_name=20Theme&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest', __( 'Donate', 'adz-world' ) ); } return $plugin_meta; } } $loader = new EOF_Loader(); $loader->run(); endif;