Changeset 18667 for trunk/include/functions_html.inc.php
- Timestamp:
- Oct 16, 2012, 9:58:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r17975 r18667 435 435 { 436 436 global $page; 437 $title = count($page['tags']) > 1 ? l10n('Tag') : l10n('Tag'); 438 $title.= ' '; 437 $title = '<a href="'.get_root_url().'tags.php" title="'.l10n('display available tags').'">' 438 . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' ) 439 . '</a> '; 439 440 440 441 for ($i=0; $i<count($page['tags']); $i++) … … 455 456 .'</a>'; 456 457 457 $remove_url = null; 458 if (count($page['tags']) == 1) 459 { 460 $remove_url = get_root_url().'tags.php'; 461 } 462 else 458 if (count($page['tags']) > 2) 463 459 { 464 460 $other_tags = $page['tags']; … … 469 465 ) 470 466 ); 471 } 472 473 $title.=474 '<a href="'.$remove_url.'" style="border:none;" title="'475 .l10n('remove this tag from the list')476 .'"><img src="'477 . get_root_url().get_themeconf('icon_dir').'/remove_s.png'478 .'" alt="x" style="vertical-align:bottom;">'479 .'</a>';467 468 $title.= 469 '<a href="'.$remove_url.'" style="border:none;" title="' 470 .l10n('remove this tag from the list') 471 .'"><img src="' 472 .get_root_url().get_themeconf('icon_dir').'/remove_s.png' 473 .'" alt="x" style="vertical-align:bottom;">' 474 .'</a>'; 475 } 480 476 } 481 477 return $title;
Note: See TracChangeset
for help on using the changeset viewer.