public function set_file_path($file = 0) { $this->file = wt_get_default_theme_path() . "/" . $file; }
function wt_get_themes_files() { $path = wt_get_default_theme_path(); $files = array(); if (is_dir($path)) { if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && strpos($file, "tpl.php")) { if (is_file($path . "/" . $file)) { $files[] = $file; } } } closedir($handle); } } return $files; }