AntonLV %!s(int64=6) %!d(string=hai) anos
pai
achega
44fb20bdb5

+ 8 - 0
inc/classes/BxDolAccount.php

@@ -388,6 +388,14 @@ class BxDolAccount extends BxDolFactory implements iBxDolSingleton
         return BxDolTemplate::getInstance()->getImageUrl('account-picture.png');
     }
 
+    /**
+     * Get big (2x) avatar url
+     */
+    public function getAvatarBig($iAccountId = false)
+    {
+        return BxDolTemplate::getInstance()->getImageUrl('account-avatar-big.png');
+    }
+
     /**
      * Get avatar url
      */

+ 11 - 2
inc/classes/BxDolProfile.php

@@ -288,8 +288,17 @@ class BxDolProfile extends BxDolFactory implements iBxDolProfile
         $aInfo = $this->getInfo($iProfileId);
         return BxDolService::call($aInfo['type'], 'profile_avatar', array($aInfo['content_id']));
     }
-	
-	/**
+
+    /**
+     * Get big (2x) avatar url
+     */
+    public function getAvatarBig($iProfileId = 0)
+    {
+        $aInfo = $this->getInfo($iProfileId);
+        return BxDolService::call($aInfo['type'], 'profile_avatar_big', array($aInfo['content_id']));
+    }
+
+    /**
      * Get cover url
      */
     public function getCover($iProfileId = 0)

+ 9 - 1
inc/classes/BxDolProfileUndefined.php

@@ -133,6 +133,14 @@ class BxDolProfileUndefined extends BxDolFactory implements iBxDolSingleton, iBx
         return BxDolTemplate::getInstance()->getImageUrl('account-picture.png');
     }
 
+    /**
+     * Get big (2x) avatar url
+     */
+    public function getAvatarBig()
+    {
+        return BxDolTemplate::getInstance()->getImageUrl('account-avatar-big.png');
+    }
+
     /**
      * Get profile avatar
      */
@@ -141,7 +149,7 @@ class BxDolProfileUndefined extends BxDolFactory implements iBxDolSingleton, iBx
         return BxDolTemplate::getInstance()->getImageUrl('account-avatar.png');
     }
 	
-	/**
+    /**
      * Get profile cover
      */
     public function getCover()

+ 6 - 1
modules/base/profile/classes/BxBaseModProfileModule.php

@@ -294,7 +294,12 @@ class BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolCon
     {
         return $this->_serviceTemplateFunc('urlAvatar', $iContentId);
     }
-    
+
+    public function serviceProfileAvatarBig ($iContentId)
+    {
+        return $this->_serviceTemplateFunc('urlAvatarBig', $iContentId);
+    }
+
     public function serviceProfileCover ($iContentId)
     {
         return $this->_serviceTemplateFunc('urlCover', $iContentId);

BIN=BIN
template/images/account-avatar-big.png