diff options
author | Friendika <info@friendika.com> | 2011-08-03 21:05:39 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-03 21:05:39 -0700 |
commit | d45a66e700a62626007b05ef1b78dff8f0931210 (patch) | |
tree | 38e2d19a744e65b44184885400c0ba33984bec7a /boot.php | |
parent | ad1e827169d9f57c02746b51c5268bdbe2cd8ac9 (diff) | |
download | volse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.tar.gz volse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.tar.bz2 volse-hubzilla-d45a66e700a62626007b05ef1b78dff8f0931210.zip |
allow custom avatar sizes - needed for Diaspora hcard/vcard
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -877,7 +877,9 @@ function profile_sidebar($profile) { $podloc = $a->get_baseurl(); $searchable = (($profile['publish'] && $profile['net-publish']) ? 'true' : 'false' ); $nickname = $profile['nick']; - $dphoto = $profile['photo']; + $photo300 = $a->get_baseurl() . '/photo/custom/300/' . $profile['uid'] . '.jpg'; + $photo100 = $a->get_baseurl() . '/photo/custom/100/' . $profile['uid'] . '.jpg'; + $photo50 = $a->get_baseurl() . '/photo/custom/50/' . $profile['uid'] . '.jpg'; $diaspora_vcard = <<< EOT @@ -897,7 +899,19 @@ function profile_sidebar($profile) { <dl class="entity_photo"> <dt>Photo</dt> <dd> -<img class="photo avatar" height="175px" src="$dphoto" width='175px'> +<img class="photo avatar" height="300px" width="300px" src="$photo300"> +</dd> +</dl> +<dl class="entity_photo_medium"> +<dt>Photo</dt> +<dd> +<img class="photo avatar" height="100px" width="100px" src="$photo100"> +</dd> +</dl> +<dl class="entity_photo_small"> +<dt>Photo</dt> +<dd> +<img class="photo avatar" height="50px" width="50px" src="$photo50"> </dd> </dl> <dl class='entity_searchable'> |