aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-19 16:39:23 -0700
committerFriendika <info@friendika.com>2011-09-19 16:39:23 -0700
commita810d2a993fb0d5d778cf56f9cdea151ecdec341 (patch)
treec2ead5d6e2530caadd959c143c7538a106c71c50 /mod
parent97deaa31187868e200988a3fcd3722c49760fd4d (diff)
downloadvolse-hubzilla-a810d2a993fb0d5d778cf56f9cdea151ecdec341.tar.gz
volse-hubzilla-a810d2a993fb0d5d778cf56f9cdea151ecdec341.tar.bz2
volse-hubzilla-a810d2a993fb0d5d778cf56f9cdea151ecdec341.zip
put profile photo on photos page
Diffstat (limited to 'mod')
-rw-r--r--mod/photos.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index b74ca85d7..7b660bfa3 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -34,12 +34,14 @@ function photos_init(&$a) {
$a->data['albums'] = $albums;
$o .= '<h4><a href="' . $a->get_baseurl() . '/profile/' . $a->data['user']['nickname'] . '">' . $a->data['user']['username'] . '</a></h4>';
+ $o .= '<div id="profile-photo-wrapper"><img class="photo" style="width: 175px; height: 175px;" src="' . $a->get_baseurl() . '/photo/profile/' . $a->data['user']['uid'] . '.jpg" alt="' . $a->data['user']['username'] . '" /></div>';
+
$o .= '<h4>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h4>';
$o .= '<ul>';
foreach($albums as $album) {
- // don't show contact photos. We once trasnlated this name, but then you could still access it under
+ // don't show contact photos. We once translated this name, but then you could still access it under
// a different language setting. Now we store the name in English and check in English (and translated for legacy albums).
if((! strlen($album['album'])) || ($album['album'] === 'Contact Photos') || ($album['album'] === t('Contact Photos')))