Dotclear

Changeset 2369:461cfb68d9c7 for plugins


Ignore:
Timestamp:
10/15/13 10:13:02 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Message:

Revamp contextual help for widgets plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/index.php

    r2256 r2369  
    247247 
    248248$widget_elements = new stdClass; 
    249 $widget_elements->content = 
    250 '<h4>'.__('Use of widgets').'</h4>'. 
    251 '<p>'.__('Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, '. 
    252 'drag it from the Available widgets list on the left to one of the sidebars on the right of this page. You can order '. 
    253 'your widgets in a sidebar by dragging them up or down. You must update sidebars to apply your changes.').'</p>'. 
    254 '<p>'.__('Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next '. 
    255 'to their name.').'</p>'. 
    256 '<p>'.__('Reset sidebars to get back to default widgets installation.').'</p>'. 
    257 '<h4>'.__('Widget templates tags').'</h4>'. 
    258 '<div id="widgets-tpl">'. 
    259 '<p>'.__('If you are allowed to edit your theme templates, you can directly add widgets as '. 
    260 'templates tags, with their own configuration.').'</p>'. 
    261 '<p>'.__('To add a widget in your template, you need to write code like this:').'</p>'. 
    262 '<pre>&lt;tpl:Widget id="<strong>'.__('Widget ID').'</strong>"&gt; 
    263   &lt;setting name="<strong>'.__('Setting name').'</strong>"&gt;<strong>'.__('Setting value').'</strong>&lt;/setting&gt; 
    264   ... 
    265 &lt;/tpl:Widget&gt;</pre>'. 
    266 '<p>'.__('Here are the following available widgets for your blog:').'</p>'; 
    267  
    268 $widget_elements->content .= '<dl>'; 
     249$widget_elements->content = '<dl>'; 
    269250foreach ($__widgets->elements() as $w) 
    270251{ 
     
    312293$widget_elements->content .= '</dl></div>'; 
    313294 
    314 dcPage::helpBlock($widget_elements); 
     295dcPage::helpBlock('widgets',$widget_elements); 
    315296 
    316297function sidebarWidgets($id,$title,$widgets,$pr,$default_widgets,&$j) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map