get( 'Version' ) ); } /*------------------------- Google Fonts --------------------------------------*/ if ( ! function_exists( 'articlewave_blog_fonts_url' ) ) : /** * Register Google fonts * * @return string Google fonts URL for the theme. */ function articlewave_blog_fonts_url() { $fonts_url = ''; $font_families = array(); /* * Translators: If there are characters in your language that are not supported * by Arvo, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Arvo font: on or off', 'articlewave-blog' ) ) { $font_families[] = 'Arvo:700,900'; } /* * Translators: If there are characters in your language that are not supported * by Mukta, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Mukta font: on or off', 'articlewave-blog' ) ) { $font_families[] = 'Mukta:400,600,700'; } if( $font_families ) { $query_args = array( 'family' => urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return $fonts_url; } endif; /*------------------------- Enqueue scripts -----------------------------------*/ add_action( 'wp_enqueue_scripts', 'articlewave_blog_scripts', 99 ); if ( ! function_exists( 'articlewave_blog_scripts' ) ) : /** * function to load style and scripts for theme. * */ function articlewave_blog_scripts() { wp_enqueue_style( 'articlewave-blog-google-font', articlewave_blog_fonts_url(), array(), null ); wp_dequeue_style( 'articlewave-style' ); wp_dequeue_style( 'articlewave-responsive-style' ); wp_enqueue_style( 'articlewave-blog-parent-style', get_template_directory_uri() . '/style.css', array(), ARTICLEWAVE_VERSION ); wp_enqueue_style( 'articlewave-blog-parent-responsive', get_template_directory_uri() . '/assets/css/articlewave-responsive.css', array(), ARTICLEWAVE_VERSION ); wp_enqueue_style( 'articlewave-blog-style', get_stylesheet_uri(), array(), ARTICLEWAVE_BLOG_VERSION ); } endif; /*------------------------- Customizer Section --------------------------------*/ if ( ! function_exists( 'articlewave_blog_customize_register' ) ) : /** * Managed all the customizer field for theme. */ function articlewave_blog_customize_register( $wp_customize ) { global $wp_customize; $wp_customize->get_setting( 'articlewave_primary_theme_color' )->default = '#2E7D32'; } endif; add_action( 'customize_register', 'articlewave_blog_customize_register', 20 );