theme_resource_url
function theme_resource_url($path, $root_url = true, $add_host_name_and_protocol = false)
The theme_resource_url() function creates URLs relative to the current theme resources directory. If Theming is disabled, the function returns URLs relative to the website resources directory (/resources by default). In this case its result would match the result of the resource_url() function.
<img src="<?= theme_resource_url('images/home-banner.png') ?>"/>Parameters:
- $path - file path in the theme resources directory.
- $root_url - return URL relative to the LemonStand domain root.
- $add_host_name_and_protocol - return absolute URL with the host name and protocol.
Returns
Returns string value.
Next: method
Previous: tax_incl_label
Return to Reference

