1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<?php
/*! \file Layout.php
* \brief This file contains the element of the presentation for the file www/include/Layout.class
*
* On this file you have the function vertmenu, title, subtitle, show, show2
*/
/*! \fn vertmenu($links, $title, $count)
* \brief this function create the presentation of the vertical menu if you have choose to use it on file header.php
* @param $links contains the values of the links
* @param $title contains the title of the menu item
* @param $count contains the number of menuitem
*/
function vertmenu($links, $title, $count){
$return .= '<div id="menu">
'.title("Menu").'
';
echo '<!--'.$count.'-->';
for($i=0; $i<$count;$i++){
$return .= '<div class="MenuItem">
<a href="'.$links[$i].'">'.$title[$i].'</a>
</div><!--close MenuItem-->';
}
$return .= '</div><!--close menu-->';
return $return;
} |