{% for k,l,i in sort_options %}
{% if k == sort %}
{% set key = k %}
{% set label = l %}
{% set icon = i %}
{{ stick.sticker(asset_url(icon), label, True)}}
{% endif %}
{% endfor %}
{% endif %}
{% if liked %}
{% if liked_count is not none %}
{{ liked_count }}
{% endif %}
{% endif %}
{% if selected_labels and selected_labels|length %}
{% for st in selected_labels %}
{% for s in labels %}
{% if st == s.name %}
{{ stick.sticker(asset_url('nav-labels/' + s.name + '.svg'), s.name, True)}}
{% if s.count is not none %}
{{ s.count }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if selected_stickers and selected_stickers|length %}
{% for st in selected_stickers %}
{% for s in stickers %}
{% if st == s.name %}
{{ stick.sticker(asset_url('stickers/' + s.name + '.svg'), s.name, True)}}
{% if s.count is not none %}
{{ s.count }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% if selected_brands and selected_brands|length %}
{% for b in selected_brands %}
{% set ns = namespace(count=0) %}
{% for brand in brands %}
{% if brand.name == b %}
{% set ns.count = brand.count %}
{% endif %}
{% endfor %}
{% if ns.count %}
{{ b }}
{{ ns.count }}
{% else %}
{{ b }}
0
{% endif %}
{% endfor %}
{% endif %}
{% endcall %}
{% include "_types/browse/mobile/_filter/index.html" %}