'class-akpager-theme-support', 'file-path' => AKPAGER_INC ), array( 'file-name' => 'template-functions', 'file-path' => AKPAGER_INC ), array( 'file-name' => 'template-tags', 'file-path' => AKPAGER_INC ), array( 'file-name' => 'customizer', 'file-path' => AKPAGER_INC ), array( 'file-name' => 'comments-modification', 'file-path' => AKPAGER_INC ), array( 'file-name' => 'theme-options', 'file-path' => AKPAGER_INC.'/theme-options' ), array( 'file-name' => 'get-theme-option', 'file-path' => AKPAGER_INC.'/theme-options' ), array( 'file-name' => 'class-tgm-plugin-activation', 'file-path' => AKPAGER_INC.'/plugin' ), array( 'file-name' => 'required-plugin', 'file-path' => AKPAGER_INC.'/plugin' ) ); if (is_array($includes_files) && !empty($includes_files)){ foreach ($includes_files as $file){ if (file_exists( $file['file-path'].'/'. $file['file-name'].'.php')){ require_once $file['file-path'].'/'. $file['file-name'].'.php'; } } } } /* *load font */ public static function fonts_url() { $font_url = ''; if ( 'off' !== esc_html_x( 'on', 'Google font: on or off', 'akpager' ) ) : $font_url = add_query_arg( array( 'family' => urlencode( 'Playfair+Display:400,400i,700,700i,900,900i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i,800,900&display=swap|Open+Sans:300,400,400i,600,700&display=swap' ), ), "//fonts.googleapis.com/css" ); endif; return apply_filters( 'akpager_google_font_url', esc_url( $font_url ) ); } /** * theme assets * @since 1.0.0 * */ public function theme_assets(){ self::theme_css(); self::theme_js(); } /** * theme css * @since 1.0.0 * */ public function theme_css(){ $ver = AKPAGER_VERSION; wp_enqueue_style( 'akpager-font', self::fonts_url(), array(), $ver, 'all' ); wp_enqueue_style( 'bootstrap', AKPAGER_CSS.'/bootstrap.css', array(), $ver, 'all' ); wp_enqueue_style( 'font-awesome', AKPAGER_CSS.'/font-awesome.css', array(), $ver, 'all' ); wp_enqueue_style( 'animate', AKPAGER_CSS.'/animate.css', array(), $ver, 'all' ); wp_enqueue_style( 'akpager-animation', AKPAGER_CSS.'/animation-style.css', array(), $ver, 'all' ); wp_enqueue_style( 'akpager-default', AKPAGER_CSS.'/default.css', array(), $ver, 'all' ); wp_enqueue_style( 'akpager-main-style', AKPAGER_CSS.'/style.css', array(), $ver, 'all' ); wp_enqueue_style( 'akpager-style', get_stylesheet_uri() ); } /** * theme js * @since 1.0.0 * */ public function theme_js(){ $ver = AKPAGER_VERSION; wp_enqueue_script( 'jQuery' ); wp_enqueue_script( 'bootstrap', AKPAGER_JS.'/bootstrap.js', array( 'jquery' ), $ver, true ); wp_enqueue_script( 'navigation', AKPAGER_JS.'/navigation.js', array( 'jquery' ), $ver, true ); wp_enqueue_script( 'akpager-main', AKPAGER_JS.'/main.js', array( 'jquery' ), $ver, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } }//end class if ( class_exists( 'Akpager_init' ) ){ Akpager_init::getInstance(); } }