title = $title; if (! empty($scripts) && is_array($scripts)) $this->scripts = array_merge($scripts, $this->scripts); else if (! empty($scripts)) $this->addScript($scripts); } public function setTitle($title = "Ranks"){ $this->title = $title; } public function addScript($script){ if (empty($script) || strncmp($script, '/', 1) !== 0) return false; $scripts[] = $script; return true; } public function output($return = false){ // End Content/page div $html = "\t\t\t\t\n"; $html = "\t\t\t\n"; // Footer content /* $html .= "\t\t\t
\n"; $html .= "\t\t\t\t
\n"; $html .= "\t\t\t\t\t

Copyright © 2015. All Rights Reserved

\n"; $html .= "\t\t\t\t
\n"; $html .= "\t\t\t
\n"; */ // End Container $html .= "\t\t\n"; // Add any scripts to be included at the bottom of the page. foreach ($this->scripts as $script){ echo ""; } $html .= "\t\n"; $html .= "\n"; if($return === true) return $html; echo $html; } }