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

resource_url function

Defined in /modules/cms/init/custom_helpers.php, lines 284-287
Author LemonStand eCommerce Inc.
string function resource_url(string $path, boolean $root_url=true, string $add_host_name_and_protocol=false)
$path string specifies a path to the file in the resources directory.
$root_url boolean determines whether the returned URL should be relative to the LemonStand domain root.
$add_host_name_and_protocol string indicates whether the URL should contain the host name and protocol. This parameter works only if the $root_url parameter is true.
{return} string returns the resource file URL.
Returns resource file URL relative to the website resources directory. The default resources directory location is /resources, but it can be changed on System/Settings/CMS Settings page. This function resolves resource file URLs taking into account the real location of the resources directory.
The following example outputs an image tag with src attribute pointing to a file in the resources directory. Using the resource_url() function guarantees that the image is displayed even if the resources directory location is changed.
<img src="<?= resource_url('i/lemonstand_logo.png') ?>"/>