diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-02-05 09:19:03 +0100 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2011-02-05 09:19:03 +0100 |
commit | 0c83fb4d807d2cdf78acc4bd206bc7b278b01f53 (patch) | |
tree | 1d0641cc3ac5641c2ce289e9720ba212e56214fb /mod/photos.php | |
parent | acd5f49d437e5d399dbf907031f2b50d9257e18e (diff) | |
parent | 8cced061bba8d5ef18e2fa5ead0edcdc90d06e73 (diff) | |
download | volse-hubzilla-0c83fb4d807d2cdf78acc4bd206bc7b278b01f53.tar.gz volse-hubzilla-0c83fb4d807d2cdf78acc4bd206bc7b278b01f53.tar.bz2 volse-hubzilla-0c83fb4d807d2cdf78acc4bd206bc7b278b01f53.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php index f892e2ce2..52cc66eae 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -913,7 +913,15 @@ function photos_content(&$a) { $o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($ph[0]['album']) . '">' . $ph[0]['album'] . '</a></h3>'; if($can_post && ($ph[0]['uid'] == $owner_uid)) { - $o .= '<div id="photo-edit-link-wrap" ><a id="photo-edit-link" href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $datum . '/edit' . '">' . t('Edit photo') . '</a></div>'; + $o .= '<div id="photo-edit-link-wrap" ><a id="photo-edit-link" href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/image/' . $datum . '/edit' . '">' . t('Edit photo') . '</a>'; + + // lock + $o .= ( ( ($ph[0]['uid'] == local_user()) && (strlen($ph[0]['allow_cid']) || strlen($ph[0]['allow_gid']) + || strlen($ph[0]['deny_cid']) || strlen($ph[0]['deny_gid'])) ) + ? ' - <img src="images/lock_icon.gif" class="lockview" alt="' . t('Private Message') . '" onclick="lockview(event,\'photo/' . $ph[0]['id'] . '\');" />' + : ''); + + $o .= '</div>'; } |