Changeset 16006
- Timestamp:
- Jun 24, 2012, 9:13:37 PM (12 years ago)
- Location:
- extensions/AMenuManager
- Files:
-
- 2 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMenuManager/admin/amm_coreBlocks.tpl
r8962 r16006 50 50 <tr> 51 51 <td style='min-width: 250px;'> 52 <span class='menuListMove' ><img src="{$themeconf.admin_icon_dir}/cat_move.png" class="drag_button" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"/></span>52 <span class='menuListMove' title="{'Drag to re-order'|@translate}"> </span> 53 53 <span class='menuListName'> 54 54 <span style='font-weight:bold;' class='pluginBoxNameCell'>{$block.name|@translate}</span> [{$block.id}]<br> … … 58 58 <td style='min-width: 100px;text-align:right;'>{'g002_accessibility'|@translate}</td> 59 59 <td style='width:30%;'> 60 <div id='users_{$block.id}' class='menuListUsers' >60 <div id='users_{$block.id}' class='menuListUsers' style='display:none;'> 61 61 {ldelim} 62 62 "selected":{$block.users}, … … 71 71 </td> 72 72 <td style='width:30%;'> 73 <div id='groups_{$block.id}' class='menuListGroups' >73 <div id='groups_{$block.id}' class='menuListGroups' style:'display:none;'> 74 74 {ldelim} 75 75 "selected":{$block.groups}, … … 114 114 {if $id=="qsearch"} 115 115 {else} 116 < img src="{$themeconf.admin_icon_dir}/cat_move.png" class="button drag_button" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"/>116 <span class='listMove' title="{'Drag to re-order'|@translate}"></span> 117 117 {/if} 118 118 {$data.translation|@translate} -
extensions/AMenuManager/admin/amm_linkslinks.tpl
r8962 r16006 62 62 <td>{'g002_icon'|@translate}</td> 63 63 <td> 64 <div id="iamm_icon" >64 <div id="iamm_icon" style='display:none;'> 65 65 [ 66 66 {foreach from=$datas.iconsValues key=name item=icon name=items} … … 75 75 <td>{'g002_mode'|@translate}</td> 76 76 <td> 77 <div id="iamm_mode" >77 <div id="iamm_mode" style='display:none;'> 78 78 [ 79 79 {foreach from=$datas.modesValues key=name item=mode name=items} -
extensions/AMenuManager/admin/amm_linkslinks_detail.tpl
r8962 r16006 3 3 <table> 4 4 <tr> 5 <td rowspan=2 style='width:22px'><img src="{$themeconf.admin_icon_dir}/cat_move.png" class="drag_button" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"/></td> 5 <td rowspan=2 style='width:22px'> 6 <span class='listMove' title="{'Drag to re-order'|@translate}"></span> 7 </td> 6 8 7 9 <td rowspan=2 style='width:30px;'>{if $link.icon!=""}<img src='{$link.icon}'/>{else} {/if}</td> … … 13 15 14 16 <td rowspan=2 width="40px"> 15 <img src="{$themeconf.admin_icon_dir}/edit_s.png" 16 class="button" alt="{'g002_edit'|@translate}" 17 title="{'g002_edit'|@translate}" 18 onclick='ulm.edit({$link.id});'/> 19 <img src="{$themeconf.admin_icon_dir}/delete.png" 20 class="button" 21 alt="{'g002_delete'|@translate}" 22 title="{'g002_delete'|@translate}" 23 onclick='ulm.remove({$link.id});'/> 17 <span class='buttonEdit' 18 title="{'g002_edit'|@translate}" 19 onclick='ulm.edit({$link.id});'/> 20 21 <span class='buttonDelete' 22 title="{'g002_delete'|@translate}" 23 onclick='ulm.remove({$link.id});'/> 24 24 </td> 25 25 </tr> -
extensions/AMenuManager/admin/amm_personalised_detail.tpl
r8962 r16006 8 8 9 9 <td width="40px"> 10 <img src="{$themeconf.admin_icon_dir}/edit_s.png" 11 class="button" alt="{'g002_edit'|@translate}" 10 <span class="buttonEdit" 12 11 title="{'g002_edit'|@translate}" 13 12 onclick='upbm.edit({$block.id});'/> 14 <img src="{$themeconf.admin_icon_dir}/delete.png" 15 class="button" 16 alt="{'g002_delete'|@translate}" 17 title="{'g002_delete'|@translate}" 18 onclick='upbm.remove({$block.id});'/> 13 <span class="buttonDelete" 14 title="{'g002_delete'|@translate}" 15 onclick='upbm.remove({$block.id});'/> 19 16 </td> 20 17 </tr> -
extensions/AMenuManager/admin/amm_personalisedlist_detail.tpl
r3681 r16006 14 14 <td>{$section.title}</td> 15 15 <td style="text-align:center;">{$section.visible}</td> 16 <td width="15px"><a href="{$section.edit}"><img src='{$themeconf.icon_dir}/category_edit.png'/></a></td> 17 <td width="15px"><a style="cursor:pointer;" onclick="load_list('delete', {$section.ID})"><img src='{$themeconf.icon_dir}/delete.png'/></a></td> 16 <td width="15px"> 17 <a href="{$section.edit}"> 18 <span class='buttonEdit'/> 19 </a> 20 </td> 21 <td width="15px"> 22 <a style="cursor:pointer;" onclick="load_list('delete', {$section.ID})"> 23 <span class='buttonDelete'/> 24 </a> 25 </td> 18 26 </tr> 19 27 {/foreach} -
extensions/AMenuManager/admin/amm_randompicconfig.tpl
r15366 r16006 81 81 <div id="iamm_randompicture_title"></div> 82 82 83 <div id="islang" >83 <div id="islang" style='display:none;'> 84 84 [ 85 85 {foreach from=$datas.langs key=langCode item=langLabel name=items} … … 112 112 <td>{'g002_setting_randompic_showname'|@translate}</td> 113 113 <td> 114 <div id="iamm_randompicture_showname" >114 <div id="iamm_randompicture_showname" style='display:none;'> 115 115 [ 116 116 {ldelim}"value":"n","cols":["{'g002_show_n'|@translate}"]{rdelim}, … … 125 125 <td>{'g002_setting_randompic_showcomment'|@translate}</td> 126 126 <td> 127 <div id="iamm_randompicture_showcomment" >127 <div id="iamm_randompicture_showcomment" style='display:none;'> 128 128 [ 129 129 {ldelim}"value":"n","cols":["{'g002_show_n'|@translate}"]{rdelim}, -
extensions/AMenuManager/admin/amm_sections.tpl
r15366 r16006 15 15 {if $id=="qsearch"} 16 16 {else} 17 < img src="{$themeconf.admin_icon_dir}/cat_move.png" class="button drag_button" alt="{'Drag to re-order'|@translate}" title="{'Drag to re-order'|@translate}"/>17 <span class='listMove' title="{'Drag to re-order'|@translate}"></span> 18 18 {/if} 19 19 {$data.translation|@translate} -
extensions/AMenuManager/amm.css
r8962 r16006 5 5 #iList table, table.listLinks { width:100%; text-align:left; border-collapse: collapse; } 6 6 7 div#iList.roma table tr:hover { background:#303030; }8 div#iList.clear table tr:hover { color: #D54E21; background:#dbe8f3; }9 7 #iList table tr.connectedSortable, 10 8 #iList li.connectedSortable { cursor: move; } … … 14 12 15 13 img.button { cursor:pointer; } 16 17 14 18 15 … … 61 58 } 62 59 li.menuListItem span.menuListMove { 63 position:absolute; 64 width:22px; 65 display:inline-block; 60 top:-15px; 66 61 } 67 62 li.menuListItem span.menuListName { 68 margin-left: 26px;63 margin-left:0px; 69 64 display:inline-block; 70 65 } … … 92 87 vertical-align:top; 93 88 } 89 span.buttonEdit, span.buttonDelete { 90 display:inline-block; 91 width:15px; 92 height:15px; 93 position:relative; 94 background-color:transparent; 95 background-image:url(./../GrumPluginClasses/icons/buttons.png); 96 background-repeat:no-repeat; 97 cursor:pointer; 98 } 99 -
extensions/AMenuManager/amm_aip.class.inc.php
r15366 r16006 51 51 l10n('g002_album'), 52 52 $this->getAdminLink().'-album'); 53 $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles().".css");54 53 } 55 54 … … 76 75 77 76 $template->assign('plugin', $template_plugin); 78 $template->assign('token', get_pwg_token()); 79 77 GPCCore::setTemplateToken(); 80 78 81 79 switch($_GET['tab']) … … 105 103 } 106 104 107 108 /**109 * initialize events call for the plugin110 */111 105 public function initEvents() 112 106 { 113 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS')); 114 GPCCss::applyGpcCss(); 115 } 116 107 parent::initEvents(); 108 add_event_handler('blockmanager_register_blocks', array(&$this, 'registerBlocks') ); 109 } 110 111 112 public function loadCSS() 113 { 114 global $template; 115 116 parent::loadCSS(); 117 GPCCore::addUI('gpcCSS'); 118 GPCCore::addHeaderCSS('amm.css', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().".css"); 119 GPCCore::addHeaderCSS('amm.cssT', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles().'_'.$template->get_themeconf('name').".css"); 120 } 117 121 118 122 /** -
extensions/AMenuManager/amm_ajax.php
r10247 r16006 21 21 22 22 define('PHPWG_ROOT_PATH',dirname(dirname(dirname(__FILE__))).'/'); 23 if(!defined('AJAX_CALL')) define('AJAX_CALL', true); 23 24 24 25 /* … … 26 27 */ 27 28 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']=''; 28 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) 29 { 30 define('IN_ADMIN', true); 31 } 29 if(preg_match('/^admin\./i', $_REQUEST['ajaxfct'])) define('IN_ADMIN', true); 32 30 33 31 // the common.inc.php file loads all the main.inc.php plugins files … … 60 58 global $user; 61 59 62 if(!isset($_REQUEST['ajaxfct'])) $_REQUEST['ajaxfct']='';63 60 if(!isset($_REQUEST['errcode'])) $_REQUEST['errcode']=''; 64 if(!isset($_REQUEST['token'])) $_REQUEST['token']='';61 GPCAjax::checkToken(); 65 62 66 63 // check if asked function is valid 67 if(!($_REQUEST[ 'ajaxfct']=='admin.links.get' or68 $_REQUEST[ 'ajaxfct']=='admin.links.set' or69 $_REQUEST[ 'ajaxfct']=='admin.links.list' or70 $_REQUEST[ 'ajaxfct']=='admin.links.delete' or71 $_REQUEST[ 'ajaxfct']=='admin.links.order' or72 $_REQUEST[ 'ajaxfct']=='admin.links.setConfig' or73 $_REQUEST[ 'ajaxfct']=='admin.randomPict.setConfig' or74 $_REQUEST[ 'ajaxfct']=='admin.blocks.get' or75 $_REQUEST[ 'ajaxfct']=='admin.blocks.set' or76 $_REQUEST[ 'ajaxfct']=='admin.blocks.delete' or77 $_REQUEST[ 'ajaxfct']=='admin.blocks.list' or78 $_REQUEST[ 'ajaxfct']=='admin.album.setConfig' or79 $_REQUEST[ 'ajaxfct']=='admin.coreBlocks.setConfig'80 )) $_REQUEST[ 'ajaxfct']='';81 82 if(preg_match('/^admin\./i', $_REQUEST[ 'ajaxfct']) and !is_admin()) $_REQUEST['ajaxfct']='';83 84 85 if($_REQUEST[ 'ajaxfct']!='')64 if(!($_REQUEST[GPC_AJAX]=='admin.links.get' or 65 $_REQUEST[GPC_AJAX]=='admin.links.set' or 66 $_REQUEST[GPC_AJAX]=='admin.links.list' or 67 $_REQUEST[GPC_AJAX]=='admin.links.delete' or 68 $_REQUEST[GPC_AJAX]=='admin.links.order' or 69 $_REQUEST[GPC_AJAX]=='admin.links.setConfig' or 70 $_REQUEST[GPC_AJAX]=='admin.randomPict.setConfig' or 71 $_REQUEST[GPC_AJAX]=='admin.blocks.get' or 72 $_REQUEST[GPC_AJAX]=='admin.blocks.set' or 73 $_REQUEST[GPC_AJAX]=='admin.blocks.delete' or 74 $_REQUEST[GPC_AJAX]=='admin.blocks.list' or 75 $_REQUEST[GPC_AJAX]=='admin.album.setConfig' or 76 $_REQUEST[GPC_AJAX]=='admin.coreBlocks.setConfig' 77 )) $_REQUEST[GPC_AJAX]=''; 78 79 if(preg_match('/^admin\./i', $_REQUEST[GPC_AJAX]) and !is_admin()) $_REQUEST[GPC_AJAX]=''; 80 81 82 if($_REQUEST[GPC_AJAX]!='') 86 83 { 87 84 /* … … 93 90 * check admin.blocks.get request 94 91 */ 95 if($_REQUEST[ 'ajaxfct']=='admin.links.get' or96 $_REQUEST[ 'ajaxfct']=='admin.blocks.get request')92 if($_REQUEST[GPC_AJAX]=='admin.links.get' or 93 $_REQUEST[GPC_AJAX]=='admin.blocks.get request') 97 94 { 98 95 if(!isset($_REQUEST['id'])) $_REQUEST['id']=''; 99 96 100 if($_REQUEST['id']=='') $_REQUEST[ 'ajaxfct']='';97 if($_REQUEST['id']=='') $_REQUEST[GPC_AJAX]=''; 101 98 } 102 99 … … 104 101 * check admin.links.set request 105 102 */ 106 if($_REQUEST[ 'ajaxfct']=='admin.links.set')103 if($_REQUEST[GPC_AJAX]=='admin.links.set') 107 104 { 108 105 if(!isset($_REQUEST['id'])) $_REQUEST['id']=''; … … 115 112 if(!isset($_REQUEST['datas']['accessGroups']) or $_REQUEST['datas']['accessGroups']=='') $_REQUEST['datas']['accessGroups']=array(); 116 113 117 if($_REQUEST['token']!=get_pwg_token() or 118 $_REQUEST['datas']['label']=='' or 114 if($_REQUEST['datas']['label']=='' or 119 115 $_REQUEST['datas']['url']=='' or 120 116 $_REQUEST['datas']['icon']=='' or 121 117 !($_REQUEST['datas']['mode']=='0' or $_REQUEST['datas']['mode']=='1') or 122 118 !($_REQUEST['datas']['visible']=='y' or $_REQUEST['datas']['visible']=='n') 123 ) $_REQUEST[ 'ajaxfct']='';119 ) $_REQUEST[GPC_AJAX]=''; 124 120 } 125 121 … … 129 125 * 130 126 */ 131 if($_REQUEST[ 'ajaxfct']=='admin.links.delete' or132 $_REQUEST[ 'ajaxfct']=='admin.blocks.delete')127 if($_REQUEST[GPC_AJAX]=='admin.links.delete' or 128 $_REQUEST[GPC_AJAX]=='admin.blocks.delete') 133 129 { 134 130 if(!isset($_REQUEST['id'])) $_REQUEST['id']=''; 135 131 136 if($_REQUEST['id']=='' or 137 $_REQUEST['token']!=get_pwg_token() 138 ) $_REQUEST['ajaxfct']=''; 132 if($_REQUEST['id']=='') $_REQUEST[GPC_AJAX]=''; 139 133 } 140 134 … … 142 136 * check admin.links.order request 143 137 */ 144 if($_REQUEST[ 'ajaxfct']=='admin.links.order')138 if($_REQUEST[GPC_AJAX]=='admin.links.order') 145 139 { 146 140 if(!isset($_REQUEST['datas']['links']) or $_REQUEST['datas']['links']=='') $_REQUEST['datas']['links']=array(); 147 141 148 if(count($_REQUEST['datas']['links'])<=1 or 149 $_REQUEST['token']!=get_pwg_token() 150 ) $_REQUEST['ajaxfct']=''; 142 if(count($_REQUEST['datas']['links'])<=1) $_REQUEST[GPC_AJAX]=''; 151 143 } 152 144 … … 155 147 * check admin.links.setConfig request 156 148 */ 157 if($_REQUEST[ 'ajaxfct']=='admin.links.setConfig')149 if($_REQUEST[GPC_AJAX]=='admin.links.setConfig') 158 150 { 159 151 if(!isset($_REQUEST['datas']['showIcons'])) $_REQUEST['datas']['showIcons']=''; 160 152 if(!isset($_REQUEST['datas']['title']) or $_REQUEST['datas']['title']=='') $_REQUEST['datas']['title']=array(); 161 153 162 if($_REQUEST['token']!=get_pwg_token() or 163 $_REQUEST['datas']['showIcons']=='' or 154 if($_REQUEST['datas']['showIcons']=='' or 164 155 count($_REQUEST['datas']['title'])==0 165 ) $_REQUEST[ 'ajaxfct']='';156 ) $_REQUEST[GPC_AJAX]=''; 166 157 } 167 158 … … 171 162 * check admin.randomPict.setConfig request 172 163 */ 173 if($_REQUEST[ 'ajaxfct']=='admin.randomPict.setConfig')164 if($_REQUEST[GPC_AJAX]=='admin.randomPict.setConfig') 174 165 { 175 166 if(!isset($_REQUEST['datas']['blockHeight'])) $_REQUEST['datas']['blockHeight']=''; … … 181 172 if(!isset($_REQUEST['datas']['selectCat']) or $_REQUEST['datas']['selectCat']=='') $_REQUEST['datas']['selectCat']=array(); 182 173 183 if($_REQUEST['token']!=get_pwg_token() or 184 !is_numeric($_REQUEST['datas']['blockHeight']) or 174 if(!is_numeric($_REQUEST['datas']['blockHeight']) or 185 175 count($_REQUEST['datas']['blockTitles'])==0 or 186 176 !($_REQUEST['datas']['infosName']=='n' or … … 196 186 ($_REQUEST['datas']['selectMode']=='c' and 197 187 count($_REQUEST['datas']['selectCat'])==0) 198 ) $_REQUEST[ 'ajaxfct']='';188 ) $_REQUEST[GPC_AJAX]=''; 199 189 } 200 190 … … 203 193 * check admin.blocks.set request 204 194 */ 205 if($_REQUEST[ 'ajaxfct']=='admin.blocks.set')195 if($_REQUEST[GPC_AJAX]=='admin.blocks.set') 206 196 { 207 197 if(!isset($_REQUEST['id'])) $_REQUEST['id']=''; … … 210 200 if(!isset($_REQUEST['datas']['langs']) or $_REQUEST['datas']['langs']=='') $_REQUEST['datas']['langs']=array(); 211 201 212 if($_REQUEST['token']!=get_pwg_token() or 213 $_REQUEST['datas']['nfo']=='' or 202 if($_REQUEST['datas']['nfo']=='' or 214 203 !($_REQUEST['datas']['visible']=='y' or $_REQUEST['datas']['visible']=='n') or 215 204 count($_REQUEST['datas']['langs'])==0 216 ) $_REQUEST[ 'ajaxfct']='';205 ) $_REQUEST[GPC_AJAX]=''; 217 206 } 218 207 … … 223 212 * check admin.coreBlocks.setConfig request 224 213 */ 225 if($_REQUEST[ 'ajaxfct']=='admin.coreBlocks.setConfig')214 if($_REQUEST[GPC_AJAX]=='admin.coreBlocks.setConfig') 226 215 { 227 216 if(!isset($_REQUEST['datas']['menuItems']) or $_REQUEST['datas']['menuItems']=='') $_REQUEST['datas']['menuItems']=array(); 228 217 if(!isset($_REQUEST['datas']['blocks']) or $_REQUEST['datas']['blocks']=='') $_REQUEST['datas']['blocks']=array(); 229 218 230 if($_REQUEST['token']!=get_pwg_token() or 231 count($_REQUEST['datas']['menuItems'])!=count($this->defaultMenus) 232 ) $_REQUEST['ajaxfct']=''; 219 if(count($_REQUEST['datas']['menuItems'])!=count($this->defaultMenus) 220 ) $_REQUEST[GPC_AJAX]=''; 233 221 } 234 222 … … 237 225 * check admin.album.setConfig request 238 226 */ 239 if($_REQUEST[ 'ajaxfct']=='admin.album.setConfig')227 if($_REQUEST[GPC_AJAX]=='admin.album.setConfig') 240 228 { 241 229 if(!isset($_REQUEST['datas']['selectCat']) or $_REQUEST['datas']['selectCat']=='') $_REQUEST['datas']['selectCat']=array(); 242 243 if($_REQUEST['token']!=get_pwg_token()) $_REQUEST['ajaxfct']=''; 244 } 245 230 } 246 231 247 232 } … … 256 241 { 257 242 $result="KO!".l10n('g002_error_invalid_ajax_call'); 258 switch($_REQUEST[ 'ajaxfct'])243 switch($_REQUEST[GPC_AJAX]) 259 244 { 260 245 case 'admin.links.get': … … 347 332 ); 348 333 } 349 350 334 $local_tpl->assign('themeconf', $template->get_template_vars('themeconf')); 351 335 $local_tpl->assign('datas', $datas); -
extensions/AMenuManager/amm_pip.class.inc.php
r15366 r16006 17 17 18 18 include_once(PHPWG_PLUGINS_PATH.'AMenuManager/amm_root.class.inc.php'); 19 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCAjax.class.inc.php');20 19 21 20 class AMM_PIP extends AMM_root … … 31 30 { 32 31 parent::__construct($prefixeTable, $filelocation); 33 $this->css = new GPCCss(dirname($this->getFileLocation()).'/'.$this->getPluginNameFiles()."2.css");34 32 35 33 $this->users=new GPCUsers(); … … 48 46 parent::initEvents(); 49 47 48 add_event_handler('blockmanager_register_blocks', array(&$this, 'registerBlocks') ); 50 49 add_event_handler('blockmanager_prepare_display', array(&$this, 'blockmanagerSortBlocks') ); 51 50 add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 45 ); 52 add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));53 51 add_event_handler('loc_end_page_header', array(&$this, 'applyJS')); 54 52 add_event_handler('get_categories_menu_sql_where', array(&$this, 'buildMenuFromCat'), 75); 53 } 54 55 public function loadCSS() 56 { 57 parent::loadCSS(); 58 GPCCore::addHeaderCSS('amm_main', 'plugins/'.$this->getDirectory().'/'.$this->getPluginNameFiles()."2.css"); 55 59 } 56 60 -
extensions/AMenuManager/amm_root.class.inc.php
r11582 r16006 20 20 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php'); 21 21 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCUsersGroups.class.inc.php'); 22 include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/GPCCss.class.inc.php');23 22 24 23 25 24 class AMM_root extends CommonPlugin 26 25 { 27 protected $css; //the css object28 26 protected $defaultMenus = array( 29 27 /* about visibility & accessibility system : … … 63 61 public function __destruct() 64 62 { 65 unset($this->css);66 63 unset($this->defaultMenus); 67 64 parent::__destruct(); … … 110 107 } 111 108 } 112 }113 114 public function loadConfig()115 {116 parent::loadConfig();117 }118 119 public function initEvents()120 {121 add_event_handler('blockmanager_register_blocks', array(&$this, 'registerBlocks') );122 109 } 123 110 -
extensions/AMenuManager/js/amm_blocks.js
r8962 r16006 260 260 } 261 261 } 262 ).inputList('value', ':invert') ;262 ).inputList('value', ':invert').css('display', 'block'); 263 263 264 264 -
extensions/AMenuManager/js/amm_links.js
r8962 r16006 34 34 url: options.ajaxUrl, 35 35 async: true, 36 data: { ajaxfct:"admin.links.list" },36 data: { ajaxfct:"admin.links.list", token:properties.token }, 37 37 success: 38 38 function(msg) … … 303 303 url: options.ajaxUrl, 304 304 async: true, 305 data: { ajaxfct:"admin.links.get", id:properties.id },305 data: { ajaxfct:"admin.links.get", id:properties.id, token:properties.token }, 306 306 success: 307 307 function(msg) … … 341 341 popupMode:'mouseout' 342 342 } 343 ) ;344 345 $('#iamm_mode').inputList({popupMode:'mouseout'}) ;343 ).css('display', 'block'); 344 345 $('#iamm_mode').inputList({popupMode:'mouseout'}).css('display', 'block'); 346 346 347 347 $('#iamm_visible').inputRadio(); -
extensions/AMenuManager/js/amm_personalisedBlocks.js
r10247 r16006 33 33 url: options.ajaxUrl, 34 34 async: true, 35 data: { ajaxfct:"admin.blocks.list" },35 data: { ajaxfct:"admin.blocks.list", token:properties.token }, 36 36 success: 37 37 function(msg) … … 257 257 url: options.ajaxUrl, 258 258 async: true, 259 data: { ajaxfct:"admin.blocks.get", id:properties.id },259 data: { ajaxfct:"admin.blocks.get", token:properties.token, id:properties.id }, 260 260 success: 261 261 function(msg) -
extensions/AMenuManager/js/amm_randomPictConfig.js
r8962 r16006 40 40 41 41 42 list=$('#iamm_randompicture_title').inputText('languagesValues') ;42 list=$('#iamm_randompicture_title').inputText('languagesValues').css('display', 'block'); 43 43 for(var id in list) 44 44 { … … 154 154 change: function () { $('#iConfigState').hide(); } 155 155 } 156 ).inputList('value', initValues.infosName) ;156 ).inputList('value', initValues.infosName).css('display', 'block'); 157 157 $('#iamm_randompicture_showcomment').inputList( 158 158 { … … 161 161 change: function () { $('#iConfigState').hide(); } 162 162 } 163 ).inputList('value', initValues.infosComment) ;163 ).inputList('value', initValues.infosComment).css('display', 'block'); 164 164 165 165 … … 169 169 change: function () { $('#iConfigState').hide(); } 170 170 } 171 ) ;171 ).css('display', 'block'); 172 172 173 173 $('#iamm_randompicture_title').inputText( … … 183 183 ); 184 184 185 $('#islang').inputList('value', initValues.userLang) ;185 $('#islang').inputList('value', initValues.userLang).css('display', 'block'); 186 186 187 187 -
extensions/AMenuManager/main.inc.php
r15366 r16006 246 246 global $prefixeTable, $page; 247 247 248 249 if(defined('IN_ADMIN')) 248 if(!defined('AJAX_CALL')) 250 249 { 251 //AMM admin part loaded and active only if in admin page 252 include_once("amm_aim.class.inc.php"); 253 $obj = new AMM_AIM($prefixeTable, __FILE__); 254 $obj->initEvents(); 255 set_plugin_data($plugin['id'], $obj); 256 } 257 else 258 { 259 if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED)) 250 if(defined('IN_ADMIN')) 260 251 { 261 AMM_root::checkPluginRelease(); 262 263 //AMM public part loaded and active only if in public page 264 include_once("amm_pip.class.inc.php"); 265 $obj = new AMM_PIP($prefixeTable, __FILE__); 252 //AMM admin part loaded and active only if in admin page 253 include_once("amm_aim.class.inc.php"); 254 $obj = new AMM_AIM($prefixeTable, __FILE__); 255 $obj->initEvents(); 266 256 set_plugin_data($plugin['id'], $obj); 267 257 } 258 else 259 { 260 if(CommonPlugin::checkGPCRelease(AMM_GPC_NEEDED) and !mobile_theme()) 261 { 262 AMM_root::checkPluginRelease(); 263 264 //AMM public part loaded and active only if in public page 265 include_once("amm_pip.class.inc.php"); 266 $obj = new AMM_PIP($prefixeTable, __FILE__); 267 set_plugin_data($plugin['id'], $obj); 268 } 269 } 268 270 } 269 271 270 272 273 271 274 ?> -
extensions/AMenuManager/menu_templates/menubar_links.tpl
r8962 r16006 4 4 {/if} 5 5 <dd> 6 <ul {if $block->data.icons=='y'} style="padding-left:4px;list-style:none;"{/if}>6 <ul {if $block->data.icons=='y'} class="amm-MenuBar-links-icons"{else}class="amm-MenuBar-links"{/if}> 7 7 {foreach from=$block->data.LINKS item=link} 8 8 <li>
Note: See TracChangeset
for help on using the changeset viewer.