Changeset 7330
- Timestamp:
- Oct 22, 2010, 1:56:23 AM (14 years ago)
- Location:
- extensions/Random_Header
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Random_Header/admin/rh_admin.php
r7134 r7330 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 4 global $template ;4 global $template,$conf; 5 5 $me = get_plugin_data($plugin_id); 6 6 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php'); … … 23 23 } 24 24 25 $rhscreenshot=(file_exists(PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png')) ? PHPWG_THEMES_PATH.$pwg_templateID . '/screenshot.png' : PHPWG_ROOT_PATH.'admin/themes/'.$conf['admin_theme'].'/images/missing_screenshot.png'; 26 $rhthemboxclass=($me->rh_config[$pwg_templateID]['selected_cat']!=0) ? 'themeDefault' : 'toto'; 27 25 28 $template->append('rhthemes', array( 26 29 'CURRENT_THEME_NAME'=> $pwg_template, … … 32 35 'HEAD_CSS' => $me->rh_config[$pwg_templateID]['head_css'], 33 36 'IMG_CSS' => $me->rh_config[$pwg_templateID]['img_css'], 34 'CATSELECTED' => $me->rh_config[$pwg_templateID]['selected_cat'] 37 'CATSELECTED' => $me->rh_config[$pwg_templateID]['selected_cat'], 38 'SCREENSHOT_URL' => $rhscreenshot, 39 'THEMEBOXCLASS' => $rhthemboxclass 35 40 )); 36 41 } -
extensions/Random_Header/admin/rh_admin.tpl
r7134 r7330 1 {html_head}<style type="text/css"> 2 .randomHeader_fieldset legend{ldelim}color:#ff3363;font-weight:bold;} 3 .randomHeader_fieldset{ldelim}width:345px;float:left;overflow-x:auto;padding:5px;margin:3px;} 4 .rh_input{ldelim}width:335px;} 1 {html_head} 2 <link rel="stylesheet" type="text/css" href="plugins/random_header/admin/rh_admin.css"> 3 {/html_head} 5 4 6 .themeBox {ldelim} 7 display: block; 8 width: 185px; 9 } 10 </style>{/html_head} 11 <div class="titrePage"><h2>Random Header v2.1</h2></div> 5 6 <div class="titrePage"><h2>Random Header v2.2</h2></div> 12 7 <p>{'rh_description'|@translate}</p> 13 8 <p><i>{'rh_aide'|@translate}</i></p> 14 9 <form method="post" action="" class="properties"> 15 10 16 {foreach from=$rhthemes item=i} 17 <fieldset class="randomHeader_fieldset"> 11 12 <div id="themesContent"> 13 <fieldset> 14 <legend>{'rh_active_conf'|@translate}</legend> 15 16 17 <div class="themeBoxes"> 18 {foreach from=$rhthemes item=i} 19 {if $i.CATSELECTED!=0} 20 21 22 <div class="themeBox {$i.THEMEBOXCLASS}"> 23 <div class="themeName">{$i.CURRENT_THEME_NAME}</div> 24 <div class="themeShot"><img src="{$i.SCREENSHOT_URL}" alt=""></div> 25 <div class="themeActions"> 26 <div> 27 <a href="javascript:void(0)" onclick="document.getElementById('light{$i.CURRENT_THEME_ID}').style.display='block';document.getElementById('fade').style.display='block'" title="">Configurer</a> 28 </div> 29 </div> <!-- themeActions --> 30 </div> 31 32 33 34 35 36 37 <div id="light{$i.CURRENT_THEME_ID}" class="rhconfpanel"> 38 <fieldset class="randomHeader_fieldset" style="float:left;"> 18 39 19 40 <legend>{'rh_theme'|@translate} : {$i.CURRENT_THEME_NAME}</legend> 41 20 42 <p> 21 43 <label> … … 46 68 47 69 <p> 48 <label>{'rh_concat'|@translate} :< br /></label>49 {'rh_before'|@translate} : <input type="checkbox" {$i.CONCAT_BEFORE} name="{$i.CURRENT_THEME_ID}concat_before"> {'rh_after'|@translate} : <input type="checkbox" {$i.CONCAT_AFTER} name="{$i.CURRENT_THEME_ID}concat_after">70 <label>{'rh_concat'|@translate} :</label> 71 <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} 50 72 </p> 51 73 52 74 </fieldset> 53 {/foreach} 75 <div style="float:right;"> 76 <a style="border:none;" href="javascript:void(0)" onclick="document.getElementById('light{$i.CURRENT_THEME_ID}').style.display='none';document.getElementById('fade').style.display='none'" titlte="{'Close this window'|@translate}"> 77 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/exit.png" class="button" alt="exit"></a> 78 </div> 79 <br /> 80 <div align="center" style="clear:left;"><input class="submit" type="submit" value="{'rh_submit'|@translate}" name="submit" /></div> 81 82 83 84 </div> 85 86 87 {/if} 88 {/foreach} 89 90 </fieldset> 91 92 93 94 95 <fieldset> 96 <legend>{'rh_inactive_conf'|@translate} : </legend> 97 98 99 <div class="themeBoxes"> 100 {foreach from=$rhthemes item=i} 101 {if $i.CATSELECTED==0} 102 103 104 <div class="themeBox {$i.THEMEBOXCLASS}"> 105 <div class="themeName">{$i.CURRENT_THEME_NAME}</div> 106 <div class="themeShot"><img src="{$i.SCREENSHOT_URL}" alt=""></div> 107 <div class="themeActions"> 108 <div> 109 <a href="javascript:void(0)" onclick="document.getElementById('light{$i.CURRENT_THEME_ID}').style.display='block';document.getElementById('fade').style.display='block'" title="">Configurer</a> 110 </div> 111 </div> <!-- themeActions --> 112 </div> 113 114 115 116 117 118 119 <div id="light{$i.CURRENT_THEME_ID}" class="rhconfpanel"> 120 <fieldset class="randomHeader_fieldset" style="float:left;"> 121 122 <legend>{'rh_theme'|@translate} : {$i.CURRENT_THEME_NAME}</legend> 123 124 <p> 125 <label> 126 {'rh_headers_category'|@translate}<br /> 127 <select class="categoryDropDown" name="{$i.CURRENT_THEME_ID}selected_cat"> 128 <option value="0">{'rh_inactif'|@translate}</option> 129 {html_options options=$categories selected=$i.CATSELECTED} 130 </select> 131 </label> 132 </p> 133 134 <p> 135 <input type="checkbox" {$i.MODE_BACKGROUND} name="{$i.CURRENT_THEME_ID}mode_background"> 136 <label>{'rh_as_background'|@translate}</label> 137 </p> 138 139 <p> 140 <input type="checkbox" {$i.ACTIVE_ON_PICTURE} name="{$i.CURRENT_THEME_ID}active_on_picture"> 141 <label>{'rh_on_picture'|@translate}</label> 142 </p> 143 144 <p> 145 <label>{'rh_additional_css'|@translate} :<br /></label> 146 <i>#theHeader :</i><br /> 147 <input class="rh_input" type="text" name="{$i.CURRENT_THEME_ID}head_css" value="{$i.HEAD_CSS}"><br /> 148 <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 /> 149 </p> 150 151 <p> 152 <label>{'rh_concat'|@translate} :</label> 153 <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} 154 </p> 155 156 </fieldset> 157 <div style="float:right;"> 158 <a style="border:none;" href="javascript:void(0)" onclick="document.getElementById('light{$i.CURRENT_THEME_ID}').style.display='none';document.getElementById('fade').style.display='none'" titlte="{'Close this window'|@translate}"> 159 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/exit.png" class="button" alt="exit"></a> 160 </div> 161 <br /> 162 <div align="center" style="clear:left;"><input class="submit" type="submit" value="{'rh_submit'|@translate}" name="submit" /></div> 163 164 165 166 </div> 167 168 169 {/if} 170 {/foreach} 171 172 </fieldset> 173 174 </div> 175 <div id="fade" class="black_overlay"></div> 176 54 177 <div align="center" style="clear:left"><input class="submit" type="submit" value="{'rh_submit'|@translate}" name="submit" /></div> 55 178 </form> -
extensions/Random_Header/language/de_DE/plugin.lang.php
r7184 r7330 34 34 $lang['rh_aide'] = 'Notiz :<br />DIE BILDER SIND FUER ALLE ERSICHTLICH (Egal ob Privatkategorie oder nicht)<br />Der CSS-Style für das Bild (#RandomImage) wird beim Hintergrundbild nicht benützt<br>Die CSS-Felder müssen den CSS-Normen entsprechen (ex: "overflow:auto;color:red;")<br />Im Hintergrundbildmodus ist das <a href="admin.php?page=configuration">zusammenfügen der Bannerseiten</a> inaktiv'; 35 35 $lang['rh_additional_css'] = 'Zusätlicher CSS-Style'; 36 $lang['rh_inactif_on_bg'] = 'Inaktiv als Hintergrundbild'; 36 $lang['rh_inactif_on_bg'] = 'Inaktiv als Hintergrundbild'; 37 $lang['rh_active_conf'] = 'Thema für Random Header konfiguriert'; 38 $lang['rh_inactive_conf'] = 'Unkonfiguriert Thema für Random Header'; 37 39 ?> -
extensions/Random_Header/language/en_UK/plugin.lang.php
r4538 r7330 35 35 $lang['rh_additional_css'] = 'Additional CSS Style'; 36 36 $lang['rh_inactif_on_bg'] = 'disable on background mode'; 37 $lang['rh_active_conf'] = 'Themes configured for Random Header'; 38 $lang['rh_inactive_conf'] = 'Themes not configured for Random Header'; 37 39 ?> -
extensions/Random_Header/language/es_ES/plugin.lang.php
r5879 r7330 35 35 $lang['rh_additional_css'] = 'Estilo CSS adicional'; 36 36 $lang['rh_inactif_on_bg'] = 'inactivo para la imagen de fondo'; 37 $lang['rh_active_conf'] = 'Temas configurado para Random Header'; 38 $lang['rh_inactive_conf'] = 'Temas no configurado para pour Random Header'; 37 39 ?> -
extensions/Random_Header/language/fr_FR/plugin.lang.php
r4538 r7330 35 35 $lang['rh_additional_css'] = 'Style CSS additionnel'; 36 36 $lang['rh_inactif_on_bg'] = 'inactif en image de fond'; 37 $lang['rh_active_conf'] = 'Thèmes configurés pour Random Header'; 38 $lang['rh_inactive_conf'] = 'Thèmes non configurés pour Random Header'; 37 39 ?> -
extensions/Random_Header/language/it_IT/plugin.lang.php
r5755 r7330 35 35 $lang['rh_additional_css'] = 'Stile CSS addizionale'; 36 36 $lang['rh_inactif_on_bg'] = 'inattiva come immagine di sfondo'; 37 $lang['rh_active_conf'] = 'Tema configurato per Random Header'; 38 $lang['rh_inactive_conf'] = 'Tema non configurato per Random Header'; 37 39 ?> -
extensions/Random_Header/main.inc.php
r7134 r7330 2 2 /* 3 3 Plugin Name: Random Header 4 Version: 2. 14 Version: 2.2 5 5 Description: Random Header allow you to show in the header a random picture from the choosen categorie, as a normal image, or as a background 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=188 … … 10 10 11 11 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 12 DEFINE('RH_VERSION','v2. 1');12 DEFINE('RH_VERSION','v2.2'); 13 13 define('RH_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 14 14
Note: See TracChangeset
for help on using the changeset viewer.