WebsiteBaker Community Forum

General Community => WebsiteBaker Website Showcase => Topic started by: cito on October 25, 2009, 06:23:33 PM

Title: Compact Web Applications
Post by: cito on October 25, 2009, 06:23:33 PM
Our company homepage: http://www.cwa-web.de (http://www.cwa-web.de)

Made with WB 2.6, now running on WB 2.8.

Thanks to the makers of WebsiteBaker.
Title: Re: Compact Web Applications
Post by: LordDarkman on October 25, 2009, 07:06:30 PM
Nice Solution with the 2 menus. How You did this?

I like the "Stoffbörse" now I know where I can get mine from. *joking

CU Moritz
Title: Re: Compact Web Applications
Post by: Luckyluke on October 25, 2009, 08:18:50 PM
Nice Solution with the 2 menus. How You did this?

Yeah, and what template did you use?

Grtz,
Luc
Title: Re: Compact Web Applications
Post by: cito on October 25, 2009, 09:23:30 PM
It's a very simple custom template designed only for this website. The main menu is displayed with show_menu(1,0,1), the submenu with show_menu(1,1,1) inside its own div, the rest is CSS.
Title: Re: Compact Web Applications
Post by: LordDarkman on October 25, 2009, 11:34:27 PM
Easy but great solution. I was first thinking about global block, some if clause or something else...

Really like it and thanks for the solution.

CU Moritz
Title: Re: Compact Web Applications
Post by: cito on October 26, 2009, 06:47:29 PM
Since somebdoy requested the template code for the navigation section, I decided to make it public here. But please don't copy our complete corporate design 1:1 for your own homepage...

So here is the relevant section from the index.php file:

Code: [Select]
<div id="navigation">
<div id="mainnavigation">
<?php show_menu(1,0,1); ?>
</div>
<?php ob_start();
show_menu(1,1,1);
$submenu=ob_get_contents();
ob_end_clean();
if (
$submenu<>"") {
  echo &
#39;<div id="subnavigation">&#39;;
  
echo $submenu;
  echo &
#39;</div>&#39;;
?>

</div>