$fileName * @return - file path , false if not exists */ public static function getFilePath($fileName=''){ if(empty($fileName)) { return false; } $filePath = self::getBaseJavaScriptPath() . '/' . $fileName; $completeFilePath = Vtiger_Loader::resolveNameToPath('~'.$filePath); if(file_exists($completeFilePath)){ return $filePath; } return false; } /** * Function to get the Base Theme Path, until theme folder not selected theme folder * @return - theme folder */ public static function getBaseJavaScriptPath(){ return 'layouts'. '/' . self::getLayoutName(); } }