Returns file URL relative to the currently active theme resources directory.
This function is similar to
resource_url(), but it returns URLs for
files in the active theme resources directory where as resource_url() returns
URLs for files in the global resources directory.
The following example outputs an image tag with
src attribute pointing
to a file in the theme resources directory.
<img src="<?= theme_resource_url('i/icons/rss.png') ?>"/>
The next code example creates a LINK element pointing to a CSS file in the active theme.
<link rel="stylesheet" type="text/css" href="<?= theme_resource_url('css/wiki.css) ?>" />
Note that you can use resource combining methods of
Cms_Controller class
Cms_Controller::js_combine()
and
Cms_Controller::css_combine() for creating links to CSS and JavaScript files
from an active theme.