この問題の解決策について少し助けが必要です。そのように生成されたサービスのリストがあります:
<div class="row">
<?php foreach( $entries as $s ) : ?>
<?php require( dirname(__FILE__) . '/_index_DisplayService.php' ); ?>
<?php endforeach; ?>
</div>
_index_DisplayService.php
<div class="grid-4">
<div id="service-mobile-dev" class="service">
<div class="service-icon">
<i class="icon-calendar"></i>
</div>
</div>
</div>
これはグリッド 12 のレイアウトなので、行ごとに 3 つのグリッド 4、次に新しい行が必要です。<div class="row">
解決策は、以下を次の<?php foreach( $entries as $s ) : ?>
ように移動することから始まると思います。
<?php foreach( $entries as $s ) : ?>
<div class="row">
<?php require( dirname(__FILE__) . '/_index_DisplayService.php' ); ?>
</div>
<?php endforeach; ?>
もちろん、これはすべてを1行にキックします。行ごとに 3 つの grid-4 を生成するにはどうすればよいですか。
ありがとう!