English
This plugin adds “sel” class if you are in that page (in HTML, class=”sel”).
You can use both {{TABCLASS}}
and {{TABSELECT}}
: the difference is that the first adds the class
attribute, the second just the sel and so you can speficy other classes. See below for an example.
This is an example (for the homepage):
<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li> <li class="myotherclass {{TABSELECT:index}}"><a href="/" title="Homepage>Homepage</a></li>
Replace index with:
- index or blog for the blog homepage
- contact for contact.php
- admin for admin panel
- login for login page
- post:entry_id or entry:entry_id for entries (with entry_id the ID of the entry)
- static:static_id for static pages (with static_id a static page id)
- category:id or cat:id for a category with category number as id
- tag:id with tag name as id
- params:url or fp_params:url or fpparams:url instead of url insert the part next the ? of Flatpress standard urls (beta function, I’m not so sure it works) … [Leggi il resto]