Extensions/WordPress/Options/OptionsPage.php
private function create_page()
    {
        $self = $this;
        $page = new \Amarkal\Extensions\WordPress\Admin\AdminPage(array(
            'title'         => $this->config->sidebar_title,
            'icon'          => $this->config->sidebar_icon,
            'class'         => $this->config->sidebar_icon_class,
            'style'         => $this->config->sidebar_icon_style
        ));
        foreach( $this->config->sections as $section )
        {
            $page->add_page(array(
                'title'         => $section->title,
                'capability'    => 'manage_options',
                'content'       => function() use ( $self ) { $self->render(); }
            ));
        }
        return $page;
    }
private function create_page()
    {
        $self = $this;
        $page = new \Amarkal\Extensions\WordPress\Admin\AdminPage(array(
            'title'         => $this->config->sidebar_title,
            'icon'          => $this->config->sidebar_icon,
            'class'         => $this->config->sidebar_icon_class,
            'style'         => $this->config->sidebar_icon_style
        ));
        foreach( $this->config->sections as $section )
        {
            $page->add_page(array(
                'title'         => $section->title,
                'capability'    => 'manage_options',
                'content'       => function() use ( $self ) { $self->render(); }
            ));
        }
        return $page;
    }
private function create_page ( ) { $ self = $ this ; $ page = new \ Amarkal \ Extensions \ WordPress \ Admin \ AdminPage ( array ( 'title' => $ this -> config -> sidebar_title , 'icon' => $ this -> config -> sidebar_icon , 'class' => $ this -> config -> sidebar_icon_class , 'style' => $ this -> config -> sidebar_icon_style ) ) ; foreach ( $ this -> config -> sections as $ section ) { $ page -> add_page ( array ( 'title' => $ section -> title , 'capability' => 'manage_options' , 'content' => function ( ) use ( $ self ) { $ self -> render ( ) ; } ) ) ; } return $ page ; }
Create a new AdminPage.

@return \Amarkal\Extensions\WordPress\Admin\AdminPage
Create a new AdminPage .