'theme_mod', 'capability' => 'edit_theme_options' ) ); Kirki::add_panel( 'agama_blue_theme_options_panel', array( 'title' => __( 'Agama Blue Options', 'agama-blue' ), 'priority' => 135 ) ); Kirki::add_section( 'agama_blue_blog_section', array( 'title' => __( 'Blog', 'agama-blue' ), 'panel' => 'agama_blue_theme_options_panel' ) ); Kirki::add_field( 'agama_blue_options', array( 'label' => __( 'Enable', 'agama-blue' ), 'tooltip' => __( 'Enable blog feature on home page.', 'agama-blue' ), 'settings' => 'agama_blue_blog', 'section' => 'agama_blue_blog_section', 'type' => 'switch', 'default' => true ) ); Kirki::add_field( 'agama_blue_options', array( 'label' => __( 'Heading Title', 'agama-blue' ), 'tooltip' => __( 'Set custom blog heading title.', 'agama-blue' ), 'settings' => 'agama_blue_blog_heading', 'section' => 'agama_blue_blog_section', 'type' => 'text', 'default' => __( 'Latest from the Blog', 'agama-blue' ) ) ); Kirki::add_field( 'agama_blue_options', array( 'label' => __( 'Posts per Page', 'agama-blue' ), 'tooltip' => __( 'Set how many blog posts to display per page.', 'agama-blue' ), 'settings' => 'agama_blue_blog_posts_number', 'section' => 'agama_blue_blog_section', 'type' => 'slider', 'choices' => array( 'min' => 1, 'max' => 36, 'step' => 1 ), 'default' => '4' ) ); /** * Generating Dynamic CSS * * @since 1.0.1 */ function agama_blue_customize_css() { ?>