summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--page.tpl.php7
2 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 9f88914..85376ec 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,4 +1,5 @@
Zen 5.x-1.x-dev
+ #255265 by kmonty: Don't "skip to nav" if there's no nav
#263228: Allow sub-themes to override wireframes.css
* Added sample override template file for search block's form
* Fixed _zen_hook() to look in sub-theme directory when $hook is not valid PHP function name.
diff --git a/page.tpl.php b/page.tpl.php
index 9e9ddc5..2f681ba 100644
--- a/page.tpl.php
+++ b/page.tpl.php
@@ -19,8 +19,9 @@
<div id="page"><div id="page-inner">
<a name="top" id="navigation-top"></a>
- <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>
-
+ <?php if ($primary_links || $secondary_links || $navbar): ?>
+ <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>
+ <?php endif; ?>
<div id="header"><div id="header-inner" class="clear-block">
<?php if ($logo || $site_name || $site_slogan): ?>
@@ -158,4 +159,4 @@
</div></div> <!-- /#page-inner, /#page -->
</body>
-</html> \ No newline at end of file
+</html>