[Phpslash-commit] CVS: phpslash-ft/class Block_render_navbar.class,NONE,1.1
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-05-20 16:07:33
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv2225/phpslash-ft/class Added Files: Block_render_navbar.class Log Message: [ 549191 ] Navbar Block --- NEW FILE: Block_render_navbar.class --- <?php /* Block_render_navbar.class -> Methods for phpslash specfic blocks for LatinoMixed.com */ /* $Id: Block_render_navbar.class,v 1.1 2002/05/20 16:07:29 joestewart Exp $ */ class Block_render_navbar { var $type; var $output; var $psl; /* constructor */ function Block_render_navbar() { global $_PSL; $this->type = "navbar"; /* set the 'type' */ $this->output = ""; /* clear the output */ $this->psl = $_PSL; } /* returns the TYPE of this class */ function getType() { return $this->type; } function parse($block_info) { $default_tpl = "navbarBlock"; $options = $block_info["source_url"]; parse_str( $options); if( empty($tpl) ) { $tpl = $default_tpl; } $navbar = new NavBar; //$navbar->getNavBar("navbarBlock"); $this->output = $navbar->getNavBar( $tpl, $this->psl[$menu_ary]); //$block_info["cache_data"]; return 1; } function getFinal() { return $this->output; } function getTitle($string = ""){ if (empty($string)) { $string = "NO TITLE"; }else{ // for clarity $string = preg_replace("/\%(.*)\%/i","\\1",$string); } $this->title=pslgetText($string); return $this->title; } } ?> |