protected function _getButtonText() { if (is_null($this->userInfo) || !$this->userInfo->hasData()) { if (!($text = Mage::registry('inchoo_socialconnect_button_text'))) { $text = $this->__('Connect'); } } else { $text = $this->__('Disconnect'); } return $text; }
protected function _getBirthday() { if ($this->userInfo->getBirthday()) { if (strpos($this->userInfo->getBirthday(), '0000') === false) { $birthday = date('F j, Y', strtotime($this->userInfo->getBirthday())); } else { $birthday = date('F j', strtotime(str_replace('0000', '1970', $this->userInfo->getBirthday()))); } return $birthday; } return null; }