Changeset 14972 for extensions/PersoFooter/main.inc.php
- Timestamp:
- May 14, 2012, 6:42:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PersoFooter/main.inc.php
r11216 r14972 23 23 } 24 24 25 add_event_handler('loc_end_page_tail', 'pft'); 26 27 25 add_event_handler('loc_end_page_tail', 'pft'); 28 26 function pft() 29 27 { 30 28 if ((script_basename() != 'admin')) 31 29 { 32 global $template; 33 34 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 30 global $template, $conf; 31 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 35 32 if($PAED['state'] == 'active') add_event_handler('AP_render_content', 'get_user_language_desc'); 36 33 37 $query = ' 38 select param,value 39 FROM ' . CONFIG_TABLE . ' 40 WHERE param = "persoFooter" 41 ;'; 42 $result = pwg_query($query); 43 $row = mysql_fetch_array($result); 44 $pat=trigger_event('AP_render_content', $row['value']); 34 $pat=trigger_event('AP_render_content', $conf['persoFooter']); 45 35 if (!empty($pat)) 46 36 { … … 50 40 $template->set_filename('PERSO_FOOTER', realpath(PFT_PATH.'persofooter.tpl')); 51 41 $template->append('footer_elements', $template->parse('PERSO_FOOTER', true)); 52 53 42 } 54 43 }
Note: See TracChangeset
for help on using the changeset viewer.