static function includeFileFromDir($path, $fileExclude = array()) { $file = ThemeFile::scanDir($path); if ($file === false) { return false; } foreach ($file as $value) { if (in_array($value, $fileExclude)) { continue; } self::includeFile($path . $value); } return true; }
function getIcon() { $file = ThemeFile::scanDir(THEME_PATH_MEDIA . 'image/public/icon_menu/'); return $file; }