GetGlobal

 

Kurzbeschreibung

Diese Template-Funktion bietet die Möglichkeit, globale Variablen auszulesen.

Funktionsbeschreibung

GetGlobal( string $_key ) :

Beispiele

{# Example 1 Returns the value that was previously stored under the keyword useHtmlAvailabilityIcon. #} {% $_value = GetGlobal("useHtmlAvailabilityIcon"); %} {# Example 2 Extended example to better illustrate one possible use. #} {% if GetGlobal("useHtmlAvailabilityIcon") %} <span class="availabilityIcon available-$AvailabilityId" data-plenty="availabilityIcon"> <span class="first"></span> <span class="second"></span> <span class="third"></span> </span> {% else %} <span class="availabilityImageWrapper">$AvailabilityIcon</span> {% endif %}
Nach oben