summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2012-01-22 16:39:01 +0000
committerAnika Henke <anika@selfthinker.org>2012-01-22 16:39:01 +0000
commit59f3611b2f11fe1652befff8189787a1181a2f66 (patch)
treead57e861edf5677dc35455b8e935530828541284 /inc/template.php
parente96b69da63a04f9397c4a7d03253207f6ccff056 (diff)
downloadrpg-59f3611b2f11fe1652befff8189787a1181a2f66.tar.gz
rpg-59f3611b2f11fe1652befff8189787a1181a2f66.tar.bz2
removed 'view original' button from new media manager again (was added in b8a84c03) and made a link around the image instead, as that is a more minor change (as it should be during the RC phase) and is what was originally planned
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/inc/template.php b/inc/template.php
index 9d1609fd3..024bf985c 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -970,9 +970,10 @@ function tpl_img($maxwidth=0,$maxheight=0,$link=true,$params=null){
* Default action for TPL_IMG_DISPLAY
*/
function _tpl_img_action($data, $param=NULL) {
+ global $lang;
$p = buildAttributes($data['params']);
- if($data['url']) print '<a href="'.hsc($data['url']).'">';
+ if($data['url']) print '<a href="'.hsc($data['url']).'" title="'.$lang['mediaview'].'">';
print '<img '.$p.'/>';
if($data['url']) print '</a>';
return true;
@@ -1202,16 +1203,7 @@ function tpl_mediaFileDetails($image, $rev){
media_tabs_details($image, $opened_tab);
- 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>';
+ echo '<div class="panelHeader"><h3>';
list($ext,$mime,$dl) = mimetype($image,false);
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$class = 'select mediafile mf_'.$class;