Controls_Manager::CHOOSE, 'label' => __( 'Type', 'wts-eae' ), 'default' => 'icon', 'options' => [ 'icon' => [ 'title' => __( 'Fontawesome Icon', 'wts-eae' ), 'icon' => 'fa fa-font-awesome', ], 'image' => [ 'title' => __( 'Custom Icons', 'wts-eae' ), 'icon' => 'fa fa-image', ], 'text' => [ 'title' => __( 'Text', 'wts-eae' ), 'icon' => 'fa fa-font', ], ], 'label_block' => false, 'toggle' => false, 'condition' => [ 'eae_icon!' => '' ] ]; $controls['icon'] = [ 'label' => __( 'Icon', 'wts-eae' ), 'type' => Controls_Manager::ICON, 'default' => 'fa fa-star', 'condition' => [ 'eae_icon!' => '', 'icon_type' => 'icon' ], ]; $controls['image'] = [ 'label' => __( 'Custom Icon', 'wts-eae' ), 'type' => Controls_Manager::MEDIA, 'label_block' => false, 'condition' => [ 'eae_icon!' => '', 'icon_type' => 'image' ], ]; $controls['text'] = [ 'label' => __( 'Text', 'wts-eae' ), 'type' => Controls_Manager::TEXT, 'label_block' => false, 'condition' => [ 'eae_icon!' => '', 'icon_type' => 'text' ], ]; /*$controls['view'] = [ 'label' => __( 'View', 'wts-eae' ), 'type' => Controls_Manager::SELECT, 'options' => [ //'default' => __( 'Default', 'wts-eae' ), 'stacked' => __( 'Stacked', 'wts-eae' ), //'framed' => __( 'Framed', 'wts-eae' ), ], 'default' => 'stacked', 'condition' => [ 'eae_icon!' => '', 'icon!' => '' ], ];*/ $controls['shape'] = [ 'label' => __( 'Shape', 'wts-eae' ), 'type' => Controls_Manager::SELECT, 'options' => [ 'circle' => __( 'Circle', 'wts-eae' ), 'square' => __( 'Square', 'wts-eae' ), ], 'default' => 'circle', 'condition' => [ 'eae_icon!' => '', 'icon!' => '' ], ]; return $controls; } protected function get_default_options() { return [ 'popover' => [ 'starter_title' => _x( 'Icon', 'wts-eae' ), 'starter_name' => 'eae_icon', 'starter_value' => 'yes', ] ]; } }