diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-02-03 17:24:58 +0100 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-02-03 17:24:58 +0100 |
commit | bed0391e6fb058c9f1165e40cdac552f2819808b (patch) | |
tree | ace9d23dfc85ed78a8db53b8ce810522dc793ede /mod/photos.php | |
parent | 9b3131861f8ab6485791c667e4d514a53a34bb80 (diff) | |
download | volse-hubzilla-bed0391e6fb058c9f1165e40cdac552f2819808b.tar.gz volse-hubzilla-bed0391e6fb058c9f1165e40cdac552f2819808b.tar.bz2 volse-hubzilla-bed0391e6fb058c9f1165e40cdac552f2819808b.zip |
Show lock info on photos
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 82060378e..c80a82e66 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -907,7 +907,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>'; } |