* @copyright 2004 by http://wombat.exit0.net * @package wombatSite * @subpackage cmHtml */ /** * Dialog interface * * @todo check user before display! * * @version 1.0.0 * @package wombatSite * @subpackage cmHtml */ class wbDialog_Link extends wbDialog { /** * init language depending data * * @access private */ function _init() { $this->_options = array( 'width' => 500, 'height' => 500, 'class' => 'Link', 'title' => _( 'Hyper Linker' ), 'brief' => _( 'Create links to navigate within your own site.' ), 'name' => 'link', 'vars' => 'protocol,url,title', 'type' => 'inline', ); return true; } /** * process dialog * * @access public * @param string $html html to be displayed, or null to get it from template * @return boolean $result true */ function process() { $this->_loadTemplates( $this->_options['class'] ); // basic scripts $debug = 'false'; if( wbDebugger::isActive() ) { $debug = 'true'; } $this->_tmpl->addVar( 'onload', 'debug', $debug ); $load = $this->_tmpl->getParsedTemplate( 'onload' ); wbJSTools::includeJavascript( $load, 'onload' ); wbJSTools::includeJavascript( 'wbMisc.js' ); wbJSTools::includeJavascript( 'wbMenu.js' ); wbJSTools::includeJavascript( 'wbMenuMaker.js' ); // menu wbFactory::includeClass( 'wbMenuTools' ); $menu = wbMenuTools::getFlatMenu(); $this->_tmpl->addRows( 'menuitem_entry', $menu ); return $this->_tmpl->getParsedTemplate( 'dialog' ); } } ?>