Last active
October 23, 2016 07:17
-
-
Save AlexSemenov/d1cb7bf4dfb16d254bc05f530c45a500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( !empty($array) ): ?> | |
<?php $i=0; ?> | |
<div class="row"> | |
<?php foreach ( $array as $item): ?> | |
<div class="col-m*-3 col-s*-6"> | |
<p><content</p> | |
</div> | |
<?php $i++; ?> | |
<?php if ($i % 2 == 0): ?> | |
<div class="clearfix visible-s*-block"></div> | |
<?php endif; ?> | |
<?php if ($i % 4 == 0): ?> | |
</div><div class="row"> | |
<?php endif; ?> | |
<?php endforeach; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment