Skip to main content

SetGlobal

Short description

This template function sets global variables. Use this function within the PageDesignPrepareMainColumn template. This ensures that the value is saved before it is used because this template is built first.

Description of this function

SetGlobal( string $_key  , mixed $_value  ) : void

Examples


{%
	$_value = GetGlobal("useHtmlAvailabilityIcon");
%}



{% 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 %}
To top