Changeset 1036

Show
Ignore:
Timestamp:
05/01/08 12:22:51 (7 months ago)
Author:
_ck_
Message:

Kakumei CSS LI workaround

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-attachments/trunk/bb-attachments.php

    r1034 r1036  
    3939$bb_attachments['max']['filename']['default']=40;       // maximum length of filename before auto-trim 
    4040$bb_attachments['max']['filename']['administrate']=80;  // override 
     41 
     42$bb_attachments['style']="#thread .post li {clear:none;}"; 
    4143 
    4244// stop editing here (advanced user settings below) 
     
    9092add_action('post_form','bb_attachments_upload_form'); // auto-insert on new post form  
    9193add_action('pre_post_form','bb_attachments_enctype'); // multipart workaround on new post form 
     94if ($bb_attachments['style']) {add_action('bb_head', 'bb_attachments_add_css');}        // add css if present (including Kakumei  0.9.0.2 LI fix!) 
    9295} 
    9396 
     
    9699function bb_attachments_uri($uri) {remove_filter( 'bb_get_option_uri','bb_attachments_uri',999);  
    97100                                        return $uri. 'bb-post.php"  enctype="multipart/form-data" hack="';}  
     101 
     102function bb_attachments_add_css() { global $bb_attachments;  echo '<style type="text/css">'.$bb_attachments['style'].'</style>';} // inject css 
    98103 
    99104function bb_attachments($post_id=0) {