From f8c462dd898b1b7f8518a4e5c40c40419e263afc Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Sun, 12 Jun 2011 16:10:22 +0200 Subject: Allow packages to specify that their tabmenus should not be a drop-down list by using a tag. --- usr/local/www/pkg.php | 6 ++++-- usr/local/www/pkg_edit.php | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'usr') diff --git a/usr/local/www/pkg.php b/usr/local/www/pkg.php index b3485f0..0a119d9 100755 --- a/usr/local/www/pkg.php +++ b/usr/local/www/pkg.php @@ -146,6 +146,8 @@ if ($pkg['tabs'] <> "") { } else { $active = false; } + if(isset($tab['no_drop_down'])) + $no_drop_down = true; $urltmp = ""; if($tab['url'] <> "") $urltmp = $tab['url']; if($tab['xml'] <> "") $urltmp = "pkg_edit.php?xml=" . $tab['xml']; @@ -170,8 +172,8 @@ if ($pkg['tabs'] <> "") { ksort($tab_array); foreach($tab_array as $tab) { - echo ''; - display_top_tabs($tab); + echo ''; + display_top_tabs($tab, $no_drop_down); echo ''; } } diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php index 5361b51..64b1fa9 100755 --- a/usr/local/www/pkg_edit.php +++ b/usr/local/www/pkg_edit.php @@ -366,6 +366,8 @@ if ($pkg['tabs'] <> "") { } else { $active = false; } + if(isset($tab['no_drop_down'])) + $no_drop_down = true; $urltmp = ""; if($tab['url'] <> "") $urltmp = $tab['url']; if($tab['xml'] <> "") $urltmp = "pkg_edit.php?xml=" . $tab['xml']; @@ -390,9 +392,9 @@ if ($pkg['tabs'] <> "") { ksort($tab_array); foreach($tab_array as $tab) { - echo ''; - display_top_tabs($tab); - echo ''; + echo ''; + display_top_tabs($tab, $no_drop_down); + echo ''; } } ?> -- cgit v1.1