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/preferences.php

    r1358 r1399  
    384384'<div class="two-cols">'. 
    385385'<div class="col">'. 
    386 '<p><label for="user_name">'.__('Last Name:'). 
    387 form::field('user_name',20,255,html::escapeHTML($user_name)).'</label></p>'. 
    388  
    389 '<p><label for="user_firstname">'.__('First Name:'). 
    390 form::field('user_firstname',20,255,html::escapeHTML($user_firstname)).'</label></p>'. 
    391  
    392 '<p><label for="user_displayname">'.__('Display name:'). 
    393 form::field('user_displayname',20,255,html::escapeHTML($user_displayname)).'</label></p>'. 
    394  
    395 '<p><label for="user_email">'.__('Email:'). 
    396 form::field('user_email',20,255,html::escapeHTML($user_email)).'</label></p>'. 
    397  
    398 '<p><label for="user_url">'.__('URL:'). 
    399 form::field('user_url',30,255,html::escapeHTML($user_url)).'</label></p>'. 
     386'<p><label for="user_name">'.__('Last Name:').'</label>'. 
     387form::field('user_name',20,255,html::escapeHTML($user_name)).'</p>'. 
     388 
     389'<p><label for="user_firstname">'.__('First Name:').'</label>'. 
     390form::field('user_firstname',20,255,html::escapeHTML($user_firstname)).'</p>'. 
     391 
     392'<p><label for="user_displayname">'.__('Display name:').'</label>'. 
     393form::field('user_displayname',20,255,html::escapeHTML($user_displayname)).'</p>'. 
     394 
     395'<p><label for="user_email">'.__('Email:').'</label>'. 
     396form::field('user_email',20,255,html::escapeHTML($user_email)).'</p>'. 
     397 
     398'<p><label for="user_url">'.__('URL:').'</label>'. 
     399form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'. 
    400400 
    401401'</div>'. 
     
    403403'<div class="col">'. 
    404404 
    405 '<p><label for="user_lang">'.__('User language:'). 
    406 form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</label></p>'. 
    407  
    408 '<p><label for="user_tz">'.__('User timezone:'). 
    409 form::combo('user_tz',dt::getZones(true,true),$user_tz).'</label></p>'. 
     405'<p><label for="user_lang">'.__('User language:').'</label>'. 
     406form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 
     407 
     408'<p><label for="user_tz">'.__('User timezone:').'</label>'. 
     409form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 
    410410 
    411411'</div>'. 
     
    420420     '<legend>'.__('Change your password').'</legend>'. 
    421421      
    422      '<p><label for="new_pwd">'.__('New password:'). 
    423      form::password('new_pwd',20,255).'</label></p>'. 
     422     '<p><label for="new_pwd">'.__('New password:').'</label>'. 
     423     form::password('new_pwd',20,255).'</p>'. 
    424424      
    425      '<p><label for="new_pwd_c">'.__('Confirm password:'). 
    426      form::password('new_pwd_c',20,255).'</label></p>'. 
     425     '<p><label for="new_pwd_c">'.__('Confirm password:').'</label>'. 
     426     form::password('new_pwd_c',20,255).'</p>'. 
    427427     '</fieldset>'. 
    428428      
    429429     '<p>'.__('If you have changed this user email or password you must provide your current password to save these modifications.').'</p>'. 
    430      '<p><label for="cur_pwd">'.__('Your password:'). 
    431      form::password('cur_pwd',20,255).'</label></p>'; 
     430     '<p><label for="cur_pwd">'.__('Your password:').'</label>'. 
     431     form::password('cur_pwd',20,255).'</p>'; 
    432432} 
    433433 
     
    447447'<fieldset><legend>'.__('My options').'</legend>'. 
    448448 
    449 '<p><label for="user_post_format">'.__('Preferred format:'). 
    450 form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</label></p>'. 
    451  
    452 '<p><label for="user_post_status">'.__('Default entry status:'). 
    453 form::combo('user_post_status',$status_combo,$user_post_status).'</label></p>'. 
    454  
    455 '<p><label for="user_edit_size">'.__('Entry edit field height:'). 
    456 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</label></p>'. 
     449'<p><label for="user_post_format">'.__('Preferred format:').'</label>'. 
     450form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 
     451 
     452'<p><label for="user_post_status">'.__('Default entry status:').'</label>'. 
     453form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 
     454 
     455'<p><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
     456form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 
    457457 
    458458'<p><label for="user_wysiwyg" class="classic">'. 
     
    470470if (count($iconsets_combo) > 1) { 
    471471     echo  
    472           '<p><label for="user_ui_iconset">'.__('Iconset:'). 
    473           form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</label></p>'; 
     472          '<p><label for="user_ui_iconset">'.__('Iconset:').'</label>'. 
     473          form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 
    474474} else { 
    475475     form::hidden('user_ui_iconset',''); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map