Exemplo n.º 1
0
 /**
  * Layout() - Constructor
  */
 function GForgeLayout($root)
 {
     // Constructor for parent class...
     //# if ( file_exists($GLOBALS['sys_custom_path'] . '/index_std.php') )
     //#	$this->rootindex = $GLOBALS['sys_custom_path'] . '/index_std.php';
     parent::TabbedLayout($root);
     //determine font for this platform
     if (browser_is_windows() && browser_is_ie()) {
         //ie needs smaller fonts
         $this->FONTSIZE = 'x-small';
         $this->FONTSIZE_SMALLER = 'xx-small';
         $this->FONTSIZE_SMALLEST = '7pt';
     } else {
         if (browser_is_windows()) {
             //netscape on wintel
             $this->FONTSIZE = 'small';
             $this->FONTSIZE_SMALLER = 'x-small';
             $this->FONTSIZE_SMALLEST = 'x-small';
         } else {
             if (browser_is_mac()) {
                 //mac users need bigger fonts
                 $this->FONTSIZE = 'medium';
                 $this->FONTSIZE_SMALLER = 'small';
                 $this->FONTSIZE_SMALLEST = 'x-small';
             } else {
                 //linux and other users
                 $this->FONTSIZE = 'small';
                 $this->FONTSIZE_SMALLER = 'x-small';
                 $this->FONTSIZE_SMALLEST = 'xx-small';
             }
         }
     }
     $this->FONTSIZE_HTMLBOX_TITLE = $this->FONTSIZE;
 }
Exemplo n.º 2
0
 public static function getActiveMap()
 {
     return ['list' => [TabbedLayout::listing()], 'create' => [TabbedLayout::create()], 'update' => [TabbedLayout::update()], 'view' => [TabbedLayout::view()]];
 }
Exemplo n.º 3
0
 public static function layout(array $active = [])
 {
     $nav_bar = parent::layout(array_merge($active));
     $nav_bar[self::place_left_sub_tabs] = static::getLeftSubTabs($active);
     return $nav_bar;
 }