Dotclear


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

Prelude: 3 links now, so needs modification to js to display over the wrapper.
Tables: add captions and scopes.
Translation in french: missed one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r1587 r1600  
    2323          $this->rs =& $rs; 
    2424          $this->rs_count = $rs_count; 
    25           $this->html_prev = __('&#171;prev.'); 
    26           $this->html_next = __('next&#187;'); 
     25          $this->html_prev = __('&#171; prev.'); 
     26          $this->html_next = __('next &#187;'); 
    2727     } 
    2828} 
     
    4949               } 
    5050               $html_block = 
    51                '<table class="clear"><tr>'. 
     51               '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
    5252               '<th colspan="2" class="first">'.__('Title').'</th>'. 
    53                '<th>'.__('Date').'</th>'. 
    54                '<th>'.__('Category').'</th>'. 
    55                '<th>'.__('Author').'</th>'. 
    56                '<th>'.__('Comments').'</th>'. 
    57                '<th>'.__('Trackbacks').'</th>'. 
    58                '<th>'.__('Status').'</th>'. 
     53               '<th scope="col">'.__('Date').'</th>'. 
     54               '<th scope="col">'.__('Category').'</th>'. 
     55               '<th scope="col">'.__('Author').'</th>'. 
     56               '<th scope="col">'.__('Comments').'</th>'. 
     57               '<th scope="col">'.__('Trackbacks').'</th>'. 
     58               '<th scope="col">'.__('Status').'</th>'. 
    5959               '</tr>%s</table>'; 
    6060                
     
    134134          '<td class="nowrap">'. 
    135135          form::checkbox(array('entries[]'),$this->rs->post_id,$checked,'','',!$this->rs->isEditable()).'</td>'. 
    136           '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 
     136          '<td class="maximal" scope="row"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'">'. 
    137137          html::escapeHTML($this->rs->post_title).'</a></td>'. 
    138138          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 
     
    164164                
    165165               $html_block = 
    166                '<table class="clear"><tr>'. 
    167                '<th>'.__('Title').'</th>'. 
    168                '<th>'.__('Date').'</th>'. 
    169                '<th>'.__('Author').'</th>'. 
    170                '<th>'.__('Status').'</th>'. 
     166               '<table class="clear"><caption class="hidden">'.__('Entries list').'</caption><tr>'. 
     167               '<th scope="col">'.__('Title').'</th>'. 
     168               '<th scope="col">'.__('Date').'</th>'. 
     169               '<th scope="col">'.__('Author').'</th>'. 
     170               '<th scope="col">'.__('Status').'</th>'. 
    171171               '</tr>%s</table>'; 
    172172                
     
    231231           
    232232          $res .= 
    233           '<td class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'" '. 
     233          '<td scope="row" class="maximal"><a href="'.$this->core->getPostAdminURL($this->rs->post_type,$this->rs->post_id).'" '. 
    234234          'title="'.html::escapeHTML($this->rs->getURL()).'">'. 
    235235          html::escapeHTML($this->rs->post_title).'</a></td>'. 
     
    260260               $html_block = 
    261261               '<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>'. 
     262               '<th colspan="3" scope="col" abbr="comm" class="first">'.__('Type and author').'</th>'. 
    265263               '<th scope="col">'.__('Date').'</th>'. 
    266264               '<th scope="col" class="txt-center">'.__('Status').'</th>'. 
     
    369367                
    370368               $html_block = 
    371                '<table class="clear"><tr>'. 
    372                '<th colspan="2">'.__('Username').'</th>'. 
    373                '<th>'.__('First Name').'</th>'. 
    374                '<th>'.__('Last Name').'</th>'. 
    375                '<th>'.__('Display name').'</th>'. 
    376                '<th class="nowrap">'.__('Entries').'</th>'. 
     369               '<table class="clear"><caption class="hidden">'.__('Users list').'</caption><tr>'. 
     370               '<th colspan="2" scope="col" class="first">'.__('Username').'</th>'. 
     371               '<th scope="col">'.__('First Name').'</th>'. 
     372               '<th scope="col">'.__('Last Name').'</th>'. 
     373               '<th scope="col">'.__('Display name').'</th>'. 
     374               '<th scope="col" class="nowrap">'.__('Entries').'</th>'. 
    377375               '</tr>%s</table>'; 
    378376                
     
    415413          '<td class="nowrap">'.form::hidden(array('nb_post[]'),(integer) $this->rs->nb_post). 
    416414          form::checkbox(array('users[]'),$this->rs->user_id).'</td>'. 
    417           '<td class="maximal"><a href="user.php?id='.$this->rs->user_id.'">'. 
     415          '<td class="maximal" scope="row"><a href="user.php?id='.$this->rs->user_id.'">'. 
    418416          $this->rs->user_id.'</a>&nbsp;'.$img_status.'</td>'. 
    419417          '<td class="nowrap">'.html::escapeHTML($this->rs->user_firstname).'</td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map