Commit b1c11d26 authored by drumm's avatar drumm

#90738 by jjeff and ChrisKennedy. first and last are not mutually exclusive.

parent 3bbf87d2
......@@ -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?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment