$this->section_blog_single, 'title' => __( 'Single Blog', 'bigshop' ), 'description' => __( 'WTBigshop Blog Single Section', 'bigshop' ), 'priority' => 26 ] ); Customize::add_controls( $this->section_blog_single, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'wtbigshop_single_controls', [ 'rt_single_post_style' => [ 'type' => 'select', 'label' => __( 'Post View Style', 'bigshop' ), 'default' => '1', 'choices' => Fns::single_post_style() ], 'rt_single_meta' => [ 'type' => 'select2', 'label' => __( 'Choose Single Meta', 'bigshop' ), 'description' => __( 'You can sort meta by drag and drop', 'bigshop' ), 'placeholder' => __( 'Choose Meta', 'bigshop' ), 'multiselect' => true, 'default' => 'author,date,category,comment', 'choices' => Fns::blog_meta_list(), ], 'rt_single_meta_style' => [ 'type' => 'select', 'label' => __( 'Meta Style', 'bigshop' ), 'default' => 'meta-style-default', 'choices' => Fns::meta_style() ], 'rt_single_visibility_heading' => [ 'type' => 'heading', 'label' => __( 'Visibility Section', 'bigshop' ), ], 'rt_single_meta_visibility' => [ 'type' => 'switch', 'label' => __( 'Meta Visibility', 'bigshop' ), 'default' => 1 ], 'rt_single_above_meta_visibility' => [ 'type' => 'switch', 'label' => __( 'Above Meta Visibility', 'bigshop' ), ], 'rt_single_tag_visibility' => [ 'type' => 'switch', 'label' => __( 'Tag Visibility', 'bigshop' ), ], 'rt_single_share_visibility' => [ 'type' => 'switch', 'label' => __( 'Share Visibility', 'bigshop' ), ], 'rt_post_share' => [ 'type' => 'select2', 'label' => __( 'Choose Share Media', 'bigshop' ), 'description' => __( 'You can sort meta by drag and drop', 'bigshop' ), 'placeholder' => __( 'Choose Media', 'bigshop' ), 'multiselect' => true, 'default' => 'facebook,twitter,linkedin', 'choices' => Fns::post_share_list(), 'condition' => [ 'rt_single_share_visibility' ] ], 'rt_post_single_related_heading' => [ 'type' => 'heading', 'label' => __( 'Post Single Related Option', 'bigshop' ), ], 'rt_post_related' => [ 'type' => 'switch', 'label' => __( 'Related Visibility', 'bigshop' ), 'default' => 0 ], 'rt_post_related_title' => [ 'type' => 'text', 'label' => __( 'Post Related Title', 'bigshop' ), 'default' => __( 'Related Post', 'bigshop' ), 'condition' => [ 'rt_post_related' ] ], 'rt_post_related_limit' => [ 'type' => 'number', 'label' => __( 'Related Item Limit', 'bigshop' ), 'default' => 4, 'condition' => [ 'rt_post_related' ] ], 'rt_post_related_query' => [ 'type' => 'select', 'label' => __( 'Query Type', 'bigshop' ), 'description' => __( 'Post Query Type', 'bigshop' ), 'default' => 'cat', 'choices' => [ 'cat' => esc_html__( 'Posts in the same Categories', 'bigshop' ), 'tag' => esc_html__( 'Posts in the same Tags', 'bigshop' ), 'author' => esc_html__( 'Posts by the same Author', 'bigshop' ), ], 'condition' => [ 'rt_post_related' ] ], 'rt_post_related_sort' => [ 'type' => 'select', 'label' => __( 'Sort Order', 'bigshop' ), 'description' => __( 'Display Post Order', 'bigshop' ), 'default' => 'recent', 'choices' => [ 'recent' => esc_html__( 'Recent Posts', 'bigshop' ), 'rand' => esc_html__( 'Random Posts', 'bigshop' ), 'modified' => esc_html__( 'Last Modified Posts', 'bigshop' ), 'popular' => esc_html__( 'Most Commented posts', 'bigshop' ), 'views' => esc_html__( 'Most Viewed posts', 'bigshop' ), ], 'condition' => [ 'rt_post_related' ] ], ] ); } }