aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/widget.tpl
blob: 4bbbb2df98d44014a39000133138d5239b78a856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{{* Generic template for widgets.
  *
  * To use this template, pass the `$this` object reference of the widget,
  * and implement the `title()` and `contents()` functions as public methods
  * on the widget class.
  *}}
<div class="widget">
	{{if $widget->title()}}
	<h3>{{$widget->title()}}</h3>
	{{/if}}
	{{$widget->contents()}}
</div>