Dodanie obsługi dodatkowych danych producenta oraz informacji o bezpieczeństwie w klasach ShopProducer i ShopProduct
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
</div>
|
||||
|
||||
<!-- //* bottom left -->
|
||||
<? if ($this -> product -> language['description'] or $this -> product -> language['tab_description_1'] or $this -> product -> language['tab_description_2'] ) : ?>
|
||||
<? if ( $this -> product -> language['description'] or $this -> product -> language['tab_description_1'] or $this -> product -> language['tab_description_2'] or $this -> product['producer'] ):?>
|
||||
<div id="description" class="product_info__desc">
|
||||
<div class="description_accordion">
|
||||
|
||||
@@ -173,11 +173,29 @@
|
||||
<? endif;?>
|
||||
|
||||
<? if ( $this -> product -> language['tab_name_2'] ):?>
|
||||
<!-- accordion 3 -->
|
||||
<div class="accordion_tile">
|
||||
<div class="accordion_title"><p><?= $this -> product -> language['tab_name_2'];?></p></div>
|
||||
<div class="accordion_data"><?= $this -> product -> language['tab_description_2'];?></div>
|
||||
</div>
|
||||
<!-- accordion 3 -->
|
||||
<div class="accordion_tile">
|
||||
<div class="accordion_title"><p><?= $this -> product -> language['tab_name_2'];?></p></div>
|
||||
<div class="accordion_data" style="display: none;"><?= $this -> product -> language['tab_description_2'];?></div>
|
||||
</div>
|
||||
<? endif;?>
|
||||
|
||||
<? if ( $this -> product['producer']['data'] or $this -> product['language']['security_information'] ):?>
|
||||
<!-- accordion 4 -->
|
||||
<div class="accordion_tile">
|
||||
<div class="accordion_title"><p>Bezpieczeństwo</p></div>
|
||||
<div class="accordion_data" style="display: none;">
|
||||
<? if ( $this -> product['producer']['data'] ):?>
|
||||
<p><strong>Producent</strong></p>
|
||||
<?= $this -> product['producer']['data'];?>
|
||||
<? endif;?>
|
||||
<br>
|
||||
<? if ( $this -> product['language']['security_information'] ):?>
|
||||
<p><strong>Informacje o bezpieczeństwie</strong></p>
|
||||
<?= $this -> product['language']['security_information'];?>
|
||||
<? endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<? endif;?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user