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:
indexfor the homepage;blogindexorblogfor the blog homepage;contactfor contact.phpadminfor admin panelloginfor login pagepost:entry_idorentry:entry_idfor entries (entry_idis the entry id in formatentryYYMMDD-hhmmss)static:static_idorpage:static_idfor static pages (static_idis the static page name, not title)category:idorcat:idfor a category with category number as idtag:tagnamefor a tagparams:urlorfp_params:urlorfpparams: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 😉