<?php

// set the home of navigation bar
$navbar->setHome('example'); 
$navbar->setLabelHome('Example');
$navbar->AddOption('main','example','main');

// clear the content area of theme
$theme->clearContent();

// generates a link to put no the panel's close button
$close = $MIOLO->getActionURL( $this->manager->getConf('options.common'), 'main');

// create a new panel
$panel = new MActionPanel( 'panel', 'Examples', '', $close );

// obtains access to the UI functions (needed to able to use getImage)
$ui = $MIOLO->getUI();

include_once( $MIOLO->getConf('home.modules') .'/main_menu.inc.php' );

// add actions to the panel

$panel->addAction( _M('Global Variables'), $ui->getImage( $module, 'globals.png' ), $module, 'main:globalvar' );
$panel->addAction( _M('Controls'), $ui->getImage( $module,'controls.png' ), $module, 'main:controls' );
$panel->addAction( _M('Validators'), $ui->getImage( $module,'validators.png' ), $module, 'main:validators' );
$panel->addAction( _M('ezPDF'), $ui->getImage( $module,'pdf.png' ), $module, 'main:ezpdf' );
$panel->addAction( _M('DOMPDF & MBTemplate'), $ui->getImage( $module,'pdf.png' ), $module, 'main:dompdf' );
$panel->addAction( _M('Forms'), $ui->getImage( $module,'forms.png' ), $module, 'main:forms' );
$panel->addAction( _M('Database'), $ui->getImage( $module,'database.png' ), $module, 'main:database' );
$panel->addAction( _M('Sessions'), $ui->getImage( $module,'session.png' ), $module, 'main:session' );
$panel->addAction( _M('Save File'), $ui->getImage( $module,'save.png' ), $module, 'main:save' );
$panel->addAction( _M('Exceptions'), $ui->getImage( $module,'forms.png' ), $module, 'main:exceptions' );
$panel->addAction( _M('Date & Time'), $ui->getImage( $module,'datetime.png' ), $module, 'main:datetime' );
$panel->addAction( _M('AJAX'), $ui->getImage( $module,'forms.png' ), $module, 'main:ajax' );
$panel->addAction( _M('Flow: forward'), $ui->getImage( $module,'forms.png' ), $module, 'main:forward1' );
$panel->addAction( _M('Flow: insert'), $ui->getImage( $module,'forms.gif' ), $module, 'main:insert1' );
$panel->addAction( _M('Windows'), $ui->getImage( $module,'forms.png' ), $module, 'main:windows' );
$panel->addAction( _M('Drag&Drop'), $ui->getImage( $module,'forms.png' ), $module, 'main:dragdrop' );
$panel->addAction( _M('Sync Token'), $ui->getImage( $module,'forms.png' ), $module, 'main:synctoken' );
$panel->addAction( _M('WebServices'), $ui->getImage( $module,'forms.png' ), $module, 'main:webservices' );
$panel->addAction( _M('WebFlow'), $ui->getImage( $module,'forms.png' ), $module, 'main:webflow' );

// append the content into the theme content
$theme->appendContent( $panel );

$MIOLO->getSession()->setValue( 'num_mainmenu', 0 );

$MIOLO->uses('ui/controls/viewsource.class.php', $module);

// invoke the next handler 
// btw: the handlers are separated by : in the $action
// so, if you accessed 'main:controls', shiftAction will return 'controls'
// as the next handler to be invoked

if ( $a = $context->shiftAction() )
{
   $handled = $MIOLO->invokeHandler( $module, $a );
}

?>