OSDN Git Service

Added PKWK_SKIN_SHOW_NAVBAR to remove navigator links from skin
authorhenoheno <henoheno>
Wed, 26 Jan 2005 12:58:57 +0000 (21:58 +0900)
committerhenoheno <henoheno>
Wed, 26 Jan 2005 12:58:57 +0000 (21:58 +0900)
skin/pukiwiki.skin.php
skin/tdiary.skin.php

index 1051626..0901004 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: pukiwiki.skin.php,v 1.39 2005/01/23 11:54:26 henoheno Exp $
+// $Id: pukiwiki.skin.php,v 1.40 2005/01/26 12:58:57 henoheno Exp $
 //
 // PukiWiki default skin
 
@@ -13,6 +13,11 @@ $_IMAGE['skin']['logo']     = 'pukiwiki.png';
 if (! defined('SKIN_DEFAULT_DISABLE_TOPICPATH'))
        define('SKIN_DEFAULT_DISABLE_TOPICPATH', 1); // 1, 0
 
+// Show / Hide navigation bar UI at your choice
+// NOTE: This is not stop their functionalities!
+if (! defined('PKWK_SKIN_SHOW_NAVBAR'))
+       define('PKWK_SKIN_SHOW_NAVBAR', 0); // 1, 0
+
 // Show / Hide toolbar UI at your choice
 // NOTE: This is not stop their functionalities!
 if (! defined('PKWK_SKIN_SHOW_TOOLBAR'))
@@ -84,6 +89,7 @@ if (isset($pkwk_dtd)) {
 </div>
 
 <div id="navigator">
+<?php if(PKWK_SKIN_SHOW_NAVBAR) { ?>
 <?php
 function _navigator($key, $value = '', $javascript = ''){
        $lang = & $GLOBALS['_LANG']['skin'];
@@ -140,7 +146,7 @@ function _navigator($key, $value = '', $javascript = ''){
 <?php if ($referer)   { ?> &nbsp;
  [ <?php _navigator('refer') ?> ]
 <?php } ?>
-
+<?php } // PKWK_SKIN_SHOW_NAVBAR ?>
 </div>
 
 <?php echo $hr ?>
index deefddb..bedc4c6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: tdiary.skin.php,v 1.16 2005/01/23 11:54:26 henoheno Exp $
+// $Id: tdiary.skin.php,v 1.17 2005/01/26 12:58:57 henoheno Exp $
 //
 // tDiary-wrapper skin
 
@@ -15,6 +15,11 @@ if (! defined('TDIARY_THEME')) define('TDIARY_THEME', 'loose-leaf'); // Default
 if (! defined('TDIARY_CALENDAR_DESIGN'))
        define('TDIARY_CALENDAR_DESIGN', NULL); // NULL, 0, 1
 
+// Show / Hide navigation bar UI at your choice
+// NOTE: This is not stop their functionalities!
+if (! defined('PKWK_SKIN_SHOW_NAVBAR'))
+       define('PKWK_SKIN_SHOW_NAVBAR', 1); // 1, 0
+
 // Show toolbar at your choice, with <div class="footer"> design
 // NOTE: Some theme become looking worse with this!
 if (! defined('PKWK_SKIN_SHOW_TOOLBAR'))
@@ -382,7 +387,9 @@ if (isset($pkwk_dtd)) {
 <?php } // if ($menu && $sidebar == 'strict') ?>
 
 <!-- Navigation buttuns -->
-<div id="navigator"><div class="adminmenu">
+<div id="navigator">
+<?php if (PKWK_SKIN_SHOW_NAVBAR) { ?>
+<div class="adminmenu">
 <?php
 function _navigator($key, $value = '', $javascript = ''){
        $lang = $GLOBALS['_LANG']['skin'];
@@ -436,7 +443,9 @@ function _navigator($key, $value = '', $javascript = ''){
 <?php if ($referer)   { ?> &nbsp;
    <?php _navigator('refer') ?>
 <?php } ?>
-</div></div>
+</div>
+<?php } // PKWK_SKIN_SHOW_NAVBAR ?>
+</div>
 
 <h1><?php echo $page_title ?></h1>