diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -67,31 +67,31 @@ class page { /* Site-wide configuration options */ - private $base_title = 'SlatePermutate - Find the schedule that works for you!'; - private $doctype = 'html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"'; - private $htmlargs = 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"'; + protected $base_title = 'SlatePermutate - Find the schedule that works for you!'; + protected $doctype = 'html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"'; + protected $htmlargs = 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"'; - private $pageGenTime = 0; + protected $pageGenTime = 0; - private $xhtml = FALSE; + protected $xhtml = FALSE; /* Scripts and styles */ - private $headCode = array(); + protected $headCode = array(); - private $trackingcode = ''; // Tracking code - private $pagetitle = ''; // Title of page - private $scripts = array(); // Scripts to include on page + protected $trackingcode = ''; // Tracking code + protected $pagetitle = ''; // Title of page + protected $scripts = array(); // Scripts to include on page /* the current school. See get_school(). */ - private $school; + protected $school; - private $semester; + protected $semester; /* * Whether or not the user should be presented with the option to * change the school profile or semester. */ - private $school_semester_constant; + protected $school_semester_constant; /** * \brief @@ -124,6 +124,7 @@ class page $this->headCode['jQuery'] = ''; $this->headCode['jQueryUI'] = ''; + $this->headCode['jQueryUI-NoStyles'] = ''; $this->headCode['jValidate'] = ''; $this->headCode['jAddress'] = ''; $this->headCode['jQuery.cuteTime'] = ''; @@ -135,7 +136,8 @@ class page $this->headCode['gliderHeadcode'] = ''; $this->headCode['uiTabsKeyboard'] = ''; $this->headCode['displayTables'] = ''; - + $this->headCode['jQueryMobile'] = ''; + $this->headCode['mScheduleInput'] = ''; $this->pagetitle = $ntitle; $this->scripts = $nscripts; @@ -211,9 +213,9 @@ class page * the current school and semester should be hidden. TRUE by * default. */ - public static function page_create($title, array $scripts = array(), array $options = array()) + public static function page_create($title, array $nscripts = array(), array $options = array()) { - return new page(htmlentities($title, ENT_QUOTES, 'UTF-8'), $scripts, FALSE, $options); + return new page(htmlentities($title, ENT_QUOTES, 'UTF-8'), $nscripts, FALSE, $options); } /** @@ -632,7 +634,7 @@ class page * \brief * Add a trailing slash to a path if one does not already exist */ - private function add_trailing_slash($path){ + protected function add_trailing_slash($path){ if($path[strlen($path)-1] != '/') { return $path . "/"; }