<?php get_breads(); ?> </div> </div> </div> </section> <section class="content blog"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-8 col-lg-8"> <div class="blog_medium"> <?php if (have_blog_posts() !== false) { while ($post = get_blog_posts()) { $full_date = $this->instance->date->time($post->timestamp, TRUE); $date = $this->instance->date->time($post->timestamp); // loop_categories($post->categories); ?> <article class="post"> <div class="post_date"> <span class="day"><?php echo riake('d', $full_date); ?> </span> <span class="month"><?php echo riake('m', $full_date); ?> </span> </div>
<?php db_include('get_blog_posts', 'get_max_and_min_blog_post'); $offset = isset($_GET['page']) ? $_GET['page'] : 0; $prev = $offset - 1; $next = $offset + 1; $max_min = get_max_and_min_blog_post(); $all_max = $max_min['max']; $all_min = $max_min['min']; $blog_posts = get_blog_posts(7, $offset); ?> <!doctype html> <html> <head> <meta charset="utf-8" /> <title>Under the Couch</title> <link rel="stylesheet" type="text/css" href="/styles.css" /> </head> <body> <?php ui_insert('header'); ?> <div class="container"> <?php ui_insert('sidebar'); ?> <div class="primary">
function blog() { set_query_var('blog_posts', get_blog_posts()); partial('blog'); }