Commit 73740f01 authored by Riccardo Padovani's avatar Riccardo Padovani

Remove first level links from breadcrumb

parent a60faf68
......@@ -287,13 +287,9 @@ function valencia_breadcrumb_menu($vars) {
if (is_numeric($key)) {
// We need only active links
if ($link['#original_link']['in_active_trail']) {
// If is the first level link and it has children, we have our first
// link of breadcrumb!
// 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') {
$link_title = $link['#title'];
$link_href = $link['#href'];
$html .= '<ul class="breadcrumb">';
$html .= '<li>' . l($link_title, $link_href, array('html' => 'true')) . '&nbsp;&rsaquo;</li>';
// Now we need to attach second level menu
$sub_menu = theme('links__system_main_menu', array(
'links' => $link['#below'],
......
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