Commit 52872a55 authored by Pietro Albini's avatar Pietro Albini

Fixed a bug in valencia_breadcrumb_menu (ul tag opened at the wrong moment)

parent 0e4be613
......@@ -310,7 +310,6 @@ function valencia_breadcrumb_menu($vars) {
// If is the first level link and it has children,
// we start to create the breadcrumb
if(!empty($link['#below']) && $link['#original_link']['depth'] === '1') {
$html .= '<ul class="breadcrumb">';
// Now we need to attach second level menu
$sub_menu = theme('links__system_main_menu', array(
'links' => $link['#below'],
......@@ -321,6 +320,7 @@ function valencia_breadcrumb_menu($vars) {
// Second level link: could be the active one, or only a
// breadcrumb for third level (or both)
else if ($link['#original_link']['depth'] === '2') {
$html .= '<ul class="breadcrumb">';
// If it hasn't child, is the active link
if (empty($link['#below'])) {
$link_title = $link['#title'];
......
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