label ); ?>

add_setting( 'agama_blue_blog_posts_heading', array( 'default' => '', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new Agama_Blue_Customize_Agama_Blue_Heading( $wp_customize, 'agama_blue_blog_posts_heading', array( 'label' => __( 'Agama Blue Related', 'agama' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blue_blog_posts_heading' ) ) ); // Agama Blue blog feature $wp_customize->add_setting( 'agama_blue_blog', array( 'default' => true, 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blue_blog', array( 'label' => __( 'Enable blog feature ?', 'agama-blue' ), 'description' => __( 'Enable blog feature on homepage.', 'agama-blue' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blue_blog', 'type' => 'checkbox' ) ) ); // Blog Heading $wp_customize->add_setting( 'agama_blue_blog_heading', array( 'default' => 'Latest from the Blog', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blue_blog_heading', array( 'label' => __( 'Blog Heading', 'agama-blue' ), 'description' => __( 'Set custom blog section heading title.', 'agama-blue' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blue_blog_heading', 'type' => 'text' ) ) ); // Blog Posts Heading $wp_customize->add_setting( 'agama_blue_blog_posts_number', array( 'default' => '4', 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'agama_blue_blog_posts_number', array( 'label' => __( 'Blog Posts', 'agama' ), 'description' => __( 'Enter how many blog posts should appear on blog section on homepage.', 'agama-blue' ), 'section' => 'agama_blog_section', 'settings' => 'agama_blue_blog_posts_number', 'type' => 'text' ) ) ); } add_action( 'customize_register', 'agama_blue_customize_register' ); /** * Generating Dynamic CSS * * @since 1.0.1 */ function agama_blue_customize_css() { ?>