diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-05-19 22:29:00 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-05-19 22:29:00 +0200 |
commit | 64c9cfd50fc230a56c886d1c45d84a4f98dcc4c7 (patch) | |
tree | 336ab699099111d08ac409284a78897fd6d2394f /inc/media.php | |
parent | 72f0e11f3f8692c524a51556f05c9c55631ad449 (diff) | |
download | rpg-64c9cfd50fc230a56c886d1c45d84a4f98dcc4c7.tar.gz rpg-64c9cfd50fc230a56c886d1c45d84a4f98dcc4c7.tar.bz2 |
media manager enhancements
Separate scrolling for right and left side of the manager (like frames)
Show syntax example for simple copy'n'paste if no JavaScript available.
darcs-hash:20060519202900-7ad00-9b20bd7993d3687f83b807a81cd23051b16785db.gz
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/media.php b/inc/media.php index 39f76e311..f09aff2eb 100644 --- a/inc/media.php +++ b/inc/media.php @@ -295,6 +295,8 @@ function media_fileactions($item,$auth){ * Formats and prints one file in the list */ function media_printfile($item,$auth,$jump){ + global $lang; + // Prepare zebra coloring // I always wanted to use this variable name :-D static $twibble = 1; @@ -331,6 +333,9 @@ function media_printfile($item,$auth,$jump){ echo '<a name="h_'.$item['id'].'" class="'.$class.'">'.$file.'</a> '; echo '<span class="info">('.$info.')</span>'.NL; media_fileactions($item,$auth); + echo '<div class="example" id="ex_'.$item['id'].'">'; + echo $lang['mediausage'].' <code>{{:'.$item['id'].'}}<code>'; + echo '</div>'; if($item['isimg']) media_printimgdetail($item); echo '<div class="clearer"></div>'.NL; echo '</div>'.NL; |