Dotclear


Ignore:
Timestamp:
11/02/12 22:48:36 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add description to widget, fixes #990

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/index.php

    r904 r954  
    201201     '<div>'.form::hidden(array('w[void][0][id]'),html::escapeHTML($w->id())). 
    202202     '<p class="widget-name">'.form::field(array('w[void][0][order]'),2,3,0,'hideControl').' '. 
    203      $w->name().'</p>'. 
     203     $w->name().($w->desc() != '' ? ' <span class="form-note">('.__($w->desc()).')</span>' : '').'</p>'. 
    204204     '<p class="js-remove"><label class="classic">'.__('Append to:').' '. 
    205205     form::combo(array('addw['.$w->id().']'),$append_combo).'</label></p>'. 
     
    267267     $widget_elements->content .= 
    268268     '<dt><strong>'.html::escapeHTML($w->name()).'</strong> ('. 
    269      __('Widget ID:').' <strong>'.html::escapeHTML($w->id()).'</strong>)</dt>'. 
     269     __('Widget ID:').' <strong>'.html::escapeHTML($w->id()).'</strong>)'. 
     270     ($w->desc() != '' ? ' <span class="form-note">'.__($w->desc()).'</span>' : '').'</dt>'. 
    270271     '<dd>'; 
    271272      
     
    330331          '<div>'.form::hidden(array($iname.'[id]'),html::escapeHTML($w->id())). 
    331332          '<p class="widget-name">'.form::field(array($iname.'[order]'),2,3,(string) $i,'js-hide','',0,'title="'.__('order').'"').' '. 
    332           $w->name().'</p>'. 
     333          $w->name().($w->desc() != '' ? ' <span class="form-note">('.__($w->desc()).')</span>' : '').'</p>'. 
    333334          '<p class="removeWidget js-remove"><label class="classic">'. 
    334335          form::checkbox(array($iname.'[_rem]'),'1',0).' '.__('Remove widget'). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map