Prints the URL address of the theme in use.
Kuvaus
The tag prints the location of the version's theme relative to the root address of the store in the format /files/themes/shop/Theme
The {ThemeURL}
tag can be used to print a link to a stylesheet, an image located in the theme folder etc.
Syntaksi
{ThemeURL}
Näkyvyys
Toimii näkyvyydessä: globaali
Tags with global scope can be used on any template and in any tag.
Creating a reference to the theme's stylesheet by using the {ThemeURL} tag
By using the {ThemeURL}
tag, you can create e.g. references to the theme stylesheets. In such case, there is no need to include the complete theme address in the references:
<head>
...
<!-- Stylesheet file -->
<link
rel="stylesheet"
href="/{ThemeURL}/css/master.css"
type="text/css"
media="all" />
...
</head>
Usually, you may want to use the {MinifyCSS}
tag for creating references to stylesheets in order to automatically minify the CSS files loaded to the page.
Attribuutit
after/before:
By using the
after
andbefore
attributes you can define content that is output either after or before the tag's output.Allowed values:HTML and Interface markup.
E.g.
before:
'<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'after:
'<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'
If the tag does not produce any content, neither the content of the
after
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
or:
Defines alternative content that is displayed if the tag itself does not produce any content.
Allowed values:HTML and Interface markup.
E.g.
or:
'Sisältöä ei löytynyt.'