Mercurial > defr > drupal > core
comparison includes/theme.inc @ 5:2427550111ae 6.2
Drupal 6.2
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:08 +0100 |
parents | c1f4ac30525a |
children | fff6d4c8c043 |
comparison
equal
deleted
inserted
replaced
4:d94886ac61a0 | 5:2427550111ae |
---|---|
1 <?php | 1 <?php |
2 // $Id: theme.inc,v 1.415 2008/01/27 19:47:06 goba Exp $ | 2 // $Id: theme.inc,v 1.415.2.2 2008/03/25 11:55:08 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * The theme system, which controls the output of Drupal. | 6 * The theme system, which controls the output of Drupal. |
7 * | 7 * |
1101 $class .= ' first'; | 1101 $class .= ' first'; |
1102 } | 1102 } |
1103 if ($i == $num_links) { | 1103 if ($i == $num_links) { |
1104 $class .= ' last'; | 1104 $class .= ' last'; |
1105 } | 1105 } |
1106 if (isset($link['href']) && $link['href'] == $_GET['q']) { | 1106 if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))) { |
1107 $class .= ' active'; | 1107 $class .= ' active'; |
1108 } | 1108 } |
1109 $output .= '<li class="'. $class .'">'; | 1109 $output .= '<li class="'. $class .'">'; |
1110 | 1110 |
1111 if (isset($link['href'])) { | 1111 if (isset($link['href'])) { |
1550 else { | 1550 else { |
1551 $name = $object->name; | 1551 $name = $object->name; |
1552 } | 1552 } |
1553 | 1553 |
1554 if (user_access('access user profiles')) { | 1554 if (user_access('access user profiles')) { |
1555 $output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.'))); | 1555 $output = l($name, 'user/'. $object->uid, array('attributes' => array('title' => t('View user profile.')))); |
1556 } | 1556 } |
1557 else { | 1557 else { |
1558 $output = check_plain($name); | 1558 $output = check_plain($name); |
1559 } | 1559 } |
1560 } | 1560 } |