Dotclear

Changeset 1483:c2d860471ac8


Ignore:
Timestamp:
08/20/13 08:25:24 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

More simple widgets page.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locales/fr/plugins.po

    r1480 r1483  
    19371937msgid "Blog settings" 
    19381938msgstr "Paramètres du blog" 
     1939 
     1940msgid "Move widgets from this list to one of the sidebars." 
     1941msgstr "Déplacez des widgets de cette liste vers l'un des volets." 
  • plugins/widgets/index.php

    r1454 r1483  
    197197echo 
    198198'<form id="listWidgets" action="'.$p_url.'" method="post"  class="widgets">'. 
    199 '<fieldset><legend>'.__('Available widgets').'</legend>'. 
     199'<h3>'.__('Available widgets').'</h3>'. 
     200__('Move widgets from this list to one of the sidebars.'). 
    200201'<div id="widgets">'; 
    201202 
     
    205206     '<div>'.form::hidden(array('w[void][0][id]'),html::escapeHTML($w->id())). 
    206207     '<p class="widget-name">'.form::field(array('w[void][0][order]'),2,3,0,'hideControl').' '. 
    207      $w->name().($w->desc() != '' ? ' <span class="form-note">('.__($w->desc()).')</span>' : '').'</p>'. 
     208     $w->name().($w->desc() != '' ? ' <span class="form-note">'.__($w->desc()).'</span>' : '').'</p>'. 
    208209     '<p class="js-remove"><label class="classic">'.__('Append to:').'</label> '. 
    209210     form::combo(array('addw['.$w->id().']'),$append_combo).'</p>'. 
     
    215216echo 
    216217'</div>'. 
    217 '</fieldset>'. 
    218218'<p><input type="submit" class="js-remove" name="append" value="'.__('Add widgets to sidebars').'" />'. 
    219219$core->formNonce().'</p>'. 
     
    223223# Nav sidebar 
    224224echo 
    225 '<div id="sidebarNav" class="widgets">'. 
     225'<div id="sidebarNav" class="widgets fieldset">'. 
    226226sidebarWidgets('dndnav',__('Navigation sidebar'),$widgets_nav,'nav',$__default_widgets['nav'],$j). 
    227227'</div>'; 
     
    229229# Extra sidebar 
    230230echo 
    231 '<div id="sidebarExtra" class="widgets">'. 
     231'<div id="sidebarExtra" class="widgets fieldset">'. 
    232232sidebarWidgets('dndextra',__('Extra sidebar'),$widgets_extra,'extra',$__default_widgets['extra'],$j). 
    233233'</div>'; 
     
    235235# Custom sidebar 
    236236echo 
    237 '<div id="sidebarCustom" class="widgets">'. 
     237'<div id="sidebarCustom" class="widgets fieldset">'. 
    238238sidebarWidgets('dndcustom',__('Custom sidebar'),$widgets_custom,'custom',$__default_widgets['custom'],$j). 
    239239'</div>'; 
     
    316316function sidebarWidgets($id,$title,$widgets,$pr,$default_widgets,&$j) 
    317317{ 
    318      $res = '<fieldset><legend>'.$title.'</legend><div id="'.$id.'">'; 
     318     $res = '<h3>'.$title.'</h3><div id="'.$id.'">'; 
    319319      
    320320     if (!($widgets instanceof dcWidgets)) 
     
    335335          '<div>'.form::hidden(array($iname.'[id]'),html::escapeHTML($w->id())). 
    336336          '<p class="widget-name">'.form::field(array($iname.'[order]'),2,3,(string) $i,'js-hide','',0,'title="'.__('order').'"').' '. 
    337           $w->name().($w->desc() != '' ? ' <span class="form-note">('.__($w->desc()).')</span>' : '').'</p>'. 
     337          $w->name().($w->desc() != '' ? ' <!-- <span class="form-note">'.__($w->desc()).'</span> -->' : '').'</p>'. 
    338338          '<p class="removeWidget js-remove"><label class="classic">'. 
    339339          form::checkbox(array($iname.'[_rem]'),'1',0).' '.__('Remove widget'). 
     
    346346     } 
    347347      
    348      $res .= '</div></fieldset>'; 
     348     $res .= '</div>'; 
    349349      
    350350     return $res; 
  • plugins/widgets/style.css

    r1480 r1483  
    11#listWidgets { 
    22     float: left; 
    3      width: 33%; 
     3     width: 45%; 
     4     background: #eee; 
     5     padding: 1.5em 1%;  
     6     border: 1px solid #ccc; 
     7     margin-left: 1.5em; 
    48} 
    5 #listWidgets fieldset { 
    6      background: #eee; 
     9#widgets .widget-name { 
     10     background: #fff; 
     11     min-height: 3em; 
    712} 
    8 #listWidgets #widgets p.widget-name { 
    9      background: #fff; 
     13#listWidgets h3 { 
     14     color: #333; 
    1015} 
    1116 
    1217#sidebarsWidgets { 
    1318     float: left; 
    14      width: 65%; 
    15      margin-left: 1%; 
     19     width: 45%; 
     20     margin-left: 3%; 
     21     padding: 0 1%; 
    1622} 
    17 #sidebarNav { 
    18      float: left; 
    19      width: 50%; 
    20      margin-left: 0%; 
    21 } 
    22 #sidebarExtra { 
    23      float: left; 
    24      width: 49%; 
    25      margin-left: 1%; 
    26 } 
    27 #sidebarCustom { 
    28      float: left; 
    29      width: 100%; 
    30 } 
    31  
    3223#sidebarsControl { 
    3324     clear: left; 
    3425} 
     26.widgets.fieldset { 
     27     margin-bottom: 2em; 
     28} 
    3529 
    36 #widgets, #dndnav, #dndextra { 
     30#widgets, #dndnav, #dndextra, #dndcustom { 
    3731     padding: 1em 0; 
    3832} 
    3933 
    40 .widgets fieldset { 
    41      border: 1px solid #999; 
    42      background: #E4E0EC; 
    43 } 
    44  
    45 .widgets p.widget-name { 
    46      background: #f5f5f5; 
     34.widget-name { 
     35     background: #eef; 
    4736     color: #000; 
    4837     padding: 4px 6px; 
     
    5342     font-weight: bold; 
    5443} 
    55 .widgets p.widget-name img { 
     44.widget-name span { 
     45     display: block; 
     46     font-style: normal; 
     47     font-size: 1.1rem; 
     48} 
     49.widget-name img { 
    5650     cursor: pointer; 
    5751     margin-bottom: -1px; 
     
    6357     border-color: #666; 
    6458     padding: 4px 6px; 
    65      background: #fff; 
     59     background: #f5f5f5; 
    6660} 
    6761 
Note: See TracChangeset for help on using the changeset viewer.

Sites map