Global Template Variables

This article describes what data is available to all Front-end Templates in Aurora.

🚧

This does not include templates loaded via AJAX interfaces in order to achieve optimal performance.

Variable NameTypeDescription
$aurora_site_nameStringThe domain name currently configured in the Aurora Database for the site being viewed, e.g. "www.aurorademo.co.uk".
$pathArray [ String ]Contains a list of the folder paths from the URL.

Learn more here.
$pageTypeStringContains a string to represent the main area of the site a user might be on.

Learn more here.
$basketItemsIntegerThis is a count of the number of items in the visitors current basket.
$currency_optionsArray [ $currency ]An array of all available currencies and their data.
$currencyContainerA Container holding all of a currency's details.
$currency.idIntegerThe Internal ID Aurora uses to identify a currency.
$currency.currency_nameStringThe name of the currency.
$currency.iso_codeStringThe ISO3 Code configured for the currency in the Aurora Back-end.
$currency.default_currencyBooleanWhether or not this currency is configured as the default currency or not.

This is TRUE if the currency is in fact the default and FALSE otherwise.
$currency_isoStringThe currently selected currency ISO3 code.
$smarty.cookie.abIntegerThe A/B Testing value assigned to the visitor for the duration of their current session.

This is used to allocate the visitor to A/B Testing Action Groups.
$aurora_userContainerA Container holding all of a User's details for the currently logged-in user.
$aurora_user.idIntegerThe Internal ID Aurora used to identify a User.
$aurora_user.email_addressStringThe Email Address of the User currently logged into the site.
$aurora_user.user_type[ 0, 1, 2 ]The integer 'type' value for the User currently logged into the site.

0 = Normal Customer

1 or 2 = Admin User
$aurora_user.firstnameStringThe First Name of the User currently logged into the site.
$aurora_user.lastnameStringThe Last Name of the User currently logged into the site.
$aurora_user.loyalty_pointsIntegerThe number of Loyalty Points the User currently logged into the site has.
$aurora_user.used_loyalty_pointsIntegerThe number of Loyalty Points the User currently logged into the site has used to date.
$aurora_user.group_idsArray( Integer )An indexed array of User Group IDs the User currently logged into the site belongs to.
$aurora_user.group_namesArray( String )An indexed array of User Group Names the User currently logged into the site belongs to.
$groupsArray [ Integer ]A Pair/Value array of User Groups for the currently logged-in User, where the Key is the Group Name and the Value is its Internal Aurora ID.
$snippetsArray [ String ]A Pair/Value array of Content Snippets, where the Key is the sanitised Snippet Name and the Value is its Content.
$localesArray [ $locale ]An array of all locale and their data.
$localeContainerA Container holding all of a Locale's details.
$locales_activeBooleanDenotes whether the locales are active or not (i.e. whether there are any configured in the Aurora Back-end).
$locale_codeStringThe currently selected Locale code (as configured in the Aurora Back-end).
$languagesArray [ $language ]An array of all active languages and their data.
$languageContainerA Container holding all of a Language's details.
$language.idIntegerThe Internal ID Aurora uses to identify a Language.
$language.language_nameStringThe name of the language.
$language.isoStringThe ISO Code configured for the language in the Aurora Back-end.
$language.is_defaultBooleanWhether or not this language is configured as the default language or not.

This is TRUE if the language is in fact the default and FALSE otherwise.
$language_idIntegerThe currently selected Internal ID Aurora used to identify a Language.
$language_isoStringThe currently selected Language ISO code (as configured in the Aurora Back-end).
$language_css_dirStringThe currently selected Languages CSS directory.

Please also see: getFilePath
$language_image_dirStringThe currently selected Languages Image directory.

Please also see: getFilePath