openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

Header.class.php (924B)


      1 <?php
      2 
      3 namespace template_engine\components;
      4 
      5 class HeaderComponent extends Component
      6 {
      7     public $views;
      8 
      9     public function begin()
     10     {
     11         if(false) // DEACTIVATED
     12         if (isset($this->views)) {
     13             echo '<div class="headermenu">';
     14 
     15             foreach (explode(',', $this->views) as $view) {
     16                 echo '<div class="toolbar-icon clickable">';
     17                 echo '<a href="javascript:void(0);" title="<?php echo lang(\'MENU_' . strtoupper($view ). '\') ?>" data-type="dialog" data-name="<?php echo lang(\'MENU_' . strtoupper($view ). '\') ?>" data-method="' . $view . '">';
     18                 echo '<img src="./themes/default/images/icon/action/' . $view . '.svg" title="<?php echo lang(\'MENU_' . $view . '_DESC\') ?>" /><?php echo lang(\'MENU_' . $view . '\') ?>';
     19                 echo '</a>';
     20                 echo '</div>';
     21             }
     22             echo '</div>';
     23 
     24         }
     25 
     26     }
     27 }
     28 
     29 
     30 ?>