public static function loadtemplate($module, $owner, $file) { global $config; $template = is_file(ROOT_PATH . SKIN . "{$config['skin']}/{$module}/{$file}") ? $module : $owner; return cms::loadfile(ROOT_PATH . SKIN . "{$config['skin']}/{$template}/{$file}"); }