shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

style.php (1205B)


      1 <?php
      2 
      3 class ModelExtensionDAdminStyleStyle extends Model
      4 {
      5 
      6     public function getStyles($theme_name)
      7     {
      8         $this->getAdminStyle($theme_name);
      9     }
     10 
     11     public function getAdminStyle($theme_name)
     12     {
     13         $this->document->addStyle('view/stylesheet/d_bootstrap_extra/bootstrap.css');
     14         $this->document->addScript('view/javascript/d_bootstrap_switch/js/bootstrap-switch.min.js');
     15         $this->document->addStyle('view/javascript/d_bootstrap_switch/css/bootstrap-switch.css');
     16         //todo add only on ie asdasdssd
     17         $this->document->addStyle('view/stylesheet/d_admin_style/core/normalize/normalize.css');
     18         $this->document->addStyle('view/stylesheet/d_admin_style/themes/' . $theme_name . '/' . $theme_name . '.css');
     19 
     20     }
     21 
     22     public function getAvailableThemes()
     23     {
     24         $dir = DIR_APPLICATION . 'view/stylesheet/d_admin_style/themes';
     25         $name_dirs = scandir($dir);
     26         return array_diff($name_dirs, array('.', '..'));
     27     }
     28 
     29     public function getLanguageText($data)
     30     {
     31         $this->language->load('extension/d_admin_style/style');
     32         $data['entry_admin_style'] = $this->language->get('entry_admin_style');
     33         return $data;
     34     }
     35 }