Changeset 1092 for trunk/include/functions_html.inc.php
- Timestamp:
- Mar 22, 2006, 2:01:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1090 r1092 67 67 $title .= ' '.$lang['days']; 68 68 $size = getimagesize( $icon_url ); 69 $icon_url = get_root_url().$icon_url; 69 70 $output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;'; 70 71 $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />'; … … 245 246 * categories string returned contains categories as given in the input 246 247 * array $cat_informations. $cat_informations array must be an association 247 * of {category_id => category_name}. If url input parameter is empty,248 * of {category_id => category_name}. If url input parameter is null, 248 249 * returns only the categories name without links. 249 250 * … … 254 255 */ 255 256 function get_cat_display_name($cat_informations, 256 $url = ' category.php?/category/',257 $url = '', 257 258 $replace_space = true) 258 259 { … … 272 273 } 273 274 274 if ( $url == '')275 if ( !isset($url) ) 275 276 { 276 277 $output.= $name; 278 } 279 elseif ($url == '') 280 { 281 $output.= '<a class=""'; 282 $output.= ' href="'.make_index_url( array('category'=>$id) ).'">'; 283 $output.= $name.'</a>'; 277 284 } 278 285 else … … 307 314 */ 308 315 function get_cat_display_name_cache($uppercats, 309 $url = ' category.php?/category/',316 $url = '', 310 317 $replace_space = true) 311 318 { … … 340 347 } 341 348 342 if ( $url == '')349 if ( !isset($url) ) 343 350 { 344 351 $output.= $name; 352 } 353 elseif ($url == '') 354 { 355 $output.= ' 356 <a class="" 357 href="'.make_index_url( array('category'=>$category_id) ).'">'.$name.'</a>'; 345 358 } 346 359 else … … 475 488 476 489 function get_cat_display_name_from_id($cat_id, 477 $url = ' category.php?/category/',490 $url = '', 478 491 $replace_space = true) 479 492 {
Note: See TracChangeset
for help on using the changeset viewer.