summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-01-12 18:34:48 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-01-13 10:06:02 +0100
commitb8a84c03383cce9c6b85f9d742ae06fac02dd6cd (patch)
treeae7d3ef3ebf6421720a4bf1b63d96f6f17ef6665 /inc/template.php
parent02eb484f1af2dd64a078b53cb5bcfe2a832022ec (diff)
downloadrpg-b8a84c03383cce9c6b85f9d742ae06fac02dd6cd.tar.gz
rpg-b8a84c03383cce9c6b85f9d742ae06fac02dd6cd.tar.bz2
readded missing "view original" button to the new media manager
Template authors need to update their _mediamanager.css
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 476ef74a3..9d1609fd3 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1202,7 +1202,16 @@ function tpl_mediaFileDetails($image, $rev){
media_tabs_details($image, $opened_tab);
- echo '<div class="panelHeader"><h3>';
+ echo '<div class="panelHeader">';
+
+ // view button
+ if($opened_tab === 'view'){
+ $link = ml($image,array('rev'=>$rev),true);
+ echo ' <a href="'.$link.'" target="_blank"><img src="'.DOKU_BASE.'lib/images/magnifier.png" '.
+ 'alt="'.$lang['mediaview'].'" title="'.$lang['mediaview'].'" class="btn" /></a>';
+ }
+
+ echo '<h3>';
list($ext,$mime,$dl) = mimetype($image,false);
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$class = 'select mediafile mf_'.$class;
@@ -1212,6 +1221,7 @@ function tpl_mediaFileDetails($image, $rev){
} else {
printf($lang['media_' . $opened_tab], $tabTitle);
}
+
echo '</h3></div>'.NL;
echo '<div class="panelContent">'.NL;