Dotclear

Changeset 1786:577ff24d19ae


Ignore:
Timestamp:
09/10/13 20:05:24 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

User Preferences, on approche de la fin.
Une typo au passage.
Et un petit cadeau pour mirovinben et jcDenis.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/preferences.php

    r1773 r1786  
    415415 
    416416echo 
    417 '<h3 class="hidden-if-js">'.__('My profile').'</h3>'. 
     417'<h3>'.__('My profile').'</h3>'. 
    418418'<form action="preferences.php" method="post" id="user-form">'. 
    419419 
     
    443443{ 
    444444     echo 
    445      '<h4 class="vertical-separator">'.__('Change my password').'</h4>'. 
     445     '<h4 class="vertical-separator pretty-title">'.__('Change my password').'</h4>'. 
    446446      
    447447     '<div class="pw-table">'. 
     
    477477echo 
    478478'<form action="preferences.php" method="post" id="opts-forms">'. 
    479 '<h3 class="hidden-if-js">'.__('My options').'</h3>'; 
    480  
    481 echo 
    482 '<div class="two-cols">'. 
    483  
    484 '<div class="col">'. 
     479'<h3>'.__('My options').'</h3>'; 
     480 
     481echo 
     482'<div class="fieldset">'. 
    485483'<h4>'.__('Interface').'</h4>'. 
    486484 
    487485'<p><label for="user_ui_enhanceduploader" class="classic">'. 
    488486form::checkbox('user_ui_enhanceduploader',1,$user_ui_enhanceduploader).' '. 
    489 __('Activate enhanced uploader in media manager').'</label></p>'; 
     487__('Activate enhanced uploader in media manager').'</label></p>'. 
     488 
     489'<p><label for="user_acc_nodragdrop" class="classic">'. 
     490form::checkbox('user_acc_nodragdrop',1,$user_acc_nodragdrop).' '. 
     491__('Disable javascript powered drag and drop for ordering items').'</label></p>'. 
     492'<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'; 
    490493 
    491494if ($core->auth->isSuperAdmin()) { 
     
    493496     '<p><label for="user_ui_hide_std_favicon" class="classic">'. 
    494497     form::checkbox('user_ui_hide_std_favicon',1,$user_ui_hide_std_favicon).' '. 
    495      __('Do not use standard favicon').'</label></p>'. 
    496      '<p class="clear form-note warn">'.__('This will be applied for all users').'.'. 
     498     __('Do not use standard favicon').'</label> '. 
     499     '<span class="clear form-note warn">'.__('This will be applied for all users').'.</span>'. 
    497500     '</p>';//Opera sucks; 
    498501} 
    499502 
    500503echo 
    501 '<h5>'.__('Accessibility').'</h5>'. 
    502  
    503 '<p><label for="user_acc_nodragdrop" class="classic">'. 
    504 form::checkbox('user_acc_nodragdrop',1,$user_acc_nodragdrop).' '. 
    505 __('Disable javascript powered drag and drop for ordering items').'</label></p>'. 
    506  
    507 '<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'; 
    508  
    509 echo 
    510 '<h4 class="border-top">'.__('Edition').'</h4>'. 
    511  
    512 '<p><label for="user_post_format">'.__('Preferred format:').'</label>'. 
     504'</div>'; 
     505 
     506echo 
     507'<div class="fieldset">'. 
     508'<h4>'.__('Edition').'</h4>'. 
     509 
     510'<p class="field"><label for="user_post_format">'.__('Preferred format:').'</label>'. 
    513511form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 
    514512 
    515 '<p><label for="user_post_status">'.__('Default entry status:').'</label>'. 
     513'<p class="field"><label for="user_post_status">'.__('Default entry status:').'</label>'. 
    516514form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 
    517515 
    518 '<p><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
     516'<p class="field"><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
    519517form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 
    520518 
    521519'<p><label for="user_wysiwyg" class="classic">'. 
    522520form::checkbox('user_wysiwyg',1,$user_options['enable_wysiwyg']).' '. 
    523 __('Enable WYSIWYG mode').'</label></p>'; 
    524  
    525 echo 
    526 '<h4 class="border-top">'.__('Other options').'</h4>'; 
     521__('Enable WYSIWYG mode').'</label></p>'. 
     522 
     523'</div>'; 
     524 
     525echo 
     526'<h4 class="pretty-title">'.__('Other options').'</h4>'; 
    527527 
    528528# --BEHAVIOR-- adminPreferencesForm 
     
    530530 
    531531echo 
    532 '</div>'; 
    533  
    534 echo 
    535 '</div>'; 
    536  
    537 echo 
    538 '<p class="clear">'. 
     532'<p class="clear vertical-separator">'. 
    539533$core->formNonce(). 
    540534'<input type="submit" accesskey="s" value="'.__('Save my options').'" /></p>'. 
     
    546540echo '<div class="multi-part" id="user-favorites" title="'.__('My dashboard').'">'; 
    547541$ws = $core->auth->user_prefs->addWorkspace('favorites'); 
    548 echo '<h3 class="hidden-if-js">'.__('Mon tableau de bord').'</h3>'; 
     542echo '<h3>'.__('Mon tableau de bord').'</h3>'; 
    549543 
    550544echo '<form action="preferences.php" method="post" id="favs-form" class="two-boxes">'; 
     
    585579 
    586580     ($core->auth->isSuperAdmin() ?  
    587           '<hr />'. 
    588581          '<div class="info">'. 
    589582          '<p>'.__('If you are a super administrator, you may define this set of favorites to be used by default on all blogs of this installation.').'</p>'. 
     
    613606echo '<div class="fieldset" id="available-favs">'; 
    614607# Available favorites 
    615 echo '<h5>'.__('Available favorites').'</h5>'; 
     608echo '<h5 class="pretty-title">'.__('Other available favorites').'</h5>'; 
    616609$count = 0; 
    617610$array = $_fav; 
     
    634627                    form::checkbox(array('append[]','fak-'.$fav[0]),$k). 
    635628                    __($fav[1]).'</label>'. 
    636                     (in_array($fav[0], $default_fav) ? ' <span class="default-fav">'.__('(default favorite)').'</span>' : ''). 
     629                    (in_array($fav[0], $default_fav) ? ' <span class="default-fav"><img src="images/selected.png" alt="'.__('(default favorite)').'" /></span>' : ''). 
    637630                    '</li>'; 
    638631          } 
     
    652645 
    653646'<div class="fieldset">'. 
    654 '<h4 class="smart-title">'.__('Menu').'</h4>'. 
     647'<h4>'.__('Menu').'</h4>'. 
    655648'<p><label for="user_ui_nofavmenu" class="classic">'. 
    656649form::checkbox('user_ui_nofavmenu',1,!$user_ui_nofavmenu).' '. 
     
    660653     echo  
    661654          '<div class="fieldset">'. 
    662           '<h4 class="smart-title">'.__('Dashboard icons').'</h4>'. 
     655          '<h4>'.__('Dashboard icons').'</h4>'. 
    663656          '<p><label for="user_ui_iconset" class="classic">'.__('Iconset:').'</label> '. 
    664657          form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'. 
     
    670663echo 
    671664'<div class="fieldset">'. 
    672 '<h4 class="smart-title">'.__('Dashboard modules').'</h4>'. 
     665'<h4>'.__('Dashboard modules').'</h4>'. 
    673666 
    674667'<p><label for="user_dm_doclinks" class="classic">'. 
  • admin/style/default.css

    r1768 r1786  
    276276     color: #676e78; 
    277277     } 
    278      .smart-title, .box h3, .fieldset h3, .fieldset h4 { /* pour les h3 ou les h4 titres de boîtes */ 
     278     .fieldset h3, .fieldset h4, .pretty-title { 
     279          color: #D33800; 
     280          font-size: 12px; 
     281          font-size: 1.2rem; 
     282          font-weight: bold; 
     283          } 
     284     .smart-title { /* vairiante */ 
    279285          font-size: 1em; 
    280286          text-transform: uppercase; 
     
    575581          } 
    576582/* suppression, reset, "neutres" */ 
    577 input[type=reset], input[type=delete], input[type=submit].delete, input[type=button], 
     583input[type=reset], input[type=delete], input[type=submit].delete, input[type=submit].reset, input[type=button], 
    578584input.delete, input.reset, input.button, 
    579585a.delete, a.reset, a.button { 
     
    676682          background: #D9EDF7 url(msg-info.png) no-repeat .3em .3em; 
    677683          border: 1px solid #BCE8F1; 
     684          } 
     685     span.warn, span.warning, span.info { 
     686          padding-top: 1px; 
     687          padding-bottom: 1px; 
     688          background-position: .3em .2em; 
    678689          } 
    679690.error, .message, .static-msg, .success, .warning-msg { 
     
    16631674/* ---------------------------------------------------------- preferences.php */ 
    16641675.fav-list { 
    1665      border-top: 1px solid #eee; 
    16661676     list-style-type: none; 
    16671677     margin-left: 0; 
    16681678     padding-left: 0; 
    16691679     } 
     1680     #my-favs .fav-list { 
     1681          border-top: 1px solid #eee; 
     1682          } 
    16701683.fav-list li { 
    1671      line-height: 2; 
    16721684     margin-left: 0; 
    16731685     padding-left: 0; 
    1674      border-bottom: 1px solid #eee; 
    16751686     padding-top: 3px; 
    16761687     padding-bottom: 3px; 
    16771688     position: relative; 
    16781689     } 
    1679 .fav-list img { 
    1680      vertical-align: middle; 
    1681      margin-right: .2em; 
    1682      } 
    1683 .fav-list li span.zoom { 
    1684      display: none; 
    1685      } 
    1686 .fav-list li:hover span.zoom { 
    1687      display: block; 
    1688      position: absolute; 
    1689      bottom: 0; 
    1690      left: 10em; 
    1691      background-color: #f7f7f7; 
    1692      border: 1px solid #ddd; 
    1693      padding: .2em; 
    1694      border-radius: .5em; 
    1695      } 
     1690     #my-favs .fav-list li { 
     1691          line-height: 2; 
     1692          border-bottom: 1px solid #eee; 
     1693          padding-top: 3px; 
     1694          padding-bottom: 3px; 
     1695          position: relative; 
     1696          } 
     1697     .fav-list img { 
     1698          vertical-align: middle; 
     1699          margin-right: .2em; 
     1700          } 
     1701     .fav-list li span.zoom { 
     1702          display: none; 
     1703          } 
     1704     .fav-list li:hover span.zoom { 
     1705          display: block; 
     1706          position: absolute; 
     1707          bottom: 0; 
     1708          left: 10em; 
     1709          background-color: #f7f7f7; 
     1710          border: 1px solid #ddd; 
     1711          padding: .2em; 
     1712          border-radius: .5em; 
     1713          } 
    16961714#my-favs { 
    16971715     border-color: #A8DC26; 
    16981716     } 
    1699 #my-favs input.position { 
    1700      margin: 0 0 .4em .2em; 
    1701      } 
     1717     #my-favs input.position { 
     1718          margin: 0 0 .4em .2em; 
     1719          } 
    17021720#available-favs input, #available-favs label, #available-favs label span { 
    17031721     white-space: normal; 
     
    19811999     display: block; 
    19822000     } 
     2001 
     2002 
     2003/*  
     2004                    tests dashboard  
     2005 
     2006#content {width: auto;float:none !important; margin: 0;} 
     2007#main {width: auto; display:inline-block; vertical-align: top; margin: 0;float: none !important} 
     2008#main-menu {clear:both; width: auto} 
     2009#main-menu {margin-top: 8em} 
     2010#favorites-menu {display:none;} 
     2011#plugins-menu, #blog-menu, #system-menu, #dashboard-items {display: inline-block;vertical-align: top; min-width: 17em; margin: 0; clear: none;} 
     2012 
     2013*/ 
     2014 
     2015 
    19832016/* ------------------------------------------------------------------------------------ 
    19842017                                                                           UN POIL DE MEDIA QUERIES 
     
    20532086     #info-box1 p.nomobile, label.nomobile { display: none; } 
    20542087     } 
     2088} 
     2089 
  • locales/fr/main.po

    r1763 r1786  
    32693269 
    32703270msgid "If checked, numeric fields will allow to type the elements' ordering number." 
    3271 msgstr "Si cette option est cochée, des champs numérique permettront l'ordonnancement des éléments." 
     3271msgstr "Si cette option est cochée, des champs numériques permettront d'indiquer la position des éléments." 
    32723272 
    32733273msgid "Save my options" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map