Changeset 9252
- Timestamp:
- Feb 16, 2011, 6:59:27 PM (13 years ago)
- Location:
- extensions/spread_menus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/spread_menus/main.inc.php
r6634 r9252 2 2 /* 3 3 Plugin Name: Spread menus 4 Version: 2.1.b4 Version: auto 5 5 Description: Provide menus on any public pages 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=400 … … 12 12 define('SPREADM_DIR' , basename(dirname(__FILE__))); 13 13 define('SPREADM_PATH' , PHPWG_PLUGINS_PATH . SPREADM_DIR . '/'); 14 define('SPREADM_VER' , '2.1.b');15 14 include_once( SPREADM_PATH . 'spread_menus_on_public_pages.php'); 16 15 ?> -
extensions/spread_menus/spread_menus_on_public_pages.php
r8235 r9252 6 6 'Dir' => SPREADM_DIR, 7 7 'Path' => SPREADM_PATH, 8 'Version' => SPREADM_VER,9 8 'On_picture' => true, 10 9 'Exclude' => array('theNBMPage','thePopuphelpPage',), # Excluded pages … … 15 14 if (!isset($conf['Spread menus']) or !is_array($conf['Spread menus'])) $conf['Spread menus'] = $default; 16 15 else $conf['Spread menus'] = array_merge( $default, $conf['Spread menus'] ); 17 $conf['Spread menus']['Version'] = SPREADM_VER;18 16 19 17 if ( !function_exists( 'spread_menus_on_public_pages' ) ) { … … 24 22 if ( function_exists( 'initialize_menu') ) return false; # The current page has already the menu 25 23 global $template, $page, $conf; 24 if (!isset($page['start'])) $page['start']=0 ; 26 25 if ( isset($page['body_id']) and in_array($page['body_id'], $conf['Spread menus']['Exclude']) ) return false; 27 26 if ( isset($page['body_id']) and $page['body_id'] == 'thePicturePage' and !$conf['Spread menus']['On_picture'] ) return false;
Note: See TracChangeset
for help on using the changeset viewer.