Browse Source

shop: new filter 'clothes'

pedestrian
parent
commit
c88e29bd2d
  1. 50
      shop.json

50
shop.json

@ -49,6 +49,17 @@
"{% else %}", "{% else %}",
" {{ c|raw }}", " {{ c|raw }}",
"{% endif %}" "{% endif %}"
],
"body": [
"<ul>",
" {% if tags.clothes %}",
" <li class='hasSymbol'>",
" <i class=\"fas fa-tshirt\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('clothes') }}:</span>",
" <span class='value'>{{ tagTransList('clothes', tags.clothes) }}</span>",
" </li>",
" {% endif %}",
"</ul>"
] ]
}, },
"const": { "const": {
@ -335,7 +346,37 @@
"mobile_phone": { "mobile_phone": {
"sign": "fas:mobile-alt" "sign": "fas:mobile-alt"
} }
}
},
"clothes": [
"women",
"men",
"leather",
"fur",
"underwear",
"children",
"wedding",
"sports",
"workwear",
"lingerie",
"babies",
"hats",
"fashion",
"suits",
"unisexs",
"traditional",
"costumes",
"bridal",
"oversize",
"swimwear",
"maternity",
"brand",
"military",
"vintage",
"accessories",
"schoolwear",
"motorcycle",
"denim"
]
}, },
"filter": { "filter": {
"shop": { "shop": {
@ -345,6 +386,13 @@
"values": "{% set list = [] %}{% for k, v in const.shops %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('shop', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[shop][shop!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>", "values": "{% set list = [] %}{% for k, v in const.shops %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('shop', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[shop][shop!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
"sort": "natsort", "sort": "natsort",
"op": "has" "op": "has"
},
"clothes": {
"name": "{{ keyTrans('clothes') }}",
"type": "select",
"values": "{% set list = [] %}<option weight='-1' value='*' query='nwr[clothes]'>{{ trans('any value') }}</option>{% for k in const.clothes %}{% set list = list|merge([ k ]) %}<option value='{{ k }}'>{{ tagTrans('clothes', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[clothes][clothes!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
"sort": "natsort",
"op": "has"
} }
} }
} }
Loading…
Cancel
Save