예제 #1
0
 public function getMenuOptions()
 {
     $opts = array();
     $page = new PageRepository(new Page());
     $pageOpts = $page->lists();
     foreach ($pageOpts as $k => $v) {
         $opts['Page']['Grace\\Models\\Page-' . $k] = $v;
     }
     $photoGallery = new PhotoGalleryRepository(new PhotoGallery());
     $photoGalleryOpts = $photoGallery->lists();
     foreach ($photoGalleryOpts as $k => $v) {
         $opts['PhotoGallery']['Grace\\Models\\PhotoGallery-' . $k] = $v;
     }
     $menuOptions = array('General' => array('home' => 'Home', 'news' => 'News', 'blog' => 'Blog', 'project' => 'Project', 'faq' => 'Faq', 'contact' => 'Contact'), 'Page' => isset($opts['Page']) ? $opts['Page'] : array(), 'Photo Gallery' => isset($opts['PhotoGallery']) ? $opts['PhotoGallery'] : array());
     return $menuOptions;
 }
예제 #2
0
 public function getMenuOptions()
 {
     $opts = array();
     $page = new PageRepository(new Page());
     $pageOpts = $page->lists();
     foreach ($pageOpts as $k => $v) {
         $opts['Page']['Grace\\Models\\Page-' . $k] = $v;
     }
     $photoGallery = new PhotoGalleryRepository(new PhotoGallery());
     $photoGalleryOpts = $photoGallery->lists();
     foreach ($photoGalleryOpts as $k => $v) {
         $opts['PhotoGallery']['Grace\\Models\\PhotoGallery-' . $k] = $v;
     }
     $menuOptions = array('General' => array('home' => 'Home', 'news' => 'News', 'blog' => 'Blog', 'project' => 'Project', 'faq' => 'Faq', 'quilting-industry' => 'Quilting Industry', 'machine-quilting' => 'Machine Quilting', 'hand-quilting' => 'Hand Quilting', 'automated' => 'Automated', 'qnique' => 'Qnique', 'truecut' => 'True Cut', 'contact' => 'Contact'), 'Page' => isset($opts['Page']) ? $opts['Page'] : array(), 'Photo Gallery' => isset($opts['PhotoGallery']) ? $opts['PhotoGallery'] : array());
     return $menuOptions;
 }