Commit 0ad01ee0b9e992d5cc00cad29c484ed99ff8ef23

Authored by Alexey Boroda
1 parent 9fbe1412

-Clearfix to persones added

Showing 1 changed file with 18 additions and 5 deletions   Show diff stats
frontend/views/persone/index.php
1 1 <?php
2 2  
3 3 use common\models\Persone;
  4 + use yii\helpers\Html;
4 5 use yii\web\View;
5 6  
6 7 /**
... ... @@ -27,14 +28,26 @@
27 28  
28 29 <div class="row">
29 30 <?php
  31 + $i = 0;
30 32 foreach ($persones as $persone) {
  33 + $i++;
31 34 echo $this->render(
32 35 '_persone',
33 36 [
34 37 'model' => $persone,
35 38 ]
36 39 );
37   - } ?>
  40 + if (( $i % 4 ) === 0) {
  41 + echo Html::tag(
  42 + 'div',
  43 + '',
  44 + [
  45 + 'class' => 'clearfix',
  46 + ]
  47 + );
  48 + }
  49 + }
  50 + ?>
38 51 </div>
39 52 <!-- /.row -->
40 53  
... ... @@ -47,9 +60,9 @@
47 60  
48 61  
49 62 <div id="get-it" class="pages">
50   - <div class="container">
51   - <div class="col-md-12 col-sm-12" style="text-align: center;">
52   - <a href="#" class="btn bnm btn-template-transparent-primary modal-link" data-form="appointment-modal" data-modalname="Записаться на приём">Записаться на прием</a>
53   - </div>
  63 + <div class="container">
  64 + <div class="col-md-12 col-sm-12" style="text-align: center;">
  65 + <a href="#" class="btn bnm btn-template-transparent-primary modal-link" data-form="appointment-modal" data-modalname="Записаться на приём">Записаться на прием</a>
54 66 </div>
  67 + </div>
55 68 </div>
56 69 \ No newline at end of file
... ...