/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "index.html" %} {% block content %} {% block headline %}

Widgets

{% endblock %} {% if pagepath != '' %} {% set widgetlist = docu('widgets/'~pagepath~'.html') %} /** {% set widgetlist = widgetlist|merge(docu('shwidgets/'~pagepath~'.html')) %} **/ {% for widget in widgetlist %} {% set dir = "pages/docu/%s/widget_%s.html"|format(pagepath, widget.command) %} {% set dir_b = "dropins/widget_%s.html"|format(widget.command) %} {% set dir_c = "dropins/widgets/widget_%s.html"|format(widget.command) %} {% set dir_d = "dropins/shwidgets/widget_%s.html"|format(widget.command) %} {% if isfile(dir) %} {{ widget.command }} {% elseif isfile(dir_b) %} {{ widget.command }} {% elseif isfile(dir_c) %} {{ widget.command }} {% elseif isfile(dir_d) %} {{ widget.command }} {% elseif widget.command %} {{ widget.command }} {% endif %} {% endfor %} {% endif %}


{% set widget = page|slice(7)|replace({'_': '.'}) %} {% if pagepath != '' and widget != pagepath %}
{{ widget }}
{% if widgetlist[widget].deprecated %}

Deprecated {{ widgetlist[widget].deprecated }}

{% endif %}

{{ widgetlist[widget].desc }}

Parameters
{{ {{ widgetlist[widget].call }} }}
{% for param_name, param_docu in widgetlist[widget].param %} {{ param_name }}
{{ param_docu.desc|nl2br }}
{% endfor %}
{% if widgetlist[widget].see %}
More Information
{% endif %}
{% block example %}{% endblock %}
{% if widgetlist[widget].author or widgetlist[widget].info or widgetlist[widget].link %}
{% if widgetlist[widget].author %} Author: {{ widgetlist[widget].author }}
{% endif %} {% if widgetlist[widget].info %} {{ widgetlist[widget].info }} {% endif %} {% if widgetlist[widget].link %} - {{ widgetlist[widget].link }} {% endif %}
{% endif %}
{% else %} {% block intro %} Intro {% endblock %} {% endif %} {% endblock %}