コード例 #1
0
 /**
  * Return current theme
  *
  * @return waTheme
  */
 public function getTheme()
 {
     if ($this->theme == null) {
         $this->theme = new waTheme(waRequest::getTheme());
     }
     return $this->theme;
 }
コード例 #2
0
 private function getTheme()
 {
     if ($this->theme == null) {
         $theme = waRequest::getTheme();
         if (strpos($theme, ':') !== false) {
             list($app_id, $theme) = explode(':', $theme, 2);
         } else {
             $app_id = null;
         }
         $this->theme = new waTheme($theme, $app_id);
     }
     return $this->theme;
 }