Commit 536fe2bb authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#210479 by catch, dvessel: add newlines to list items, so inline display and...

#210479 by catch, dvessel: add newlines to list items, so inline display and RTL issues are resolved
parent 1a0e5b53
......@@ -1067,7 +1067,7 @@ function theme_menu_item($link, $has_children, $menu = '', $in_active_trail = FA
if ($in_active_trail) {
$class .= ' active-trail';
}
return '<li class="'. $class .'">'. $link . $menu .'</li>'."\n";
return '<li class="'. $class .'">'. $link . $menu ."</li>\n";
}
/**
......@@ -1076,7 +1076,7 @@ function theme_menu_item($link, $has_children, $menu = '', $in_active_trail = FA
* @ingroup themeable
*/
function theme_menu_local_task($link, $active = FALSE) {
return '<li '. ($active ? 'class="active" ' : '') .'>'. $link .'</li>';
return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n";
}
/**
......
......@@ -1429,7 +1429,7 @@ function theme_item_list($items = array(), $title = NULL, $type = 'ul', $attribu
if ($i == $num_items - 1) {
$attributes['class'] = empty($attributes['class']) ? 'last' : ($attributes['class'] .' last');
}
$output .= '<li'. drupal_attributes($attributes) .'>'. $data .'</li>';
$output .= '<li'. drupal_attributes($attributes) .'>'. $data ."</li>\n";
}
$output .= "</$type>";
}
......
......@@ -20,7 +20,7 @@ function blog_page_user($account) {
$items[] = l(t('Post new blog entry.'), "node/add/blog");
}
else if ($account->uid == $user->uid) {
$items[] = t('You are not allowed to post a new blog entry.') .'</li>';
$items[] = t('You are not allowed to post a new blog entry.');
}
$output = theme('item_list', $items);
......
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