aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-02-04 08:44:17 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-02-04 08:44:17 +0100
commitcc6a5f59b455a0e8d0b7a5250508e3b71f19ed3c (patch)
treeb3bf41b82deb81ab185e09ff07e2308b1ebc99d1 /mod/photos.php
parent9cf04b61106d27f1f641dda39de737386f7b8c99 (diff)
parent5c98032893d945644c6da6bdf99484c0c8cb7e45 (diff)
downloadvolse-hubzilla-cc6a5f59b455a0e8d0b7a5250508e3b71f19ed3c.tar.gz
volse-hubzilla-cc6a5f59b455a0e8d0b7a5250508e3b71f19ed3c.tar.bz2
volse-hubzilla-cc6a5f59b455a0e8d0b7a5250508e3b71f19ed3c.zip
Merge branch 'master' of https://github.com/friendika/friendika.git
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php10
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>';
}