index.php 600 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. include_once 'pquery.config.php';
  3. include_once PQUERY_ROOT.'pquery.php';
  4. __p::require_plugins('template', 'sql');
  5. __tpl::set_root('templates');
  6. $menu = array(
  7. array('Pagina\'s', 'pages'),
  8. array('Nieuws', 'news'),
  9. array('Foto\'s', 'photos'),
  10. array('Accounts', 'accounts'),
  11. array('Instellingen', 'settings'),
  12. array('Uitloggen', 'logout')
  13. );
  14. $layout = _tpl('layout');
  15. foreach( $menu as $i => $item ) {
  16. list($title, $icon) = $item;
  17. $item = $layout->data->add('menu')->set(array('title' => $title, 'icon' => $icon));
  18. $i || $item->set('active', 'active');
  19. }
  20. echo $layout->parse();
  21. ?>