Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <div id="main" class="ninecol last clearfix" role="main"
- <?php if (get_post_meta( 1123, 'header_image', true )) { ?>
- style="background: url(<?php the_field('header_image', 1123); ?>) left 0 no-repeat;"
- <?php } ?>
- >
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
- <header class="article-header">
- <h1 class="page-title" itemprop="headline"><?php if (is_category('Newsflash')) { ?>Newsflash
- <?php } else if (is_category('Significant Incidents')) {?>
- Significant Incidents
- <?php } else if (is_category('HVFD Headlines')) {?>
- HVFD Headlines
- <?php } else { ?>
- <?php $category = get_the_category(); echo $category[0]->cat_name; ?>
- <?php } ?>
- </h1>
- </header> <!-- end page header -->
- <?php
- if (have_posts()): ?>
- <?php
- if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
- elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
- else { $paged = 1; }
- query_posts( $query_string . '&posts_per_page=10&paged=' . $paged );
- while (have_posts()) : the_post(); ?>
- <h2 class="article-title"><a href="<?php the_permalink (); ?>"><?php the_title(); ?></a></h2>
- <section class="entry-content clearfix" itemprop="articleBody">
- <?php the_excerpt(); ?>
- </section> <!-- end article section -->
- <?php comments_template(); ?>
- <?php endwhile; else : ?>
- <!-- Add the pagination functions here. -->
- <?php if (function_exists('bones_page_navi')) { ?>
- <?php bones_page_navi(); ?>
- <?php } else { ?>
- <nav class="wp-prev-next">
- <ul class="clearfix">
- <li class="prev-link"><?php next_posts_link(__('« Older Entries', "bonestheme")) ?></li>
- <li class="next-link"><?php previous_posts_link(__('Newer Entries »', "bonestheme")) ?></li>
- </ul>
- </nav>
- <?php } ?>
- <?php endif; ?>
- </article> <!-- end article -->
- </div> <!-- end #main -->
- </div> <!-- end #inner-content -->
- </div> <!-- end #content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement