Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $subsite = $query->subsite();
- if ($subsite){
- foreach ($subsite as $sub) {
- if( $sub->ID%2 == 1 ){
- echo <div class="row">
- echo '<div class="school-container">';
- echo '<div class="col-md-3 school-content-fontello"><i class="'.$sub->fontello.'"></i> </div>';
- echo '<div class="col-md-3 school-content">';
- echo '<a href="#'.$sub->ID.'">'.$sub->title.'</a>';
- echo '<p>'.$sub->description.'</p>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- }
- if( $sub->ID%2 == 0 ){
- echo '<div class="school-container">';
- echo '<div class="col-md-3 school-content-fontello"><i class="'.$sub->fontello.'"></i> </div>';
- echo '<div class="col-md-3 school-content">';
- echo '<a href="#'.$sub->ID.'">'.$sub->title.'</a>';
- echo '<p>'.$sub->description.'</p>';
- echo '</div>';
- echo '</div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement