[Added] new setting adjustments for twig

This commit is contained in:
MaxBuhe01 2024-11-20 19:11:15 +01:00
parent 8794a005d7
commit 449f901976
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,14 @@
{% extends "page/details/inc/productmain.html.twig" %}
{% block details_productmain_manufacturersicon %}
{% if oManufacturer.oxmanufacturers__oxicon.value %}
{{ parent() }}
{% else %}
<div class="action-links text-left">
<a href="{{ oManufacturer.getLink() }}" title="{{ oManufacturer.oxmanufacturers__oxtitle.value }}">
{{ translate({ ident: "MANUFACTURER", suffix: "COLON" }) }} {{ oManufacturer.oxmanufacturers__oxtitle.value }}
</a>
<span itemprop="brand" class="hidden">{{ oManufacturer.oxmanufacturers__oxtitle.value }}</span>
</div>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,20 @@
{% extends "page/details/inc/tabs.html.twig" %}
{% block details_tabs_invite %}
{{ parent() }}
{% set oConfig = oViewConf.getConfig() %}
{% set oManufacturer = oView.getManufacturer() %}
{% set sShopURL = oConfig.getConfigParam('sShopURL') %}
{% set description = oManufacturer.d3GetLongdesc() %}
{% if oManufacturer and oConfig.getConfigParam('d3manufacturerinformation_showManufacturertextOnDetailsPage') and description.rawValue|striptags|trim %}
{% capture append = "tabs" %}<a href="#manufacturertab" data-toggle="tab">{{ translate({ ident: "MANUFACTURER" }) }}</a>{% endcapture %}
{% capture append = "tabsContent" %}
<div id="manufacturertab" class="tab-pane{% if blFirstTab %} active{% endif %}">
{{ include(template_from_string(description)) }}
</div>
{% set blFirstTab = false %}
{% endcapture %}
{% endif %}
{% endblock %}