Header.class.php (1077B)
1 <?php 2 3 namespace template_engine\components; 4 5 use template_engine\components\html\Component; 6 use template_engine\element\Element; 7 8 class HeaderComponent extends Component 9 { 10 public $views; 11 12 public function createElement() 13 { 14 return new Element(null); 15 } 16 17 public function begin() 18 { 19 if(false) // DEACTIVATED 20 if (isset($this->views)) { 21 echo '<div class="headermenu">'; 22 23 foreach (explode(',', $this->views) as $view) { 24 echo '<div class="toolbar-icon clickable">'; 25 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 . '">'; 26 echo '<img src="./themes/default/images/icon/action/' . $view . '.svg" title="<?php echo lang(\'MENU_' . $view . '_DESC\') ?>" /><?php echo lang(\'MENU_' . $view . '\') ?>'; 27 echo '</a>'; 28 echo '</div>'; 29 } 30 echo '</div>'; 31 32 } 33 34 } 35 } 36 37 38 ?>