/**
 * Prints a context sensitive menu of all pages as a unordered html list
 *
 * @param string $option The mode for the menu:
 * 												"list" context sensitive toplevel plus sublevel pages,
 * 												"list-top" only top level pages,
 * 												"omit-top" only sub level pages
 * 												"list-sub" lists only the current pages direct offspring
 * @param string $css_id CSS id of the top level list
 * @param string $css_class_topactive class of the active item in the top level list
 * @param string $css_class CSS class of the sub level list(s)
 * @param string $$css_class_active CSS class of the sub level list(s)
 * @param string $indexname insert the name (default "Gallery Index") how you want to call the link to the gallery index, insert "" (default) if you don't use it, it is not printed then.
 * @param int $showsubs Set to depth of sublevels that should be shown always. 0 by default. To show all, set to a true! Only valid if option=="list".
 * @param bool $startlist set to true to output the UL tab
 * @@param int $limit truncation of display text
 * @return string
 */
function printPageMenu($option = 'list', $css_id = NULL, $css_class_topactive = NULL, $css_class = NULL, $css_class_active = NULL, $indexname = NULL, $showsubs = 0, $startlist = true, $limit = NULL)
{
    printNestedMenu($option, 'pages', false, $css_id, $css_class_topactive, $css_class, $css_class_active, $indexname, $showsubs, $startlist, $limit);
}
示例#2
0
					<?php 
    printNestedMenu('list', 'pages', false, null, 'active', null, 'active', null, true, true, 30);
    ?>
				</li>
				<?php 
    if ($zpfocus_news) {
        ?>
				<li><a href="<?php 
        echo getNewsIndexURL();
        ?>
"><?php 
        echo gettext('News');
        ?>
</a>
					<?php 
        printNestedMenu('list', 'categories', false, null, 'active', null, 'active', null, true, true, 30);
        ?>
				</li>
				<?php 
    }
    ?>
				<?php 
}
?>
				<?php 
if (function_exists('printContactForm')) {
    ?>
				<li><?php 
    printCustomPageURL(gettext('Contact'), "contact");
    ?>
</li>