Permalink
Browse files

# [#29710] mod_breadcrumbs: Custom separator is not applied. Thanks

Constantin
  • Loading branch information...
Constantin Romankiewicz authored and infograf768 committed Nov 18, 2012
1 parent 344dd56 commit 6aca7b31b78a20be275663a4f2b7b2f219ecd512
Showing with 17 additions and 8 deletions.
  1. +2 −1 installation/CHANGELOG
  2. +15 −7 modules/mod_breadcrumbs/tmpl/default.php
View
@@ -32,7 +32,8 @@ $ -> Language fix or change
# [#29687] *Adapting hathor to new message using editor
# [#29679] *Passwords fields not required when creating a new user in back-end
# [#29698] *Adding bootsrtap-rtl to compiler, correcting some rtl classes
- # [#29693] *Position of Article Info. Setting Use Global not saved. Menu Manager: Edit Menu Item and Article Manager: Edit Article. Thanks Volkmar
+ # [#29693] *Position of Article Info. Setting Use Global not saved. Menu Manager: Edit Menu Item and Article Manager: Edit Article. Thanks Volkmar
+ # [#29710] mod_breadcrumbs: Custom separator is not applied. Thanks Constantin
16-Nov-2012 Jean-Marie Simonet
$+ Adding Uyghur ug-CN installation files
@@ -18,29 +18,37 @@
}
?>
<?php for ($i = 0; $i < $count; $i ++) :
+
// Workaround for duplicate Home when using multilanguage
if ($i == 1 && !empty($list[$i]->link) && !empty($list[$i - 1]->link) && $list[$i]->link == $list[$i - 1]->link)
{
continue;
}
+
// If not the last item in the breadcrumbs add the separator
echo '<li>';
if ($i < $count - 1)
{
- if (!empty($list[$i]->link)) {
- echo '<a href="'.$list[$i]->link.'" class="pathway">'.$list[$i]->name.'</a>';
- } else {
+ if (!empty($list[$i]->link))
+ {
+ echo '<a href="' . $list[$i]->link . '" class="pathway">' . $list[$i]->name . '</a>';
+ }
+ else
+ {
echo '<span>';
echo $list[$i]->name;
echo '</span>';
}
if ($i < $count - 2)
{
- echo '<span class="divider">/</span>';
+ echo '<span class="divider">' . $separator . '</span>';
}
- } elseif ($params->get('showLast', 1)) { // when $i == $count -1 and 'showLast' is true
- if($i > 0){
- echo '<span class="divider">/</span>';
+ }
+ elseif ($params->get('showLast', 1)) // when $i == $count -1 and 'showLast' is true
+ {
+ if ($i > 0)
+ {
+ echo '<span class="divider">' . $separator . '</span>';
}
echo '<span>';
echo $list[$i]->name;

0 comments on commit 6aca7b3

Please sign in to comment.