Dotclear

Changeset 536:535dd04130aa


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.

Files:
17 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r473 r536  
    379379                    '</p>'; 
    380380          } 
     381          else { 
     382               echo '<legend>'.__('Connection').'</legend>'; 
     383          } 
     384 
    381385          echo 
    382386          '<p><label for="user_id">'.__('Username:').' '. 
  • admin/index.php

    r510 r536  
    313313          '<h3>'.__('Quick entry').'</h3>'. 
    314314          '<form id="quick-entry" action="post.php" method="post">'. 
    315           '<fieldset>'. 
     315          '<fieldset><legend>'.__('New entry').'</legend>'. 
    316316          '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 
    317317          form::field('post_title',20,255,'','maximal'). 
     
    325325          '<p><input type="submit" value="'.__('Save').'" name="save" /> '. 
    326326          ($core->auth->check('publish',$core->blog->id) 
    327                ? '<input type="hidden" value="'.__('save and publish').'" name="save-publish" />' 
     327               ? '<input type="hidden" value="'.__('Save and publish').'" name="save-publish" />' 
    328328               : ''). 
    329329          $core->formNonce(). 
  • admin/js/jquery/jquery.candyUpload.js

    r3 r536  
    501501                
    502502               var size = this.formatSize(upldr.params.file_size_limit); 
    503                $('<div class="cu-maxsize">' + this.locales.max_file_size + ' ' + size + '</div>').appendTo(this.ctrl.block); 
     503               $('<p class="cu-maxsize form-note info">' + this.locales.max_file_size + ' ' + size + '</p>').appendTo(this.ctrl.block); 
    504504          }, 
    505505           
     
    553553                         '<div class="cu-fileinfo"><span class="cu-filename">' + o.name + '</span> ' +  
    554554                         '<span class="cu-filesize">(' + this.formatSize(o.size) + ')</span> ' + 
    555                          '<span class="cu-filecancel"><a href="#">cancel</a></span> ' + 
     555                         '<span class="cu-filecancel"><a href="#">cancel</a> </span> ' + 
    556556                         '<span class="cu-filemsg"></span>' + 
    557557                         '</div>'); 
  • admin/media.php

    r505 r536  
    344344      
    345345     echo 
    346      '<div class="col"><h3 id="add-file">'.__('Add files').'</h3>'. 
     346     '<div class="col">'. 
     347     '<fieldset id="add-file-f"><legend>'.__('Add files').'</legend>'. 
    347348     '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    348349     '<form id="media-upload" class="clear" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data">'. 
    349350     '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
    350351     $core->formNonce().'</div>'. 
    351      '<fieldset id="add-file-f">'. 
    352352     '<p><label for="upfile">'.__('Choose a file:'). 
    353353     ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 
     
    366366      
    367367     echo 
    368      '<div class="col"><h3 id="new-dir">'.__('New directory').'</h3>'. 
     368     '<div class="col">'. 
    369369     '<form class="clear" action="'.html::escapeURL($page_url).'" method="post">'. 
    370370     '<fieldset id="new-dir-f">'. 
     371     '<legend>'.__('New directory').'</legend>'. 
    371372     $core->formNonce(). 
    372373     '<p><label for="newdir">'.__('Directory Name:'). 
  • admin/permissions.php

    r500 r536  
    143143      
    144144     echo 
    145      '<fieldset>'. 
     145     '<fieldset><legend>'.__('Validate permissions').'</legend>'. 
    146146     '<p><label for="your_pwd">'.__('Your password:'). 
    147147     form::password('your_pwd',20,255).'</label></p>'. 
  • admin/post.php

    r500 r536  
    361361     echo '<form action="post.php" method="post" id="entry-form">'; 
    362362     echo '<div id="entry-wrapper">'; 
    363      echo '<div id="entry-content"><fieldset class="constrained">'; 
     363     echo '<div id="entry-content"><div class="constrained">'; 
    364364      
    365365     echo 
     
    393393     '</p>'; 
    394394      
    395      echo '</fieldset></div>';          // End #entry-content 
     395     echo '</div></div>';          // End #entry-content 
    396396     echo '</div>';      // End #entry-wrapper 
    397397 
     
    538538      
    539539     '<form action="comment.php" method="post" id="comment-form">'. 
    540      '<fieldset class="constrained">'. 
     540     '<div class="constrained">'. 
    541541     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 
    542542     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
     
    559559     $core->formNonce(). 
    560560     '<input type="submit" name="add" value="'.__('Save').'" /></p>'. 
    561      '</fieldset>'. 
     561     '</div>'. 
    562562     '</form>'. 
    563563     '</div>'; 
  • admin/preferences.php

    r500 r536  
    387387     '</fieldset>'. 
    388388      
    389      '<fieldset>'. 
    390      '<p>'.__('If you want to change your email or password you must provide your current password.').'</p>'. 
     389     '<p>'.__('If you have changed this user email or password you must provide your current password to save these modifications.').'</p>'. 
    391390     '<p><label for="cur_pwd">'.__('Your password:'). 
    392      form::password('cur_pwd',20,255).'</label></p>'. 
    393      '</fieldset>'; 
     391     form::password('cur_pwd',20,255).'</label></p>'; 
    394392} 
    395393 
  • admin/style/candyUpload/style.css

    r3 r536  
    11 
    2 div.cu-ctrl { 
     2.cu-ctrl { 
    33     background: #f5f5f5; 
    4      padding: 5px 0 0 0; 
     4     padding: .5em 0 0 0; 
    55     margin: 0 0 1em 0; 
    66     overflow: hidden; 
    7      border-color: #ccc; 
    8      border-width: 1px 0; 
    9      border-style: solid; 
    107} 
    11  
    12 div.cu-msg { 
    13      padding: 0 0.5em; 
     8.cu-msg { 
    149     font-weight: bold; 
    1510} 
    16 div.cu-msg.cu-error { 
     11.cu-msg.cu-error { 
    1712     color: #c00; 
    1813} 
    19  
    20 div.cu-files { 
     14.cu-files { 
    2115     padding: 0 0.5em; 
    2216     margin: 10px 0; 
    2317} 
    24 div.cu-file { 
     18.cu-file { 
    2519     margin: 0 0 8px 0; 
    2620     position: relative; 
    2721} 
    28 div.cu-fileinfo { 
     22.cu-fileinfo { 
    2923     margin-left: 16px; 
    3024} 
    31 div.cu-fileinfo span.cu-filecancel { 
     25.cu-fileinfo span.cu-filecancel { 
    3226     display: block; 
    3327     position: absolute; 
     
    3630     left: -16px; 
    3731} 
    38 div.cu-files span.cu-filecancel a { 
     32.cu-filecancel a { 
    3933     display: block; 
    4034     width: 12px; 
     
    4539     outline: none; 
    4640} 
    47 div.cu-files span.cu-filemsg { 
     41.cu-filemsg { 
    4842     font-weight: bold; 
    4943     color: green; 
    5044} 
    51 div.cu-files span.cu-filemsg.cu-error { 
     45span.cu-filemsg.cu-error { 
    5246     color: #c00; 
    5347} 
    54  
    55 div.cu-progress { 
     48.cu-progress { 
    5649     margin-left: 16px; 
    5750} 
    58 div.cu-progress div { 
     51.cu-progress div { 
    5952     height: 10px; 
    6053     width: 0; 
     
    6962     -moz-border-radius: 2px; 
    7063} 
    71  
    72 div.cu-btn { 
     64.cu-btn { 
    7365     padding: 0 0.5em; 
    7466     line-height: 1.2em; 
     
    7769     position: relative; 
    7870} 
    79 div.cu-btn span { 
     71.cu-btn span { 
    8072     display: block; 
    81      margin: 0 0 0 .5em; 
     73     margin: 0 1em 0 0; 
    8274     float: right; 
    8375} 
    84 div.cu-btn span a { 
     76.cu-btn span a { 
    8577     display: block; 
    8678     padding: .3em 1.5em; 
    8779} 
    88 div.cu-btn span.cu-btn-browse { 
     80span.cu-btn-browse { 
    8981     float: none; 
    9082     position: absolute; 
    91      left: 0.5em; 
     83     left: 0; 
    9284     margin: 0; 
    9385} 
    94 div.cu-btn span.cu-btn-upload a.button { 
     86span.cu-btn-upload, span.cu-btn-clean { 
     87     margin-right: 0; 
     88} 
     89span.cu-btn-upload a.button { 
    9590     color: #fff; 
    9691     border: 1px solid #2373A8; 
     
    9994     background: -moz-linear-gradient(top,  #2C8FD1,  #2373A8); 
    10095} 
    101 div.cu-btn span.cu-btn-upload a.button:hover, div.cu-btn span.cu-btn-upload a.button:focus { 
     96span.cu-btn-upload a.button:hover,  
     97span.cu-btn-upload a.button:focus { 
    10298     color: #fff; 
    10399     border: 1px solid #2C8FD1; 
     
    107103     filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#2373A8', endColorstr='#2C8FD1'); 
    108104} 
    109 div.cu-maxsize { 
     105.cu-maxsize.form-note { 
    110106     clear: both; 
    111      margin: .75em 0 0 0.5em; 
     107     margin: 1.5em 0 0; 
    112108     font-style: italic; 
    113109} 
    114  
    115 div.cu-disable { 
     110.cu-disable { 
    116111     margin: 1em 0; 
    117112     padding: 0 0 0.5em 0.5em; 
  • admin/style/default.css

    r530 r536  
    10101010     background: #ddd; 
    10111011} 
     1012caption { 
     1013     color: #333; 
     1014     font-size: 1.2em; 
     1015     font-weight: bold; 
     1016     text-align: left; 
     1017     margin-bottom: .5em; 
     1018} 
     1019 
    10121020th, td { 
    10131021     border-width: 0 0 1px 0; 
     
    10791087     padding: 0; 
    10801088} 
    1081 fieldset { 
     1089fieldset, .fieldset { 
    10821090     display: block; 
    10831091     margin: 0 0 1em 0; 
     
    12081216     padding-left: 20px; 
    12091217} 
    1210 fieldset.constrained { 
     1218.constrained { 
    12111219     margin: 0; 
    12121220     padding: 0; 
     
    13191327     border-radius: .5em; 
    13201328     margin-bottom: .1em;      
    1321      background: #2C8FD1 url(add.png) no-repeat .2em center; 
     1329     background: #2C8FD1 url(add.png) no-repeat 6px center; 
    13221330     color: #fff; 
    1323      padding: .1em 1em .2em 28px; 
     1331     padding: .2em 12px .2em 24px; 
    13241332     border: 1px solid #2373A8; 
    13251333} 
  • admin/user.php

    r501 r536  
    273273 
    274274echo 
    275 '<fieldset>'. 
    276275'<p><label for="your_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 
    277276($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Your password:'). 
    278277form::password('your_pwd',20,255).'</label></p>'. 
    279 '</fieldset>'. 
    280278'<p class="clear"><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    281279($user_id != '' ? form::hidden('id',$user_id) : ''). 
  • 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