Color(index)
Entity | Value |
---|---|
Attribute(s) | style, href, title, alt, value, name, onclick |
Type | function, value |
Context | document |
Parameters | 1: colour code (see table below)} |
Result | Colour code, formatted #RRGGBB |
Return the colour code of one of the standard colours. The colour code can be set with the myShop editor. The table below gives a overview of the which standard colours are available.
Colour index | Appliance |
---|---|
Shop Colours | |
0 | Background colour |
1 | Textcolour background |
2 | Background colour block (searchblock) |
3 | Textcolour block (searchblock) |
Orderprocess colours | |
4 | Textcolour of the active screen in header |
5 | Textcolour of inactive screens in the header |
6 | Dividing line colour header |
7 | Background colour productlist basket |
8 | Background colour order screens |
The function color(n) kan best be applied in combination with the myShop extension myshop-style-<name>:<value>
. The myshop-style extension enables adjusting the text color and background of an element.
The example below shows how to set the text colour and background colour for the <td>
element, using the standard background and text colour.
<td style="myshop-style-backgroundcolor:{$color(0)};myshop-style-color:{$color(1)}">
this is an example
<td/>
Post your comment on this topic.