theme_name = $theme_name; $this->template = $template; } public function url($path) { return url::base() . "themes/{$this->theme_name}/$path"; } public function item() { return $this->template->item; } public function display($page_name, $view_class="View") { return new $view_class($page_name); } public function blocks() { /** @todo: this needs to be made data-driven */ $blocks = array( 'carousel' => carousel::block($this), 'tags' => tags::block($this), 'info' => info::block($this), 'gmaps' => gmaps::block($this), ); return $blocks; } }