'prefetch', 'href'=>THEME.'images/browsers.png')); } /** * @param string $caption * @param string $text * @param string $id : id of the current render * @param array $info : current style and other menu data. * @return null */ public function tablestyle($caption, $text, $id=null, $info=array()) { $style = is_string($info['setStyle']) ? $info['setStyle'] : ''; // global $style; // no longer needed. echo "\n\n"; /* if($id == 'wm') // Example - If rendered from 'welcome message' { $style = ''; } if($id == 'featurebox') // Example - If rendered from 'featurebox' { $style = ''; } */ switch($style) { case "navdoc": case "none": echo $text; break; case "jumbotron": echo '
'; if(!empty($caption)) { echo '

'.$caption.'

'; } echo ' '.$text.'
'; break; case "col-md-4": case "col-md-6": case "col-md-8": echo '
'; if(!empty($caption)) { echo '

'.$caption.'

'; } echo ' '.$text.'
'; break; case "menu": echo '
'.$caption.'
'.$text.'
'; break; case "portfolio": echo '
'.$text.'
'; break; case 'default': case 'main': if(!empty($caption)) { echo '

'.$caption.'

'; } if($info['styleCount'] === 1) // add the breadcrumb the first time the 'default' style is rendered. { echo '{---BREADCRUMB---}'; } echo $text; break; default: if(!empty($caption)) { echo '

'.$caption.'

'; } echo $text; } return null; } }