Пример #1
0
 private function isIgnoredWidget($arr, $val)
 {
     if (JwtUtil::endsWith($val, '__LAYOUT__')) {
         $val = str_replace("__LAYOUT__", "", $val);
     }
     foreach ($arr as $value) {
         if ($value == $val) {
             return true;
         }
     }
     return false;
 }
Пример #2
0
 public function getTemplate($name)
 {
     if (JwtUtil::endsWith($name, '__LAYOUT__')) {
         $name = str_replace("__LAYOUT__", "", $name);
         return JwtUtil::getContent($this->rootPath . "Scripts/Layouts/{$name}/{$name}.html");
     }
     return JwtUtil::getContent($this->rootPath . "Scripts/Components/{$name}/{$name}.html");
 }