| Line |  | 
|---|
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 
|---|
| 2 | <html> | 
|---|
| 3 | <head> | 
|---|
| 4 | <title>Widgets</title> | 
|---|
| 5 | </head> | 
|---|
| 6 |  | 
|---|
| 7 | <body> | 
|---|
| 8 | <h4>Use of widgets</h4> | 
|---|
| 9 |  | 
|---|
| 10 | <p>Widgets may be used to add various blocks of content to be displayed on your public pages. To add a widget, drag it from the <strong>Available widgets</strong> list on the left to one of the sidebars on the right of this page. You can order your widgets in a sidebar by dragging them up or down. To apply your changes, press <strong>Update sidebars</strong>.</p> | 
|---|
| 11 |  | 
|---|
| 12 | <p>Once included in a sidebar, widgets have configuration options that you can reach by clicking on the arrow next to their name.</p> | 
|---|
| 13 |  | 
|---|
| 14 | <p>To remove a widget, simply drag it to one of the dedicated zones</p> | 
|---|
| 15 |  | 
|---|
| 16 | <p>Remember to save your changes after any modification by pressing <strong>Update sidebars</strong></p> | 
|---|
| 17 |  | 
|---|
| 18 | <p>Use the <strong>Reset sidebars</strong> button to reset the sidebars as they were originally set in your system (a pop-up will ask you to confirm your choice).</p> | 
|---|
| 19 |  | 
|---|
| 20 | <h4>Widget Tags</h4> | 
|---|
| 21 |  | 
|---|
| 22 | <div id="widgets-tpl"> | 
|---|
| 23 |  | 
|---|
| 24 | <p>If you are allowed to edit your theme templates, you can directly add widgets as templates tags, with their own configuration.</p> | 
|---|
| 25 |  | 
|---|
| 26 | <p>To add a widget in your template, you need to write code like this:</p> | 
|---|
| 27 |  | 
|---|
| 28 | <pre> | 
|---|
| 29 | <tpl:Widget id="<strong>Widget ID</strong>"> | 
|---|
| 30 | <setting name="<strong>Setting name</strong>"><strong>Setting value</strong></setting> | 
|---|
| 31 | ... | 
|---|
| 32 | </tpl:Widget> | 
|---|
| 33 | </pre> | 
|---|
| 34 |  | 
|---|
| 35 | <p>Here are the widgets available for your blog:</p><!-- the widgets and their descriptions are automatically inserted here --> | 
|---|
| 36 |  | 
|---|
| 37 | </body> | 
|---|
| 38 | </html> | 
|---|
       
      Note: See 
TracBrowser
        for help on using the repository browser.