Permalink
Browse files

Added theme option to suppress global nav (manually) altogether.

  • Loading branch information...
1 parent f1acb78 commit 8c411f03d9d29a5971b7cae10112d5c90452c2e1 Matthias Mees committed Nov 6, 2011
Showing with 12 additions and 6 deletions.
  1. +1 −1 UTF-8/lang_de.inc.php
  2. +1 −1 UTF-8/lang_en.inc.php
  3. +6 −0 config.inc.php
  4. +2 −2 index.tpl
  5. +1 −1 lang_de.inc.php
  6. +1 −1 lang_en.inc.php
View
@@ -1,6 +1,7 @@
<?php
// Template-Optionen
@define('TWOK11_HEADER_IMG','Bannergrafik im Kopfbereich einbinden? (1120 Pixel breit; Feld leeren um Ausgabe zu unterdrücken)');
+@define('TWOK11_USE_CORENAV', 'Globale Navigation einbinden?');
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden!)');
@@ -14,4 +15,3 @@
@define('TWOK11_PLACE_URL', 'z.B. http://example.org');
@define('TWOK11_PLACE_MESSAGE', 'Was gibt es zu sagen?');
@define('TWOK11_SEND_MAIL', 'Senden');
-
View
@@ -1,6 +1,7 @@
<?php
// Template options
@define('TWOK11_HEADER_IMG','Use a banner image in the header? (1120 pixels wide; leave box empty to not use a banner)');
+@define('TWOK11_USE_CORENAV', 'Use global navigation?');
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory.)');
@@ -14,4 +15,3 @@
@define('TWOK11_PLACE_URL', 'i.e. http://example.org');
@define('TWOK11_PLACE_MESSAGE', 'What do you want to say?');
@define('TWOK11_SEND_MAIL', 'Send');
-
View
@@ -57,6 +57,12 @@ function serendipity_smarty_html5time($timestamp) {
'name' => TWOK11_USERSTYLES,
'type' => 'boolean',
'default' => false
+ ),
+ array(
+ 'var' => 'use_corenav',
+ 'name' => TWOK11_USE_CORENAV,
+ 'type' => 'boolean',
+ 'default' => true
)
);
View
@@ -59,13 +59,13 @@
<img src="{$template_option.header_img}" alt=""/>
{/if}
</header>
-
+ {if $template_option.use_corenav}
<nav id="primary-nav" role="navigation">
<h2 class="visuallyhidden">{$navtitle}</h2>
<ul class="clearfix">{foreach from=$navlinks item="navlink" name="sbnav"}{if $navlink.title!=""&&$navlink.href!=""}<li>{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>{/if}{/foreach}</ul>
</nav>
-
+ {/if}
<div id="main" class="clearfix{if $leftSidebarElements > 0 && $rightSidebarElements > 0} col3{elseif $leftSidebarElements > 0 && $rightSidebarElements == 0} col2l{else} col2r{/if}">
<div id="content" class="clearfix" role="main">
{$CONTENT}
View
@@ -1,6 +1,7 @@
<?php
// Template-Optionen
@define('TWOK11_HEADER_IMG','Bannergrafik im Kopfbereich einbinden? (1120 Pixel breit; Feld leeren um Ausgabe zu unterdrücken)');
+@define('TWOK11_USE_CORENAV', 'Globale Navigation einbinden?');
@define('TWOK11_WEBFONTS', 'Einen von Google gehosteten Webfont nutzen?');
@define('TWOK11_NOWEBFONT', 'Keinen Webfont einbinden');
@define('TWOK11_USERSTYLES', 'user.css einbinden? (Muss selbst im Templateverzeichnis angelegt werden!)');
@@ -14,4 +15,3 @@
@define('TWOK11_PLACE_URL', 'z.B. http://example.org');
@define('TWOK11_PLACE_MESSAGE', 'Was gibt es zu sagen?');
@define('TWOK11_SEND_MAIL', 'Senden');
-
View
@@ -1,6 +1,7 @@
<?php
// Template options
@define('TWOK11_HEADER_IMG','Use a banner image in the header? (1120 pixels wide; leave box empty to not use a banner)');
+@define('TWOK11_USE_CORENAV', 'Use global navigation?');
@define('TWOK11_WEBFONTS', 'Use a webfont, hosted by Google?');
@define('TWOK11_NOWEBFONT', 'Include no webfont');
@define('TWOK11_USERSTYLES', 'Include user.css? (You need to create that file in your template directory.)');
@@ -14,4 +15,3 @@
@define('TWOK11_PLACE_URL', 'i.e. http://example.org');
@define('TWOK11_PLACE_MESSAGE', 'What do you want to say?');
@define('TWOK11_SEND_MAIL', 'Send');
-

0 comments on commit 8c411f0

Please sign in to comment.