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; }
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"); }