Skip to content

Emphasize Current Tab in Andreas06

I adjusted the andreas06 template so the current tab is emphasized now.
<ul>
<li{strip}
{if $head_subtitle == "" && !$archives} id="current"{/if}>
<a href="{$serendipityBaseURL}">Site Home</a></li>
{/strip}
<li {strip}
{if $archives}
id="current"
{/if}
><a href="/archive">Archiv</a></li>{/strip}
<li {strip}
{if $head_subtitle|regex_replace:"/.*(howto)/":"howto" == "howto"}
id="current"{/if}
><a href="/plugin/tag/howto">HowTos</a></li>{/strip}
<li {strip}
{if $head_title == "Sonstiges"}
id="current"
{/if}
><a href="/pages/sonstiges.html">Sonstiges</a></li>{/strip}
<li {strip}
{if $head_title == "About"}
id="current"
{/if}
><a href="/pages/about.html">About</a></li>{/strip}
<li {strip}
{if $head_title == "Kontaktformular"}
id="current"
{/if}
><a href="/pages/kontakt.html">Kontakt</a></li>{/strip}
</ul>

The whole code looks dirty but there is, as far as i know, no ultimate variable in s9y which contains the page name so I have to check many different.

This is an English post. My English isn't as good as I'd like it to be, so if you find a mistake please advise me of it. Just drop a comment or write me a mail

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options