aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/config_default.inc.php9
-rw-r--r--include/menubar.inc.php8
2 files changed, 16 insertions, 1 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index ce87e18fc..b67aa6c0a 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -179,6 +179,9 @@ $conf['show_version'] = true;
// 'http://phpwebgallery.net' => array('label' => 'PWG website', 'new_window' => false, 'eval_visible' => 'return true;'),
// 'http://forum.phpwebgallery.net' => array('label' => 'For ADMIN', 'new_window' => true, 'eval_visible' => 'return is_admin();'),
// 'http://phpwebgallery.net/doc' => array('label' => 'For Guest', 'new_window' => true, 'eval_visible' => 'return $user[\'is_the_guest\'];'),
+// 'http://download.gna.org/phpwebgallery/' =>
+// array('label' => 'PopUp', 'new_window' => true,
+// 'nw_name' => 'PopUp', 'nw_features' => 'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'),
// );
// Parameters:
// 'label':
@@ -186,6 +189,12 @@ $conf['show_version'] = true;
// 'new_window':
// If true open link on tab/window
// [Default value is true if it's not defined]
+// 'nw_name':
+// Name use when new_window is true
+// [Default value is '' if it's not defined]
+// 'nw_features':
+// features use when new_window is true
+// [Default value is '' if it's not defined]
// 'eval_visible':
// It's php code witch must return if the link is visible or not
// [Default value is true if it's not defined]
diff --git a/include/menubar.inc.php b/include/menubar.inc.php
index 26e24df16..4a35cccbf 100644
--- a/include/menubar.inc.php
+++ b/include/menubar.inc.php
@@ -76,7 +76,13 @@ foreach ($conf['links'] as $url => $url_data)
);
if (!isset($url_data['new_window']) or $url_data['new_window'])
{
- $template->assign_block_vars('links.link.new_window', array('1'=>'1'));
+ $template->assign_block_vars(
+ 'links.link.new_window',
+ array(
+ 'name' => (isset($url_data['nw_name']) ? $url_data['nw_name'] : ''),
+ 'features' => (isset($url_data['nw_features']) ? $url_data['nw_features'] : '')
+ )
+ );
}
}
}