Changeset 642 for trunk/include
- Timestamp:
- Dec 12, 2004, 10:06:39 PM (20 years ago)
- Location:
- trunk/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_calendar.inc.php
r612 r642 364 364 elseif (isset($page['calendar_day'])) 365 365 { 366 $old_level_separator = $conf['level_separator']; 367 $conf['level_separator'] = '<br />'; 366 368 // for each category of this day, display a random picture 367 369 foreach ($calendar_categories as $calendar_category => $nb_pics) … … 374 376 { 375 377 $cat_infos = get_cat_info( $calendar_category ); 376 $name = get_cat_display_name($cat_infos['name'],'<br />','',false); 378 379 $name = get_cat_display_name($cat_infos['name'],'',false); 377 380 $name = '['.$name.']'; 378 381 } … … 427 430 } 428 431 } 432 $conf['level_separator'] = $old_level_separator; 429 433 } 430 434 ?> -
trunk/include/category_recent_cats.inc.php
r610 r642 60 60 } 61 61 62 $old_level_separator = $conf['level_separator']; 63 $conf['level_separator'] = '<br />'; 62 64 // for each category, we have to search a recent picture to display and 63 65 // the name to display … … 91 93 } 92 94 } 95 $conf['level_separator'] = $old_level_separator; 93 96 ?> -
trunk/include/config.inc.php
r602 r642 77 77 // top_number : number of element to display for "best rated" and "most 78 78 // visited" categories 79 $conf['top_number'] = 1 0;79 $conf['top_number'] = 15; 80 80 81 81 // anti-flood_time : number of seconds between 2 comments : 0 to disable … … 169 169 $conf['show_gt'] = true; 170 170 171 // Default options for new categories. 172 // 173 // Some options for categories (commentable, uploadable, status, visible) 174 // must be set directly in the database by changing the corresponding 175 // default values of the column. Examples : 176 // 177 // ALTER TABLE phpwebgallery_categories ALTER visible SET DEFAULT 'true'; 178 // ALTER TABLE phpwebgallery_categories ALTER status SET DEFAULT 'private'; 179 // ALTER TABLE phpwebgallery_categories ALTER uploadable SET DEFAULT 'true'; 180 // ALTER TABLE phpwebgallery_categories ALTER commentable SET DEFAULT 'false'; 181 // 182 // MySQL default values are used when inserting a row and that no value is 183 // given for the column. In PhpWebGallery, the above columns are not valued 184 // during categories insertion, so default values are important. 171 // newcat_default_commentable : at creation, must a category be commentable 172 // or not ? 173 $conf['newcat_default_commentable'] = 'true'; 174 175 // newcat_default_uploadable : at creation, must a category be uploadable or 176 // not ? 177 $conf['newcat_default_uploadable'] = 'true'; 178 179 // newcat_default_visible : at creation, must a category be visible or not ? 180 // Warning : if the parent category is invisible, the category is 181 // automatically create invisible. (invisible = locked) 182 $conf['newcat_default_visible'] = 'true'; 183 184 // newcat_default_status : at creation, must a category be public or private 185 // ? Warning : if the parent category is private, the category is 186 // automatically create private. 187 $conf['newcat_default_status'] = 'public'; 188 189 // level_separator : character string used for separating a category level 190 // to the sub level 191 $conf['level_separator'] = ' / '; 185 192 ?> -
trunk/include/functions_category.inc.php
r641 r642 349 349 $page['title'] = 350 350 get_cat_display_name($page['cat_name'], 351 ' > ',352 351 'category.php?cat=', 353 352 false); … … 759 758 { 760 759 $option = get_cat_display_name_cache($category['uppercats'], 761 ' → ',762 760 '', 763 761 false); -
trunk/include/functions_html.inc.php
r614 r642 160 160 */ 161 161 function get_cat_display_name($cat_informations, 162 $separator,163 162 $url = 'category.php?cat=', 164 163 $replace_space = true) 165 164 { 165 global $conf; 166 166 167 $output = ''; 167 168 $is_first = true; … … 174 175 else 175 176 { 176 $output.= $ separator;177 $output.= $conf['level_separator']; 177 178 } 178 179 … … 206 207 * 207 208 * @param string uppercats 208 * @param string separator209 209 * @param string url 210 210 * @param boolean replace_space … … 212 212 */ 213 213 function get_cat_display_name_cache($uppercats, 214 $separator,215 214 $url = 'category.php?cat=', 216 215 $replace_space = true) 217 216 { 218 global $cat_names ;217 global $cat_names, $conf; 219 218 220 219 if (!isset($cat_names)) … … 243 242 else 244 243 { 245 $output.= $ separator;244 $output.= $conf['level_separator']; 246 245 } 247 246 -
trunk/include/functions_xml.inc.php
r593 r642 52 52 function getAttribute( $element, $attribute ) 53 53 { 54 // echo htmlentities($element).'<br /><br />'; 54 55 $regex = '/^<\w+[^>]*'.$attribute.'\s*=\s*"('.VAL_REG.')"/i'; 55 56 if ( preg_match( $regex, $element, $out ) ) return $out[1];
Note: See TracChangeset
for help on using the changeset viewer.