diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -26,18 +26,20 @@ class page { '; // Google analytics ga.js tracking code private $title = ''; // Title of page - private $scripts = ''; // Scripts to include on page + private $scripts = array(); // Scripts to include on page - public function __construct($ntitle, $nscripts = ''){ - $this->title = $ntitle; - $this->scripts .= $nscripts; + public function __construct($ntitle, $nscripts = array() ){ + // Scripts and styles available to include + $this->headCode['jQuery'] = ''; + $this->headCode['jValidate'] = ''; + $this->headCode['schedInput'] = ''; + + $this->title = $ntitle; + $this->scripts = $nscripts; if($ntitle != "NOHEAD") $this->head(); - $headCode['jquery'] = ''; - $headCode['jValidate'] = ''; - $headCode['schedInput'] = ''; - } + } private function top(){ echo '