$this->section_blog, 'title' => __( 'Blog Archive', 'bigshop' ), 'description' => __( 'WTBigshop Blog Section', 'bigshop' ), 'priority' => 25 ] ); Customize::add_controls( $this->section_blog, $this->get_controls() ); } /** * Get controls * @return array */ public function get_controls() { return apply_filters( 'wtbigshop_blog_controls', [ 'rt_blog_style' => [ 'type' => 'select', 'label' => __( 'Blog Style', 'bigshop' ), 'description' => __( 'This option works only for large device', 'bigshop' ), 'default' => 'default', 'choices' => [ 'default' => __( 'Default From Theme', 'bigshop' ), 'list' => __( 'List', 'bigshop' ), 'list-2' => __( 'List 2', 'bigshop' ), 'grid-2' => __( 'Grid 2', 'bigshop' ), 'grid-3' => __( 'Grid 3', 'bigshop' ), 'grid-4' => __( 'Grid 4', 'bigshop' ), ] ], 'rt_blog_column' => [ 'type' => 'select', 'label' => __( 'Grid Column', 'bigshop' ), 'description' => __( 'This option works only for large device', 'bigshop' ), 'default' => 'default', 'choices' => [ 'default' => __( 'Default From Theme', 'bigshop' ), 'col-lg-12' => __( '1 Column', 'bigshop' ), 'col-lg-6' => __( '2 Column', 'bigshop' ), 'col-lg-4' => __( '3 Column', 'bigshop' ), 'col-lg-3' => __( '4 Column', 'bigshop' ), ] ], 'rt_excerpt_limit' => [ 'type' => 'text', 'label' => __( 'Content Limit', 'bigshop' ), 'default' => '30', ], 'rt_meta_heading' => [ 'type' => 'heading', 'label' => __( 'Post Meta Settings', 'bigshop' ), ], 'rt_blog_meta_style' => [ 'type' => 'select', 'label' => __( 'Meta Style', 'bigshop' ), 'default' => 'meta-style-default', 'choices' => Fns::meta_style() ], 'rt_single_above_meta_style' => [ 'type' => 'select', 'label' => __( 'Title Above Meta Style', 'bigshop' ), 'default' => 'meta-style-dash', 'choices' => Fns::meta_style( [ 'meta-style-dash-bg', 'meta-style-pipe' ] ) ], 'rt_blog_meta' => [ 'type' => 'select2', 'label' => __( 'Choose Meta', 'bigshop' ), 'description' => __( 'You can sort meta by drag and drop', 'bigshop' ), 'placeholder' => __( 'Choose Meta', 'bigshop' ), 'multiselect' => true, 'default' => 'author,date,category', 'choices' => Fns::blog_meta_list(), ], 'rt_visibility' => [ 'type' => 'heading', 'label' => __( 'Visibility Section', 'bigshop' ), ], 'rt_meta_visibility' => [ 'type' => 'switch', 'label' => __( 'Meta Visibility', 'bigshop' ), 'default' => 1 ], 'rt_blog_above_meta_visibility' => [ 'type' => 'switch', 'label' => __( 'Title Above Meta Visibility', 'bigshop' ), ], 'rt_blog_content_visibility' => [ 'type' => 'switch', 'label' => __( 'Entry Content Visibility', 'bigshop' ), 'default' => 1 ], 'rt_blog_footer_visibility' => [ 'type' => 'switch', 'label' => __( 'Entry Footer Visibility', 'bigshop' ), 'default' => 1 ], ] ); } }