Dotclear

Changeset 1396:726cee12beea


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

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

Files:
6 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> '. 
  • admin/style/default.css

    r1394 r1396  
    550550     float: right; 
    551551} 
     552#entry-sidebar input[type="text"], 
     553#entry-sidebar select { 
     554     width: 14em; /* to prevent inline with label */ 
     555} 
    552556.box { 
    553      border-bottom: 2px solid #A2CBE9; 
     557     border-bottom: 1px solid #ddd; 
    554558     margin-bottom: 1em; 
    555559} 
     
    13031307.form-note a {border-bottom: 1px solid #99f;} 
    13041308 
     1309label.ib { 
     1310     display: inline-block; 
     1311} 
    13051312label.classic { 
    13061313     display: inline; 
  • locales/fr/main.po

    r1365 r1396  
    29882988msgid "Protect with password" 
    29892989msgstr "Protéger par un mot de passe" 
     2990 
     2991msgid "Information collected" 
     2992msgstr "Informations recueillies" 
     2993 
     2994msgid "Comment submitted" 
     2995msgstr "Commentaire déposé" 
     2996 
     2997msgid "Entry status" 
     2998msgstr "État du billet" 
     2999 
     3000msgid "Publication date and hour" 
     3001msgstr "Date et heure de publication" 
     3002 
     3003msgid "Text formating" 
     3004msgstr "Syntaxe de saisie" 
     3005 
     3006msgid "Entry lang" 
     3007msgstr "Langue du billet" 
     3008 
     3009msgid "Password" 
     3010msgstr "Mot de passe" 
     3011 
     3012msgid "Edit basename" 
     3013msgstr "URL spécifique" 
     3014 
     3015msgid "Ordering" 
     3016msgstr "Classement" 
  • locales/fr/plugins.po

    r1382 r1396  
    12771277 
    12781278msgid "Pings" 
    1279 msgstr "Signalements" 
     1279msgstr "Signalements (pings)" 
    12801280 
    12811281msgid "Ping services" 
  • plugins/pings/lib.pings.php

    r1392 r1396  
    5959          } 
    6060           
    61           $item = '<h5 class="ping-services">'.__('Pings:').'</h5>'; 
     61          $item = '<h5 class="ping-services">'.__('Pings').'</h5>'; 
    6262          $i = 0; 
    6363          foreach ($pings_uris as $k => $v) 
  • plugins/tags/_admin.php

    r1392 r1396  
    8181          } 
    8282          $items['metas-box']['items']['post_tags']= 
    83           '<h5><label class="s-tags" for="post_tags">'.__('Tags:').'</label></h5>'. 
     83          '<h5><label class="s-tags" for="post_tags">'.__('Tags').'</label></h5>'. 
    8484          '<div class="p s-tags" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal').'</div>'; 
    8585     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map