Dotclear


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

More simple widgets page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map