Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Commit

Permalink
Lang constant for nav title added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Mees committed Sep 12, 2011
1 parent 5969573 commit 43ab095
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions UTF-8/lang_de.inc.php
Expand Up @@ -4,6 +4,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PLACE_NAME', 'z.B. John Doe');
@define('TWOK11_PLACE_MAIL', 'z.B. mail@example.org');
@define('TWOK11_PLACE_URL', 'z.B. http://example.org');
Expand Down
1 change: 1 addition & 0 deletions UTF-8/lang_en.inc.php
Expand Up @@ -4,6 +4,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PLACE_NAME', 'i.e. John Doe');
@define('TWOK11_PLACE_MAIL', 'i.e. mail@example.org');
@define('TWOK11_PLACE_URL', 'i.e. http://example.org');
Expand Down
3 changes: 2 additions & 1 deletion index.tpl
Expand Up @@ -34,6 +34,7 @@
{serendipity_hookPlugin hook="frontend_header"}
{/if}
{if $is_raw_mode != true}
{assign var="navtitle" value=$CONST.TWOK11_NAV_TITLE}
<a class="visuallyhidden" href="#content"><span lang="en">Skip to content</span></a>
<div id="page" class="clearfix">
<header id="banner" class="clearfix{if $leftSidebarElements > 0 && $rightSidebarElements > 0} col3{elseif $leftSidebarElements > 0 && $rightSidebarElements == 0} col2l{else} col2r{/if}" role="banner">
Expand All @@ -57,7 +58,7 @@
</header>

<nav id="primary-nav" role="navigation">
<h2 class="visuallyhidden">Navigation</h2>
<h2 class="visuallyhidden">{$navtitle}</h2>

<ul class="clearfix">{foreach from=$navlinks item="navlink" name="sbnav"}<li{if $smarty.foreach.sbnav.first} class="first"{/if}{if $smarty.foreach.sbnav.last} class="last"{/if}>{if $currpage==$navlink.href or $currpage2==$navlink.href}<span>{else}<a href="{$navlink.href}">{/if}{$navlink.title}{if $currpage==$navlink.href or $currpage2==$navlink.href}</span>{else}</a>{/if}</li>{/foreach}</ul>
</nav>
Expand Down
1 change: 1 addition & 0 deletions lang_de.inc.php
Expand Up @@ -4,6 +4,7 @@
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
// Sprachkonstanten
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PLACE_NAME', 'z.B. John Doe');
@define('TWOK11_PLACE_MAIL', 'z.B. mail@example.org');
@define('TWOK11_PLACE_URL', 'z.B. http://example.org');
Expand Down
1 change: 1 addition & 0 deletions lang_en.inc.php
Expand Up @@ -4,6 +4,7 @@
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
// Lang constants
@define('TWOK11_NAV_TITLE', 'Navigation');
@define('TWOK11_PLACE_NAME', 'i.e. John Doe');
@define('TWOK11_PLACE_MAIL', 'i.e. mail@example.org');
@define('TWOK11_PLACE_URL', 'i.e. http://example.org');
Expand Down

0 comments on commit 43ab095

Please sign in to comment.