00001 <?php 00002 00011 class Account_User extends Account 00012 { 00018 protected $_sThisTemplate = 'page/account/user.tpl'; 00019 00027 public function render() 00028 { 00029 00030 parent::render(); 00031 00032 // is logged in ? 00033 if ( !( $this->getUser() ) ) { 00034 return $this->_sThisTemplate = $this->_sThisLoginTemplate; 00035 } 00036 00037 return $this->_sThisTemplate; 00038 } 00039 00045 public function showShipAddress() 00046 { 00047 return oxSession::getVar( 'blshowshipaddress' ); 00048 } 00049 00055 public function getBreadCrumb() 00056 { 00057 $aPaths = array(); 00058 $aPath = array(); 00059 00060 $aPath['title'] = oxRegistry::getLang()->translateString( 'PAGE_ACCOUNT_MY_ACCOUNT', oxRegistry::getLang()->getBaseLanguage(), false ); 00061 $aPath['link'] = oxRegistry::get("oxSeoEncoder")->getStaticUrl( $this->getViewConfig()->getSelfLink() . 'cl=account' ); 00062 $aPaths[] = $aPath; 00063 00064 $aPath['title'] = oxRegistry::getLang()->translateString( 'BILLING_SHIPPING_SETTINGS', oxRegistry::getLang()->getBaseLanguage(), false ); 00065 $aPath['link'] = $this->getLink(); 00066 $aPaths[] = $aPath; 00067 00068 return $aPaths; 00069 } 00070 }