2012-02-17, 21:14:22
Hi, I'm trying to re-write output for i18n navigation to match it with bootstrap structure:
I'm no php-programmer and can't figure how to alter output of the parent link without messing with sub-menu links. For example, if I change line 358 in i18n_navigation.php from this:
To this:
All links, parent and children, get altered.
Any advice how to re-write default output for navigation?
Again, I don't know php, so any help would be greatly appreciated. Thanks.
Code:
<ul class="nav">
<li class="dropdown">
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">
Account
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
...
</ul>
</li>
</ul>
I'm no php-programmer and can't figure how to alter output of the parent link without messing with sub-menu links. For example, if I change line 358 in i18n_navigation.php from this:
Code:
$html .= '<li class="' . $classes . '"><a href="' . $href . '" title="' . htmlspecialchars(html_entity_decode($title, ENT_QUOTES, 'UTF-8')) . '">' . $text . '</a>';
To this:
Code:
$html .= '<li class="' . $classes . '"><a class="dropdown-toggle"
data-toggle="dropdown" href="' . $href . '" title="' . htmlspecialchars(html_entity_decode($title, ENT_QUOTES, 'UTF-8')) . '">' . $text . ' <b class="caret"></b></a>';
All links, parent and children, get altered.
Any advice how to re-write default output for navigation?
Again, I don't know php, so any help would be greatly appreciated. Thanks.