diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-29 08:18:28 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-29 08:18:28 +0000 |
commit | b1c11d267f3105a4ccac9b7f4e0bd2e18d490f45 (patch) | |
tree | 2fffb261c25e76e6ae640acb430010d906cc43ee /includes | |
parent | 3bbf87d27918b2e5b4e40e483f3c85a5dbc6d02d (diff) | |
download | brdo-b1c11d267f3105a4ccac9b7f4e0bd2e18d490f45.tar.gz brdo-b1c11d267f3105a4ccac9b7f4e0bd2e18d490f45.tar.bz2 |
#90738 by jjeff and ChrisKennedy. first and last are not mutually exclusive.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 6581b5cdb..05626586a 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -534,8 +534,14 @@ function theme_links($links, $attributes = array('class' => 'links')) { $class = $key; } - // Add first and last classes to the list of links to help out themers - $extra_class = ($i == 1) ? 'first ' : (($i == $num_links) ? 'last ' : ''); + // Add first and last classes to the list of links to help out themers. + $extra_class = ''; + if ($i == 1) { + $extra_class .= 'first '; + } + if ($i == $num_links) { + $extra_class .= 'last '; + } $output .= '<li class="'. $extra_class . $class .'">'; // Is the title HTML? |