Changeset 1483:c2d860471ac8 for plugins/widgets/index.php
- Timestamp:
- 08/20/13 08:25:24 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.