View Single Post
  #14  
Old June 17th, 2013, 02:30 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Try replacing this:
HTML Code:
[category.list before='<ul class="dropdown-menu">' after='</ul>'] 
    <li style="list-style-type: none;margin:0px;"> 
      <a href="[category.link]" title="[category.name]">[category.name]</a>
      [category.repeat]
   </li>
[/category.list]
With this:
HTML Code:
<?php if (!empty($category->children)) : ?>
	[category.list before='<ul class="dropdown-menu">' after='</ul>']
		<?php if (!empty($category->children)) : ?>
			<li class="dropdown-submenu" style="list-style-type: none;margin:0px;"> 
		<?php else : ?>
			<li style="list-style-type: none;margin:0px;"> 
		<?php endif; ?>
		  <a href="[category.link]" title="[category.name]">[category.name]</a>
		  [category.repeat]
	   </li>
	[/category.list]
<?php endif; ?>
Eric