Changeset 2369:461cfb68d9c7 for plugins
- Timestamp:
- 10/15/13 10:13:02 (12 years ago)
- Branch:
- 2.6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/widgets/index.php
r2256 r2369 247 247 248 248 $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><tpl:Widget id="<strong>'.__('Widget ID').'</strong>"> 263 <setting name="<strong>'.__('Setting name').'</strong>"><strong>'.__('Setting value').'</strong></setting> 264 ... 265 </tpl:Widget></pre>'. 266 '<p>'.__('Here are the following available widgets for your blog:').'</p>'; 267 268 $widget_elements->content .= '<dl>'; 249 $widget_elements->content = '<dl>'; 269 250 foreach ($__widgets->elements() as $w) 270 251 { … … 312 293 $widget_elements->content .= '</dl></div>'; 313 294 314 dcPage::helpBlock( $widget_elements);295 dcPage::helpBlock('widgets',$widget_elements); 315 296 316 297 function sidebarWidgets($id,$title,$widgets,$pr,$default_widgets,&$j)
Note: See TracChangeset
for help on using the changeset viewer.