Changeset 14971 for extensions
- Timestamp:
- May 14, 2012, 6:18:42 PM (13 years ago)
- Location:
- extensions/PersoAbout
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PersoAbout/admin/admin.php
r9851 r14971 34 34 case 'gest': 35 35 36 //charge Perso About 37 $query = ' 38 select param,value 39 FROM ' . CONFIG_TABLE . ' 40 WHERE param = "persoAbout" 41 ;'; 42 $result = pwg_query($query); 36 $template->assign( 37 'gestA', 38 array('PPABASE' => $conf['persoAbout'],)); 43 39 44 $row = mysql_fetch_array($result);45 46 $template->assign(47 'gestA',48 array(49 'PPABASE' => $row['value'],50 ));51 52 53 //insértion de meta dans la table54 40 if (isset($_POST['submitppa']) and !is_adviser()) 55 41 { 56 $query = ' 57 UPDATE ' . CONFIG_TABLE . ' 58 SET value= \''.$_POST['perso_about'].'\' 59 WHERE param = "persoAbout" 60 ;'; 61 $result = pwg_query($query); 42 conf_update_param('persoAbout', $_POST['perso_about']); 62 43 63 44 $template->assign( 64 45 'gestA', 65 array( 66 'PPABASE' => stripslashes($_POST['perso_about']), 67 )); 68 46 array('PPABASE' => stripslashes($_POST['perso_about']),)); 69 47 } 70 71 break; 48 break; 72 49 73 50 // Tab help … … 75 52 $template->assign( 76 53 'gestB', 77 array( 78 'meta'=>l10n('meta_name'), 79 )); 80 break; 54 array('meta'=>l10n('null'),)); 55 break; 81 56 82 57 } -
extensions/PersoAbout/admin/admin.tpl
r8115 r14971 7 7 <fieldset id="mainConf"> 8 8 <span class="property"> 9 <label for="ppaperso">{'ppa_perso'|@translate}</label> 9 <label for="ppaperso">{'ppa_perso'|@translate}</label><br><br> 10 10 </span> 11 11 <textarea rows="5" cols="50" class="description" name="perso_about" id="perso_about">{$gestA.PPABASE}</textarea> -
extensions/PersoAbout/language/en_UK/plugin.lang.php
r11241 r14971 4 4 //Tab gest 5 5 $lang['ppa_tab_gest'] = 'Management'; 6 $lang['ppa_perso'] = 'P ersonal About';6 $lang['ppa_perso'] = 'Paragraph personnel to about page'; 7 7 8 8 //Tab help -
extensions/PersoAbout/language/fr_FR/plugin.lang.php
r9425 r14971 4 4 //Tab gest 5 5 $lang['ppa_tab_gest'] = 'Gestion'; 6 $lang['ppa_perso'] = ' A propos perso';6 $lang['ppa_perso'] = 'Paragraphe personnel pour la page about'; 7 7 8 8 //Tab help -
extensions/PersoAbout/main.inc.php
r8116 r14971 30 30 function ppa() 31 31 { 32 global $template ;32 global $template, $conf; 33 33 $template->set_prefilter('about', 'ppaT'); 34 34 35 35 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 36 36 if($PAED['state'] == 'active') add_event_handler('AP_render_content', 'get_user_language_desc'); 37 37 38 $query = ' 39 select param,value 40 FROM ' . CONFIG_TABLE . ' 41 WHERE param = "persoAbout" 42 ;'; 43 $result = pwg_query($query); 44 $row = mysql_fetch_array($result); 45 $pat=trigger_event('AP_render_content', $row['value']); 38 $pat=trigger_event('AP_render_content', $conf['persoAbout']); 46 39 if (!empty($pat)) 47 40 {
Note: See TracChangeset
for help on using the changeset viewer.