add_section( new Blog_Feeds_Upsell_Section( $wp_customize, 'upsell_sections', array( 'title' => __( 'Blog Feeds Pro', 'blog-feeds' ), 'button_text' => __( 'Buy Pro', 'blog-feeds' ), 'url' => 'https://ascendoor.com/themes/blog-feeds-pro/', 'background_color' => '#606c38', 'text_color' => '#fff', 'priority' => 0, ) ) ); // Banner Section - Horizontal Line. $wp_customize->add_setting( 'blog_feeds_banner_horizontal_line', array( 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( new Blog_Feeds_Customize_Horizontal_Line( $wp_customize, 'blog_feeds_banner_horizontal_line', array( 'section' => 'zenith_blog_banner_section', 'settings' => 'blog_feeds_banner_horizontal_line', 'active_callback' => 'zenith_blog_is_banner_section_enabled', 'type' => 'hr', 'priority' => 50, ) ) ); // Banner Section - Recent Title. $wp_customize->add_setting( 'blog_feeds_banner_section_recent_title', array( 'default' => __( 'Recent', 'blog-feeds' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'blog_feeds_banner_section_recent_title', array( 'label' => esc_html__( 'Recent Title Label', 'blog-feeds' ), 'section' => 'zenith_blog_banner_section', 'settings' => 'blog_feeds_banner_section_recent_title', 'type' => 'text', 'active_callback' => 'zenith_blog_is_banner_section_enabled', 'priority' => 60, ) ); // Banner Section - Popular Title. $wp_customize->add_setting( 'blog_feeds_banner_section_popular_title', array( 'default' => __( 'Popular', 'blog-feeds' ), 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'blog_feeds_banner_section_popular_title', array( 'label' => esc_html__( 'Popular Title Label', 'blog-feeds' ), 'section' => 'zenith_blog_banner_section', 'settings' => 'blog_feeds_banner_section_popular_title', 'type' => 'text', 'active_callback' => 'zenith_blog_is_banner_section_enabled', 'priority' => 70, ) ); } add_action( 'customize_register', 'blog_feeds_customize_register' ); function blog_feeds_custom_control_scripts() { // Append .min if SCRIPT_DEBUG is false. $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_style( 'blog-feeds-custom-controls-css', get_stylesheet_directory_uri() . '/assets/css/custom-controls' . $min . '.css', array( 'zenith-blog-custom-controls-css' ), '1.0.0', 'all' ); wp_enqueue_script( 'blog-feeds-custom-controls-js', get_stylesheet_directory_uri() . '/assets/js/custom-controls' . $min . '.js', array( 'zenith-blog-custom-controls-js', 'jquery', 'jquery-ui-core' ), '1.0.0', true ); } add_action( 'customize_controls_enqueue_scripts', 'blog_feeds_custom_control_scripts' ); function blog_feeds_admin_style() { // Append .min if SCRIPT_DEBUG is false. $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; wp_enqueue_style( 'blog-feeds-demo-url', get_stylesheet_directory_uri() . '/assets/css/admin' . $min . '.css', array(), '1.0.0', 'all' ); } add_action( 'admin_enqueue_scripts', 'blog_feeds_admin_style' );