Dotclear


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map