diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-01-12 18:34:48 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-01-13 10:06:02 +0100 |
commit | b8a84c03383cce9c6b85f9d742ae06fac02dd6cd (patch) | |
tree | ae7d3ef3ebf6421720a4bf1b63d96f6f17ef6665 | |
parent | 02eb484f1af2dd64a078b53cb5bcfe2a832022ec (diff) | |
download | rpg-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
-rw-r--r-- | inc/template.php | 12 | ||||
-rw-r--r-- | lib/tpl/default/_mediamanager.css | 10 |
2 files changed, 21 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; diff --git a/lib/tpl/default/_mediamanager.css b/lib/tpl/default/_mediamanager.css index 198c7f440..9b1ece8d7 100644 --- a/lib/tpl/default/_mediamanager.css +++ b/lib/tpl/default/_mediamanager.css @@ -59,6 +59,7 @@ background-color: __background_alt__; } + /*____________ Namespaces tree ____________*/ #mediamanager__page .namespaces h2 { @@ -101,6 +102,15 @@ margin: 0 0 3px; } +#mediamanager__page .file .panelHeader h3 { + margin-right: 18px; +} + +#mediamanager__page .file .panelHeader img.btn { + float: right; + width: 16px; +} + #mediamanager__page .panelHeader form.options { float: right; margin-top: -3px; |