Changeset 7412
- Timestamp:
- Oct 26, 2010, 11:42:43 PM (14 years ago)
- Location:
- extensions/Random_Header
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Random_Header/admin/rh_admin.php
r7401 r7412 32 32 $me->rh_config[$pwg_templateID]['img_css'] = $_POST[$pwg_templateID.'img_css']; 33 33 $me->rh_config[$pwg_templateID]['mode_background'] = (isset( $_POST[$pwg_templateID.'mode_background'] )) ? $_POST[$pwg_templateID.'mode_background'] : 'off' ; 34 $me->rh_config[$pwg_templateID]['root_link'] = (isset( $_POST[$pwg_templateID.'root_link'] )) ? $_POST[$pwg_templateID.'root_link'] : 'off' ; 34 35 $me->save_config(); 35 36 … … 46 47 'CONCAT_BEFORE' => ($me->rh_config[$pwg_templateID]['concat_before']=='on') ? 'checked' : '', 47 48 'CONCAT_AFTER' => ($me->rh_config[$pwg_templateID]['concat_after']=='on') ? 'checked' : '', 49 'ROOT_LINK' => ($me->rh_config[$pwg_templateID]['root_link']=='on') ? 'checked' : '', 48 50 'HEAD_CSS' => $me->rh_config[$pwg_templateID]['head_css'], 49 51 'IMG_CSS' => $me->rh_config[$pwg_templateID]['img_css'], -
extensions/Random_Header/admin/rh_theme_conf.tpl
r7378 r7412 39 39 <i>#theHeader :</i><br> 40 40 <input class="rh_input" type="text" name="{$i.CURRENT_THEME_ID}head_css" value="{$i.HEAD_CSS}"><br> 41 <i>#RandomImage : {'rh_inactif_on_bg'|@translate}</i><br><input class="rh_input" type="text" name="{$i.CURRENT_THEME_ID}img_css" value="{$i.IMG_CSS}"><br> 41 <i>#RandomImage : {'rh_inactif_on_bg'|@translate}</i><br> 42 <input class="rh_input" type="text" name="{$i.CURRENT_THEME_ID}img_css" value="{$i.IMG_CSS}"> 42 43 </p> 43 44 … … 45 46 <label>{'rh_concat'|@translate} :</label> 46 47 <input type="checkbox" {$i.CONCAT_BEFORE} name="{$i.CURRENT_THEME_ID}concat_before"> {'rh_before'|@translate} <input type="checkbox" {$i.CONCAT_AFTER} name="{$i.CURRENT_THEME_ID}concat_after"> {'rh_after'|@translate} 48 </p> 49 50 <p> 51 <input type="checkbox" {$i.ROOT_LINK} name="{$i.CURRENT_THEME_ID}root_link"> 52 <label>{'rh_root_link'|@translate}</label> 47 53 </p> 48 54 -
extensions/Random_Header/language/en_UK/plugin.lang.php
r7357 r7412 37 37 $lang['rh_active_conf'] = 'Themes configured for Random Header'; 38 38 $lang['rh_inactive_conf'] = 'Themes not configured for Random Header'; 39 $lang['rh_root_link'] = 'Link to home on image'; 39 40 ?> -
extensions/Random_Header/language/fr_FR/plugin.lang.php
r7357 r7412 37 37 $lang['rh_active_conf'] = 'Thèmes configurés pour Random Header'; 38 38 $lang['rh_inactive_conf'] = 'Thèmes non configurés pour Random Header'; 39 $lang['rh_root_link'] = 'Hyperlien vers l\'accueil sur l\'image'; 39 40 ?> -
extensions/Random_Header/main.inc.php
r7362 r7412 32 32 $this->rh_config[$pwg_templateID]['concat_before'] ='off' ; 33 33 $this->rh_config[$pwg_templateID]['concat_after'] ='off' ; 34 $this->rh_config[$pwg_templateID]['root_link'] ='off' ; 34 35 35 36 $this->save_config(); … … 80 81 $template->append('head_elements','<style>#theHeader{'. $this->rh_config[$usertheme]['head_css'] .'}#theHeader #RandomImage{'. $this->rh_config[$usertheme]['img_css'] .'}</style>'); 81 82 $page['page_banner'] = ($this->rh_config[$usertheme]['concat_before']=='on') ? $conf['page_banner'] : ''; 83 $page['page_banner'].= ($this->rh_config[$usertheme]['root_link']=='on') ? '<a href="'.PHPWG_ROOT_PATH.'" title="'.l10n('Home').'">' : ''; 82 84 $page['page_banner'].= '<img id="RandomImage" src="'.$toto[0].'">'; 85 $page['page_banner'].= ($this->rh_config[$usertheme]['root_link']=='on') ? '</a>' : ''; 83 86 $page['page_banner'].= ($this->rh_config[$usertheme]['concat_after']=='on') ? $conf['page_banner'] : ''; 84 87 }
Note: See TracChangeset
for help on using the changeset viewer.