Dotclear

Changeset 2787:b73e772c9525


Ignore:
Timestamp:
11/15/14 15:34:24 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

ARIA role="alert" in da place \o/

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r2784 r2787  
    330330<?php 
    331331if ($err) { 
    332      echo '<div class="error">'.$err.'</div>'; 
     332     echo '<div class="error" role="alert">'.$err.'</div>'; 
    333333} 
    334334if ($msg) { 
    335      echo '<p class="success">'.$msg.'</p>'; 
     335     echo '<p class="success" role="alert">'.$msg.'</p>'; 
    336336} 
    337337 
  • admin/install/index.php

    r2760 r2787  
    295295 
    296296if (!is_writable(DC_TPL_CACHE)) { 
    297      echo '<div class="error"><p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p></div>'; 
     297     echo '<div class="error" role="alert"><p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p></div>'; 
    298298} 
    299299 
    300300if ($can_install && !empty($err)) { 
    301      echo '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; 
     301     echo '<div class="error" role="alert"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; 
    302302} 
    303303 
    304304if (!empty($_GET['wiz'])) { 
    305      echo '<p class="success">'.__('Configuration file has been successfully created.').'</p>'; 
     305     echo '<p class="success" role="alert">'.__('Configuration file has been successfully created.').'</p>'; 
    306306} 
    307307 
     
    369369     $plugins_install_result. 
    370370 
    371      '<p class="success">'.__('Dotclear has been successfully installed. Here is some useful information you should keep.').'</p>'. 
     371     '<p class="success" role="alert">'.__('Dotclear has been successfully installed. Here is some useful information you should keep.').'</p>'. 
    372372 
    373373     '<h3>'.__('Your account').'</h3>'. 
     
    393393{ 
    394394     echo '<h2>'.__('Installation can not be completed').'</h2>'. 
    395      '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'. 
     395     '<div class="error" role="alert"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'. 
    396396     '<p>'.__('For the said reasons, Dotclear can not be installed. '. 
    397397          'Please refer to <a href="http://dotclear.org/documentation/2.0/admin/install">'. 
  • admin/install/wizard.php

    r2760 r2787  
    158158 
    159159if (!empty($err)) { 
    160      echo '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; 
     160     echo '<div class="error" role="alert"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; 
    161161} else { 
    162162     echo '<h2>'.__('Welcome').'</h2>'. 
  • inc/admin/lib.dc.page.php

    r2784 r2787  
    164164          { 
    165165               echo 
    166                '<div class="warning"><h3>'.__('Safe mode').'</h3>'. 
     166               '<div class="warning" role="alert"><h3>'.__('Safe mode').'</h3>'. 
    167167               '<p>'.__('You are in safe mode. All plugins have been temporarily disabled. Remind to log out then log in again normally to get back all functionalities').'</p>'. 
    168168               '</div>'; 
     
    242242               $ts = dt::str(__('[%H:%M:%S]'),$n['ts'],$core->auth->getInfo('user_tz')).' '; 
    243243          } 
    244           $res = '<'.$tag.' class="'.$n['class'].'">'.$ts.$n['text'].'</'.$tag.'>'; 
     244          $res = '<'.$tag.' class="'.$n['class'].'" role="alert">'.$ts.$n['text'].'</'.$tag.'>'; 
    245245          return $res; 
    246246     } 
     
    350350          if ($core->error->flag()) { 
    351351               echo 
    352                '<div class="error"><strong>'.__('Errors:').'</strong>'. 
     352               '<div class="error" role="alert"><strong>'.__('Errors:').'</strong>'. 
    353353               $core->error->toHTML(). 
    354354               '</div>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map