\n";
echo " \n";
echo "
\n";
echo $content;
echo "
\n";
echo "
\n";
break;
}
case "module" : {
echo "\n";
echo " \n";
echo "
\n";
echo $content;
echo "
\n";
echo "
\n";
break;
}
}
}
function DisplayAllSectionPages()
{
foreach ($this->menuItems as $thisSection=>$menuItem)
{
if ($menuItem['parent'] != -1)
{
continue;
}
if (! $menuItem['show_in_menu'])
{
continue;
}
if ($menuItem['url'] == 'index.php' || strlen($menuItem['url']) < 1)
{
continue;
}
echo "';
}
}
function DisplaySectionPages($section)
{
$gCms = cmsms();
if (count($this->menuItems) < 1)
{
// menu should be initialized before this gets called.
// TODO: try to do initialization.
// Problem: current page selection, url, etc?
return -1;
}
$firstmodule = true;
foreach ($this->menuItems[$section]['children'] as $thisChild)
{
$thisItem = $this->menuItems[$thisChild];
if (! $thisItem['show_in_menu'] || strlen($thisItem['url']) < 1)
{
continue;
}
// separate system modules from the rest.
if( preg_match( '/module=([^&]+)/', $thisItem['url'], $tmp) )
{
if( !ModuleOperations::get_instance()->IsSystemModule($tmp[1]) && $firstmodule == true )
{
echo "