Hello !
First sorry for the "Frenglish" ! i dont know how to use and where put show_menu2 (); in the template i use.
here is the index.php
<?php
/*
WebsiteBaker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2005, Ryan Djurovich
WebsiteBaker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
WebsiteBaker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with websitebaker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--
__________________________________________________________
| |
| DESIGN + http://www.top.rebalton.com Francesco Zambotti
| DATE + 2006.06.12 |
| COPYRIGHT + free use if this notice is kept in place |
|_________________________________________________________|
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><?php page_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
<meta name="description" content="<?php page_description(); ?>" />
<meta name="keywords" content="<?php page_keywords(); ?>" />
<link href="<?php echo TEMPLATE_DIR; ?>/topmenu.css" rel="stylesheet" type="text/css" media="screen" />
<link href="<?php echo TEMPLATE_DIR; ?>/base.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body id="pagetop" class="en">
<!-- Main site container -->
<div id="generale" class="home">
<!-- Upper border -->
<div id="bordosopra">
</div>
<!-- // Upper border -->
<!-- Main site header : holds the img, search and top menu -->
<div id="top" >
<div id="menup">
<div id="header">
</div>
<!-- Top Menu -->
<ul id="menu">
<li class="divisoremenu"></li>
<?php $count = 0;
// Loop
while($page = $menu1->fetchRow()) {
// Controllo pagina
if(!isset($admin) OR $admin->show_page($page)) {
?>
<li class="premuto">
<a class="menuHead" href="<?php echo page_link($page['link']); ?>"><?php echo stripslashes($page['menu_title']); ?></a></li>
<li class="divisoremenu"></li>
<?php
$count = $count+1;
}
}
?>
</ul>
<!-- // Top Menu -->
</div>
</div>
<!-- // Main site header -->
<!-- contents -->
<div id="content">
<!-- Container of "center page" -->
<div id="main">
<!-- ============================== -->
<!-- Contents -->
<!-- ============================== -->
<div id="contenuti" class="container">
<?php page_content(); ?>
<div class="section">
<div class="secbody">
<p> </p>
</div>
</div>
</div>
</div>
<!-- ============================== -->
<!-- Right Side -->
<!-- ============================== -->
<div id="destra">
<div align="center" id="risorse" class="section">
<?php if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') { ?>
<?php } ?>
<div class="surround">
<p><img src="http://francor.free.fr/images/login.gif"></p>
<?php
if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') {
?>
<form action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
<p><?php echo $TEXT['USERNAME']; ?>:
<input type="text" name="username" style="text-transform: lowercase;" /></p>
<?php echo $TEXT['PASSWORD']; ?>:
<input type="password" name="password" />
<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: text-transform: uppercase;" />
<p><a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?></p>
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
<?php } ?>
</form>
<?php
} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) {
?>
<form action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
<p><?php echo $TEXT['LOGGED_IN']; ?></p>
<p><?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?></p>
<p>
<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
<br />
<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a></p>
</form>
<?php
}
?>
</div>
</div>
<div align="center" id="segnalibri" class="section">
<p><a href="http://feeds.feedburner.com/scrollvideo" rel="alternate" type="application/rss+xml"><img src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/scrollvideo" rel="alternate" type="application/rss+xml">RSS Videos</a></p>
<p><a href="http://feeds.feedburner.com/scrollvideo"><img src="http://feeds.feedburner.com/~fc/scrollvideo?bg=CC9900&fg=000000&anim=0&label=Scrolls" height="26" width="88" style="border:0" alt="" /></a></p>
</div>
</div>
<!-- // End Right side -->
<div id="bottom">
</div><!-- // #bottom -->
<div id="footer">
<ul>
<li id="footertx"><?php page_footer(); ?></li>
</ul>
</div><!-- // #footer -->
<div id="close">
</div><!-- // #close site -->
<div id="spaziovuoto">
</div>
</div><!-- // #close contents -->
</div><!-- // #close main site container -->
</body>
</html>
and the topmenu.css :
/* MENU SUPERIORE */
div#menup {
text-align:center;
}
ul#menu {
height: 47px;
line-height:47px;
padding-left: 29px;
padding-right: 39px;
list-style: none;
background: url(images/menu.gif) no-repeat 0 0;
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
ul#menu li {
float: left;
height: 47px;
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
ul#menu li a {
height: 47px;
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
li.premuto a {
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
width:auto;
height: 47px;
}
div.premuto li#premuto a,
li.premuto a:active,
li.premuto a:hover {
background: url(images/menupremuto.gif);
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
padding-left: 15px;
padding-right: 15px;
}
.menuHead
{
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
padding-left: 15px;
padding-right: 15px;
}
a.menuHead
{
color: White;
font-size: 12px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
padding-bottom: 12px;
padding-top: 16px;
}
li.divisoremenu {
width: 2px;
height: 47px;
padding-left: 0px;
padding-right: 0px;
background: url(images/separatore.gif) no-repeat 0 0;
}
if its possible i would the menu stays as
herehope you can help me !
