'edit_theme_options', 'option_type' => 'theme_mod', ) ); Kirki::add_panel( 'bappy_panel', array( 'priority' => 10, 'title' => esc_attr__( 'Bappy Theme Option', 'bappy' ), ) ); // blog section Kirki::add_section( 'blog_section', array( 'title' => esc_attr__( 'blog', 'bappy' ), 'panel' => 'bappy_panel', 'priority' => 160, ) ); // blog page title Kirki::add_field( 'theme_config_id', array( 'type' => 'text', 'settings' => 'blog_title_setting', 'label' => __( 'blog page title', 'bappy' ), 'section' => 'blog_section', 'priority' => 10, 'default' => 'latest blog', 'partial_refresh' => array( 'blog_title_setting' => array( 'selector' => '.title-header-content h1', 'render_callback' => function() { ?>
esc_attr__( '404', 'bappy' ), 'panel' => 'bappy_panel', 'priority' => 160, ) ); // 404 Title Kirki::add_field( 'theme_config_id', array( 'type' => 'text', 'settings' => 'error_title_setting', 'label' => __( '404 title', 'bappy' ), 'section' => 'error_section', 'priority' => 10, 'partial_refresh' => array( 'error_title_setting' => array( 'selector' => '.error-title', 'render_callback' => function() { echo Kirki::get_option('error_title_setting'); }, ), ), ) ); // 404 Text Kirki::add_field( 'theme_config_id', array( 'type' => 'editor', 'settings' => 'error_text_setting', 'label' => __( 'error text', 'bappy' ), 'section' => 'error_section', 'priority' => 10, 'partial_refresh' => array( 'error_text_setting' => array( 'selector' => '.error-text', 'render_callback' => function() { echo Kirki::get_option('error_text_setting'); }, ), ), ) ); // footer section Kirki::add_section( 'footer_section', array( 'title' => esc_attr__( 'footer', 'bappy' ), 'panel' => 'bappy_panel', 'priority' => 160, ) ); // footer text Kirki::add_field( 'theme_config_id', array( 'type' => 'editor', 'settings' => 'footer_text_setting', 'label' => __( 'footer copyright text', 'bappy' ), 'section' => 'footer_section', 'priority' => 10, 'partial_refresh' => array( 'footer_text_setting' => array( 'selector' => '.copyright-text', 'render_callback' => function() { echo Kirki::get_option('footer_text_setting'); }, ), ), ) ); // footer social icon Kirki::add_field( 'theme_config_id', array( 'type' => 'repeater', 'label' => esc_attr__( 'Social Icons', 'bappy' ), 'section' => 'footer_section', 'priority' => 10, 'row_label' => array( 'type' => 'text', 'value' => esc_attr__('Your social icon', 'bappy' ), ), 'button_label' => esc_attr__('"Add new" social icon', 'bappy' ), 'settings' => 'footer_social_icons', 'default' => array( array( 'link_text' => 'fa-facebook', 'link_url' => 'https://facebook.com', ), array( 'link_text' => 'fa-twitter', 'link_url' => 'https://twitter.com', ), array( 'link_text' => 'fa-github', 'link_url' => 'https://github.com', ), array( 'link_text' => 'fa-behance', 'link_url' => 'https://behance.com', ), array( 'link_text' => 'fa-dribbble', 'link_url' => 'https://dribbble.com', ) ), 'fields' => array( 'link_text' => array( 'type' => 'text', 'label' => esc_attr__( 'FontAwesome Icon', 'bappy' ), 'default' => 'fa-facebook', ), 'link_url' => array( 'type' => 'text', 'label' => esc_attr__( 'Social URL', 'bappy' ), 'default' => '#', ), ), 'partial_refresh' => array( 'footer_social_icons' => array( 'selector' => '.footer-social', 'render_callback' => function() { echo Kirki::get_option('footer_social_icons'); }, ), ), ) );