Dotclear


Ignore:
Timestamp:
08/12/13 15:31:45 (12 years ago)
Author:
Pascal Chevrel <pascal.chevrel@…>
Branch:
ticket1515
Message:

Ticket 1515: move hardcoded css from antispam filters to css file

Location:
plugins/antispam/filters
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/filters/class.dc.filter.ip.php

    r1179 r1510  
    1717     public $has_gui = true; 
    1818 
    19      private $style_list = 'height: 200px; overflow: auto; margin-bottom: 1em; '; 
    20      private $style_p = 'margin: 1px 0 0 0; padding: 0.2em 0.5em; '; 
    21      private $style_global = 'background: #ccff99; '; 
    22  
    2319     private $con; 
    2420     private $table; 
     
    150146               '<form action="'.html::escapeURL($url).'" method="post">'. 
    151147               '<h3>' . __('IP list') . '</h3>'. 
    152                '<div style="'.$this->style_list.'">'; 
     148               '<div class="antispam">'; 
    153149 
    154150               $res_global = ''; 
     
    162158 
    163159                    $disabled_ip = false; 
    164                     $p_style = $this->style_p; 
     160                    $p_style = ''; 
    165161                    if (!$rs->blog_id) { 
    166162                         $disabled_ip = !$core->auth->isSuperAdmin(); 
    167                          $p_style .= $this->style_global; 
     163                         $p_style .= ' global'; 
    168164                    } 
    169165 
    170166                    $item = 
    171                     '<p style="'.$p_style.'"><label class="classic" for="'.$type.'-ip-'.$rs->rule_id.'">'. 
     167                    '<p class="'.$p_style.'"><label class="classic" for="'.$type.'-ip-'.$rs->rule_id.'">'. 
    172168                    form::checkbox(array('delip[]',$type.'-ip-'.$rs->rule_id),$rs->rule_id,false,'','',$disabled_ip).' '. 
    173169                    html::escapeHTML($pattern). 
  • plugins/antispam/filters/class.dc.filter.words.php

    r1179 r1510  
    1717     public $name = 'Bad Words'; 
    1818 
    19      private $style_list = 'height: 200px; overflow: auto; margin-bottom: 1em; '; 
    20      private $style_p = 'margin: 1px 0 0 0; padding: 0.2em 0.5em; '; 
    21      private $style_global = 'background: #ccff99; '; 
    22  
    2319     private $con; 
    2420     private $table; 
     
    143139               '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
    144140               '<h3>' . __('List of bad words') . '</h3>'. 
    145                '<div style="'.$this->style_list.'">'; 
     141               '<div class="antispam">'; 
    146142 
    147143               $res_global = ''; 
     
    150146               { 
    151147                    $disabled_word = false; 
    152                     $p_style = $this->style_p; 
     148 
     149                    $p_style = ''; 
     150 
    153151                    if (!$rs->blog_id) { 
    154152                         $disabled_word = !$core->auth->isSuperAdmin(); 
    155                          $p_style .= $this->style_global; 
     153                         $p_style .= ' global'; 
    156154                    } 
    157155 
    158                     $item = '<p style="'.$p_style.'"><label class="classic" for="word-'.$rs->rule_id.'">'. 
     156                    $item = '<p class="'.$p_style.'"><label class="classic" for="word-'.$rs->rule_id.'">'. 
    159157                         form::checkbox(array('swd[]', 'word-'.$rs->rule_id),$rs->rule_id,false,'','',$disabled_word).' '. 
    160158                         html::escapeHTML($rs->rule_content). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map