static function pageMenu()
 {
     $parent = '';
     $pages = mythemes_cfg::get_pages();
     $pageCB = array('mythemes_admin', 'displayPage');
     foreach ($pages as $slug => &$d) {
         if (isset($d['menu'])) {
             $m = $d['menu'];
             if (strlen($parent) == 0) {
                 add_theme_page($m['label'], $m['label'], 'administrator', $slug, $pageCB);
                 $parent = $slug;
             }
         }
     }
 }
<?php

$pages = mythemes_cfg::get_pages();
$cols = array();
$boxes = array();
$sett = array();
$pages['mythemes-materialize-faq'] = array('menu' => array('label' => __('Materialize FAQ', 'materialize')), 'cols' => &$cols, 'boxes' => &$boxes, 'sett' => &$sett);
mythemes_cfg::set_pages($pages);
$is_enb_fp = get_option('show_on_front') == 'page';
$content = array('left', 'full', 'right');
$sidebars = array('main-sidebar' => __('Main Sidebar', 'materialize'), 'front-page-sidebar' => __('Front Page Sidebar', 'materialize'), 'page-sidebar' => __('Default Page Sidebar', 'materialize'), 'post-sidebar' => __('Default Post Sidebar', 'materialize'), 'special-page-sidebar' => __('Special Page Sidebar', 'materialize'));
$sett['author-link'] = array('type' => array('validator' => 'copyright'));
mythemes_cfg::set_sett(array_merge(mythemes_cfg::get_sett(), $sett));