b0VIM 7.4‘í½Y>©9&"alexanderbirdAlexanders-MacBook-Pro.local~alexanderbird/Code/shared-lib/generator-cms-less/generators/app/templates/partials/CmsLess.phputf- 3210#"! Utp`adz`úÚäŒi?ïíì½›’nYWV:Ê É ® “ w & % í Ñ ž ‚ A @ í Ï Ž Z    à ± p @  ì ¿ ½ ¼   „ h ;  ïîÒ¶š‚<òñØ«‡…„kA!çÑ£Ÿœ…G)ɹ˜”’‘tW:?>echo $completePage->saveHTML();/**************************//* Return *//**************************/} } $body->appendChild($script); if($script) { $script = $completePage->importNode($scriptTags[$i], true);for($i = 0; $i < $length; $i++) {$length = count($scriptTags);$body = $completePage->getElementsByTagName("body")->item(0);// add the script tags} } $destination->appendChild($importedNode); if($importedNode) { $importedNode = $completePage->importNode($node, true);foreach($childNodes as $node) {$childNodes = $contentsNodes->childNodes;// load the page content} $destination->removeChild($node);foreach($destination->childNodes as $node) {// empty the destination$destination->setAttribute("data-cms-less-preloaded", $originalPageName);$destination = $completePage->getElementById('cms-less-destination');// find the destination/*************************//* Merge *//*************************/$completePage = $html5Parser->loadHTML($index);$html5Parser = new HTML5();$index = file_get_contents("../index.html");/*************************//* Load the outer page *//*************************/} $script->parentNode->removeChild($script); $scriptTags[$i] = $script->cloneNode(true); $script = $rawScriptTags->item($i);for($i = $rawScriptTags->length; --$i >= 0; ) {$rawScriptTags = $contentsNodes->getElementsByTagName('script');$scriptTags = [];// script tags may appear above the script block - can't have that!} } $span->appendChild($contentsNodes->createTextNode($requestedPageName)); if($span->getAttribute('class') == 'page-name') {foreach($contentsNodes->getElementsByTagName('span') as $span) {// doing the same thing here// the default 404 page uses JavaScript to set the name of the page that's missing$contentsNodes = $html5Parser->loadHTML("
$contents
");$html5Parser = new HTML5();$contents = file_get_contents("./$pageName.html");/*************************//* Prepare the content *//*************************/echo "\n";/*************************//* Hide the placeholder *//************************/echo "\n";/*************************//* Identify yourself *//*************************/} $pageName = '404'; header("HTTP/1.0 404 Not Found");} else { $pageName = $requestedPageName;if(file_exists("./$requestedPageName.html")) {} $requestedPageName = $requestedPageName == '' ? 'index' : $requestedPageName; $originalPageName = $requestedPageName; $requestedPageName = $_GET['p'];if(isset($_GET['p'])) {$requestedPageName = 'index';use Masterminds\HTML5;require 'php-lib/autoload.php';