HEX
Server: Apache
System: Linux srv4.garantili.com.tr 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ekspardev (1006)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/ekspardev/public_html/tubisad/rapor/src/pages/_includes/parts/buttons-table.html
{% assign prefix = include.prefix | default: 'btn-' %}
{% assign show-link = include.show-link | default: false %}
{% assign show-states = include.show-states | default: false %}
{% assign hide-labels = include.hide-labels | default: false %}
{% assign variants = include.variants | default: site.theme-colors %}

{% for state in site.button-states %}
   {% if show-states or (state.class != 'active' and state.class != 'disabled') %}
      <div class="row g-2 align-items-center">
         {% unless hide-labels %}<div class="col-12 col-xl-2 font-weight-semibold">{{ state.title }}</div>{% endunless %}
         {% for type in variants %}
            {% if show-link or type[0] != 'link' %}
               <div class="col-6 col-sm-4 col-md-2 col-xl{% if include.auto-columns %}-auto{% endif %}{% if type[0] == 'light' %} bg-dark{% endif %} py-3">
                  {% if include.icon or include.icon-only %}
                     {% assign icon = type[1].icon %}
                  {% endif %}

                  {% assign class = prefix | append: type[0] %}
                  {% if state.class %}
                     {% assign class = class | append: ' ' | append: state.class %}
                  {% endif %}
                  {% if include.class %}
                     {% assign class = class | append: ' ' | append: include.class %}
                  {% endif %}

                  {% assign text = type[1].title %}
                  {% assign color = type[0] %}
                  {% include ui/button.html block=true color=false class=class icon=icon icon-only=include.icon-only text=text %}
               </div>
               {% endif %}
         {% endfor %}
      </div>
   {% endif %}
{% endfor %}