This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

site_url function

Defined in /modules/cms/init/custom_helpers.php, lines 203-206
Author LemonStand eCommerce Inc.
string function site_url(string $url='', boolean $add_host_name_and_protocol=true)
$url string specifies the URL to process.
$add_host_name_and_protocol boolean indicates whether the URL should contain the host name and protocol.
{return} string returns the absolute URL with the host and protocol name.
Returns an absolute URL to a site page specified with the parameter. LemonStand defines this function only if it has not been defined by another application (for example WordPress). If the function is defined by another application, you access LemonStand's version of the function with Cms_Html helper class: Cms_Html::site_url(). The function is similar to the root_url() function with the default TRUE value of $add_host_name_and_protocol parameter. The following code outputs an absolute URL of the Contacts page:
Contacts page: <?= site_url('/contacts') ?>
You can do the same with root_url()function:
Contacts page: <?= root_url('/contacts', true) ?>

See Also