Changeset 1743
- Timestamp:
- Jan 22, 2007, 11:06:17 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r1736 r1743 180 180 // 'http://forum.phpwebgallery.net' => array('label' => 'For ADMIN', 'new_window' => true, 'eval_visible' => 'return is_admin();'), 181 181 // 'http://phpwebgallery.net/doc' => array('label' => 'For Guest', 'new_window' => true, 'eval_visible' => 'return $user[\'is_the_guest\'];'), 182 // 'http://download.gna.org/phpwebgallery/' => 183 // array('label' => 'PopUp', 'new_window' => true, 184 // 'nw_name' => 'PopUp', 'nw_features' => 'width=800,height=450,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'), 182 185 // ); 183 186 // Parameters: … … 187 190 // If true open link on tab/window 188 191 // [Default value is true if it's not defined] 192 // 'nw_name': 193 // Name use when new_window is true 194 // [Default value is '' if it's not defined] 195 // 'nw_features': 196 // features use when new_window is true 197 // [Default value is '' if it's not defined] 189 198 // 'eval_visible': 190 199 // It's php code witch must return if the link is visible or not -
trunk/include/menubar.inc.php
r1736 r1743 77 77 if (!isset($url_data['new_window']) or $url_data['new_window']) 78 78 { 79 $template->assign_block_vars('links.link.new_window', array('1'=>'1')); 79 $template->assign_block_vars( 80 'links.link.new_window', 81 array( 82 'name' => (isset($url_data['nw_name']) ? $url_data['nw_name'] : ''), 83 'features' => (isset($url_data['nw_features']) ? $url_data['nw_features'] : '') 84 ) 85 ); 80 86 } 81 87 } -
trunk/template/yoga/menubar.tpl
r1728 r1743 10 10 <a href="{links.link.URL}" 11 11 <!-- BEGIN new_window --> 12 onclick="window.open(this.href, ''); return false;" 12 onclick="window.open(this.href, 13 '{links.link.new_window.name}', 14 '{links.link.new_window.features}' 15 ); return false;" 13 16 <!-- END new_window --> 14 17 >{links.link.LABEL}
Note: See TracChangeset
for help on using the changeset viewer.