3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
21 * Display the CiviCRM version
24 * The version is {crmVersion}.
26 * {crmVersion redact=auto assign=ver}The version is {$ver}.
34 function smarty_function_crmVersion($params, &$smarty) {
35 $version = CRM_Utils_System
::version();
37 if (!CRM_Core_Permission
::check('access CiviCRM')) {
38 $version = CRM_Utils_System
::majorVersion();
41 if (isset($params['assign'])) {
42 $smarty->assign($params['assign'], $version);