protected function _getButtonUrl()
 {
     if (is_null($this->userInfo) || !$this->userInfo->hasData()) {
         return $this->client->createAuthUrl();
     } else {
         return $this->getUrl('socialconnect/vk/disconnect');
     }
 }
 protected function _construct()
 {
     parent::_construct();
     $this->client = Mage::getSingleton('inchoo_socialconnect/vk_oauth2_client');
     if (!$this->client->isEnabled()) {
         return;
     }
     $this->userInfo = Mage::registry('inchoo_socialconnect_vk_userinfo');
     $this->setTemplate('inchoo/socialconnect/vk/account.phtml');
 }