<?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
	$main = $dom["body > main"];
	if($main->hasAttribute("data-title")) {
		$dom["body > header > h1"]->textContent = 
			$main->getAttribute("data-title");
	}

	if(PATH === "MainMenu") {
		$dom["body > header > nav"]->remove();
	}

	if(PATH === "Index") {
		$dom["body > header"]->remove();
	}
}	
}#
<?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
	$main = $dom["body > main"];
	if($main->hasAttribute("data-title")) {
		$dom["body > header > h1"]->textContent = 
			$main->getAttribute("data-title");
	}

	if(PATH === "MainMenu") {
		$dom["body > header > nav"]->remove();
	}

	if(PATH === "Index") {
		$dom["body > header"]->remove();
		$dom["body"]->removeAttribute("data-pjax");
	}
}	
}#
Remove pjax from index page
Remove pjax from index page
