Dotclear


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

Post.php: semantic and a11y. Plus some CSS adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r1392 r1396  
    411411     '</p>'. 
    412412      
    413      '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'<span class="form-note">'. 
    414      __('Add unpublished notes.').'</span></label>'. 
     413     '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'</label><span class="form-note">'. 
     414     __('Add unpublished notes.').'</span>'. 
    415415     form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 
    416416     '</p>'; 
     
    450450               'items' => array( 
    451451                    'post_status' =>  
    452                          '<p><label for="post_status">'.__('Entry status:'). 
     452                         '<p><label for="post_status" class="ib">'.__('Entry status').'</label>'. 
    453453                         form::combo('post_status',$status_combo,$post_status,'maximal','',!$can_publish). 
    454                          '</label></p>', 
     454                         '</p>', 
    455455                    'post_dt' =>  
    456                          '<p><label for="post_dt">'.__('Published on:'). 
     456                         '<p><label for="post_dt" class="ib">'.__('Publication date and hour').'</label>'. 
    457457                         form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')). 
    458                          '</label></p>', 
     458                         '</p>', 
    459459                    'post_lang' => 
    460                          '<p><label for="post_lang">'.__('Entry lang:'). 
     460                         '<p><label for="post_lang" class="ib">'.__('Entry lang').'</label>'. 
    461461                         form::combo('post_lang',$lang_combo,$post_lang). 
    462                          '</label></p>', 
     462                         '</p>', 
    463463                    'post_format' => 
    464                          '<p><label for="post_format">'.__('Text formating:'). 
     464                         '<p><label for="post_format" class="ib">'.__('Text formating').'</label>'. 
    465465                         form::combo('post_format',$formaters_combo,$post_format,'maximal'). 
    466                          '</label></p>'. 
     466                         '</p>'. 
    467467                         '<p>'.($post_id && $post_format != 'xhtml' ?  
    468468                         '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&amp;xconv=1">'. 
     
    476476                         __('Selected entry').'</label></p>', 
    477477                    'cat_id' => 
    478                          '<p><label for="cat_id">'.__('Category:'). 
     478                         '<p><label for="cat_id" class="ib">'.__('Category').'</label>'. 
    479479                         form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 
    480                          '</label></p>')), 
     480                         '</p>')), 
    481481          'options-box' => array( 
    482482               'title' => __('Options'), 
     
    504504                              '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'), 
    505505                    'post_password' => 
    506                          '<p><label for="post_password">'.__('Password:'). 
     506                         '<p><label for="post_password" class="ib">'.__('Password').'</label>'. 
    507507                         form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 
    508                          '</label></p>', 
     508                         '</p>', 
    509509                    'post_url' => 
    510510                         '<div class="lockable">'. 
    511                          '<p><label for="post_url">'.__('Edit basename:'). 
     511                         '<p><label for="post_url" class="ib">'.__('Edit basename').'</label>'. 
    512512                         form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 
    513                          '</label></p>'. 
     513                         '</p>'. 
    514514                         '<p class="form-note warn">'. 
    515515                         __('Warning: If you set the URL manually, it may conflict with another entry.'). 
     
    624624     '<form action="comment.php" method="post" id="comment-form">'. 
    625625     '<div class="constrained">'. 
    626      '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 
     626     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 
    627627     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
    628      '</label></p>'. 
    629       
    630      '<p><label for="comment_email">'.__('Email:'). 
     628     '</p>'. 
     629      
     630     '<p><label for="comment_email">'.__('Email:').'</label>'. 
    631631     form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 
    632      '</label></p>'. 
    633       
    634      '<p><label for="comment_site">'.__('Web site:'). 
     632     '</p>'. 
     633      
     634     '<p><label for="comment_site">'.__('Web site:').'</label>'. 
    635635     form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 
    636      '</label></p>'. 
     636     '</p>'. 
    637637      
    638638     '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map