Changeset 5947
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/viewhelper/smarty/function.modulenavigation.php
r5946 r5947 58 58 * 1) convert short urls 59 59 * 2) execute callback conditions of menu items 60 * 3) use name as title, if title is not defined 60 61 * 61 62 * @param array $modulenavigation … … 98 99 } 99 100 101 /** 102 * 3) use name as title, if title is not defined 103 */ 104 if($modulenavigation['title'] == '') 105 { 106 $modulenavigation['title'] = $modulenavigation['name']; 107 } 108 100 109 return $modulenavigation; 101 110 } -
trunk/themes/core/view/smarty/modulenavigation-generic.tpl
r5945 r5947 81 81 {* if the condition is not met, then do not display the menu item *} 82 82 {if isset($item.condition) === true and $item.condition === false} 83 {continue} 83 84 {* the condition is not met, let's show that, but only in debug mode *} 85 {if DEBUG == true} 86 <li> 87 <a href="{$item.url}" 88 title="{$item.title} The condition of this menu item is false. The menu item will not be displayed, when DEBUG mode is off."> 89 <span>{$item.name} <font color="red">(!)</font></span> 90 </a> 91 </li> 92 {else} 93 {continue} 84 94 {/if} 85 95 96 {else} 86 97 <li> 87 98 <a href="{$item.url}" title="{$item.title}"> <span>{$item.name}</span> </a> 88 99 </li> 100 {/if} 101 89 102 {/foreach} 90 103 </ul>
Note: See TracChangeset
for help on using the changeset viewer.
