11 |
eval(()) |
/modules/cms/classes/cms_controller.php |
388 |
10 |
Cms_Controller->evalWithException('?><?
$posts = $posts->find_all();
$paginate = true;
$remove_ajax = true;
$partial = "blog-posts=blog:posts";
$records_per_page = post('records_per_page', 16);
$pagination_base_url = root_url('news/category/'.$this->request_param(0));
$page_index = post('index', ($this->request_param(-1) -1));
$pagination = $posts->paginate($page_index, $records_per_page);
$total_records = intval($pagination->getRowCount());
if (! $total_records) {
$paginate = false;
$pagination = null;
}
$posts = $posts->find_all();
?>
<div class="blog">
<div class="blog-lead owl-carousel owl-theme">
<? if($posts):?>
<?
$leadcount=0;
foreach($posts as $post):
?>
<div class="blogpost item" <? if($post->featuredimages[0]): ?>style="background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),url(<?= $post->featuredimages[0]->getThumbnailPath('auto', 'auto', false); ?>);"<? endif;?>>
<div class="container">
<div class="blogpost-inner">
<div class="row">
<div class="blogcontent col-xs-24 col-sm-20 col-sm-offset-2 col-md-16 col-md-offset-4 text-center">
<? foreach($post->categories as $i=>$category): ?>
<a class="blogcat" href="<?= root_url('news/category/'.$category->url_name); ?>"><?= $category->name; ?></a>
<?= $i == $post->categories->count - 1 ? '' : ', '; ?>
<? endforeach; ?>
<h3 class="blogtitle"><a href="<?= root_url('news/post/'.$post->url_title); ?>"><?= h($post->title); ?></a></h3>
<div class="blogfooter">
<a class="btn btn-primary" href="<?= root_url('news/post/'.$post->url_title); ?>">Read Article</a>
</div>
</div>
</div>
</div>
</div>
</div>
<? if (++$leadcount == 5) break; ?>
<? endforeach; ?>
<? endif; ?>
</div>
<div class="blog-categories">
<ul class="list-unstyled">
<li><a href="/news">All</a></li>
<?
$categories = Blog_Category::create()->find_all();
foreach ($categories as $category):
?>
<li>
<a href="<?= root_url('news/category/'.$category->url_name); ?>">
<?= $category->name ?>
</a>
</li>
<? endforeach ?>
</ul>
</div>
<div class="container wide post-list">
<div class="row">
<? foreach ($posts as $post): ?>
<div class="col-xs-24 col-sm-12 col-md-8 col-lg-6">
<div class="post">
<a href="<?= root_url('news/post/'.$post->url_title); ?>" class="blogimage" style="background-image: url(<?= $post->featuredimages[0]->getThumbnailPath('auto', 'auto', false); ?>);"></a>
<div class="blog-content">
<div class="blogcat-container">
<? foreach($post->categories as $i=>$category): ?>
<a class="blogcat" href="<?= root_url('news/category/'.$category->url_name); ?>"><?= $category->name; ?></a>
<?= $i == $post->categories->count - 1 ? '' : ', '; ?>
<? endforeach; ?>
</div>
<h3 class="blogtitle h3"><a href="<?= root_url('news/post/'.$post->url_title); ?>"><?= h($post->title); ?></a></h3>
<p class="blogshortdesc"><?= h($post->description); ?></p>
</div>
<div class="blogfooter">
<span class="link" href="<?= root_url('news/post/'.$post->url_title); ?>">Posted <?= $post->published_date->format('%d %b %Y') ?></span>
<? $this->render_partial('blog:share_this', array(
'post'=>$post,
'page_title'=>$post->title,
'page_url'=>root_url('blog/post/'.$post->url_title,true)
));
?>
</div>
</div>
</div>
<? endforeach ?>
</div>
<? if ($paginate): ?>
<div class="pagination-container text-center">
<?
$this->render_partial('pagination', array(
'partial'=> $partial,
'pagination'=> $pagination,
'page_index'=> $page_index,
'remove_ajax' => $remove_ajax,
'total_records'=> $total_records,
'base_url'=> $pagination_base_url,
'records_per_page'=> $records_per_page,
));
?>
</div><!-- /.pagination-container -->
<? endif; ?>
</div>
</div>', 'CMS page', 'News Category') |
/modules/cms/classes/cms_controller.php |
628 |
9 |
Cms_Controller->eval_page_content(()) |
/modules/cms/classes/cms_controller.php |
202 |
8 |
Cms_Controller->open(object(Cms_Page), array(1) [0 => 'marketing']) |
/controllers/application.php |
72 |
7 |
Application->On404(()) |
/phproad/modules/phpr/classes/phpr_controller.php |
170 |
6 |
Phpr_Controller->executeAction('On404', array(0)) |
/phproad/modules/phpr/classes/phpr_controller.php |
84 |
5 |
Phpr_Controller->_run('On404', array(0)) |
/phproad/modules/phpr/classes/phpr_response.php |
64 |
4 |
Phpr_Response->open404(()) |
/phproad/modules/phpr/classes/phpr_response.php |
37 |
3 |
Phpr_Response->open('/news/category/marketing') |
/phproad/system/phproad.php |
31 |
2 |
include('/var/www/vhosts/datumproducts.com/httpdocs/phproad/system/phproad.php') |
/boot.php |
114 |
1 |
require_once('/var/www/vhosts/datumproducts.com/httpdocs/boot.php') |
/index.php |
3 |