Ú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