Here's what i did with the code you provided (entire template):
Code: Select all
{strip}
<div class="container">
<div class="row">
{$main_id = ' id=\'footer-menu\''}
{function do_footer_class}
{if count($classes) > 0} class='{implode(' ',$classes)}'{/if}
{/function}
{function name='Simplex_footer_menu' depth='1'}
<ul{$main_id}{if isset($ul_class) && $ul_class != ''} class="{$ul_class} col-md-12"{/if}>
{$main_id = ''}
{$ul_class = ''}
{foreach $data as $node}
{* setup classes for the anchor and list item *}
{$list_class = []}
{$href_class = []}
{if $node->current || $node->parent}
{* this is the current page *}
{$list_class[] = 'current'}
{$href_class[] = 'current'}
{/if}
{if $node->children_exist}
{$list_class[] = 'parent'}
{/if}
{* build the menu item node *}
{if $node->type == 'sectionheader'}
{* section header *}
<li class="sectionheader{if $node->parent} activeparent{/if}">
{if isset($node->children)}<a href="{$node->children.0->url}">{$node->menutext}</a>
{else}
{$node->menutext}
{/if}
{if isset($node->children)}
<!-- {$node->children|print_r} -->
{include file=$smarty.template nodes=$node->children depth=$depth+1}
{/if}
</li>
{else if $node->type == 'separator'}
{$list_class[] = 'separator'}
<li{do_footer_class classes=$list_class}'><hr class='separator'/></li>
{else}
{* regular item *}
<li{do_footer_class classes=$list_class}>
<a{do_footer_class classes=$href_class} href='{$node->url}'{if $node->target != ''} target='{$node->target}'{/if}>{$node->menutext}</a>
{if isset($node->children)}
{Simplex_footer_menu data=$node->children depth=$depth+1}
{/if}
</li>
{/if}
{/foreach}
</ul>
{/function}
{if isset($nodes)}
{Simplex_footer_menu data=$nodes depth='0' ul_class='cf'}
{/if}
</div>
</div>
{/strip}
Here is the link to the page where sitemap is:
http://www.adriaticsolution.hr/index.php?page=marine
As you can see if you hover on "Tech & Repairs" (for example), it looks like the rest of the links but there is no link on it ("Tech & Repairs" is one of those section headers I'm trying to solve).
However, there is a difference between this template and original one: Section headers were in bold when original template was used. I guess it's not really important but just to note...
I was looking at this
Code: Select all
{if isset($node->children)}<a href="{$node->children.0->url}">{$node->menutext}</a>
and this
Code: Select all
{include file=$smarty.template nodes=$node->children depth=$depth+1}
to see if I can figure out if there is something I could change to make it work but I got stuck again.
