diff options
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? |