- Timestamp:
- Mar 9, 2006, 2:57:13 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin.php
r1058 r1071 58 58 //----------------------------------------------------- template initialization 59 59 $title = l10n('PhpWebGallery Administration'); // for include/page_header.php 60 $page[' gallery_title'] = l10n('PhpWebGallery Administration');60 $page['page_banner'] = '<h1>'.l10n('PhpWebGallery Administration').'</h1>'; 61 61 $page['body_id'] = 'theAdminPage'; 62 62 include(PHPWG_ROOT_PATH.'include/page_header.php'); -
trunk/admin/configuration.php
r1048 r1071 51 51 { 52 52 $conf[$row['param']] = $_POST[$row['param']]; 53 } 54 } 53 if ( 'page_banner'==$row['param'] ) 54 { // should we do it for all ? 55 $conf[$row['param']] = stripslashes( $conf[$row['param']] ); 56 } 57 } 58 } 55 59 //------------------------------ verification and registration of modifications 56 60 if (isset($_POST['submit'])) … … 106 110 } 107 111 } 108 112 109 113 // updating configuration if no error found 110 114 if (count($page['errors']) == 0) … … 117 121 { 118 122 $value = $_POST[$row['param']]; 119 120 if ('gallery_title' == $row['param'] 121 or 'gallery_description' == $row['param']) 123 124 if ('gallery_title' == $row['param']) 122 125 { 123 126 if (!$conf['allow_html_descriptions']) … … 126 129 } 127 130 } 128 131 129 132 $query = ' 130 133 UPDATE '.CONFIG_TABLE.' … … 153 156 154 157 'U_HELP' => PHPWG_ROOT_PATH.'/popuphelp.php?page=configuration', 155 158 156 159 'F_ACTION'=>$action 157 160 )); … … 162 165 { 163 166 $html_check='checked="checked"'; 164 167 165 168 $history_yes = ($conf['log']=='true')?'checked="checked"':''; 166 169 $history_no = ($conf['log']=='false')?'checked="checked"':''; 167 170 $lock_yes = ($conf['gallery_locked']=='true')?'checked="checked"':''; 168 171 $lock_no = ($conf['gallery_locked']=='false')?'checked="checked"':''; 169 172 170 173 $template->assign_block_vars( 171 174 'general', … … 179 182 ? 'RATE_ANONYMOUS_YES' : 'RATE_ANONYMOUS_NO')=>$html_check, 180 183 'CONF_GALLERY_TITLE' => $conf['gallery_title'], 181 'CONF_ GALLERY_DESCRIPTION' => $conf['gallery_description'],184 'CONF_PAGE_BANNER' => $conf['page_banner'], 182 185 'CONF_GALLERY_URL' => $conf['gallery_url'], 183 186 )); … … 190 193 $validate_yes = ($conf['comments_validation']=='true')?'checked="checked"':''; 191 194 $validate_no = ($conf['comments_validation']=='false')?'checked="checked"':''; 192 195 193 196 $template->assign_block_vars( 194 197 'comments', … … 208 211 $expand_yes = ($conf['auto_expand']=='true')?'checked="checked"':''; 209 212 $expand_no = ($conf['auto_expand']=='false')?'checked="checked"':''; 210 213 211 214 $template->assign_block_vars( 212 215 'default', … … 223 226 'SHOW_COMMENTS_NO'=>$show_no 224 227 )); 225 228 226 229 $blockname = 'default.language_option'; 227 230 228 231 foreach (get_languages() as $language_code => $language_name) 229 232 { … … 242 245 $selected = ''; 243 246 } 244 247 245 248 $template->assign_block_vars( 246 249 $blockname, … … 270 273 $selected = ''; 271 274 } 272 275 273 276 $template->assign_block_vars( 274 277 $blockname, … … 281 284 } 282 285 283 286 284 287 break; 285 288 } -
trunk/include/page_header.php
r1004 r1071 25 25 // | USA. | 26 26 // +-----------------------------------------------------------------------+ 27 27 28 28 // 29 29 // Start output of page … … 39 39 isset($page['gallery_title']) ? 40 40 $page['gallery_title'] : $conf['gallery_title'], 41 42 ' GALLERY_DESCRIPTION' =>43 isset($page[' gallery_description']) ?44 $page[' gallery_description'] : $conf['gallery_description'],45 41 42 'PAGE_BANNER' => 43 isset($page['page_banner']) ? 44 $page['page_banner'] : $conf['page_banner'], 45 46 46 'BODY_ID' => 47 47 isset($page['body_id']) ? 48 48 $page['body_id'] : '', 49 49 50 50 'CONTENT_ENCODING' => $lang_info['charset'], 51 51 'PAGE_TITLE' => $title, 52 52 'LANG'=>$lang_info['code'], 53 53 'DIR'=>$lang_info['direction'], 54 54 55 55 'T_STYLE' => $css 56 56 )); -
trunk/install/config.sql
r1044 r1071 16 16 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_locked','false','Lock your gallery temporary for non admin users'); 17 17 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_title','PhpWebGallery demonstration site','Title at top of each page and for RSS feed'); 18 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_description','My photos web site','Short description displayed with gallery title');19 18 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('gallery_url','http://demo.phpwebgallery.net','URL given in RSS feed'); 20 19 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('rate','true','Rating pictures feature is enabled'); 21 20 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('rate_anonymous','true','Rating pictures feature is also enabled for visitors'); 21 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('page_banner','<div id=\"theHeader\"><h1>PhpWebGallery demonstration site</h1><p>My photos web site</p></div>','html displayed on the top each page of your gallery'); 22 22 -
trunk/install/phpwebgallery_structure.sql
r1070 r1071 79 79 CREATE TABLE `phpwebgallery_config` ( 80 80 `param` varchar(40) NOT NULL default '', 81 `value` varchar(255) default NULL,81 `value` text, 82 82 `comment` varchar(255) default NULL, 83 83 PRIMARY KEY (`param`) -
trunk/language/en_UK.iso-8859-1/admin.lang.php
r1070 r1071 119 119 $lang['PhpWebGallery Administration'] = 'PhpWebGallery Administration'; 120 120 $lang['PhpWebGallery version'] = 'PhpWebGallery version'; 121 $lang['Page banner'] = 'Page banner'; 121 122 $lang['Picture informations updated'] = 'Picture informations updated'; 122 123 $lang['Position'] = 'Position'; -
trunk/language/en_UK.iso-8859-1/help/configuration.html
r1044 r1071 14 14 <ul> 15 15 16 <li><strong>Gallery title</strong>: displayed on top of each public17 page.</li>16 <li><strong>Gallery title</strong>: used in RSS feed and notifications by 17 email.</li> 18 18 19 <li><strong> Gallery description</strong>: displayed under gallery20 title.</li>19 <li><strong>Page banner</strong>: displayed on top of each public 20 page.</li> 21 21 22 22 <li><strong>Gallery URL</strong>: used for the RSS feed.</li> … … 34 34 <li><strong>Rating</strong>: Picture rating feature is enabled.</li> 35 35 36 <li><strong>Rating by guests</strong>: Even non registered users can 36 <li><strong>Rating by guests</strong>: Even non registered users can 37 37 rate images.</li> 38 38 -
trunk/language/fr_FR.iso-8859-1/admin.lang.php
r1070 r1071 112 112 $lang['Order by'] = 'Trier selon'; 113 113 $lang['Other private categories'] = 'Autres catégories privées'; 114 $lang['Page banner'] = 'Bannière des pages'; 114 115 $lang['Parent category'] = 'Catégorie parente'; 115 116 $lang['Path'] = 'Chemin'; -
trunk/language/fr_FR.iso-8859-1/help/configuration.html
r1044 r1071 14 14 <ul> 15 15 16 <li><strong>Titre de la galerie</strong>: affiché en haut de chaque page17 de la partie publique.</li>16 <li><strong>Titre de la galerie</strong>: utilisé pour le flux RSS et 17 la notification par email.</li> 18 18 19 <li><strong> Description de la galerie</strong>: affiché en dessous du20 titre de la galerie.</li>19 <li><strong>Bannière des pages</strong>: code html affiché en haut des 20 pages.</li> 21 21 22 22 <li><strong>URL de la galerie</strong>: utilisé pour le flux RSS.</li> … … 34 34 <li><strong>Notation</strong>: La notation des photos est possible.</li> 35 35 36 <li><strong>Notation par les visiteurs</strong>: Même les utilisateurs 36 <li><strong>Notation par les visiteurs</strong>: Même les utilisateurs 37 37 non enregistrés peuvent noter les images.</li> 38 38 -
trunk/popuphelp.php
r879 r1071 34 34 35 35 $page['body_id'] = 'thePopuphelpPage'; 36 $page['gallery_title'] = $title = l10n('PhpWebGallery Help'); 36 $title = l10n('PhpWebGallery Help'); 37 $page['page_banner'] = '<h1>'.$title.'</h1>'; 37 38 include(PHPWG_ROOT_PATH.'include/page_header.php'); 38 39 -
trunk/search_rules.php
-
Property
svn:eol-style
set to
native
r1015 r1071 46 46 47 47 $page['body_id'] = 'thePopuphelpPage'; 48 $page['gallery_title'] = $title = l10n('PhpWebGallery Help'); 48 $title = l10n('PhpWebGallery Help'); 49 $page['page_banner'] = '<h1>'.$title.'</h1>'; 49 50 include(PHPWG_ROOT_PATH.'include/page_header.php'); 50 51 … … 195 196 'CONTENT' => sprintf( 196 197 l10n($lang_items['period']), 197 198 198 199 format_date($search['fields'][ $keys['after'] ]['date']), 199 200 inc_exc_str($search['fields'][ $keys['after'] ]['inc']), … … 212 213 'CONTENT' => sprintf( 213 214 l10n($lang_items['before']), 214 215 215 216 format_date($search['fields'][ $keys['before'] ]['date']), 216 217 inc_exc_str($search['fields'][ $keys['before'] ]['inc']) … … 226 227 'CONTENT' => sprintf( 227 228 l10n($lang_items['after']), 228 229 229 230 format_date($search['fields'][ $keys['after'] ]['date']), 230 231 inc_exc_str($search['fields'][ $keys['after'] ]['inc']) -
Property
svn:eol-style
set to
-
trunk/template/yoga/admin/configuration.tpl
r1044 r1071 20 20 21 21 <li> 22 <label for=" gallery_description"><strong>{lang:Gallery description}</strong></label>23 <textarea cols="50" rows="5" name=" gallery_description" id="gallery_description">{general.CONF_GALLERY_DESCRIPTION}</textarea>22 <label for="page_banner"><strong>{lang:Page banner}</strong></label> 23 <textarea cols="50" rows="5" name="page_banner" id="page_banner">{general.CONF_PAGE_BANNER}</textarea> 24 24 </li> 25 25 26 26 <li> 27 <label for="gallery_ title"><strong>{lang:Gallery URL}</strong></label>27 <label for="gallery_url"><strong>{lang:Gallery URL}</strong></label> 28 28 <input type="text" maxlength="255" size="50" name="gallery_url" id="gallery_url" value="{general.CONF_GALLERY_URL}" /> 29 29 </li> … … 41 41 </li> 42 42 </ul> 43 43 44 44 <ul> 45 45 <li> … … 140 140 <!-- END default --> 141 141 </fieldset> 142 142 143 143 <p> 144 144 <input type="submit" name="submit" value="{lang:Submit}"> -
trunk/template/yoga/header.tpl
r1020 r1071 28 28 <div id="the_page"> 29 29 30 <div id="theHeader"> 31 <h1>{GALLERY_TITLE}</h1> 32 <p>{GALLERY_DESCRIPTION}</p> 33 </div> 30 {PAGE_BANNER}
Note: See TracChangeset
for help on using the changeset viewer.