add_section( 'subscription_settings', array( 'title' => esc_html__( 'Email Subscription', 'best-store' ), 'priority' => 199, 'capability' => 'edit_theme_options', 'panel' => 'theme_options', 'description' => __( 'Add email subscription plugin shortcode.', 'best-store' ), ) ); /** Footer Copyright */ $wp_customize->add_setting( 'subscription_shortcode', array( 'default' => best_shop_default_settings( 'subscription_shortcode' ), 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'subscription_shortcode', array( 'label' => esc_html__( 'Subscription Plugin Shortcode', 'best-store' ), 'section' => 'subscription_settings', 'type' => 'text', ) ); //preloader $wp_customize->add_section( 'preloader_settings', array( 'title' => esc_html__( 'Preloader', 'best-store' ), 'priority' => 200, 'capability' => 'edit_theme_options', 'panel' => 'theme_options', ) ); $wp_customize->add_setting( 'preloader_enabled', array( 'default' => best_shop_default_settings( 'preloader_enabled' ), 'sanitize_callback' => 'best_shop_sanitize_checkbox', 'transport' => 'refresh' ) ); $wp_customize->add_control( 'preloader_enabled', array( 'label' => esc_html__( 'Enable Preloader', 'best-store' ), 'section' => 'preloader_settings', 'type' => 'checkbox', ) ); } endif; add_action( 'customize_register', 'best_store_customize_register' ); /* * Add default header image */ function best_store_header_style() { add_theme_support( 'custom-header', apply_filters( 'best_store_custom_header_args', array( 'default-text-color' => '#000000', 'width' => 1920, 'height' => 760, 'flex-height' => true, 'video' => true, 'wp-head-callback' => 'best_store_header_style', ) ) ); add_theme_support( 'automatic-feed-links' ); } add_action( 'after_setup_theme', 'best_store_header_style' ); /* */ function best_store_admin_notice() { $class = 'notice notice-info is-dismissible'; global $pagenow ; if (!function_exists('best_shop_pro_textdomain') && ($pagenow == 'index.php' || $pagenow == 'themes.php')){ $message = __( 'Click here to Activate our latest theme for more features and performance', 'best-store' ); $message1 = __( ' We are updating and maintaining our latest theme with new WordPress versions.', 'best-store' ); printf( '

%3$s%4$s

', esc_attr( $class ), esc_url(admin_url( 'theme-install.php?search=best-shop' )), esc_html( $message ), esc_html( $message1 ) ); } } add_action( 'admin_notices', 'best_store_admin_notice' ); add_filter( 'best_shop_settings', 'best_store_settings' ); function best_store_settings( $values ) { $values[ 'primary_color' ] = '#0040ff'; $values[ 'secondary_color' ] = '#d62626'; $values[ 'heading_font' ] = 'Poppins'; $values[ 'body_font' ] = 'Poppins'; $values[ 'woo_bar_color' ] = '#000000'; $values[ 'woo_bar_bg_color' ] = '#58A9FF'; $values[ 'preloader_enabled' ] = false; $values[ 'logo_width' ] = 130; $values[ 'layout_width' ] = 1280; $values[ 'header_layout' ] = 'storefront'; $values[ 'enable_search' ] = true; $values[ 'ed_social_links' ] = true; $values[ 'subscription_shortcode' ] = ''; $values[ 'header_layout' ] = 'default'; $values[ 'enable_top_bar' ] = true; $values[ 'top_bar_left_content' ] = 'contacts'; $values[ 'top_bar_left_text' ] = esc_html__( 'edit top bar text', 'best-store' ); $values[ 'top_bar_right_content' ] = 'menu_social'; $values[ 'footer_text_color' ] = '#eee'; $values[ 'footer_color' ] = '#1c1c1c'; $values[ 'footer_link' ] = 'https://gradientthemes.com/'; $values[ 'page_sidebar_layout' ] = 'right-sidebar'; $values[ 'post_sidebar_layout' ] = 'right-sidebar'; $values[ 'layout_style' ] = 'right-sidebar'; $values[ 'woo_sidebar_layout' ] = 'left-sidebar'; return $values; }