Location: PHPKode > projects > OpenCabling > opencabling/phplayersmenu.inc.php
<?php
/* TO USE RELATIVE PATHS: */
$myDirPath = 'phplayersmenu/';
$myWwwPath = 'phplayersmenu/';
?>

<link rel="stylesheet" href="<?php print $myWwwPath; ?>layersmenu-gtk2.css" type="text/css"></link>

<title>OpenCabling</title>

<script language="JavaScript" type="text/javascript">
<?php require_once $myDirPath . 'libjs/layersmenu-browser_detection.js'; ?>
</script>

<script language="JavaScript" type="text/javascript" src="<?php print $myWwwPath; ?>libjs/layersmenu-library.js"></script>
<script language="JavaScript" type="text/javascript" src="<?php print $myWwwPath; ?>libjs/layersmenu.js"></script>

<?php
require_once $myDirPath . 'lib/PHPLIB.php';
require_once $myDirPath . 'lib/layersmenu-common.inc.php';
require_once $myDirPath . 'lib/layersmenu.inc.php';

//$mid = new LayersMenu(6, 7, 2, 5, 140);
$mid = new LayersMenu(6, 7, 2, 1);	// Gtk2-like
//$mid = new LayersMenu(3, 8, 1, 1);	// Keramik-like
//$mid = new LayersMenu(3, 9, 2, 1);	// Galaxy-like
//$mid = new LayersMenu(-12, 10, 6, 5);	// "Traditional" PHPLM look

$mid->setDirroot($myDirPath);
$mid->setLibjsdir($myDirPath . 'libjs/');
$mid->setImgdir($myDirPath . 'menuimages/');
$mid->setImgwww($myWwwPath . 'menuimages/');
$mid->setIcondir($myDirPath . 'menuicons/');
$mid->setIconwww($myWwwPath . 'menuicons/');
$mid->setTpldir($myDirPath . 'templates/');
$mid->setHorizontalMenuTpl('layersmenu-horizontal_menu.ihtml');
$mid->setSubMenuTpl('layersmenu-sub_menu.ihtml');
$mid->setDownArrowImg('down-arrow.png');
$mid->setForwardArrowImg('forward-arrow.png');
$mid->setMenuStructureFile($myDirPath . 'opencabling.txt');
$mid->setIconsize(16, 16);
$mid->parseStructureForMenu('hormenu1');
$mid->newHorizontalMenu('hormenu1');


?>
Return current item: OpenCabling