{%- comment -%}
  Eg:
  Shop[label_Hot][icon_las la-bell]
  Product[label_Hot]
  Blog[icon_las la-bell]
{%- endcomment -%}

{%- assign arrlt = title | split: '[' -%}

{%- case arrlt.size -%}
    {%- when 1 -%}{%- assign icon = 't4' -%}{%- assign label = 't4' -%}
    {%- when 2 -%}{%- if arrlt[1] contains 'label_' -%}{%- assign icon = 't4' -%}{%- assign label = arrlt[1] | remove: 'label_' | remove: ']' | strip -%}{%- else -%}{%- assign icon = arrlt[1] | remove: 'icon_' | remove: ']' | strip -%}{%- assign label = 't4' -%}{%- endif -%}
    {%- else -%}{%- assign label = arrlt[1] | remove: 'label_' | remove: ']' | strip -%}{%- assign icon = arrlt[2] | remove: 'icon_' | remove: ']' | strip -%}
  {%- endcase -%}


<span class="">
{%- if icon != 't4' %}<i class="{{ icon | downcase }}"></i>{% endif %}{{ arrlt[0] }}
</span>

{% if label != 't4' %}
  <span class="t4s_lb_nav t4s_lb_menu_{{ label | handleize }}">{{ label }}</span>
{% endif -%}