|
13 | 13 | {% if blogResult != "" %}
|
14 | 14 | <div class="nav flex-md-column flex-row nav-pills justify-content-around" id="v-pills-tab" role="tablist" aria-orientation="vertical">
|
15 | 15 | {% block layout_search_suggest_results_tab_pane_product %}
|
16 |
| - <a class="nav-link flex-fill text-md-left text-center {% if productTotal >= blogTotal %}show active{% endif %}" id="v-pills-product-tab" data-toggle="pill" href="#v-pills-product" role="tab" aria-controls="v-pills-product" aria-selected="true"> |
| 16 | + <a class="nav-link flex-fill text-md-left text-center {% if productTotal > 0 %}show active{% endif %}" id="v-pills-product-tab" data-toggle="pill" href="#v-pills-product" role="tab" aria-controls="v-pills-product" aria-selected="true"> |
17 | 17 | {{ 'werkl-blog.search.tabs.product'|trans|sw_sanitize }} <span class="badge badge-light">{{ productTotal }}</span>
|
18 | 18 | </a>
|
19 | 19 | {% endblock %}
|
20 | 20 |
|
21 | 21 | {% block layout_search_suggest_results_tab_pane_blog %}
|
22 |
| - <a class="nav-link flex-fill text-md-left text-center {% if blogTotal > productTotal %}active{% endif %}" id="v-pills-blog-tab" data-toggle="pill" href="#v-pills-blog" role="tab" aria-controls="v-pills-blog" aria-selected="false"> |
| 22 | + <a class="nav-link flex-fill text-md-left text-center {% if blogTotal > 0 %}active{% endif %}" id="v-pills-blog-tab" data-toggle="pill" href="#v-pills-blog" role="tab" aria-controls="v-pills-blog" aria-selected="false"> |
23 | 23 | {{ 'werkl-blog.search.tabs.blog'|trans|sw_sanitize }} <span class="badge badge-light">{{ blogTotal }}</span>
|
24 | 24 | </a>
|
25 | 25 | {% endblock %}
|
|
31 | 31 | </div>
|
32 | 32 | <div class="{% if blogResult != "" %}col-md-9{% else %}col-md-12{% endif %} col-12">
|
33 | 33 | <div class="tab-content" id="v-pills-tabContent">
|
34 |
| - <div class="tab-pane fade {% if productTotal >= blogTotal %}show active{% endif %}" id="v-pills-product" role="tabpanel" aria-labelledby="v-pills-product-tab"> |
| 34 | + <div class="tab-pane fade {% if productTotal > 0 %}show active{% endif %}" id="v-pills-product" role="tabpanel" aria-labelledby="v-pills-product-tab"> |
35 | 35 | {{ parent() }}
|
36 | 36 |
|
37 | 37 | {% block layout_search_suggest_result_blog_total %}
|
|
69 | 69 | {% endblock %}
|
70 | 70 | </div>
|
71 | 71 | {% block layout_search_suggest_results_tab_pane_content_blog %}
|
72 |
| - <div class="tab-pane fade {% if blogTotal > productTotal %}show active{% endif %}" id="v-pills-blog" role="tabpanel" aria-labelledby="v-pills-blog-tab"> |
| 72 | + <div class="tab-pane fade {% if blogTotal > 0 %}show active{% endif %}" id="v-pills-blog" role="tabpanel" aria-labelledby="v-pills-blog-tab"> |
73 | 73 | {% sw_include "@Storefront/storefront/layout/header/blog-suggest-tab-content.html.twig" with {
|
74 | 74 | blogResult: blogResult,
|
75 | 75 | searchTerm: page.searchTerm
|
|
0 commit comments