diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-08-12 17:04:27 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-08-12 17:04:27 +0300 |
commit | e9eba4b18be81444014e59c83ee6c5cf004a7ad7 (patch) | |
tree | 5366f19c738068dc7e1bccfcb0bddd58809d5875 | |
parent | 44d638d049d687159666813023108e0fa9f32181 (diff) | |
download | rpg-e9eba4b18be81444014e59c83ee6c5cf004a7ad7.tar.gz rpg-e9eba4b18be81444014e59c83ee6c5cf004a7ad7.tar.bz2 |
issue #51 link from detail view to fullscreen manager
-rw-r--r-- | inc/lang/en/lang.php | 1 | ||||
-rw-r--r-- | lib/tpl/default/detail.php | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php index 4f5367ecf..f06315a77 100644 --- a/inc/lang/en/lang.php +++ b/inc/lang/en/lang.php @@ -246,6 +246,7 @@ $lang['img_camera'] = 'Camera'; $lang['img_keywords']= 'Keywords'; $lang['img_width'] = 'Width'; $lang['img_height'] = 'Height'; +$lang['img_manager'] = 'View in media manager'; $lang['subscr_subscribe_success'] = 'Added %s to subscription list for %s'; $lang['subscr_subscribe_error'] = 'Error adding %s to subscription list for %s'; diff --git a/lib/tpl/default/detail.php b/lib/tpl/default/detail.php index f7bb37a25..84b659176 100644 --- a/lib/tpl/default/detail.php +++ b/lib/tpl/default/detail.php @@ -49,6 +49,13 @@ if (!defined('DOKU_INC')) die(); </p> <p>← <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?></p> + <p><?php + $imgNS = getNS($IMG); + $authNS = auth_quickaclcheck("$imgNS:*"); + if ($authNS >= AUTH_UPLOAD) { + echo '<a href="'.media_managerURL(array('ns' => $imgNS, 'image' => $IMG)).'">'.$lang['img_manager'].'</a>'; + } + ?></p> <dl class="img_tags"> <?php |