{% sw_extends '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
{% block page_product_detail_tabs_inner %}
<div class="card card-tabs">
{% block page_product_detail_tabs_navigation %}
<div class="card-header product-detail-tab-navigation">
{% block page_product_detail_tabs_navigation_container %}
<ul class="nav nav-tabs product-detail-tab-navigation-list"
id="product-detail-tabs"
role="tablist">
{% block page_product_detail_tabs_navigation_description %}
<li class="nav-item">
<a class="nav-link {% if (ratingSuccess != 1) and (ratingSuccess != -1) %}active{% endif %} product-detail-tab-navigation-link"
id="description-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#description-tab-pane"
role="tab"
aria-controls="description-tab-pane"
aria-selected="true">
<span>{{ "detail.tabsDescription"|trans|sw_sanitize }}</span>
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
{% if page.product.translated.description|length > 0 %}
<span class="product-detail-tab-preview">
{{ page.product.translated.description|raw|striptags|u.truncate(125, '…') }}
{# truncate always cuts down the length to 125 characters.
So it will only shorten the string if it exceeds 125 chars.
Therefor, only show the button when the length of the text is
greater or equal then 126 characters. #}
{% if page.product.translated.description|length >= 126 %}
<span class="product-detail-tab-preview-more">{{ "detail.tabsPreviewMore"|trans|sw_sanitize }}</span>
{% endif %}
</span>
{% endif %}
</a>
</li>
{% endblock %}
{# simplify ID access #}
<li class="nav-item">
<a class="nav-link product-detail-tab-navigation-link"
id="x-download-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#x-download-tab-pane"
role="tab"
aria-controls="x-download-tab-pane"
aria-selected="true">
Datenblätter
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link product-detail-tab-navigation-link"
id="x-order-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#x-order-tab-pane"
role="tab"
aria-controls="x-order-tab-pane"
aria-selected="true">
Bestellformular
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% if page.extensions.xconfig_accessories.accessories %}
<li class="nav-item">
<a class="nav-link product-detail-tab-navigation-link"
id="x-accessory-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#x-accessory-tab-pane"
role="tab"
aria-controls="x-accessory-tab-pane"
aria-selected="true">
Zubehörartikel
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{% block page_product_detail_tabs_navigation_review %}
{% if shopware.config.detail.showReviews %}
<li class="nav-item">
<a class="nav-link {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %} product-detail-tab-navigation-link"
id="review-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#review-tab-pane"
role="tab"
aria-controls="review-tab-pane"
aria-selected="true">
{{ "detail.tabsReview"|trans|sw_sanitize }}
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{% endblock %}
{% for shop_detail in page.extensions.xconfig.product.data.shop_details %}
{% if shop_detail.type_id == "1" %}
<li class="nav-item">
<a class="nav-link product-detail-tab-navigation-link"
id="x{{ shop_detail.id}}-tab"
data-toggle="tab"
data-offcanvas-tabs="true"
href="#x{{ shop_detail.id}}-tab-pane"
role="tab"
aria-controls="x{{ shop_detail.id}}-tab-pane"
aria-selected="true">
{{ shop_detail.item_name|trans|sw_sanitize }}
<span class="product-detail-tab-navigation-icon">
{% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endblock %}
</div>
{% endblock %}
{% block page_product_detail_tabs_content %}
<div class="product-detail-tabs-content card-body">
{% block page_product_detail_tabs_content_container %}
<div class="tab-content">
{% block page_product_detail_tabs_content_description %}
<div class="tab-pane fade show {% if (ratingSuccess != 1) and (ratingSuccess != -1) %}active{% endif %}"
id="description-tab-pane"
role="tabpanel"
aria-labelledby="description-tab">
{% sw_include '@Storefront/storefront/page/product-detail/description.html.twig' %}
</div>
{% endblock %}
{% block page_product_detail_tabs_content_review %}
{% if shopware.config.detail.showReviews %}
<div class="tab-pane fade show {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %}"
id="review-tab-pane"
role="tabpanel"
aria-labelledby="review-tab">
{% sw_include '@Storefront/storefront/page/product-detail/review/review.html.twig' with {'reviews': page.reviews} %}
</div>
{% endif %}
{% endblock %}
{% for shop_detail in page.extensions.xconfig.product.data.shop_details %}
{% if shop_detail.type_id == "1" %}
<div class="tab-pane fade"
id="x{{ shop_detail.id}}-tab-pane"
role="tabpanel"
aria-labelledby="x{{ shop_detail.id}}-tab">
{% sw_include '@XioniXconfig/storefront/page/product-detail/xshopdetail_tab.html.twig' with {'shop_detail': shop_detail} %}
</div>
{% endif %}
{% endfor %}
{# simplify ID access #}
{% set media_details = page.extensions.xconfig.product.data.media_details %}
<div class="tab-pane fade"
id="x-download-tab-pane"
role="tabpanel"
aria-labelledby="x-download-tab">
{% sw_include '@XioniXconfig/storefront/page/product-detail/xdownload_tab.html.twig' with {'media_details': media_details} %}
</div>
<div class="tab-pane fade"
id="x-order-tab-pane"
role="tabpanel"
aria-labelledby="x-order-tab">
{% sw_include '@XioniXconfig/storefront/page/product-detail/xorder_tab.html.twig' %}
</div>
{% if page.extensions.xconfig_accessories.accessories %}
<div class="tab-pane fade show {% if (ratingSuccess == 1) or (ratingSuccess == -1) %}active{% endif %}"
id="x-accessory-tab-pane"
role="tabpanel"
aria-labelledby="x-accessory-tab">
{% sw_include '@XioniXconfig/storefront/page/product-detail/xaccessory_tab.html.twig' with {'accessories': page.extensions.xconfig_accessories.accessories} %}
</div>
{% endif %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}