esc_html__( 'Latest Post ', 'brighter-blog' ), 'panel' => 'font-page-settings', ) ); // enable disable Latest Post new \Kirki\Field\Checkbox_Switch( [ 'label' => esc_html__( 'Enable Latest Post', 'brighter-blog' ), 'section' => 'latest_post_options', 'settings' => 'latest_post_section_enable', 'default' => 'on', 'choices' => [ 'on' => esc_html__( 'Enable', 'brighter-blog' ), 'off' => esc_html__( 'Disable', 'brighter-blog' ), ], ] ); new \Kirki\Field\Text( [ 'settings' => 'latest_post_section_title', 'label' => esc_html__( 'Latest Post', 'brighter-blog' ), 'default' => 'Latest Post', 'section' => 'latest_post_options', 'active_callback' => [ [ 'setting' => 'latest_post_section_enable', 'operator' => '==', 'value' => true, ], ], 'partial_refresh' => [ 'latest_post_options_title_refresh' => [ 'selector' => 'h2.latest-post-title.section-title', 'render_callback' => 'brighter_latest_post_customizer_quick_edit', ], ], ] ); // Toggle Field: Choose between Category or Latest Post new \Kirki\Field\Radio( [ 'settings' => 'latest_post_cat_or_latest', 'label' => esc_html__( 'Select Content Type', 'brighter-blog' ), 'section' => 'latest_post_options', 'default' => 'latest', 'choices' => [ 'latest' => esc_html__( 'Latest Post', 'brighter-blog' ), ], 'active_callback' => [ [ 'setting' => 'latest_post_section_enable', 'operator' => '==', 'value' => true, ], ], ] ); Kirki::add_field( 'theme_config', [ 'type' => 'custom', 'settings' => 'latest_post_pro_feature_upgrade', 'section' => 'latest_post_options', 'default' => '
' . esc_html__( 'Unlock exclusive features and customization options by upgrading to the Pro version.', 'brighter-blog' ) . '
' . esc_html__( 'Upgrade Now', 'brighter-blog' ) . '