lib/ThemeOption/Menu/Blog.php
/**
	     *
	     * This method is used to add
	     * sections and controls inside menu page.
	     *
	     * @return void
	     * @access protected
	     */
This method is used to add
sections and controls inside menu page.

@return void
@access protected
This method is used to add sections and controls inside menu page . @return void @access protected
protected function createMenu() {
		    $this->setName( 'blog' );
		    $this->setLabel( Translate::translate( 'Blog' ) );
		    $this->setIcon( 'font-awesome:fa-pencil' );
		    $section = new Section( 'list' );
		    $section->setLabel( Translate::translate( 'Posts list' ) );
            $section->setDescription( Translate::translate( 'Archive view: Category, Tag.' ) );
            $select = new Select( 'blog_list_layout' );
            $select->setLabel( Translate::translate( 'Default layout' ) );
            $select->setOptions(
                array(
                    array(
                        'label' => Translate::translate( 'list view' ),
                        'value' => 'list',
                    ),
                    array(
                        'label' => Translate::translate( 'grid (1 column)' ),
                        'value' => 'grid1',
                    ),
                    array(
                        'label' => Translate::translate( 'grid (2 columns)' ),
                        'value' => 'grid2',
                    ),
                    array(
                        'label' => Translate::translate( 'grid (3 columns, recommended only if you do not use sidebar)' ),
                        'value' => 'grid3',
                    )
                )
            );
            $select->setDefault( 'list' );
            $section->addControl( $select );
		    $toggle = new Toggle( 'blog_list_author' );
		    $toggle->setLabel( Translate::translate( 'Show author' ) . ':' );
            $toggle->setDescription( Translate::translate( 'Layout: GRID' ) );
		    $section->addControl( $toggle );
		    $this->addControl( $section );
		    $section = new Section( 'item' );
		    $section->setLabel( Translate::translate( 'Single Post' ) );
		    $toggle = new Toggle( 'blog_item_author' );
		    $toggle->setLabel( Translate::translate( 'Show author' ) . ':' );
		    $section->addControl( $toggle );
		    $this->addControl( $section );
	    }
protected function createMenu ( ) { $ this -> setName ( 'blog' ) ; $ this -> setLabel ( Translate :: translate ( 'Blog' ) ) ; $ this -> setIcon ( 'font-awesome:fa-pencil' ) ; $ section = new Section ( 'list' ) ; $ section -> setLabel ( Translate :: translate ( 'Posts list' ) ) ; $ section -> setDescription ( Translate :: translate ( 'Archive view: Category, Tag.' ) ) ; $ select = new Select ( 'blog_list_layout' ) ; $ select -> setLabel ( Translate :: translate ( 'Default layout' ) ) ; $ select -> setOptions ( array ( array ( 'label' => Translate :: translate ( 'list view' ) , 'value' => 'list' , ) , array ( 'label' => Translate :: translate ( 'grid (1 column)' ) , 'value' => 'grid1' , ) , array ( 'label' => Translate :: translate ( 'grid (2 columns)' ) , 'value' => 'grid2' , ) , array ( 'label' => Translate :: translate ( 'grid (3 columns, recommended only if you do not use sidebar)' ) , 'value' => 'grid3' , ) ) ) ; $ select -> setDefault ( 'list' ) ; $ section -> addControl ( $ select ) ; $ toggle = new Toggle ( 'blog_list_author' ) ; $ toggle -> setLabel ( Translate :: translate ( 'Show author' ) . ':' ) ; $ toggle -> setDescription ( Translate :: translate ( 'Layout: GRID' ) ) ; $ section -> addControl ( $ toggle ) ; $ this -> addControl ( $ section ) ; $ section = new Section ( 'item' ) ; $ section -> setLabel ( Translate :: translate ( 'Single Post' ) ) ; $ toggle = new Toggle ( 'blog_item_author' ) ; $ toggle -> setLabel ( Translate :: translate ( 'Show author' ) . ':' ) ; $ section -> addControl ( $ toggle ) ; $ this -> addControl ( $ section ) ; }
This method is used to add
 sections and controls inside menu page.
This method is used to add sections and controls inside menu page .
#sectionlist #endsectionlist #sectionitem #endsectionitem