lib/ThemeOption/Menu/Layout.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( 'layout' );
            $this->setLabel( Translate::translate( 'Styles and layout' ) );
            $this->setIcon( 'font-awesome:fa-home' );
            $toggle = new Toggle( 'friendly_date_format' );
            $toggle->setLabel( Translate::translate( 'Friendly date format' ) );
            $toggle->setDescription( Translate::translate( 'CuteTime plugin changes date format from "2009-10-25" to "2 days ago".' ) );
            $toggle->setDefault( 0 );
            $this->addControl( $toggle );
            $sidebar = new SidebarPosition( 'pages_sidebar' );
            $sidebar->setLabel( Translate::translate( 'Pages sidebar' ) );
            $sidebar->setDescription( Translate::translate( 'Default position for new Page.' ) );
            $this->addControl( $sidebar );
            $sidebar = new SidebarPosition( 'blogposts_sidebar' );
            $sidebar->setLabel( Translate::translate( 'Blog sidebar' ) );
            $sidebar->setDescription( Translate::translate( 'Default position for new Post, Posts Page and Search.' ) );
            $this->addControl( $sidebar );
            $css = new CodeEditor( 'custom_css' );
            $css->setLabel( Translate::translate( 'Custom CSS' ) );
            $css->setTheme( 'github' );
            $css->setMode( 'css' );
            $this->addControl( $css );
        }
protected function createMenu ( ) { $ this -> setName ( 'layout' ) ; $ this -> setLabel ( Translate :: translate ( 'Styles and layout' ) ) ; $ this -> setIcon ( 'font-awesome:fa-home' ) ; $ toggle = new Toggle ( 'friendly_date_format' ) ; $ toggle -> setLabel ( Translate :: translate ( 'Friendly date format' ) ) ; $ toggle -> setDescription ( Translate :: translate ( 'CuteTime plugin changes date format from "2009-10-25" to "2 days ago".' ) ) ; $ toggle -> setDefault ( 0 ) ; $ this -> addControl ( $ toggle ) ; $ sidebar = new SidebarPosition ( 'pages_sidebar' ) ; $ sidebar -> setLabel ( Translate :: translate ( 'Pages sidebar' ) ) ; $ sidebar -> setDescription ( Translate :: translate ( 'Default position for new Page.' ) ) ; $ this -> addControl ( $ sidebar ) ; $ sidebar = new SidebarPosition ( 'blogposts_sidebar' ) ; $ sidebar -> setLabel ( Translate :: translate ( 'Blog sidebar' ) ) ; $ sidebar -> setDescription ( Translate :: translate ( 'Default position for new Post, Posts Page and Search.' ) ) ; $ this -> addControl ( $ sidebar ) ; $ css = new CodeEditor ( 'custom_css' ) ; $ css -> setLabel ( Translate :: translate ( 'Custom CSS' ) ) ; $ css -> setTheme ( 'github' ) ; $ css -> setMode ( 'css' ) ; $ this -> addControl ( $ css ) ; }
This method is used to add
 sections and controls inside menu page.
This method is used to add sections and controls inside menu page .
//$sidebar->removeOption( 1 ); // remove left sidebar option //$sidebar->removeOption( 1 ); // remove left sidebar option