manager->get_setting( Bizline_Helper::with_prefix( 'home-team-status' ) )->value(); return $value; } endif; function bizline_front_page_team_options(){ Bizline_Customizer::set(array( # Front Page option 'panel' => array( 'id' => 'front-panel' ), # Front Page Option > Header 'section' => array( 'id' => 'home-team', 'title' => esc_html__( 'Team','bizline' ), 'priority' => 5 ), # Front Page Option > Header > settings 'fields' => array( array( 'id' => 'home-team-status', 'label' => esc_html__( 'Display Team', 'bizline' ), 'default' => false, 'type' => 'toggle', ), array( 'id' => 'home-team-title', 'label' => esc_html__( 'Title', 'bizline' ), 'default' => esc_html__( 'Our Team', 'bizline' ), 'partial' =>array( 'selector' => 'h2.team-title', ), 'active_callback' => 'acb_front_team', 'type' => 'text', ), array( 'id' => 'home-team-one', 'label' => esc_html__( 'Team 1', 'bizline' ), 'default' => 0, 'active_callback' => 'acb_front_team', 'type' => 'dropdown-pages', ), array( 'id' => 'home-teampos-1', 'label' => esc_html__( 'Position 1', 'bizline' ), 'active_callback' => 'acb_front_team', 'type' => 'text', ), array( 'id' => 'home-team-two', 'label' => esc_html__( 'Team 2', 'bizline' ), 'default' => 0, 'active_callback' => 'acb_front_team', 'type' => 'dropdown-pages', ), array( 'id' => 'home-teampos-2', 'label' => esc_html__( 'Position 2', 'bizline' ), 'active_callback' => 'acb_front_team', 'type' => 'text', ), array( 'id' => 'home-team-three', 'label' => esc_html__( 'Team 3', 'bizline' ), 'default' => 0, 'active_callback' => 'acb_front_team', 'type' => 'dropdown-pages', ), array( 'id' => 'home-teampos-3', 'label' => esc_html__( 'Position 3', 'bizline' ), 'active_callback' => 'acb_front_team', 'type' => 'text', ), array( 'id' => 'home-team-four', 'label' => esc_html__( 'Team 4', 'bizline' ), 'default' => 0, 'active_callback' => 'acb_front_team', 'type' => 'dropdown-pages', ), array( 'id' => 'home-teampos-4', 'label' => esc_html__( 'Position 4', 'bizline' ), 'active_callback' => 'acb_front_team', 'type' => 'text', ), ), )); } add_action( 'init', 'bizline_front_page_team_options' );