diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-05-25 16:40:00 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-05-25 16:40:00 +0200 |
commit | cf6894df38261b3b92c75d441bbe0a0ba58d963e (patch) | |
tree | 8ea05553b2d36f0e8aa65f5778a7f71ed721fa6a /inc/media.php | |
parent | fb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4 (diff) | |
download | rpg-cf6894df38261b3b92c75d441bbe0a0ba58d963e.tar.gz rpg-cf6894df38261b3b92c75d441bbe0a0ba58d963e.tar.bz2 |
more mediamanager fixes
This fixes some styling issues, the cookie handling and a bug in the
JavaScript caching mechanism.
darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/inc/media.php b/inc/media.php index f09aff2eb..7d2dbd5ff 100644 --- a/inc/media.php +++ b/inc/media.php @@ -114,7 +114,7 @@ function media_metaform($id,$auth){ echo '<div class="metafield">'; echo '<label for="meta__'.$key.'">'; echo ($lang[$field[1]]) ? $lang[$field[1]] : $field[1]; - echo '</label>'; + echo ':</label>'; // put input field if($field[2] == 'text'){ @@ -268,7 +268,13 @@ function media_filelist($ns,$auth=null,$jump=''){ function media_fileactions($item,$auth){ global $lang; - // no actions if not writable + // view button + $link = ml($item['id'],'',true); + echo ' <a href="'.$link.'" target="_blank"><img src="'.DOKU_BASE.'lib/images/magnifier.png" '. + 'alt="'.$lang['mediaview'].'" title="'.$lang['mediaview'].'" class="btn" /></a>'; + + + // no further actions if not writable if(!$item['writable']) return; // delete button @@ -377,6 +383,7 @@ function media_printimgdetail($item){ $t = $item['meta']->getField(array('IPTC.Caption','EXIF.UserComment', 'EXIF.TIFFImageDescription', 'EXIF.TIFFUserComment')); + if(utf8_strlen($t) > 250) $t = utf8_substr($t,0,250).'...'; if($t) echo htmlspecialchars($t).'<br />'; $t = $item['meta']->getField(array('IPTC.Keywords','IPTC.Category')); @@ -396,10 +403,12 @@ function media_uploadform($ns, $auth){ if($auth < AUTH_UPLOAD) return; //fixme print info on missing permissions? ?> + <div class="upload"><?php echo $lang['mediaupload']?></div> <form action="<?php echo DOKU_BASE?>lib/exe/mediamanager.php" method="post" enctype="multipart/form-data" class="upload"> <input type="hidden" name="ns" value="<?php echo hsc($ns)?>" /> + <?php echo $lang['txt_upload']?>: <input type="file" name="upload" class="edit" id="upload__file" /><br /> |