Location: PHPKode > projects > Content*Builder > contentbuilder/plugins/newsletter2/newsletter.inc.php
<?php
	include($pluginLocation.'/plugin.config');
	
	if(file_exists($lang_path.$lang_pf."/plugin/newsletter.lang.php")) {
		include($lang_path.$lang_pf."/plugin/newsletter.lang.php");
	} else {
		include($lang_path."en/plugin/newsletter.lang.php");
	}
	
	/* Ableitung des Newsletter Option Objektes */
	$nlOption = new CBOption();
	$nlOption->setModule("newsletter");
	$nlOption->getOptionList();

	$tpl->assign( "SUB", $sub);
	$tpl->assign( "nlMessages", $newsletterText);
	
	$menuSubNav[] = "";
	$menuEntry[]  = $newsletterText["catOverview"];
	$menuPrefix[] = '<img src="'.$cbDirGfx.'moarrow.gif" width="8" align="middle" height="11" border="0" alt="arrow">&nbsp;';
	
	$menuSubNav[] = "&sub=10";
	$menuEntry[]  = $newsletterText["settings"];
	$menuPrefix[] = '&nbsp;|&nbsp;';
	
	switch($sub) {
		case "1":
			include($pluginLocation."/categoryOverview.inc.php");
			break;
		
		case "1_1":
			include($pluginLocation."/categoryEdit.inc.php");
			break;
			
		case "2":
			include($pluginLocation."/categoryDetail.inc.php");
			break;
		
		case "3":
			include($pluginLocation."/newsletterDetail.inc.php");
			break;
			
		case "4":
			include($pluginLocation."/editGeneral.inc.php");
			break;
			
		case "5":
			include($pluginLocation."/editContent.inc.php");
			break;
			
		case "6":
			include($pluginLocation."/newsletterSend.inc.php");
			break;
		
		case "10":
			include($pluginLocation."/settings.inc.php");
			break;
			
		case "11":
			include($pluginLocation."/templateOverview.inc.php");
			break;
			
		default:
			include($pluginLocation."/categoryOverview.inc.php");
			break;
	}

	$tpl->assign("plugin_name", $lang_plugin_plugin['newsletter']);
	
	$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");
	
	/*
	$tpl->readTemplatesFromFile($config['templates']."messages.template");
	if(is_array($nlMessage)) {
		$tpl->addVar("message", "MESSAGE", $nlMessage);
		$tpl->setAttribute("message", "visibility", "visible");
		$tpl->displayParsedTemplate("messages");
	}
	
	$tpl->displayParsedTemplate("plugin_foot");
	*/
?>
Return current item: Content*Builder