Any panel you have added can have a number of classes applied. Of course you are can use those classes in other circumstances too.
Inheritance: extends View
示例#1
0
文件: Login.php 项目: xepan/base
 function init()
 {
     parent::init();
     $company_m = $this->add('xepan\\base\\Model_ConfigJsonModel', ['fields' => ['company_name' => "Line", 'company_owner' => "Line", 'mobile_no' => "Line", 'company_email' => "Line", 'company_address' => "Line", 'company_pin_code' => "Line", 'company_description' => "xepan\\base\\RichText", 'company_logo_absolute_url' => "Line", 'company_twitter_url' => "Line", 'company_facebook_url' => "Line", 'company_google_url' => "Line", 'company_linkedin_url' => "Line"], 'config_key' => 'COMPANY_AND_OWNER_INFORMATION', 'application' => 'communication']);
     // $company_m->add('xepan\hr\Controller_ACL');
     $company_m->tryLoadAny();
     $this->template->trySet('company_name', $company_m['company_name']);
 }
示例#2
0
 function init()
 {
     parent::init();
     if ($this->template->hasTag('UserMenu')) {
         if (isset($this->app->auth)) {
             $u = $this->add('Menu_Horizontal', null, 'UserMenu');
             $u->addMenu('John Smith')->addItem('Logout', 'logout');
         } else {
             $this->template->tryDel('UserMenu');
             $this->template->tryDel('user_icon');
         }
     }
 }
示例#3
0
文件: Fluid.php 项目: samratcis/atk4
 function init()
 {
     parent::init();
     if ($this->template->hasTag('UserMenu')) {
         if (isset($this->app->auth)) {
             $this->user_menu = $this->add('Menu_Horizontal', null, 'UserMenu');
             $this->user_menu->addMenu($this->app->auth->model[$this->app->auth->model->title_field])->addItem('Logout', 'logout');
         } else {
             $this->template->tryDel('UserMenu');
             $this->template->tryDel('user_icon');
         }
     }
 }
示例#4
0
 function init()
 {
     parent::init();
     $this->api->jui->addStaticStylesheet('bootstrap.min', '.css');
     $this->api->jui->addStaticStylesheet('animate.min', '.css');
     $this->api->jui->addStaticStylesheet('font-awesome.min', '.css');
     $this->api->jui->addStaticStylesheet('lightbox', '.css');
     $this->api->jui->addStaticStylesheet('main', '.css');
     $this->api->jui->addStaticStylesheet('responsive', '.css');
     $this->api->jui->addStaticStylesheet('presets/preset1', '.css');
     $this->api->jui->addStaticInclude('http://maps.google.com/maps/api/js?sensor=true', '.css', '.js');
     $this->api->jui->addStaticInclude('highcharts', '.js');
     $this->api->jui->addStaticInclude('map', '.js');
     $this->api->jui->addStaticInclude('in-all', '.js');
     $this->js(true)->_load('bootstrap.min');
     $this->js(true)->_load('wow.min');
     $this->js(true)->_load('mousescroll');
     $this->js(true)->_load('smoothscroll');
     $this->js(true)->_load('jquery.countTo');
     $this->js(true)->_load('lightbox.min');
     $this->js(true)->_load('main');
     $this->js(true)->_load('svc');
 }
示例#5
0
 function setModel($model)
 {
     $model->reload();
     parent::setModel($model);
     $this->template->set('member_since', date('M, Y', strtotime($model['created_at'])));
 }