Dotclear

Changeset 1587:95d7e59fe2d0


Ignore:
Timestamp:
08/26/13 15:04:10 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Second try for comments page [ergo and a11y]. Need to be tested in Jaws and apply on all table if it works well.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r1577 r1587  
    12091209.right { 
    12101210     text-align: right; 
     1211} 
     1212.txt-center { 
     1213     text-align: center; 
    12111214} 
    12121215.frame-shrink { 
  • inc/admin/lib.pager.php

    r1508 r1587  
    259259                
    260260               $html_block = 
    261                '<table><tr>'. 
    262                '<th colspan="2" class="first">'.__('Author').'</th>'. 
    263                '<th>'.__('Date').'</th>'. 
    264                '<th>'.__('Entry title').'</th>'. 
    265                '<th>'.__('Type').'</th>'. 
    266                '<th>'.__('Status').'</th>'. 
    267                '<th>'.__('Edit').'</th>'. 
     261               '<table><caption class="hidden">'.__('Comments and trackbacks list').'</caption><tr>'. 
     262               '<th scope="col"><span class="hidden">'.__('Select').'</span></th>'. 
     263               '<th scope="col"><span class="hidden txt-center">'.__('Edit').'</span></th>'. 
     264               '<th scope="col" abbr="author">'.__('Type and author').'</th>'. 
     265               '<th scope="col">'.__('Date').'</th>'. 
     266               '<th scope="col" class="txt-center">'.__('Status').'</th>'. 
     267               '<th scope="col" abbr="entry">'.__('Entry title').'</th>'. 
    268268               '</tr>%s</table>'; 
    269                 
     269 
    270270               if ($enclose_block) { 
    271271                    $html_block = sprintf($enclose_block,$html_block); 
     
    325325           
    326326          $post_title = html::escapeHTML($this->rs->post_title); 
    327           if (mb_strlen($post_title) > 50) { 
    328                $post_title = mb_strcut($post_title,0,47).'...'; 
     327          if (mb_strlen($post_title) > 60) { 
     328               $post_title = mb_strcut($post_title,0,57).'...'; 
    329329          } 
    330330           
     
    335335          '<td class="nowrap">'. 
    336336          form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).'</td>'. 
    337           '<td class="maximal"><a href="'.$author_url.'">'.html::escapeHTML($this->rs->comment_author).'</a></td>'. 
     337          '<td class="status class="txt-center">'. 
     338               '<a href="'.$comment_url.'">'. 
     339               '<img src="images/edit-mini.png" alt="" title="'.__('Edit').'" /> '. 
     340               '</a>'.'</td>'. 
     341          '<td class="maximal" scope="row">'.($this->rs->comment_trackback ? __('trackback from') : __('comment from')).' '. 
     342               '<a href="'.$author_url.'">'.html::escapeHTML($this->rs->comment_author).'</a></td>'. 
    338343          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->comment_dt).'</td>'. 
     344          '<td class="nowrap status txt-center">'.$img_status.'</td>'. 
    339345          '<td class="nowrap"><a href="'.$post_url.'">'. 
    340346          html::escapeHTML($post_title).'</a>'. 
    341           ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</td>'. 
    342           '<td class="nowrap">'.($this->rs->comment_trackback ? __('trackback') : __('comment')).'</td>'. 
    343           '<td class="nowrap status">'.$img_status.'</td>'. 
    344           '<td class="nowrap status"><a href="'.$comment_url.'">'. 
    345           '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'; 
     347          ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</td>'; 
    346348           
    347349          $res .= '</tr>'; 
  • locales/fr/main.po

    r1580 r1587  
    31913191msgid "To rearrange categories order, change position number and click on “Save categories order”." 
    31923192msgstr "Pour changer l'ordre des catégories, modifier leur numéro de position et cliquez sur “Enregistrer l'ordre des catégories”." 
     3193 
     3194#test tableau commentaires 
     3195 
     3196msgid "trackback from" 
     3197msgstr "rétrolien de" 
     3198 
     3199msgid "comment from" 
     3200msgstr "commentaire de" 
     3201 
     3202msgid "Type and author" 
     3203msgstr "Type et auteur" 
     3204 
     3205msgid "Edit" 
     3206msgstr "Modifier" 
     3207 
     3208msgid "Select" 
     3209msgstr "Sélectionner" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map