Új hozzászólás Aktív témák
-
radi8tor
MODERÁTOR
Nem kifejezetten PHP, de hátha tudtok segíteni benne.
Ezt kellene átírni úgy, hogy ne két oszlopban mutassa az értékeket hanem csak 1 oszlopban egymás alatt:
<div class="tab-pane product-spec product-section" id="tab-specification">
<table class="table table-bordered">
{% for attribute_group in attribute_groups %}
<thead>
<tr>
<th colspan="2"><strong>{{attribute_group['name']}}</strong></th>
</tr>
</thead>
<tbody>
{% set i = 2 %} {% set k = 0 %} {% for attribute in attribute_group['attribute'] %}
{% if ( i%2 == 0 ) %} <tr> {% endif %}
<td><span>{{attribute['name'] ~ ':'}}</span><span>{{attribute['text']}}</span></td>
{% if ( i%3 == 0 ) %} </tr> {% endif %} {% set i = i + 1 %} {% set k = k + 1 %}
{% endfor %}
{% if ( k%2 != 0 ) %} </tr> {% endif %}
</tbody>
{% endfor %}
</table>
</div>⭐ Stella
Új hozzászólás Aktív témák
- Asus A68HM-Plus AMD FM2+ alaplap
- BESZÁMÍTÁS! ASUS TUF A17 (2023) Gaming notebook - R7 7735HS 16GB RAM 512GB+ 1TB SSD RTX 4050 6GB WIN
- Asus H81M-K LGA 1150 alaplap
- BESZÁMÍTÁS! Apple MacBook Air 2024 13" M3 8GB 256GB notebook garanciával hibátlan működéssel
- BESZÁMÍTÁS! Apple iMac 27" 2020 i7 16GB Radeon 5500xt 8GB 512GB SSD garanciával hibátlan működéssel
Állásajánlatok
Cég: Ozeki Kft
Város: Debrecen
Cég: Ozeki Kft
Város: Debrecen