Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $introcount = count($this->intro_items);
- $counter = 0;
- ?>
- <?php if (!empty($this->intro_items)) : ?>
- <?php foreach ($this->intro_items as $key => &$item) : ?>
- <?php $rowcount = ((int) $key % (int) $this->columns) + 1; ?>
- <?php if ($rowcount === 1) : ?>
- <?php $row = $counter / $this->columns; ?>
- <div class="items-row cols-<?php echo (int) $this->columns; ?> <?php echo 'row-' . $row; ?> row-fluid clearfix">
- <?php endif; ?>
- <div class="span<?php echo round(12 / $this->columns); ?>">
- <div class="item column-<?php echo $rowcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
- itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
- <?php
- $this->item = &$item;
- echo $this->loadTemplate('item');
- ?>
- </div>
- <!-- end item -->
- <?php $counter++; ?>
- </div><!-- end span -->
- <?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>
- </div><!-- end row -->
- <?php endif; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php
- $introcount = count($this->intro_items);
- $counter = 0;
- ?>
- <?php if (!empty($this->intro_items)) : ?>
- <?php foreach ($this->intro_items as $key => &$item) : ?>
- <?php $rowcount = ((int) $key % (int) $this->columns) + 1; ?>
- <?php if ($rowcount === 1) : ?>
- <?php $row = $counter / $this->columns; ?>
- <div class="items-row cols-<?php echo (int) $this->columns; ?> <?php echo 'row-' . $row; ?> row-fluid clearfix">
- <?php endif; ?>
- <?php if ($row != 2) : ?>
- <div class="span<?php echo round(12 / $this->columns); ?>">
- <div class="item column-<?php echo $rowcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
- itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
- <?php
- $this->item = &$item;
- echo $this->loadTemplate('item');
- ?>
- </div>
- <?php endif; ?>
- <?php if ($row === 2) : ?>
- <div class="span<?php echo round(12 / $this->columns); ?>">
- <div class="item column-<?php echo $rowcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>"
- itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
- <?php
- $this->item = &$item;
- echo $this->loadTemplate('item');
- ?>
- <!-- mobile ad banner zone -->
- <div class="cat-banner bannerzonepadding visible-phone">
- <script type="text/javascript" language="javascript" src="http://myadsrc.demo"></script>
- </div>
- </div>
- <?php endif; ?>
- <!-- end item -->
- <?php $counter++; ?>
- </div><!-- end span -->
- <?php if (($rowcount == $this->columns) or ($counter == $introcount)) : ?>
- </div><!-- end row -->
- <?php endif; ?>
- <?php endforeach; ?>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment