/** * Currently, this function does nothing more than return getContent(). * It exists in case we run into a situation where we need to do some special * processing befor or after calling getContent(). * * @param SimpleXMLElement $inputXML * * @return string * @author Andrew Darwin <*****@*****.**> */ function getInnerContent($inputXML) { global $contentXML; $header = "getInnerContent(): "; logMessage("{$header} Attempting to get inner content"); parseConfig(); // Must parse config first to set global variables initializeContent($inputXML); $output = "<html>\n<head>\n"; $output = $output . getAllScriptDeclarations(); $output = $output . "</head>\n<body>\n"; $output = $output . getContent($contentXML->content[0], ""); $output = $output . "</body>\n</html>"; //logMessage("$header $output"); return $output; }
/* Default color = #0088CC */ color: #0088CC text-decoration: bold; } </style> <!--END OF CSS STYLES--> <meta charset="utf-8"> <?php $header = ""; $title = ""; $navBarContent = ""; $navigationTitle = ""; $navigationItems = ""; echo getAllScriptDeclarations(); /* echo generateScriptHTML('resources/css'); echo generateScriptHTML('resources/scripts'); echo generateScriptHTML(''); echo generateScriptHTML('css'); */ //Get what we need $contentXML = initializeMainContent(); if ($contentXML == null) { echo "<h1>Failed to load content xml file. Make sure it is properly " . "defined in config.xml.</h1>"; } else { $title = getTitleHTML($contentXML); $header = getHeaderHTML($contentXML); //Use what we have echo $title;