Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
frontend:breadcrumb [2012/05/18 18:02] giancarlo |
frontend:breadcrumb [2012/11/25 21:25] giancarlo |
/* $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */ | /* $breadcrumbs[] = l($matches[1], 'fedora/repository/' . $pid); */ |
| |
if (strlen($parent) >0) { | if ((strlen($parent) >0) && ($level <10)) { |
/* if (substr($matches[1],-11,6) == '- page') { */ | /* if (substr($matches[1],-11,6) == '- page') { */ |
if (substr($matches[1],-11,6) != '- page') { | if (substr($matches[1],-11,6) != '- page') { |
/* } */ | /* } */ |
/* else if (strlen($matches[1]) > 20){ */ | /* else if (strlen($matches[1]) > 20){ */ |
if (strlen($matches[1]) > 20){ | if (strlen($matches[1]) > 25){ |
$breadcrumbs[] = l(substr($matches[1],0,20) . '...', 'fedora/repository/' . $pid); | $breadcrumbs[] = l(htmlentities(substr($matches[1],0,25)) . '...', 'fedora/repository/' . $pid); |
} | } |
else { | else { |