diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-02-16 20:52:10 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-02-16 20:52:10 +0100 |
commit | dfe934f96f476bdcf60d82feceb4d2a78df28ca0 (patch) | |
tree | 7036626b48446557ef610076356f22dfada489b8 /lib/exe/css.php | |
parent | 221cb66533e11a3e20e642d760af06bb19f7e14b (diff) | |
download | rpg-dfe934f96f476bdcf60d82feceb4d2a78df28ca0.tar.gz rpg-dfe934f96f476bdcf60d82feceb4d2a78df28ca0.tar.bz2 |
Switched file icons against generated ones, added 32x32 versions
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r-- | lib/exe/css.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index cab7384b2..128fd5389 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -369,7 +369,7 @@ function css_filetypes(){ // default style echo '.mediafile {'; - echo ' background: transparent url('.DOKU_BASE.'lib/images/fileicons/file.png) 0px 1px no-repeat;'; + echo ' background: transparent url('.DOKU_BASE.'lib/images/fileicons/16x16/file.png) 0px 1px no-repeat;'; echo ' padding-left: 18px;'; echo ' padding-bottom: 1px;'; echo '}'; @@ -377,7 +377,7 @@ function css_filetypes(){ // additional styles when icon available // scan directory for all icons $exts = array(); - if($dh = opendir(DOKU_INC.'lib/images/fileicons')){ + if($dh = opendir(DOKU_INC.'lib/images/fileicons/16x16')){ while(false !== ($file = readdir($dh))){ if(preg_match('/([_\-a-z0-9]+(?:\.[_\-a-z0-9]+)*?)\.(png|gif)/i',$file,$match)){ $ext = strtolower($match[1]); @@ -392,7 +392,7 @@ function css_filetypes(){ foreach($exts as $ext=>$type){ $class = preg_replace('/[^_\-a-z0-9]+/','_',$ext); echo ".mf_$class {"; - echo ' background-image: url('.DOKU_BASE.'lib/images/fileicons/'.$ext.$type.')'; + echo ' background-image: url('.DOKU_BASE.'lib/images/fileicons/16x16/'.$ext.$type.')'; echo '}'; } } |