PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/views/elements/admin/header.php

https://github.com/hashing/basercms
PHP | 48 lines | 27 code | 3 blank | 18 comment | 7 complexity | c98afa7b4ad36a916015c9dc3a6cf59e MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [ADMIN] ヘッダー
  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. ?>
  21. <div id="Header" class="clearfix">
  22. <?php $bcBaser->element('toolbar') ?>
  23. <?php if($this->name == 'Installations' || $this->params['url']['url'] == 'admin/users/login' || $bcAdmin->isAdminGlobalmenuUsed()): ?>
  24. <div class="clearfix" id="HeaderInner">
  25. <?php if(!empty($user)): ?>
  26. <div id="GlobalMenu">
  27. <ul class="clearfix">
  28. <li><?php $bcBaser->link($bcBaser->getImg('admin/btn_header_menu_1.png', array('width' => 118, 'height' => 26, 'alt' => '固定ページ管理', 'class' => 'btn', 'title' => '固定ページ管理')), array('plugin' => '', 'controller' => 'pages', 'action' => 'index')) ?></li>
  29. <li><?php $bcBaser->link($bcBaser->getImg('admin/btn_header_menu_2.png', array('width' => 123, 'height' => 26, 'alt' => 'ウィジェット管理', 'class' => 'btn', 'title' => 'ウィジェット管理')), array('plugin' => '', 'controller' => 'widget_areas', 'action' => 'index')) ?></li>
  30. <li><?php $bcBaser->link($bcBaser->getImg('admin/btn_header_menu_4.png', array('width' => 98, 'height' => 26, 'alt' => 'テーマ管理', 'class' => 'btn', 'title' => 'テーマ管理')), array('plugin' => '', 'controller' => 'themes', 'action' => 'index')) ?></li>
  31. <li><?php $bcBaser->link($bcBaser->getImg('admin/btn_header_menu_3.png', array('width' => 120, 'height' => 26, 'alt' => 'プラグイン管理', 'class' => 'btn', 'title' => 'プラグイン管理')), array('plugin' => '', 'controller' => 'plugins', 'action' => 'index')) ?></li>
  32. <li><?php $bcBaser->link($bcBaser->getImg('admin/btn_header_menu_5.png', array('width' => 104, 'height' => 26, 'alt' => 'システム管理', 'class' => 'btn', 'title' => 'システム管理')), array('plugin' => '', 'controller' => 'site_configs', 'action' => 'form')) ?></li>
  33. </ul>
  34. </div>
  35. <?php endif ?>
  36. <div id="Logo">
  37. <?php if(!empty($user)): ?>
  38. <?php $bcBaser->link($bcBaser->getImg('admin/logo_header.png', array('width' => 153, 'height' => 30, 'alt' => 'baserCMS')), array('plugin' => null, 'controller' => 'dashboard', 'action' => 'index')) ?>
  39. <?php else: ?>
  40. <?php $bcBaser->img('admin/logo_header.png', array('width' => 153, 'height' => 30, 'alt' => 'baserCMS')) ?>
  41. <?php endif ?>
  42. </div>
  43. </div>
  44. <?php endif ?>
  45. <!-- / #Header .clearfix --></div>