Dotclear

Changeset 536:535dd04130aa for plugins


Ignore:
Timestamp:
07/09/11 19:47:57 (14 years ago)
Author:
kozlika
Branch:
default
Message:

Accessibility: fieldset aren't used if not necessary.
Create a class="fieldset" for presentation needs.

Location:
plugins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/akismet/class.dc.filter.akismet.php

    r270 r536  
    136136           
    137137          $res = 
    138           '<form action="'.html::escapeURL($url).'" method="post">'. 
     138          '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
    139139          '<p><label for="ak_key" class="classic">'.__('Akismet API key:').' '. 
    140140          form::field('ak_key',12,128,$ak_key).'</label>'; 
  • plugins/antispam/filters/class.dc.filter.ip.php

    r270 r536  
    123123          '<div class="multi-part" id="tab_'.$type.'" title="'.$title.'">'. 
    124124 
    125           '<form action="'.html::escapeURL($url).'" method="post">'. 
    126           '<fieldset><legend>'.__('Add an IP address').'</legend><p>'. 
     125          '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
    127126          form::hidden(array('ip_type'),$type). 
    128           '<label class="classic" for="addip_'.$type.'">'.__('Add an IP address').' '. 
     127          '<label class="classic" for="addip_'.$type.'">'.__('Add an IP address: ').' '. 
    129128          form::field(array('addip', 'addip_'.$type),18,255). 
    130129          '</label>'; 
     
    136135          $res .= 
    137136          $core->formNonce(). 
    138           '<input type="submit" value="'.__('Add').'"/></p>'. 
    139           '</fieldset></form>'; 
     137          '</p>'. 
     138          '<p><input type="submit" value="'.__('Add').'"/></p>'. 
     139          '</form>'; 
    140140 
    141141          $rs = $this->getRules($type); 
     
    149149               $res .= 
    150150               '<form action="'.html::escapeURL($url).'" method="post">'. 
    151                '<fieldset><legend>' . __('IP list') . '</legend>'. 
     151               '<h3>' . __('IP list') . '</h3>'. 
    152152               '<div style="'.$this->style_list.'">'; 
    153153 
     
    178178               form::hidden(array('ip_type'),$type). 
    179179               '</p>'. 
    180                '</fieldset></form>'; 
     180               '</form>'; 
    181181          } 
    182182 
  • plugins/antispam/filters/class.dc.filter.iplookup.php

    r270 r536  
    8686          '<p><label for="bls">'.__('Add here a coma separated list of servers.'). 
    8787          form::textarea('bls',40,3,html::escapeHTML($bls),'maximal'). 
    88           '<input type="submit" value="'.__('Save').'" /></label></p>'. 
     88          '</p>'. 
     89          '<p><input type="submit" value="'.__('Save').'" /></label></p>'. 
    8990          $this->core->formNonce().'</p>'. 
    9091          '</fieldset>'. 
  • plugins/antispam/filters/class.dc.filter.words.php

    r270 r536  
    119119 
    120120          $res .= 
    121           '<form action="'.html::escapeURL($url).'" method="post">'. 
    122           '<fieldset><legend>'.__('Add a word').'</legend>'. 
    123           '<p><label class="classic" for="swa">'.__('Add a word').' '.form::field('swa',20,128).'</label>'; 
     121          '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
     122          '<p><label class="classic" for="swa">'.__('Add a word ').' '.form::field('swa',20,128).'</label>'; 
    124123 
    125124          if ($core->auth->isSuperAdmin()) { 
     
    130129          $res .= 
    131130          $core->formNonce(). 
    132           '<input type="submit" value="'.__('Add').'"/></p>'. 
    133           '</fieldset>'. 
     131          '</p>'. 
     132          '<p><input type="submit" value="'.__('Add').'"/></p>'. 
    134133          '</form>'; 
    135134 
     
    142141          { 
    143142               $res .= 
    144                '<form action="'.html::escapeURL($url).'" method="post">'. 
    145                '<fieldset><legend>' . __('List') . '</legend>'. 
     143               '<form action="'.html::escapeURL($url).'" method="post" class="fieldset">'. 
     144               '<h3>' . __('List of bad words') . '</h3>'. 
    146145               '<div style="'.$this->style_list.'">'; 
    147146 
     
    167166               $core->formNonce(). 
    168167               '<input class="submit delete" type="submit" value="' . __('Delete selected words') . '"/></p>'. 
    169                '</fieldset></form>'; 
     168               '</form>'; 
    170169          } 
    171170 
  • plugins/antispam/index.php

    r505 r536  
    128128 
    129129     echo 
    130      '<form action="'.$p_url.'" method="post">'. 
    131      '<fieldset><legend>'.__('Information').'</legend>'; 
     130     '<form action="'.$p_url.'" method="post" class="fieldset">'. 
     131     '<h3>'.__('Information').'</h3>'; 
    132132 
    133133     if (!empty($_GET['del'])) { 
     
    153153          echo '<p>'.sprintf(__('All spam comments older than %s day(s) will be automatically deleted.'), $moderationTTL).'</p>'; 
    154154     } 
    155      echo '</fieldset></form>'; 
     155     echo '</form>'; 
    156156 
    157157 
    158158     # Filters 
    159159     echo 
    160      '<form action="'.$p_url.'" method="post">'. 
    161      '<fieldset><legend>'.__('Available spam filters').'</legend>'; 
     160     '<form action="'.$p_url.'" method="post" class="fieldset">'; 
    162161 
    163162     if (!empty($_GET['upd'])) { 
     
    167166     echo 
    168167     '<table class="dragable">'. 
     168     '<caption>'.__('Available spam filters').'</caption>'. 
    169169     '<thead><tr>'. 
    170170     '<th>'.__('Order').'</th>'. 
     
    192192          '<td class="nowrap">'.form::checkbox(array('filters_active[]'),$fid,$f->active, '', '', false, 'title="'.__('Active').'"').'</td>'. 
    193193          '<td class="nowrap">'.form::checkbox(array('filters_auto_del[]'),$fid,$f->auto_delete, '', '', false, 'title="'.__('Auto Del.').'"').'</td>'. 
    194           '<td class="nowrap">'.$f->name.'</td>'. 
     194          '<td class="nowrap" scope="raw">'.$f->name.'</td>'. 
    195195          '<td class="maximal">'.$f->description.'</td>'. 
    196196          '<td class="status">'.$gui_link.'</td>'. 
     
    203203     $core->formNonce(). 
    204204     '<input type="submit" name="filters_upd" value="'.__('Save').'" /></p>'. 
    205      '</fieldset></form>'; 
     205     '</form>'; 
    206206 
    207207 
     
    213213 
    214214          echo 
    215           '<fieldset><legend>'.__('Syndication').'</legend>'. 
     215          '<h3>'.__('Syndication').'</h3>'. 
    216216          '<ul class="spaminfo">'. 
    217217          '<li class="feed"><a href="'.$spam_feed.'">'.__('Junk comments RSS feed').'</a></li>'. 
    218218          '<li class="feed"><a href="'.$ham_feed.'">'.__('Published comments RSS feed').'</a></li>'. 
    219           '</ul>'. 
    220           '</fieldset>'; 
     219          '</ul>'; 
    221220     } 
    222221} 
     
    225224</body> 
    226225</html> 
    227  
  • plugins/pages/page.php

    r500 r536  
    363363 
    364364     echo '<div id="entry-wrapper">'; 
    365      echo '<div id="entry-content"><fieldset class="constrained">'; 
     365     echo '<div id="entry-content"><div class="constrained">'; 
    366366      
    367367     echo 
     
    396396     '</p>'; 
    397397      
    398      echo '</fieldset></div>';          // End #entry-content 
     398     echo '</div></div>';          // End #entry-content 
    399399     echo '</div>';      // End #entry-wrapper 
    400400 
     
    570570      
    571571     '<form action="comment.php" method="post" id="comment-form">'. 
    572      '<fieldset class="constrained">'. 
     572     '<div class="constrained">'. 
    573573     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 
    574574     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
     
    590590     $core->formNonce(). 
    591591     '<input type="submit" name="add" value="'.__('Save').'" /></p>'. 
    592      '</fieldset>'. 
     592     '</div>'. 
    593593     '</form>'. 
    594594     '</div>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map