From b1c11d267f3105a4ccac9b7f4e0bd2e18d490f45 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Fri, 29 Dec 2006 08:18:28 +0000 Subject: #90738 by jjeff and ChrisKennedy. first and last are not mutually exclusive. --- includes/theme.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'includes') 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 .= '
  • '; // Is the title HTML? -- cgit v1.2.3