aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-10-20 15:05:33 +0200
committermarijus <mario@mariovavti.com>2014-10-20 15:05:33 +0200
commit11e8fe3085d17fed5103ddcc22a7ab411ecd114c (patch)
treed302113e3608b3f8d65d408c75ba736ab6d1fda5 /mod/photos.php
parentc909b8be060cb04479eba79232030e3da25410c6 (diff)
downloadvolse-hubzilla-11e8fe3085d17fed5103ddcc22a7ab411ecd114c.tar.gz
volse-hubzilla-11e8fe3085d17fed5103ddcc22a7ab411ecd114c.tar.bz2
volse-hubzilla-11e8fe3085d17fed5103ddcc22a7ab411ecd114c.zip
more work on photos
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,