private static function isPro($element) { require_once __DIR__ . '/functions.php'; if (!($version = nnFrameworkFunctions::getXMLValue('version', $element))) { return false; } return stripos($version, 'PRO') !== false; }
public static function getXMLVersion($alias, $urlformat = false, $type = 'component', $folder = 'system') { require_once __DIR__ . '/functions.php'; if (!($version = nnFrameworkFunctions::getXMLValue('version', $alias, $type, $folder))) { return ''; } $version = trim($version); if (!$urlformat) { return $version; } return $version . '?v=' . strtolower(str_replace(array('FREE', 'PRO'), array('f', 'p'), $version)); }