Changeset 5421
- Timestamp:
- Mar 28, 2010, 5:57:37 PM (14 years ago)
- Location:
- extensions/AMenuManager
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/admin/amm_admin.tpl
r4515 r5421 1 <div class="titrePage"> 2 <h2 style="position:absolute;right:0px;top:32px;height:auto;font-size:12px;font-weight:normal;">:: {$plugin.AMM_VERSION} ::</h2> 3 <h2>{'g002_title_page'|@translate} <span style="font-size:-1;font-weight:normal;">{$TABSHEET_TITLE}</span></h2> 1 <h2 style="float:right;top:-24px;position:relative;height:auto;font-size:12px;font-weight:normal;">{$plugin.AMM_VERSION}</h2> 4 2 3 <div style="position:relative;top:-24px;clear:right;"> 4 {if isset($page_nfo)} 5 <p>{$page_nfo}</p> 6 {/if} 5 7 </div> 6 7 {if isset($page_nfo)}8 <p>{$page_nfo}</p>9 {/if}10 8 11 9 {$AMM_BODY_PAGE} -
extensions/AMenuManager/admin/amm_personalisedlist_edit.tpl
r3681 r5421 1 {* $Id $ *}2 3 1 {include file='include/autosize.inc.tpl'} 4 2 … … 81 79 <td>{'g002_setting_personalised_nfo'|@translate}</td> 82 80 <td> 83 <input type="text" name="famm_personalised_nfo" id="iamm_personalised_nfo" value="{$datas.nfo}" maxlength="25 "/>81 <input type="text" name="famm_personalised_nfo" id="iamm_personalised_nfo" value="{$datas.nfo}" maxlength="255"/> 84 82 </td> 85 83 </tr> … … 119 117 <td>{'g002_setting_block_title'|@translate}</td> 120 118 <td> 121 <input type="text" id="iamm_personalised_title" value="" maxlength=" 50" onkeyup="apply_changes('iamm_personalised_title');" onblur="apply_changes('iamm_personalised_title');"/>119 <input type="text" id="iamm_personalised_title" value="" maxlength="255" onkeyup="apply_changes('iamm_personalised_title');" onblur="apply_changes('iamm_personalised_title');"/> 122 120 </td> 123 121 </tr> -
extensions/AMenuManager/admin/amm_randompicconfig.tpl
r3690 r5421 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.core.packed.js"}2 {known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.slider.packed.js"}1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 2 {known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.slider.packed.js"} 3 3 4 4 {literal} … … 8 8 height:10px; 9 9 border:1px solid; 10 margin-left:10px; 10 margin-right:5px; 11 padding-right:14px; 11 12 } 12 13 .ui-slider-handle { … … 16 17 top:-2px; 17 18 border:1px solid; 18 background:#cccccc;19 display:block; 19 20 } 20 21 </style> -
extensions/AMenuManager/admin/amm_sections.tpl
r4389 r5421 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.core.packed.js"}2 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"t emplate-common/lib/ui/ui.sortable.packed.js"}1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 2 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js"} 3 3 4 4 <div id="containerMenu"> -
extensions/AMenuManager/amm_aip.class.inc.php
r4395 r5421 28 28 protected $tabsheet; 29 29 protected $ajax; 30 protected $sectionsId=array('menu' => ' title_menu', 'special' => 'special_categories');30 protected $sectionsId=array('menu' => 'Menu', 'special' => 'Specials'); 31 31 32 32 protected $urls_modes=array(0 => 'new_window', 1 => 'current_window'); … … 524 524 } 525 525 526 $this->sortSectionsItems(); 527 526 528 $users=new users(""); 527 529 $groups=new groups(""); -
extensions/AMenuManager/amm_install.class.inc.php
r4391 r5421 4 4 Author : Grum 5 5 email : grum@grum.dnsalias.com 6 website : http://photos.grum. dnsalias.com6 website : http://photos.grum.fr 7 7 PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 8 8 … … 14 14 15 15 --------------------------------------------------------------------------- */ 16 @include_once('amm_root.class.inc.php'); 16 include_once('amm_version.inc.php'); 17 include_once('amm_root.class.inc.php'); 17 18 include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/tables.class.inc.php'); 18 19 … … 36 37 public function install() 37 38 { 39 $this->init_config(); 40 $this->load_config(); 41 $this->my_config['installed']=AMM_VERSION2; 42 $this->save_config(); 38 43 39 44 $tables_def=array( … … 53 58 `id` int(11) NOT NULL default '0', 54 59 `lang` varchar(5) NOT NULL default '', 55 `title` varchar( 50) NOT NULL default '',60 `title` varchar(255) NOT NULL default '', 56 61 `content` text NOT NULL, 57 62 `visible` char(1) NOT NULL default 'y', 58 `nfo` varchar(25 ) NOT NULL default '',63 `nfo` varchar(255) NOT NULL default '', 59 64 PRIMARY KEY (`id`,`lang`) 60 65 )" … … 83 88 $this->init_config(); 84 89 $this->load_config(); 90 91 $this->udpateTablesDef(); 92 93 $this->my_config['installed']=AMM_VERSION2; //update the installed release number 94 $this->save_config(); 95 } 96 97 public function deactivate() 98 { 99 } 100 101 102 /** 103 * update tables & config between releases 104 * 105 */ 106 protected function udpateTablesDef() 107 { 85 108 /* AMM release earlier than the 2.1.3 uses two parameters to manage the display 86 109 * of the menu items ("amm_sections_modspecials" and "amm_sections_modmenu") … … 108 131 } 109 132 110 $this->save_config(); 111 } 133 if(!array_key_exists('installed', $this->my_config)) 134 { 135 /* 136 * if key does not exist, probably try to update a plugin older than the 137 * 2.2.0 release 138 */ 139 $this->my_config['installed']="02.01.06"; 140 } 112 141 113 public function deactivate() 114 { 142 if($this->my_config['installed']<="02.01.06") 143 { 144 /* 145 * 2.2.0 updates 146 * 147 * - update fields length for table 'personalised' 148 * - update config for menu translation 149 */ 150 $sql="ALTER TABLE `".$this->tables['personalised']."` 151 MODIFY COLUMN `title` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, 152 MODIFY COLUMN `nfo` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;"; 153 pwg_query($sql); 154 155 foreach($this->my_config['amm_sections_items'] as $key => $val) 156 { 157 $this->my_config['amm_sections_items'][$key]['translation'] = $this->defaultMenus[$key]['translation']; 158 } 159 } 115 160 } 116 161 -
extensions/AMenuManager/amm_pip.class.inc.php
r4499 r5421 305 305 global $user, $template, $page; 306 306 307 if(!array_key_exists('body_id', $page)) 308 { 309 /* 310 * it seems the error message reported on mantis:1476 is displayed because 311 * the 'body_id' doesn't exist in the $page 312 * 313 * not abble to reproduce the error, but initializing the key to an empty 314 * value if it doesn't exist may be a sufficient solution 315 */ 316 $page['body_id']=""; 317 } 318 307 319 if($this->displayRandomImageBlock && $page['body_id'] == 'theCategoryPage') 308 320 { -
extensions/AMenuManager/amm_root.class.inc.php
r4395 r5421 26 26 protected $css; //the css object 27 27 protected $defaultMenus = array( 28 'favorites' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 0, 'translation' => ' favorite_cat'),29 'most_visited' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 1, 'translation' => ' most_visited_cat'),30 'best_rated' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 2, 'translation' => ' best_rated_cat'),31 'random' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 3, 'translation' => ' random_cat'),32 'recent_pics' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 4, 'translation' => ' recent_pics_cat'),33 'recent_cats' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 5, 'translation' => ' recent_cats_cat'),34 'calendar' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 6, 'translation' => ' calendar'),35 'qsearch' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 0, 'translation' => ' qsearch'),28 'favorites' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 0, 'translation' => 'My favorites'), 29 'most_visited' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 1, 'translation' => 'Most visited'), 30 'best_rated' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 2, 'translation' => 'Best rated'), 31 'random' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 3, 'translation' => 'Random pictures'), 32 'recent_pics' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 4, 'translation' => 'Recent pictures'), 33 'recent_cats' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 5, 'translation' => 'Recent categories'), 34 'calendar' => array('container' => 'special', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 6, 'translation' => 'Calendar'), 35 'qsearch' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 0, 'translation' => 'Quick search'), 36 36 'tags' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 1, 'translation' => 'Tags'), 37 37 'search' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 2, 'translation' => 'Search'), 38 'comments' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 3, 'translation' => ' comments'),38 'comments' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 3, 'translation' => 'Comments'), 39 39 'about' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 4, 'translation' => 'About'), 40 40 'rss' => array('container' => 'menu', 'visibility' => 'guest,generic,normal,webmaster,admin/', 'order' => 5, 'translation' => 'Notification') -
extensions/AMenuManager/main.inc.php
r4515 r5421 2 2 /* 3 3 Plugin Name: Advanced Menu Manager 4 Version: 2. 1.64 Version: 2.2.0 5 5 Description: Gestion avancée du menu / Advanced management of menu 6 6 Plugin URI: http://piwigo.org … … 75 75 | | | Error message about an undefined var 'tabsheet' on 76 76 | | | the admin panel 77 | 2.2.0 | 2010/03/28 | * updated for Piwigo 2.1 compatibility 78 | | | * mantis: feature 1384 79 | | | Problem of length of title field in the custom menu 80 | | | module 81 | | | * mantis: bug 1476 82 | | | Error message on login screen 83 | | | * mantis: bug 1541 84 | | | Items order is not respected in admin pages 85 | | | 86 | | | 87 | | | 88 | | | 77 89 | | | 78 90 | | | … … 105 117 define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/'); 106 118 107 define('AMM_VERSION' , '2.1.6'); //=> ne pas oublier la version dans l'entête !!119 include_once('amm_version.inc.php'); // => Don't forget to update this file !! 108 120 109 121 global $prefixeTable, $page;
Note: See TracChangeset
for help on using the changeset viewer.