[switcher:] Short Tag
Built-in Feature
This short tag renders buttons the same way as the Param Switcher Widget.
These buttons can be used to switch between / toggle visibility of divs or of lines in a Comparison Table.
Syntax Breakdown
[switcher:
Parameter name ]
[option:
Option value ]
Option text [/option]
[/switcher]
- Parameter name : URL parameter name
- Option value : URL parameter value
- Option text : Title text for link/button
Examples
[switcher:cur]
[option:usd]USD[/option]
[option:eur]EUR[/option]
[/switcher]
will be rendered like:
<div class="evo_widget widget widget_core_param_switcher">
<span class="btn-group">
<a href=".../post-slug?cur=usd" data-param-switcher="0" data-code="cur" data-value="usd">USD</a>
<a href=".../post-slug?cur=eur" data-param-switcher="0" data-code="cur" data-value="eur">EUR</a>
</span>
</div>