template = Config::theme().'/page'; return parent::__construct($request,$response); } protected function _headimages() { // This is where we should be able to change our country // @todo To implement $co = Config::country(); HeadImages::add(array( 'img'=>sprintf('img/country/%s.png',strtolower($co->two_code)), 'attrs'=>array('onclick'=>"target='_blank';",'title'=>$co->display('name')) )); return HeadImages::factory(); } protected function _left() { if ($this->template->left) return $this->template->left; elseif (Auth::instance()->logged_in(NULL,get_class($this).'|'.__METHOD__)) return Controller_Tree::js(); } protected function _right() { return ($this->template->right) ? $this->template->right : $this->_cart(); } private function _cart() { return (! Config::module_exist('cart') OR ! class_exists('Cart') OR ! count(Cart::instance()->contents()) OR strtolower(Request::current()->controller()) == 'cart') ? '' : Cart::instance()->cart_block(); } } ?>