Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.29 KB | None | 0 0
  1. <?php
  2.                     $subsite = $query->subsite();
  3.                     if ($subsite){
  4.                         foreach ($subsite as $sub) {
  5.                 if( $sub->ID%2 == 1 ){
  6.                 echo <div class="row">
  7.                                 echo '<div class="school-container">';
  8.                                 echo '<div class="col-md-3 school-content-fontello"><i class="'.$sub->fontello.'"></i> </div>';
  9.                                 echo '<div class="col-md-3 school-content">';
  10.                                 echo '<a href="#'.$sub->ID.'">'.$sub->title.'</a>';
  11.                                 echo '<p>'.$sub->description.'</p>';
  12.                                 echo '</div>';
  13.                                 echo '</div>';
  14.                 echo '</div>';
  15.                              }
  16.             if( $sub->ID%2 == 0 ){
  17.                             echo '<div class="school-container">';
  18.                             echo '<div class="col-md-3 school-content-fontello"><i class="'.$sub->fontello.'"></i> </div>';
  19.                             echo '<div class="col-md-3 school-content">';
  20.                             echo '<a href="#'.$sub->ID.'">'.$sub->title.'</a>';
  21.                             echo '<p>'.$sub->description.'</p>';
  22.                             echo '</div>';
  23.                             echo '</div>';
  24.                         }
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement