Location: PHPKode > projects > ZompLog > layout/menu.php
<?php // the functions used here are defined in admin/functions_menu.php 

if(!$settings){ echo "Direct access is not allowed."; exit; } // no hacking around here

	
if($menutype != 'list'){ // when you want to use <li></li> for the menu of your theme, see below

?>	
	
<?php if ($settings[about]){ ?>
    <h2 class="about_title"><?php echo "$lang_about"; ?></h2>
    <?php about('<br />'); ?>
    <br />
<?php } ?>		
    
<?php if ($settings[search]){ ?>	
    <form method="get" action="<?php echo "index.php?search=$search"; ?>">
    <input name='search' type='text' size="15" value="<?php echo "$_GET[search]"; ?>" />
    <input type="submit" value="<?php echo "$lang_search"; ?>" />
    </form>
    <br />
<?php } ?>

<?php if ($settings[teasers]){ ?>
    <h2 class="teaser_title"><?php echo "$lang_teasers"; ?></h2>
    <?php displayTeasers('<br />'); ?>
    <br />
<?php } ?>

<?php 
$hook = 'blogmenu'; 
include("admin/loadplugins.php");
?>

<?php if ($settings[archive]){ ?>	
    <h2 class="archive_title"><?php echo "$lang_archive"; ?></h2>
    <a href='<?php if(ROOT){ echo ROOT."archive"; }else{ echo "index.php?content=archive"; } ?>'><?php echo "$lang_archive"; ?></a>
    <br /><br />
<?php } ?>

<?php if ($settings[latestentries]){ ?>	
    <h2 class="lastentries_title"><?php echo "$lang_latest_entries"; ?></h2>
    <?php displaylatestEntries('<br />'); ?>
    <br />
<?php } ?>

<?php if ($settings[latestcomments]){ ?>	
    <h2 class="lastcomments_title"><?php echo "$lang_latest_comments"; ?></h2>
    <?php displaylatestComments('<br />'); ?>
    <br />
<?php } ?>

<!-- START PAGES - if you want the pages to be displayed in the menu in stead of the header, then activate this part and remove the appropriate lines from function showMenuTabs() in file admin/functions.php
<?php if ($settings[pages]){ ?>
    <h2 class="pages_title"><?php echo "$lang_pages"; ?></h2>
    <?php displayPages('<br />'); ?>
    <br />
<?php } ?>
END PAGES -->

<!-- START CATEGORIES - if you want the categories to be displayed in the menu in stead of the header, then activate this part and remove the appropriate lines from function showMenuTabs() in file admin/functions.php
<?php if ($settings[categories]){ ?>
    <h2 class="categories_title"><?php echo "$lang_categories"; ?></h2>
    <?php displayCategories('<br />'); ?>
    <br />
<?php } ?>
END CATEGORIES -->

<?php if ($settings[authors]){ ?>
    <h2 class="author_title"><?php echo "$lang_authors"; ?></h2>
    <?php displayAuthors('<br />'); ?>
    <br />
<?php } ?>

<?php if ($settings[meta]){ ?>
    <h2 class="meta_title"><?php echo "$lang_meta"; ?></h2>
    <a href="<?php if(ROOT){ echo ROOT."rss"; }else{ echo "rss.php"; } ?>" target="_blank">RSS</a><br />
    <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><?php echo "$lang_valid"; ?> <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a><br />
    <br />
<?php } ?>

<?php if ($settings[login]){ ?>
    <h2 class="admin_title"><?php echo"$lang_admin"; ?></h2>
    <a href="<?php if(ROOT){ echo ROOT."login"; }else{ echo "login.php"; } ?>"><?php echo "$lang_login"; ?></a><br />
    <br />
<?php } ?>
<?php if ($settings[use_join]){ ?>
    <a href="<?php if(ROOT){ echo ROOT."register"; }else{ echo "join.php"; } ?>"><?php echo "$lang_register"; ?></a><br />
    <br />
<?php } ?>

<?php if ($settings[customfield]){ ?>
    <div class="customfield"><?php echo "$settings[customfield]<br />"; ?></div>
<?php } ?>	

<?php
$hook = 'blogmenu-bottom';
include("admin/loadplugins.php");

/*--------------------------------------------- list-type menu --------------------------------------------*/

}else{

// when you want to use <li></li> for the menu of your theme, see below

?>
<ul>

<?php if ($settings[search]){ ?>				
    <li>
    <form method="get" action="<?php echo "index.php?search=$search"; ?>">
    <input name='search' type='text' size="15" value="<?php echo "$_GET[search]"; ?>" />
    <input type="submit" value="<?php echo "$lang_search"; ?>" />
    </form>
    </li>
<?php } ?>

<?php 
$hook = 'blogmenu'; 
include("admin/loadplugins.php");
?>

<?php if ($settings[about]){ ?>
    <li>
    <h2 class="about_title"><?php echo "$lang_about"; ?></h2><br />
    <ul><li><?php about('<br />'); ?></li></ul>
    </li>
<?php } ?>		

<?php if ($settings[teasers]){ ?>
    <li>
    <h2 class="teaser_title"><?php echo "$lang_teasers"; ?></h2><br />
    <ul><?php displayTeasersList(''); ?></ul>
    </li>
<?php } ?>		

<?php if ($settings[archive]){ ?>	
    <li>
    <h2 class="archive_title"><?php echo "$lang_archive"; ?></h2>
    <ul><li><a href='?content=archive'><?php echo "$lang_archive"; ?></a></li></ul>
    </li>
<?php } ?>

<?php if ($settings[latestentries]){ ?>	
    <li>
    <h2 class="lastentries_title"><?php echo "$lang_latest_entries"; ?></h2>
    <ul><?php displaylatestEntriesList(''); ?></ul>
    </li>
<?php } ?>

<?php if ($settings[latestcomments]){ ?>	
    <h2 class="lastcomments_title"><?php echo "$lang_latest_comments"; ?></h2>
    <li>
    <ul>
    <?php displaylatestCommentsList(''); ?></ul>
    </li>
<?php } ?>

<?php if ($settings[pages]){ ?>				
    <li>
    <h2 class="pages_title"><?php echo "$lang_pages"; ?></h2>
    <ul><?php displayPagesList(''); ?></ul>
    </li>
<?php } ?>

<!-- START CATEGORIES - if you want the categories displayed in the menu in stead of the header, then activate this part and remove the menutabs from index.php
<?php if ($settings[categories]){ ?>	
    <li>
    <h2 class="categories_title"><?php echo "$lang_categories"; ?></h2>
    <ul><?php displayCategoriesList(''); ?></ul>
    </li>
<?php } ?>				
END CATEGORIES -->

<?php if ($settings[authors]){ ?>
    <li>
    <h2 class="author_title"><?php echo "$lang_authors"; ?></h2>
    <ul><?php displayAuthorsList(''); ?></ul>
    </li>
<?php } ?>

<?php if ($settings[meta]){ ?>
    <li>
    <h2 class="meta_title"><?php echo "$lang_meta"; ?></h2>
    <ul><li><a href="<?php if(ROOT){ echo ROOT."rss"; }else{ echo "rss.php"; } ?>" target="_blank">RSS</a><br /></li>
    <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><?php echo "$lang_valid"; ?> <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li><br /></ul>
    </li>
<?php } ?>

<?php if ($settings[login]){ ?>
    <li>
    <h2 class="admin_title"><?php echo"$lang_admin"; ?></h2>
    <ul><li><a href="<?php if(ROOT){ echo ROOT."login"; }else{ echo "login.php"; } ?>"><?php echo "$lang_login"; ?></a></li></ul>
    </li>
<?php } ?>
<?php if ($settings[use_join]){ ?>
    <li>
    <ul><li><a href="<?php if(ROOT){ echo ROOT."register"; }else{ echo "join.php"; } ?>"><?php echo "$lang_register"; ?></a></li></ul>
    </li>
<?php } ?>				

<?php if ($settings[customfield]){ ?>
    <div class="customfield"><?php echo "$settings[customfield]<br />"; ?></div>
<?php } ?>			

<?php
$hook = 'blogmenu-bottom';
include("admin/loadplugins.php");
?>

</ul>

<?php } ?>
Return current item: ZompLog