diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -168,53 +168,55 @@ class page $this->pageGenTime = round(microtime(), 3); if ($this->xhtml) - echo '' . "\n"; + echo '' . PHP_EOL; - echo 'doctype . '> - htmlargs . '> - - ' . $this->pagetitle . ' :: ' . $this->base_title . ' - - '; + echo 'doctype . '>'. PHP_EOL . + 'htmlargs . '>'. PHP_EOL . + ' '. PHP_EOL . + ' ' . $this->pagetitle . ' :: ' . $this->base_title . ''. PHP_EOL . + ' '. PHP_EOL . + ' '. PHP_EOL; // Write out all passed scripts foreach ($this->scripts as $i) - echo ' ' . $this->headCode["$i"] . "\n"; + echo ' ' . $this->headCode["$i"] . "\n"; - echo ' - bodyargs.' >
'; + echo ' ' . PHP_EOL . + ' bodyargs.'>'. PHP_EOL . + '
'. PHP_EOL; echo $this->top(); // Write out top } /** Write out the top of the page, including opening div tags, header title and images, etc */ private function top(){ - echo ' -
'; + echo ' '. PHP_EOL . + '
'. PHP_EOL; } /** Write out the foot of the page and closing divs */ public function foot(){ - echo '
'; + echo '
'. PHP_EOL; $this->pageGenTime = round(microtime(), 3); - echo ' -
'; + echo ' '. PHP_EOL . + '
'. PHP_EOL; echo $this->trackingcode; - echo ''; + echo ' '. PHP_EOL . + ''; } /** Takes a number in seconds, and outputs HH:MM:SS */