function MobilePage($title = 'NewsCloud.com') { // Construct the parent parent::XHTMLPage($title); // main layout file $this->agent = $_SERVER['HTTP_USER_AGENT']; $this->isIE = eregi("msie", $this->agent) && !eregi("opera", $this->agent); $this->googleAnalytics = '<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script><script type="text/javascript"> var pageTracker = _gat._getTracker("' . $init[analytics] . '"); pageTracker._initData(); pageTracker._trackPageview(); </script>'; $this->keywordDescription = ''; $this->keywordList = ''; }
function newsroomPage($title = 'NewsCloud.com') { global $init; // Construct the parent parent::XHTMLPage($title); // main layout file $this->agent = $_SERVER['HTTP_USER_AGENT']; $this->isIE = eregi("msie", $this->agent) && !eregi("opera", $this->agent); $this->googleAnalytics = '<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));</script><script type="text/javascript"> var pageTracker = _gat._getTracker("' . $init[analytics] . '"); pageTracker._initData(); pageTracker._trackPageview(); </script>'; $this->keywordDescription = 'Must read stories from around the Web'; $this->keywordList = 'newscloud, breaking news,international news,united states news,technology,environment,politics,business,opinion,blogging,science,health,sports,arts,oddities,religion,social networks,open source'; }
function disp_header($title = "Newscloud Management Console", $action = 'index') { global $init; global $controller_name; global $action_name; global $curr_site_id; require_once PATH_PHP . '/classes/page.class.php'; $page = new XHTMLpage(); $page->pkgScripts(CACHE_PREFIX . 'nrConsole', array(PATH_PHP_SCRIPTS . '/template.js')); //$template_src = '<script src="http://hotdish.org/?p=cache&type=js&cf=template.js&v=1.002"></script>'; //$page->addScript(PATH_PHP_SCRIPTS.'/template.js'); // hack: djm - dont know correct way to incorporate this //$page->addScript('http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js'); $templateBuilder = false; if ($action == 'template_builder') { $templateBuilder = true; } $flash = get_flash(); include_once 'header.php'; }