КОНТРОЛЫ/responsive_toggler.md


Исходный код

Twig код

{% set responsive_class_name = class_name %}
{% if not expand_icon %}
	{% set expand_icon = 'arrow-down-expand' %}
{% endif %}
{% if not contract_icon %}
	{% set contract_icon = contract_icon or 'arrow-up-contract' %}
{% endif %}
{% if items|length > 0 %}
	{% set item_list = items %}
{% endif %}
<div class="responsive_toggler {{responsive_toggler_modify}}">
	{% include "interface/controls/toggler.twig" with {
    class_name: responsive_class_name ~ ' funnel',
    items: item_list,
    item_class_name: item_class_name
  } %}
</div>

{% if expandable %}
	<span class="control-toggler__button{% if button_class_name %} {{button_class_name}}{% endif %}" name="" title="{{items[0].name}}" style="display: none;">
		<span class="control-toggler__button-name">{{items[0].name}}</span>
    <span class="icon icon-{{expand_icon}}"></span>
    <span class="icon icon-{{contract_icon}}"></span>
		{% if not no_arrow %}<b></b>{% endif %}
	</span>
{% endif %}
Ссылка на вики репозиторий