esc_html__('Trending Post', 'brighter-blog'), 'panel' => 'font-page-settings', )); // enable/disable new \Kirki\Field\Checkbox_Switch( array( 'label' => esc_html__('Enable Trending Post', 'brighter-blog'), 'section' => 'trending_post_options', 'settings' => 'trending_post_enable', 'default' => 'on', 'choices' => array( 'on' => esc_html__('Enable', 'brighter-blog'), 'off' => esc_html__('Disable', 'brighter-blog'), ), ) ); // Trending Stories title new \Kirki\Field\Text( [ 'settings' => 'trending_post_section_title', 'label' => esc_html__( 'Trending Post', 'brighter-blog' ), 'default' => 'Trending', 'section' => 'trending_post_options', 'active_callback' => [ [ 'setting' => 'trending_post_enable', 'operator' => '==', 'value' => true, ], ], 'partial_refresh' => [ 'trending_post_title_refresh' => [ 'selector' => 'h2.trending-post-title.section-title', 'render_callback' => 'brighter_blog_trending_post_customizer_quick_edit', ], ], ] ); // Toggle Field: Choose between Category or Latest Post new \Kirki\Field\Radio( [ 'settings' => 'tranding_post_choose_cat_or_latest', 'label' => esc_html__( 'Select Content Type', 'brighter-blog' ), 'section' => 'trending_post_options', 'default' => 'latest', 'choices' => [ 'latest' => esc_html__( 'Latest Post', 'brighter-blog' ), ], 'active_callback' => [ [ 'setting' => 'trending_post_enable', 'operator' => '==', 'value' => true, ], ], ] ); Kirki::add_field( 'theme_config', [ 'type' => 'custom', 'settings' => 'trending_post_pro_feature_upgrade', 'section' => 'trending_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' ) . '