PageRenderTime 34ms CodeModel.GetById 8ms RepoModel.GetById 1ms app.codeStats 0ms

/baser/views/elements/admin/submenu.php

https://github.com/hashing/basercms
PHP | 35 lines | 17 code | 0 blank | 18 comment | 2 complexity | de7ef47db4f7572d17742f8fc8939eb9 MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [PUBLISH] サブメニュー
  5. *
  6. * PHP versions 4 and 5
  7. *
  8. * baserCMS : Based Website Development Project <http://basercms.net>
  9. * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
  10. *
  11. * @copyright Copyright 2008 - 2012, baserCMS Users Community
  12. * @link http://basercms.net baserCMS Project
  13. * @package baser.views
  14. * @since baserCMS v 2.0.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. if(!empty($user)) {
  21. $elementPath = 'submenus'.DS;
  22. if (!empty($subMenuElements)){ ?>
  23. <div id="SubMenu" class="clearfix">
  24. <table class="sub-menu">
  25. <?php
  26. foreach ($subMenuElements as $subMenuElement){
  27. $bcBaser->element($elementPath.$subMenuElement);
  28. }
  29. ?>
  30. </table>
  31. </div>
  32. <?php
  33. }
  34. }
  35. ?>