summaryrefslogtreecommitdiffstats
path: root/zen
diff options
context:
space:
mode:
authorJohnAlbin2008-09-12 11:25:17 +0000
committerJohnAlbin2008-09-12 11:25:17 +0000
commitc33692b3570aaaf030615c08af82309b7542bdda (patch)
tree995041db1b633a92b52f2448e16e96ddc3d7f142 /zen
parent7f0ce2f276b0f0051d1a55c0e89cbab66b0f2dbf (diff)
#255265: Don't 'skip to nav' if there's no nav
Diffstat (limited to 'zen')
-rw-r--r--zen/page.tpl.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/zen/page.tpl.php b/zen/page.tpl.php
index 20480b4..dc90f86 100644
--- a/zen/page.tpl.php
+++ b/zen/page.tpl.php
@@ -21,8 +21,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): ?>
@@ -162,4 +163,4 @@
<?php print $closure; ?>
</body>
-</html> \ No newline at end of file
+</html>