Description
This is the new version of the Tabmenu plugin, that replaces, the version 4.0.
The plugin adds “sel” class if you are in that page (in HTML, class=”sel”).
You can use both {{TABCLASS}}
and {{TABSELECT}}
patterns: 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
for the homepage;blogindex
orblog
for the blog homepage;contact
for contact.phpadmin
for admin panellogin
for login pagepost:entry_id
orentry:entry_id
for entries (entry_id
is the entry id in formatentryYYMMDD-hhmmss
)static:static_id
orpage:static_id
for static pages (static_id
is the static page name, not title)category:id
orcat:id
for a category with category number as idtag:tagname
for a tagparams:url
orfp_params:url
orfpparams:url
, where url is the part next to the ? of Flatpress standard urls (standard means not RewriteURLs or PrettyURLs).
A note about the blog index and the homepage: if your homepage is your blog index
, blogindex
and blog
are the same page. Otherwise please use either index.php?blog
or index.php?paged=1
as URL to your blog. In Flatpress, anything that is unknown (like ?p=1
sends to the blog index, it doesn’t in my plugin.
Changelog
As eggoez told me, the index/blog tab had a bug: if you used a static page as index, when you went to your blog, index tabs had the “sel” class, even though they shouldn’t . This version of the plugin fixes this bug.
Download
Download here: tabmenu_v4.1.tar.gz.
License: GNU GPL v2.
2 commenti
Piero. .100% good work ,, thanks for this plugins.. ❤️ maybe you also need to add the tab search.php 😊
Thanks piero
eggoez
Hi,
you're welcome 😉