Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/events/events.inc.php
<?php
	if(file_exists($lang_path.$lang_pf."/plugin/event.lang.php")) {
		include($lang_path.$lang_pf."/plugin/event.lang.php");
	} else {
		include($lang_path."en/plugin/event.lang.php");
	}
	
	$tpl->assign( "SUB", $sub);
	$tpl->assign( "eventMessages", $eventText);
	
	$mainPluginContent = array ();
	
	$menuSubNav[] = "";
	$menuEntry[]  = $eventText['event'];
	$menuPrefix[] = '<img src="'.$cbDirGfx.'moarrow.gif" width="8" align="middle" height="11" border="0" alt="arrow">&nbsp;';
	
	switch($sub) {
		case "1":
			include($pluginLocation."/viewDay.inc.php");
			break;
		default:
			include($pluginLocation."/eventOverview.inc.php");
			break;
	}

	$tpl->assign("plugin_menu_data",
		array ( "PRE"       => $menuPrefix,
				"SUBNAV"    => $menuSubNav,
				"MENUENTRY" => $menuEntry
		)
	);
	
	$tpl->assign("pluginContent", $mainPluginContent);
	$tpl->assign("messageContent", $mainMessageContent);
	$tpl->display($config['templates']."plugin.template");
?>
Return current item: Content*Builder