";
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
id) {
include ("editor/editor.php");
initEditor();
}
?>
setQuery("SELECT * FROM #__menu WHERE menutype = 'mainmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
foreach($mymenu_rows as $mymenu_row) {
// print_r($mymenu_rows);
$mymenulink = $mymenu_row->link;
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}
if ($mymenu_row->type != "separator") {
$mymenu_content .= "$mymenu_row->name | ";
}
}
$mymenu_content = substr($mymenu_content,0,strlen($mymenu_content)-2);
?>