Note
- most things you want to do is possible using CSS and the existing classes
- investigate using CSS before using conditionals because CSS is faster
Description
Show only the current page name.
Source code
echo "Title = ";
show_menu2(0, SM2_CURR, SM2_CURR, SM2_ALL|SM2_PRETTY,
'[if(class==menu-current){ [menu_title] }]',
'', '', '');
show_menu2(0, SM2_CURR, SM2_CURR, SM2_ALL|SM2_PRETTY,
'[if(class==menu-current){ [menu_title] }]',
'', '', '');
Example results
Title =
Show only current
Note
This is an example of conditional output only. This actual result is obtained easier and more efficiently using the PAGE_TITLE define.
Source code
echo "Title = ".PAGE_TITLE;
Example results
Title = Show only current