Dotclear


Ignore:
Timestamp:
08/16/13 14:16:11 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Semantic xhtml and a11y. Let labels to be labels. Step One: admin. Plugins and Themes will come later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r1358 r1399  
    309309     { 
    310310          echo 
    311           '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:'). 
    312           form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</label></p>'. 
     311          '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label>'. 
     312          form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 
    313313          '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
    314314          '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 
     
    316316      
    317317     echo 
    318      '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:'). 
    319      form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</label></p>'; 
     318     '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label>'. 
     319     form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'; 
    320320      
    321321     if ($core->auth->isSuperAdmin()) 
    322322     { 
    323323          echo 
    324           '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:'). 
    325           form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</label></p>'. 
    326            
    327           '<p><label for="url_scan">'.__('URL scan method:'). 
    328           form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</label></p>'. 
    329            
    330           '<p><label for="blog_status">'.__('Blog status:'). 
    331           form::combo('blog_status',$status_combo,$blog_status).'</label></p>'; 
     324          '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label>'. 
     325          form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 
     326           
     327          '<p><label for="url_scan">'.__('URL scan method:').'</label>'. 
     328          form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</p>'. 
     329           
     330          '<p><label for="blog_status">'.__('Blog status:').'</label>'. 
     331          form::combo('blog_status',$status_combo,$blog_status).'</p>'; 
    332332     } 
    333333      
     
    342342     '<div class="two-cols">'. 
    343343     '<div class="col">'. 
    344      '<p><label for="editor">'.__('Blog editor name:'). 
     344     '<p><label for="editor">'.__('Blog editor name:').'</label>'. 
    345345     form::field('editor',30,255,html::escapeHTML($blog_settings->system->editor)). 
    346      '</label></p>'. 
    347       
    348      '<p><label for="lang">'.__('Default language:'). 
     346     '</p>'. 
     347      
     348     '<p><label for="lang">'.__('Default language:').'</label>'. 
    349349     form::combo('lang',$lang_combo,$blog_settings->system->lang,'l10n'). 
    350      '</label></p>'. 
    351       
    352      '<p><label for="blog_timezone">'.__('Blog timezone:'). 
     350     '</p>'. 
     351      
     352     '<p><label for="blog_timezone">'.__('Blog timezone:').'</label>'. 
    353353     form::combo('blog_timezone',dt::getZones(true,true),html::escapeHTML($blog_settings->system->blog_timezone)). 
    354      '</label></p>'. 
    355  
    356      '<p><label for="copyright_notice">'.__('Copyright notice:'). 
     354     '</p>'. 
     355 
     356     '<p><label for="copyright_notice">'.__('Copyright notice:').'</label>'. 
    357357     form::field('copyright_notice',30,255,html::escapeHTML($blog_settings->system->copyright_notice)). 
    358      '</label></p>'. 
    359      '</div>'. 
    360       
    361      '<div class="col">'. 
    362      '<p><label for="post_url_format">'.__('New post URL format:'). 
     358     '</p>'. 
     359     '</div>'. 
     360      
     361     '<div class="col">'. 
     362     '<p><label for="post_url_format">'.__('New post URL format:').'</label>'. 
    363363     form::combo('post_url_format',$post_url_combo,html::escapeHTML($blog_settings->system->post_url_format)). 
    364      '</label></p>'. 
    365  
    366      '<p><label for="note_title_tag">'.__('Note title HTML tag:'). 
     364     '</p>'. 
     365 
     366     '<p><label for="note_title_tag">'.__('Note title HTML tag:').'</label>'. 
    367367     form::combo('note_title_tag',$note_title_tag_combo,$blog_settings->system->note_title_tag). 
    368      '</label></p>'. 
    369            
    370      '<p><label for="enable_xmlrpc" class="classic">'. 
     368     '</p>'. 
     369           
     370     '<p><label for="enable_xmlrpc" class="classic">'.'</label>'. 
    371371     form::checkbox('enable_xmlrpc','1',$blog_settings->system->enable_xmlrpc). 
    372      __('Enable XML/RPC interface').'</label></p>'; 
     372     __('Enable XML/RPC interface').'</p>'; 
    373373 
    374374     echo 
     
    442442     '<div class="two-cols">'. 
    443443     '<div class="col">'. 
    444      '<p><label for="date_format">'.__('Date format:'). 
     444     '<p><label for="date_format">'.__('Date format:').'</label>'. 
    445445     form::field('date_format',30,255,html::escapeHTML($blog_settings->system->date_format)). 
    446      '</label></p>'. 
    447       
    448      '<p><label for="time_format">'.__('Time format:'). 
     446     '</p>'. 
     447      
     448     '<p><label for="time_format">'.__('Time format:').'</label>'. 
    449449     form::field('time_format',30,255,html::escapeHTML($blog_settings->system->time_format)). 
    450      '</label></p>'. 
     450     '</p>'. 
    451451      
    452452     '<p><label for="use_smilies" class="classic">'. 
     
    500500 
    501501     '<h4>'.__('Default image insertion attributes').'</h4>'. 
    502      '<p><label for="media_img_default_size">'.__('Image size:'). 
     502     '<p><label for="media_img_default_size">'.__('Image size:').'</label>'. 
    503503     form::combo('media_img_default_size',$img_default_size_combo, 
    504504          (html::escapeHTML($blog_settings->system->media_img_default_size) != '' ? html::escapeHTML($blog_settings->system->media_img_default_size) : 'm')). 
    505      '</label></p>'. 
    506      '<p><label for="media_img_default_alignment">'.__('Image alignment'). 
     505     '</p>'. 
     506     '<p><label for="media_img_default_alignment">'.__('Image alignment').'</label>'. 
    507507     form::combo('media_img_default_alignment',$img_default_alignment_combo,html::escapeHTML($blog_settings->system->media_img_default_alignment)). 
    508      '</label></p>'. 
     508     '</p>'. 
    509509     '<p><label for="media_img_default_link" class="classic">'. 
    510510     form::checkbox('media_img_default_link','1',$blog_settings->system->media_img_default_link). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map