Dotclear

Changeset 1979:a5c31f68dc24 for admin


Ignore:
Timestamp:
09/21/13 21:53:05 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Améliorations sur Paramètres du blog (et subséquemment sur Médiathèque et Antispam).
Travail à compléter par un développeur : voir  http://fr.dotclear.org/documentation/playground/ergo_a11y/parametres-du-blog

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_pref.php

    r1971 r1979  
    297297     echo 
    298298     '<div class="multi-part" id="params" title="'.__('Parameters').'">'. 
    299      '<h3>'.__('Parameters').'</h3>'. 
     299     '<h3 class="out-of-screen-if-js">'.__('Parameters').'</h3>'. 
    300300     '<form action="'.$action.'" method="post" id="blog-form">'; 
    301301      
     
    440440     form::field('comments_ttl',2,3,$blog_settings->system->comments_ttl)). 
    441441     '</label></p>'. 
    442      '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'.  
     442     '<p class="form-note">'.__('No limit: leave blank.').'</p>'.      
    443443     '<p><label for="wiki_comments" class="classic">'. 
    444444     form::checkbox('wiki_comments','1',$blog_settings->system->wiki_comments). 
     
    455455     '<p><label for="trackbacks_ttl" class="classic">'.sprintf(__('Leave trackbacks open for %s days').'.', 
    456456     form::field('trackbacks_ttl',2,3,$blog_settings->system->trackbacks_ttl)).'</label></p>'. 
    457      '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'.  
     457     '<p class="form-note">'.__('No limit: leave blank.').'</p>'.      
    458458     '<p><label for="comments_nofollow" class="classic">'. 
    459459     form::checkbox('comments_nofollow','1',$blog_settings->system->comments_nofollow). 
     
    505505      
    506506     echo 
    507      '<div class="fieldset"><h4>'.__('Media and images').'</h4>'. 
     507     '<div class="fieldset"><h4 id="medias-settings">'.__('Media and images').'</h4>'. 
     508          '<p class="form-note warning">'. 
     509     __('Please note that if you change current settings bellow, they will now apply to all new images in the media manager.'). 
     510     ' '.__('Be carefull if you share it with other blogs in your installation.').'</p>'. 
     511 
    508512     '<div class="two-cols">'. 
    509513     '<div class="col">'. 
     
    593597     echo 
    594598     '<div class="multi-part" id="users" title="'.__('Users').'">'. 
    595      '<h3>'.__('Users on this blog').'</h3>'; 
     599     '<h3 class="out-of-screen-if-js">'.__('Users on this blog').'</h3>'; 
    596600      
    597601     if (empty($blog_users)) 
     
    651655                    '<ul>'; 
    652656                    if ($v['super']) { 
    653                          echo '<li class="user_super">'.__('Super administrator').'</li>'; 
     657                         echo '<li class="user_super">'.__('Super administrator').'<br />'. 
     658                         '<span class="form-note">'.__('All rights on all blogs.').'</span></li>'; 
    654659                    } else { 
    655660                         foreach ($v['p'] as $p => $V) { 
    656                               echo '<li '.($p == 'admin' ? 'class="user_admin"' : '').'>'.__($perm_types[$p]).'</li>'; 
     661                              echo '<li '.($p == 'admin' ? 'class="user_admin"' : '').'>'.__($perm_types[$p]); 
     662 
     663                              if($p == 'admin') { 
     664                                   echo '<br /><span class="form-note">'.__('All rights on this blog.').'</span>'; 
     665                              } 
     666                              echo '</li>'; 
    657667                         } 
    658668                    } 
  • admin/media.php

    r1952 r1979  
    349349'</div>'; 
    350350 
    351 if ($core_media_writable) 
    352 { 
    353      echo  
    354      '<h3 class="hidden">'.sprintf(__('In %s:'),($d == '' ? '“'.__('Media manager').'”' : '“'.$d.'”')).'</h3>'. 
    355      '<div class="two-boxes odd fieldset">'; 
    356       
    357      if ($user_ui_enhanceduploader) { 
    358           echo 
    359           '<div class="enhanced_uploader">'; 
    360      } else { 
    361           echo 
    362           '<div>'; 
    363      } 
    364  
    365      echo 
    366      '<h4>'.__('Add files').'</h4>'. 
    367      '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    368      '<form id="fileupload" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data" aria-disabled="false">'. 
    369      '<p>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
    370      $core->formNonce().'</p>'. 
    371      '<div class="fileupload-ctrl"><p class="queue-message"></p><ul class="files"></ul></div>'; 
    372  
    373      echo 
    374      '<div class="fileupload-buttonbar clear">'; 
    375  
    376      echo 
    377      '<p><label for="upfile">'.'<span class="add-label one-file">'.__('Choose file').'</span>'.'</label>'. 
    378      '<button class="button choose_files">'.__('Choose files').'</button>'. 
    379      '<input type="file" id="upfile" name="upfile[]"'.($user_ui_enhanceduploader?' multiple="mutiple"':'').' data-url="'.html::escapeURL($page_url).'" /></p>'; 
    380  
    381      echo 
    382      '<p class="max-sizer form-note">&nbsp;'.__('Maximum file size allowed:').' '.files::size(DC_MAX_UPLOAD_SIZE).'</p>'; 
    383  
    384      echo 
    385      '<p class="one-file"><label for="upfiletitle">'.__('Title:').'</label>'.form::field(array('upfiletitle','upfiletitle'),35,255).'</p>'. 
    386      '<p class="one-file"><label for="upfilepriv" class="classic">'.__('Private').'</label> '. 
    387      form::checkbox(array('upfilepriv','upfilepriv'),1).'</p>'; 
    388  
    389  
    390  
    391      if (!$user_ui_enhanceduploader) { 
    392           echo 
    393           '<p class="one-file form-help info">'.__('To send several files at the same time, you can activate the enhanced uploader in'). 
    394           ' <a href="preferences.php?tab=user-options">'.__('My preferences').'</a></p>'; 
    395      } 
    396  
    397      echo 
    398      '<p class="clear"><button class="button clean">'.__('Refresh').'</button>'. 
    399      '<input class="button cancel one-file" type="reset" value="'.__('Clear all').'"/>'. 
    400      '<input class="button start" type="submit" value="'.__('Upload').'"/></p>'. 
    401      '</div>'; 
    402  
    403      echo 
    404      '<p style="clear:both;">'.form::hidden(array('d'),$d).'</p>'. 
    405      '</form>'. 
    406      '</div>'. 
    407      '</div>'; 
     351echo 
     352'<div class="clearfix"><p class="info">'.sprintf(__('Current settings for medias and images are defined in %s'), 
     353'<a href="blog_pref.php#medias-settings">'.__('Blog parameters').'</a>').'</p></div>'; 
     354 
     355if ($core_media_writable || $core_media_archivable) { 
     356     echo 
     357     '<div class="vertical-separator">'. 
     358     '<h3 class="out-of-screen-if-js">'.sprintf(__('In %s:'),($d == '' ? '“'.__('Media manager').'”' : '“'.$d.'”')).'</h3>';  
    408359} 
    409360 
     
    412363 
    413364if ($core_media_writable || $core_media_archivable) { 
    414  
    415      echo '<div class="two-boxes even fieldset">'; 
     365     echo  
     366     '<div class="two-boxes odd">'; 
    416367 
    417368     # Create directory 
     
    419370     { 
    420371          echo 
    421           '<form action="'.html::escapeURL($page_url).'" method="post">'. 
     372          '<form action="'.html::escapeURL($page_url).'" method="post" class="fieldset">'. 
    422373          '<div id="new-dir-f">'. 
    423           '<h4>'.__('Create new directory').'</h4>'. 
     374          '<h4 class="pretty-title">'.__('Create new directory').'</h4>'. 
    424375          $core->formNonce(). 
    425376          '<p><label for="newdir">'.__('Directory Name:').'</label>'. 
     
    435386     { 
    436387          echo 
    437           '<h4>'.__('Backup content').'</h4>'. 
    438           '<p>'.__('Compress this directory with its content as a zip file and download it.').'</p>'. 
     388          '<div class="fieldset">'. 
     389          '<h4 class="pretty-title">'.sprintf(__('Backup content of %s'),($d == '' ? '“'.__('Media manager').'”' : '“'.$d.'”')).'</h4>'. 
    439390          '<p><a class="button submit" href="'.html::escapeURL($page_url).'&amp;zipdl=1">'. 
    440           __('Download').'</a></p>'; 
    441      } 
    442  
    443      echo '</div>'; 
     391          __('Download zip file').'</a></p>'. 
     392          '</div>'; 
     393     } 
     394 
     395     echo  
     396     '</div>'; 
     397} 
     398 
     399if ($core_media_writable) 
     400{ 
     401     echo 
     402     '<div class="two-boxes fieldset">';      
     403     if ($user_ui_enhanceduploader) { 
     404          echo 
     405          '<div class="enhanced_uploader">'; 
     406     } else { 
     407          echo 
     408          '<div>'; 
     409     } 
     410 
     411     echo 
     412     '<h4>'.__('Add files').'</h4>'. 
     413     '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
     414     '<form id="fileupload" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data" aria-disabled="false">'. 
     415     '<p>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
     416     $core->formNonce().'</p>'. 
     417     '<div class="fileupload-ctrl"><p class="queue-message"></p><ul class="files"></ul></div>'; 
     418 
     419     echo 
     420     '<div class="fileupload-buttonbar clear">'; 
     421 
     422     echo 
     423     '<p><label for="upfile">'.'<span class="add-label one-file">'.__('Choose file').'</span>'.'</label>'. 
     424     '<button class="button choose_files">'.__('Choose files').'</button>'. 
     425     '<input type="file" id="upfile" name="upfile[]"'.($user_ui_enhanceduploader?' multiple="mutiple"':'').' data-url="'.html::escapeURL($page_url).'" /></p>'; 
     426 
     427     echo 
     428     '<p class="max-sizer form-note">&nbsp;'.__('Maximum file size allowed:').' '.files::size(DC_MAX_UPLOAD_SIZE).'</p>'; 
     429 
     430     echo 
     431     '<p class="one-file"><label for="upfiletitle">'.__('Title:').'</label>'.form::field(array('upfiletitle','upfiletitle'),35,255).'</p>'. 
     432     '<p class="one-file"><label for="upfilepriv" class="classic">'.__('Private').'</label> '. 
     433     form::checkbox(array('upfilepriv','upfilepriv'),1).'</p>'; 
     434 
     435     if (!$user_ui_enhanceduploader) { 
     436          echo 
     437          '<p class="one-file form-help info">'.__('To send several files at the same time, you can activate the enhanced uploader in'). 
     438          ' <a href="preferences.php?tab=user-options">'.__('My preferences').'</a></p>'; 
     439     } 
     440 
     441     echo 
     442     '<p class="clear"><button class="button clean">'.__('Refresh').'</button>'. 
     443     '<input class="button cancel one-file" type="reset" value="'.__('Clear all').'"/>'. 
     444     '<input class="button start" type="submit" value="'.__('Upload').'"/></p>'. 
     445     '</div>'; 
     446 
     447     echo 
     448     '<p style="clear:both;">'.form::hidden(array('d'),$d).'</p>'. 
     449     '</form>'. 
     450     '</div>'. 
     451     '</div>'; 
    444452} 
    445453 
     
    453461'</div>'. 
    454462'</form>'; 
     463 
     464if ($core_media_writable || $core_media_archivable) { 
     465     echo  
     466     '</div>'; 
     467} 
    455468 
    456469call_user_func($close_f); 
  • admin/style/default.css

    r1975 r1979  
    295295h2 { 
    296296     color: #676e78; 
    297      font-size: 18px; /* ie < 9 sucks */ 
    298      font-size: 1.8rem; 
     297     font-size: 1.5em; 
    299298     padding: 0 0 1.5em; 
    300299     font-weight: normal; 
     
    742741     } 
    743742div.warn, div.warning, div.info { 
     743     display: block; 
    744744     padding: 1em 1em .33em 1em; 
    745745     } 
     
    11261126     #content.with-help #help-button { 
    11271127          right: 282px; /* ie < 9 sucks */ 
    1128           right: 28.2rem; 
     1128          right: 28rem; 
    11291129          background-color: #f5f5f5; 
    11301130          position: fixed; 
    1131           top: 40px; 
     1131          top: 54px; 
     1132          z-index: 100; 
    11321133          border-top: 2px solid #FFD478; 
    11331134          border-left: 2px solid #FFD478; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map