Dotclear

Changeset 3398:88f3d2561542


Ignore:
Timestamp:
11/09/16 11:35:30 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add a user preference to hide additional information (.more-info class) and normal notes (.form-note class) (.info, .warn and .warning remain displayed)

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • admin/blog_theme.php

    r3018 r3398  
    148148     '<div class="multi-part" id="themes" title="'.__('Installed themes').'">'. 
    149149     '<h3>'.__('Installed themes').'</h3>'. 
    150      '<p>'.__('You can configure and manage installed themes from this list.').'</p>'; 
     150     '<p class="more-info">'.__('You can configure and manage installed themes from this list.').'</p>'; 
    151151 
    152152     $list 
     
    170170     '<div class="multi-part" id="deactivate" title="'.__('Deactivated themes').'">'. 
    171171     '<h3>'.__('Deactivated themes').'</h3>'. 
    172      '<p>'.__('Deactivated themes are installed but not usable. You can activate them from here.').'</p>'; 
     172     '<p class="more-info">'.__('Deactivated themes are installed but not usable. You can activate them from here.').'</p>'; 
    173173 
    174174     $list 
     
    223223     '<div class="multi-part" id="addtheme" title="'.__('Install or upgrade manually').'">'. 
    224224     '<h3>'.__('Add themes from a package').'</h3>'. 
    225      '<p>'.__('You can install themes by uploading or downloading zip files.').'</p>'; 
     225     '<p class="more-info">'.__('You can install themes by uploading or downloading zip files.').'</p>'; 
    226226 
    227227     $list->displayManualForm(); 
  • admin/js/common.js

    r3332 r3398  
    564564          return true; 
    565565     }); 
     566 
     567     if (dotclear.hideMoreInfo) { 
     568          $('.more-info,.form-note:not(.warn,.warning,.info)').addClass('no-more-info'); 
     569     } 
    566570 
    567571     // Main menu collapser 
  • admin/media.php

    r3369 r3398  
    798798     echo 
    799799     '<h4>'.__('Add files').'</h4>'. 
    800      '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
     800     '<p class="more-info">'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    801801     '<form id="fileupload" action="'.html::escapeURL($core->adminurl->get('admin.media',$page_url_params)).'" method="post" enctype="multipart/form-data" aria-disabled="false">'. 
    802802     '<p>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
  • admin/media_item.php

    r3369 r3398  
    726726          '<form class="clear fieldset" action="'.$core->adminurl->get("admin.media.item").'" method="post">'. 
    727727          '<h4>'.__('Update thumbnails').'</h4>'. 
    728           '<p>'.__('This will create or update thumbnails for this image.').'</p>'. 
     728          '<p class="more-info">'.__('This will create or update thumbnails for this image.').'</p>'. 
    729729          '<p><input type="submit" name="thumbs" value="'.__('Update thumbnails').'" />'. 
    730730          $core->adminurl->getHiddenFormFields('admin.media',$page_url_params). 
  • admin/plugins.php

    r3066 r3398  
    160160     echo 
    161161     '<h3>'.($core->auth->isSuperAdmin() ?__('Activated plugins') : __('Installed plugins')).'</h3>'. 
    162      '<p>'.__('You can configure and manage installed plugins from this list.').'</p>'; 
     162     '<p class="more-info">'.__('You can configure and manage installed plugins from this list.').'</p>'; 
    163163 
    164164     $list 
     
    178178          echo 
    179179          '<h3>'.__('Deactivated plugins').'</h3>'. 
    180           '<p>'.__('Deactivated plugins are installed but not usable. You can activate them from here.').'</p>'; 
     180          '<p class="more-info">'.__('Deactivated plugins are installed but not usable. You can activate them from here.').'</p>'; 
    181181 
    182182          $list 
     
    204204          '<div class="multi-part" id="new" title="'.__('Add plugins').'">'. 
    205205          '<h3>'.__('Add plugins from repository').'</h3>'; 
    206 //        '<p>'.__('Search and install plugins directly from repository.').'</p>'; 
    207206 
    208207          $list 
     
    232231     '<div class="multi-part" id="addplugin" title="'.__('Install or upgrade manually').'">'. 
    233232     '<h3>'.__('Add plugins from a package').'</h3>'. 
    234      '<p>'.__('You can install plugins by uploading or downloading zip files.').'</p>'; 
     233     '<p class="more-info">'.__('You can install plugins by uploading or downloading zip files.').'</p>'; 
    235234 
    236235     $list->displayManualForm(); 
  • admin/preferences.php

    r3340 r3398  
    4242$core->auth->user_prefs->addWorkspace('interface'); 
    4343$user_ui_enhanceduploader = $core->auth->user_prefs->interface->enhanceduploader; 
     44$user_ui_hidemoreinfo = $core->auth->user_prefs->interface->hidemoreinfo; 
    4445if ($core->auth->isSuperAdmin()) { 
    4546     $user_ui_hide_std_favicon = $core->auth->user_prefs->interface->hide_std_favicon; 
     
    229230          $core->auth->user_prefs->accessibility->put('nodragdrop',!empty($_POST['user_acc_nodragdrop']),'boolean'); 
    230231          $core->auth->user_prefs->interface->put('enhanceduploader',!empty($_POST['user_ui_enhanceduploader']),'boolean'); 
     232          $core->auth->user_prefs->interface->put('hidemoreinfo',!empty($_POST['user_ui_hidemoreinfo']),'boolean'); 
    231233          if ($core->auth->isSuperAdmin()) { 
    232234               # Applied to all users 
     
    499501form::checkbox('user_acc_nodragdrop',1,$user_acc_nodragdrop).' '. 
    500502__('Disable javascript powered drag and drop for ordering items').'</label></p>'. 
    501 '<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'; 
     503'<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'. 
     504 
     505'<p><label for="user_ui_hidemoreinfo" class="classic">'. 
     506form::checkbox('user_ui_hidemoreinfo',1,$user_ui_hidemoreinfo).' '. 
     507__('Hide all secondary information and notes').'</label></p>'; 
    502508 
    503509echo 
  • admin/style/default.css

    r3392 r3398  
    11641164span.form-note { 
    11651165  text-transform: none; } 
     1166 
     1167.no-more-info { 
     1168  display: none; } 
    11661169 
    11671170/* Removes inner padding and border in FF3+  - Knacss */ 
     
    20912094/* raccourcis */ 
    20922095#icons { 
    2093   overflow: hidden; 
    2094   text-align: center; } 
     2096  display: flex; 
     2097  flex-wrap: wrap; 
     2098  justify-content: center; } 
    20952099 
    20962100#icons p { 
    20972101  width: 13em; 
    20982102  text-align: center; 
    2099   margin: 1em 0 2em; 
    2100   display: inline-block; 
    2101   vertical-align: top; } 
     2103  margin: 1em 0 2em; } 
    21022104 
    21032105#icons a, 
     
    21742176#dashboard-boxes { 
    21752177  margin: 1em auto 1em; 
    2176   padding-top: 2em; } 
    2177  
    2178 .db-items, 
    2179 .db-contents { 
    2180   display: inline-block; 
    2181   text-align: center; } 
     2178  padding-top: 2em; 
     2179  display: flex; 
     2180  flex-wrap: wrap; 
     2181  justify-content: center; } 
    21822182 
    21832183.no-js .outgoing img { 
  • admin/style/scss/init/_config.scss

    r3389 r3398  
    22 
    33// ----------------- Compass config --------------- // 
    4 // Do not support IE less than IE9 
     4// Do not support IE less than IE10 
    55$browser-minimum-versions: ( 
    66  "ie": "10" 
  • admin/style/scss/partials/_forms.scss

    r3355 r3398  
    208208    text-transform: none; 
    209209} 
     210 
     211// .more-info Additional information on fieldset, field, … (may be hide from user-prefs) 
     212.more-info { 
     213} 
     214.no-more-info { 
     215    display: none; 
     216} 
  • admin/style/scss/partials/_index.scss

    r3355 r3398  
    11#dashboard-main { 
    2     text-align: center; 
     2     text-align: center; 
    33} 
    44 
     
    77 
    88#icons { 
    9     overflow: hidden; 
    10     text-align: center; 
     9//    overflow: hidden; 
     10//    text-align: center; 
     11     display: flex; 
     12     flex-wrap: wrap; 
     13     justify-content: center; 
    1114} 
    1215 
    1316#icons p { 
    14     width: 13em; 
    15     text-align: center; 
    16     margin: 1em 0 2em; 
    17     display: inline-block; 
    18     vertical-align: top; 
     17     width: 13em; 
     18     text-align: center; 
     19     margin: 1em 0 2em; 
     20//    display: inline-block; 
     21//    vertical-align: top; 
    1922} 
    2023 
     
    2427#icons a:hover, 
    2528#icons a:focus { 
    26     border-bottom-width: 0; 
    27     text-decoration: none; 
     29     border-bottom-width: 0; 
     30     text-decoration: none; 
    2831} 
    2932 
    3033#icons a span { 
    31     border-bottom: 1px dotted #999; 
    32     color: #333; 
     34     border-bottom: 1px dotted #999; 
     35     color: #333; 
    3336} 
    3437 
    3538#icons a img { 
    36     padding: 1.5em; 
    37     background-color: #f9f9f9; 
    38     border-radius: 8px; 
    39     border: 1px solid #dadada; 
    40     display: inline-block; 
     39     padding: 1.5em; 
     40     background-color: #f9f9f9; 
     41     border-radius: 8px; 
     42     border: 1px solid #dadada; 
     43     display: inline-block; 
    4144} 
    4245 
    4346#icons a:focus img, 
    4447#icons a:hover img { 
    45     background: #bee74b; 
    46     outline: 0; 
    47     border-color: #dadada; 
     48     background: #bee74b; 
     49     outline: 0; 
     50     border-color: #dadada; 
    4851} 
    4952 
    5053#icons a:focus { 
    51     outline: 0; 
    52     border-color: #fff; 
     54     outline: 0; 
     55     border-color: #fff; 
    5356} 
    5457 
    5558#icons a:hover span, 
    5659#icons a:focus span { 
    57     border-bottom-style: solid; 
     60     border-bottom-style: solid; 
    5861} 
    5962 
    6063#icons a:focus span { 
    61     border: 2px solid #bee74b; 
     64     border: 2px solid #bee74b; 
    6265} 
    6366 
     
    6669 
    6770#quick { 
    68     padding: 1em; 
    69     max-width: 976px; 
    70     margin: 0 auto; 
    71     background: #f5f5f5; 
    72     box-shadow: 0 1px 2px rgba(0, 0, 0, .2); 
    73     text-align: left; 
     71     padding: 1em; 
     72     max-width: 976px; 
     73     margin: 0 auto; 
     74     background: #f5f5f5; 
     75     box-shadow: 0 1px 2px rgba(0, 0, 0, .2); 
     76     text-align: left; 
    7477} 
    7578 
    7679#quick h3 { 
    77     margin-bottom: 0.2em; 
    78     font-size: 1.2em; 
     80     margin-bottom: 0.2em; 
     81     font-size: 1.2em; 
    7982} 
    8083 
    8184#quick p.qinfo { 
    82     margin: -.7em -1em 1em; 
    83     background: #D9EDF7 url(info.png) no-repeat .2em .2em; 
    84     border: 1px solid #BCE8F1; 
    85     padding: .2em 1em .1em 24px; 
    86     color: #000; 
     85     margin: -.7em -1em 1em; 
     86     background: #D9EDF7 url(info.png) no-repeat .2em .2em; 
     87     border: 1px solid #BCE8F1; 
     88     padding: .2em 1em .1em 24px; 
     89     color: #000; 
    8790} 
    8891 
     
    9093.q-cat, 
    9194.q-cat label { 
    92     display: inline-block; 
    93     vertical-align: top; 
    94     margin-right: 1em; 
    95     margin-top: 0; 
     95     display: inline-block; 
     96     vertical-align: top; 
     97     margin-right: 1em; 
     98     margin-top: 0; 
    9699} 
    97100 
    98101.q-cat label { 
    99     margin-right: .3em; 
     102     margin-right: .3em; 
    100103} 
    101104 
    102105#quick #new_cat { 
    103     margin-bottom: 2em; 
     106     margin-bottom: 2em; 
    104107} 
    105108 
     
    108111 
    109112#dashboard-boxes { 
    110     margin: 1em auto 1em; 
    111     padding-top: 2em; 
     113     margin: 1em auto 1em; 
     114     padding-top: 2em; 
     115     display: flex; 
     116     flex-wrap: wrap; 
     117     justify-content: center; 
    112118} 
    113119 
    114120.db-items, 
    115121.db-contents { 
    116     display: inline-block; 
    117     text-align: center; 
     122//   display: inline-block; 
     123//   text-align: center; 
    118124} 
    119125 
    120126.no-js .outgoing img { 
    121     display: none; 
     127     display: none; 
    122128} 
    123129 
    124130#dashboard-boxes .box { 
    125     padding: 10px; 
    126     border: 1px solid #ccc; 
    127     border-radius: 3px; 
    128     min-height: 200px; 
    129     margin: 10px; 
    130     text-align: left; 
     131     padding: 10px; 
     132     border: 1px solid #ccc; 
     133     border-radius: 3px; 
     134     min-height: 200px; 
     135     margin: 10px; 
     136     text-align: left; 
    131137} 
    132138 
    133139.dc-box { 
    134     background: transparent url(dc_logos/sq-logo-32.png) no-repeat top right; 
     140     background: transparent url(dc_logos/sq-logo-32.png) no-repeat top right; 
    135141} 
    136142 
    137143.db-items img, 
    138144.db-contents img { 
    139     vertical-align: middle; 
     145     vertical-align: middle; 
    140146} 
    141147 
    142148.db-items ul, 
    143149.db-contents ul { 
    144     display: block; 
    145     padding-left: 1.5em; 
    146     list-style: square; 
     150     display: block; 
     151     padding-left: 1.5em; 
     152     list-style: square; 
    147153} 
    148154 
    149155.db-items li, 
    150156.db-contents li { 
    151     margin: 0.25em 0 0 0; 
     157     margin: 0.25em 0 0 0; 
    152158} 
    153159 
    154160#news dt { 
    155     font-weight: bold; 
    156     margin: 0 0 0.4em 0; 
     161     font-weight: bold; 
     162     margin: 0 0 0.4em 0; 
    157163} 
    158164 
    159165#news dd { 
    160     margin: 0 0 1em 0; 
     166     margin: 0 0 1em 0; 
    161167} 
    162168 
    163169#news dd p { 
    164     margin: 0.2em 0 0 0; 
     170     margin: 0.2em 0 0 0; 
    165171} 
    166172 
     
    169175 
    170176#upg-notify ul { 
    171     padding-left: 1.5em; 
     177     padding-left: 1.5em; 
    172178} 
    173179 
    174180#upg-notify li { 
    175     color: #fff; 
     181     color: #fff; 
    176182} 
  • admin/user.php

    r3391 r3398  
    210210form::field('user_id',20,255,html::escapeHTML($user_id)). 
    211211'</p>'. 
    212 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'; 
     212'<p class="form-note info">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'; 
    213213 
    214214if ($user_id == $core->auth->userID()) { 
     
    231231    '</div>'. 
    232232'</div>'. 
    233 '<p class="form-note">'.__('Password must contain at least 6 characters.').'</p>'. 
     233'<p class="form-note info">'.__('Password must contain at least 6 characters.').'</p>'. 
    234234 
    235235'<p><label for="new_pwd_c" '.($user_id != '' ? '' : 'class="required"').'>'. 
  • inc/admin/lib.dc.page.php

    r3397 r3398  
    176176          self::jsToggles(). 
    177177          $head; 
     178 
     179          if ($core->auth->user_prefs->interface->hidemoreinfo) { 
     180               echo 
     181               '<script type="text/javascript">'."\n". 
     182               "//<![CDATA[\n". 
     183               'dotclear.hideMoreInfo = true;'. 
     184               "\n//]]>\n". 
     185               "</script>\n"; 
     186          } 
    178187 
    179188          # --BEHAVIOR-- adminPageHTMLHead 
     
    404413          self::jsToggles(). 
    405414          $head; 
     415 
     416          $core->auth->user_prefs->addWorkspace('interface'); 
     417          if ($core->auth->user_prefs->interface->hidemoreinfo) { 
     418               echo 
     419               '<script type="text/javascript">'."\n". 
     420               "//<![CDATA[\n". 
     421               'dotclear.hideMoreInfo = true;'. 
     422               "\n//]]>\n". 
     423               "</script>\n"; 
     424          } 
    406425 
    407426          # --BEHAVIOR-- adminPageHTMLHead 
  • locales/fr/main.po

    r3394 r3398  
    21922192msgstr "Interface" 
    21932193 
     2194msgid "Hide all secondary information and notes" 
     2195msgstr "Cacher les informations secondaires et les notes" 
     2196 
    21942197msgid "Activate enhanced uploader in media manager" 
    21952198msgstr "Activer l'interface avancée de la médiathèque" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map