# HG changeset patch # User ethanzonca # Date 2010-07-14 00:34:15 # Node ID 7c7e7468078f7a3dae4763a6c7e02672342f9a4c # Parent aa34ac34003fc4fe9f07255bc684a1d8f003ac41 Fixed things up, js works now, still need cleanup 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 '