aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-20 16:50:02 -0700
committerfriendica <info@friendica.com>2014-10-20 16:50:02 -0700
commit3d4728541429b3c6d0630963e26ea4c319605166 (patch)
tree20f238ea8411b9dd8a0168e463e006f33335dccc /mod/photos.php
parentcb15c73dae51c7001fa7277ef4d324645f72c5c3 (diff)
parentd02162ee83416ca651133724bd4a01fdc60c20d0 (diff)
downloadvolse-hubzilla-3d4728541429b3c6d0630963e26ea4c319605166.tar.gz
volse-hubzilla-3d4728541429b3c6d0630963e26ea4c319605166.tar.bz2
volse-hubzilla-3d4728541429b3c6d0630963e26ea4c319605166.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 4c52c7ef7..06c566f47 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -855,16 +855,14 @@ function photos_content(&$a) {
$tools = array(
'profile'=>array($a->get_baseurl() . '/profile_photo/use/'.$ph[0]['resource_id'], t('Use as profile photo')),
);
-
- // lock
- $lock = ( ( ($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'])) )
- ? t('Private Message')
- : Null);
-
-
}
+ // lock
+ $lock = ( ( (strlen($ph[0]['allow_cid']) || strlen($ph[0]['allow_gid'])
+ || strlen($ph[0]['deny_cid']) || strlen($ph[0]['deny_gid'])) )
+ ? t('Private Photo')
+ : Null);
+
$a->page['htmlhead'] .= '<script>$(document).keydown(function(event) {' . "\n";
if($prevlink)
$a->page['htmlhead'] .= 'if(event.ctrlKey && event.keyCode == 37) { event.preventDefault(); window.location.href = \'' . $prevlink . '\'; }' . "\n";
@@ -873,7 +871,7 @@ function photos_content(&$a) {
$a->page['htmlhead'] .= '});</script>';
if($prevlink)
- $prevlink = array($prevlink, '<i class="icon-backward photo-icons""></i>') ;
+ $prevlink = array($prevlink, t('Previous'));
$photo = array(
'href' => $a->get_baseurl() . '/photo/' . $hires['resource_id'] . '-' . $hires['scale'] . '.' . $phototypes[$hires['type']],
@@ -882,7 +880,7 @@ function photos_content(&$a) {
);
if($nextlink)
- $nextlink = array($nextlink, '<i class="icon-forward photo-icons"></i>');
+ $nextlink = array($nextlink, t('Next'));
// Do we have an item for this photo?
@@ -1122,6 +1120,8 @@ function photos_content(&$a) {
'$prevlink' => $prevlink,
'$nextlink' => $nextlink,
'$desc' => $ph[0]['description'],
+ '$filename' => $ph[0]['filename'],
+ '$unknown' => t('Unknown'),
'$tag_hdr' => t('In This Photo:'),
'$tags' => $tags,
'$edit' => $edit,