panel ='blog_bogo_panel'; $this->config_id ='blog_bogo_config_id'; $this->blog_bogo_panel(); $this->blog_bogo_sections(); } public function blog_bogo_panel(){ $this->add_panel( $this->panel, array( 'priority' => 30, 'title' => esc_attr__( 'Theme Options', 'blog-bogo' ), ) ); } public function blog_bogo_sections(){ $this->add_section( 'blog_bogo_layout', array( 'title' => esc_attr__( 'Layout Option','blog-bogo' ), 'panel' => $this->panel, 'priority' => 10, ) ); $this->add_field( $this->config_id, array( 'type' => 'select', 'settings' => '_page_layout', 'label' => esc_html__( 'Page Layout','blog-bogo' ), 'section' => 'blog_bogo_layout', 'default' => 'fixed', 'choices' => [ 'sidebar' => esc_html__( 'Sidebar','blog-bogo' ), 'no-sidebar' => esc_html__( 'No sidebar','blog-bogo' ), ], ) ); $this->add_field( $this->config_id, array( 'type' => 'select', 'settings' => '_blog_layout', 'label' => esc_html__( 'Blog / archive Layout','blog-bogo' ), 'section' => 'blog_bogo_layout', 'default' => 'sidebar', 'choices' => [ 'sidebar' => esc_html__( 'Sidebar','blog-bogo' ), 'no-sidebar' => esc_html__( 'No sidebar','blog-bogo' ), ], ) ); $this->add_field( $this->config_id, array( 'type' => 'select', 'settings' => '_single_layout', 'label' => esc_html__( 'Single Post Layout','blog-bogo' ), 'section' => 'blog_bogo_layout', 'default' => 'sidebar', 'choices' => [ 'sidebar' => esc_html__( 'Sidebar','blog-bogo' ), 'no-sidebar' => esc_html__( 'No sidebar','blog-bogo' ), ], ) ); $this->add_section( 'blog_bogo_blog_option', array( 'title' => esc_attr__( 'Blog Option','blog-bogo' ), 'panel' => $this->panel, 'priority' => 10, ) ); $this->add_field( $this->config_id, array( 'type' => 'select', 'settings' => '_blog_post_style', 'label' => esc_html__( 'Blog / Archive posts','blog-bogo' ), 'section' => 'blog_bogo_blog_option', 'default' => 'sidebar', 'choices' => [ 'list' => esc_html__( 'List','blog-bogo' ), 'grid-2' => esc_html__( '2 Columns Grid','blog-bogo' ), 'grid-3' => esc_html__( '3 Columns Grid','blog-bogo' ), 'grid-4' => esc_html__( '4 Columns Grid','blog-bogo' ), 'list-grid' => esc_html__( '1 list and 2 Columns Grid','blog-bogo' ), 'list-grid-infinite' => esc_html__( '1 list and 2 Columns Grid ( infinite loop )','blog-bogo' ), ], ) ); $this->add_field( $this->config_id, array( 'type' => 'select', 'settings' => '_blog_post_content', 'label' => esc_html__( 'Blog / Archive content','blog-bogo' ), 'section' => 'blog_bogo_blog_option', 'default' => 'sidebar', 'choices' => [ 'excerpt' => esc_html__( 'Excerpt','blog-bogo' ), 'content' => esc_html__( 'Content','blog-bogo' ), ], ) ); $this->add_field( $this->config_id, array( 'type' => 'text', 'settings' => '_readmore_text', 'label' => esc_html__( 'Read More Text','blog-bogo' ), 'section' => 'blog_bogo_blog_option', 'default' => esc_html__( 'Read More','blog-bogo' ), 'description' => esc_attr__( 'leave empty to hide','blog-bogo' ), ) ); $this->add_section( 'blog_bogo_copyright', array( 'title' => esc_attr__( 'Copyright','blog-bogo' ), 'panel' => $this->panel, 'priority' => 10, ) ); $this->add_field( $this->config_id, array( 'type' => 'text', 'settings' => '_copyright', 'label' => esc_html__( 'Copyright','blog-bogo' ), 'section' => 'blog_bogo_copyright', 'default' => esc_html__( 'Copyright @ 2017, Blog Bogo .All Rights Reserved','blog-bogo' ), ) ); } } Blog_Bogo_Kirki::instance(); endif;