Dotclear


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  
Note: See TracChangeset for help on using the changeset viewer.

Sites map