Und: poste mal nen Screenshot

/** * A switch, build of two pics * * @param unique id for this widget * @param a item * @param the pic for the 'on' state (optional) * @param the pic for the 'off' state (optional) * @param value send for the 'on' state (optional, default 1) * @param value send for the 'off' state (optional, default 0) * [USER][/USER] param the color 'icon1' or e. g. '#f00' for red (default 'icon1' of the design) */ {% macro switch(id, item, pic_on, pic_off, val_on, val_off, color) %} {% set uid = uid(page, id) %} {% if not pic_on or pic_on|slice(-4, 4) == '.svg' %} <span id="{{ uid }}" data-widget="basic.switch" data-item="{{ item }}" data-val-on="{{ val_on|default('1') }}" data-val-off="{{ val_off|default('0') }}" data-pic-on="{{ pic_on|deficon('control_on_off.svg') }}" data-pic-off="{{ pic_off|deficon('control_on_off.svg') }}" class="switch icon"> <a> <img id="{{ uid }}-off" class="icon" src="{{ pic_off|deficon('control_on_off.svg') }}" /> {% if color is empty %} <img id="{{ uid }}-on" class="icon icon1 hide" src="{{ pic_on|deficon('control_on_off.svg') }}" /> {% elseif color == 'icon1' %} <img id="{{ uid }}-on" class="icon icon1 hide" src="{{ pic_on|deficon('control_on_off.svg') }}" /> {% else %} <img id="{{ uid }}-on" class="icon icon1 hide" style="stroke:{{ color }}; fill:{{ color }};" src="{{ pic_on|deficon('control_on_off.svg') }}" /> {% endif %} </a> </span> {% else %} <span id="{{ uid }}" data-widget="basic.switch.v1" data-item="{{ item }}" data-val-on="{{ val_on|default('1') }}" data-val-off="{{ val_off|default('0') }}" data-pic-on="{{ pic_on|default(icon1~'control_on_off.png') }}" data-pic-off="{{ pic_off|default(icon0~'control_on_off.png') }}" class="switch"><a><img class="icon" src="{{ pic_off|default(icon0~'control_on_off.png') }}" /></a> </span> {% endif %} {% endmacro %}
/** * A switch with to states displayed as a button * * @param unique id for this widget * @param a item * @param the pic for the 'on' state (optional) * @param the pic for the 'off' state (optional) * @param value send for the 'on' state (optional, default 1) * @param value send for the 'off' state (optional, default 0) * @param type: 'micro', 'mini', 'midi' (optional, default: mini) * @param color: 'color' for on state e.g. '#f00' for red (optional, default: 'icon1' of design) */ {% macro dual(id, item, pic_on, pic_off, val_on, val_off, type, color) %} {% set uid = uid(page, id) %} <a id="{{ uid(page, id) }}" data-widget="basic.dual" data-item="{{ item }}" data-val-on="{{ val_on|default('1') }}" data-val-off="{{ val_off|default('0') }}" data-pic-on="{{ pic_on|deficon('control_on_off.svg') }}" data-pic-off="{{ pic_off|deficon('control_on_off.svg') }}" class="ui-{{ type|default('mini') }}" data-role="button" data-inline="true" data-iconpos="center"> <img id="{{ uid }}-off" class="icon" src="{{ pic_off|deficon('control_on_off.svg') }}" /> {% if color is empty %} <img id="{{ uid }}-on" class="icon icon1 hide" src="{{ pic_on|deficon('control_on_off.svg') }}" /> {% else %} <img id="{{ uid }}-on" class="icon icon1 hide" style="stroke:{{ color }}; fill:{{ color }};" src="{{ pic_on|deficon('control_on_off.svg') }}" /> {% endif %} </a> {% endmacro %}
/** * Standard dimmer with switching and dimming function * * @param unique id for this widget * @param name of the dimmer * @param a item for switching * @param a item for dimming * @param the minimum value if the slider is moved to total left (optional, default 0) * @param the maximum value if the slider is moved to total right (optional, default 255) * @param step between two values (optional, default 5) * @param pic_on: icon for on state (optional, default: light_light.svg) * @param pic_off: icon for off state (optional, default: light_light.svg) * @param color: 'color' for pic_on e.g. '#f00' for red (optional, default: 'icon1' of design) */ {% macro dimmer(id, txt, item_switch, item_value, min, max, step, pic_on, pic_off, color) %} {% import "basic.html" as basic %} <div class="dimmer"> {{ basic.switch(id~'switch', item_switch, pic_on|default('light_light.svg'), pic_off|default('light_light.svg'), '', '', color) }} <p>{{ txt|e }}</p> {{ basic.slider(id~'slider', item_value, min, max, step) }} </div> {% endmacro %}
<div id="menu" class="menu"> <a id="menu-rooms" data-ajax="false" href="index.php"> <img class="icon" src="{{ page == 'index' ? icon1 : icon0 }}control_building_empty.svg"/></a>
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar