Changeset 1483:c2d860471ac8
- Timestamp:
- 08/20/13 08:25:24 (12 years ago)
- Branch:
- default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
locales/fr/plugins.po
r1480 r1483 1937 1937 msgid "Blog settings" 1938 1938 msgstr "Paramètres du blog" 1939 1940 msgid "Move widgets from this list to one of the sidebars." 1941 msgstr "Déplacez des widgets de cette liste vers l'un des volets." -
plugins/widgets/index.php
r1454 r1483 197 197 echo 198 198 '<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.'). 200 201 '<div id="widgets">'; 201 202 … … 205 206 '<div>'.form::hidden(array('w[void][0][id]'),html::escapeHTML($w->id())). 206 207 '<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>'. 208 209 '<p class="js-remove"><label class="classic">'.__('Append to:').'</label> '. 209 210 form::combo(array('addw['.$w->id().']'),$append_combo).'</p>'. … … 215 216 echo 216 217 '</div>'. 217 '</fieldset>'.218 218 '<p><input type="submit" class="js-remove" name="append" value="'.__('Add widgets to sidebars').'" />'. 219 219 $core->formNonce().'</p>'. … … 223 223 # Nav sidebar 224 224 echo 225 '<div id="sidebarNav" class="widgets ">'.225 '<div id="sidebarNav" class="widgets fieldset">'. 226 226 sidebarWidgets('dndnav',__('Navigation sidebar'),$widgets_nav,'nav',$__default_widgets['nav'],$j). 227 227 '</div>'; … … 229 229 # Extra sidebar 230 230 echo 231 '<div id="sidebarExtra" class="widgets ">'.231 '<div id="sidebarExtra" class="widgets fieldset">'. 232 232 sidebarWidgets('dndextra',__('Extra sidebar'),$widgets_extra,'extra',$__default_widgets['extra'],$j). 233 233 '</div>'; … … 235 235 # Custom sidebar 236 236 echo 237 '<div id="sidebarCustom" class="widgets ">'.237 '<div id="sidebarCustom" class="widgets fieldset">'. 238 238 sidebarWidgets('dndcustom',__('Custom sidebar'),$widgets_custom,'custom',$__default_widgets['custom'],$j). 239 239 '</div>'; … … 316 316 function sidebarWidgets($id,$title,$widgets,$pr,$default_widgets,&$j) 317 317 { 318 $res = '< fieldset><legend>'.$title.'</legend><div id="'.$id.'">';318 $res = '<h3>'.$title.'</h3><div id="'.$id.'">'; 319 319 320 320 if (!($widgets instanceof dcWidgets)) … … 335 335 '<div>'.form::hidden(array($iname.'[id]'),html::escapeHTML($w->id())). 336 336 '<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>'. 338 338 '<p class="removeWidget js-remove"><label class="classic">'. 339 339 form::checkbox(array($iname.'[_rem]'),'1',0).' '.__('Remove widget'). … … 346 346 } 347 347 348 $res .= '</div> </fieldset>';348 $res .= '</div>'; 349 349 350 350 return $res; -
plugins/widgets/style.css
r1480 r1483 1 1 #listWidgets { 2 2 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; 4 8 } 5 #listWidgets fieldset { 6 background: #eee; 9 #widgets .widget-name { 10 background: #fff; 11 min-height: 3em; 7 12 } 8 #listWidgets #widgets p.widget-name{9 background: #fff;13 #listWidgets h3 { 14 color: #333; 10 15 } 11 16 12 17 #sidebarsWidgets { 13 18 float: left; 14 width: 65%; 15 margin-left: 1%; 19 width: 45%; 20 margin-left: 3%; 21 padding: 0 1%; 16 22 } 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 32 23 #sidebarsControl { 33 24 clear: left; 34 25 } 26 .widgets.fieldset { 27 margin-bottom: 2em; 28 } 35 29 36 #widgets, #dndnav, #dndextra {30 #widgets, #dndnav, #dndextra, #dndcustom { 37 31 padding: 1em 0; 38 32 } 39 33 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; 47 36 color: #000; 48 37 padding: 4px 6px; … … 53 42 font-weight: bold; 54 43 } 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 { 56 50 cursor: pointer; 57 51 margin-bottom: -1px; … … 63 57 border-color: #666; 64 58 padding: 4px 6px; 65 background: #f ff;59 background: #f5f5f5; 66 60 } 67 61
Note: See TracChangeset
for help on using the changeset viewer.