Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $options = get_option('playbook'); ?>
- <?php get_header(); ?>
- <div id="page">
- <div class="content">
- <article class="article">
- <div id="content_box">
- <h1 class="homesep">Latest Blog Posts</h1>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post excerpt <?php echo (++$j % 2 == 0) ? 'last' : ''; ?>">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" id="featured-thumbnail">
- <?php if ( has_category_title() ) { ?>
- <?php echo '<div class="category-ttitle">';?>
- <?php if ( has_post_thumbnail() ) { ?>
- <?php echo '<div class="featured-thumbnail">'; the_post_thumbnail('featured',array('title' => '')); echo '</div>'; ?>
- <?php } else { ?>
- <div class="featured-thumbnail">
- <?php echo adrotate_group(32); ?>
- </div>
- <?php } ?>
- </a>
- <header>
- <h2 class="title">
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
- </h2>
- </header><!--.header-->
- <div class="post-content image-caption-format-1">
- <?php echo excerpt(17);?>
- </div>
- <div style="display:none" class="readMore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php _e('Read More','mythemeshop'); ?></a></div>
- </div><!--.post excerpt-->
- <?php endwhile; else: ?>
- <div class="post excerpt">
- <div class="no-results">
- <p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p>
- <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p>
- <?php get_search_form(); ?>
- </div><!--noResults-->
- </div>
- <?php endif; ?>
- <?php if ($options['mts_pagenavigation'] == '1') { ?>
- <?php pagination($additional_loop->max_num_pages);?>
- <?php } else { ?>
- <div class="pnavigation2">
- <div class="nav-previous"><?php next_posts_link( __( '← '.'Older posts', 'mythemeshop' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' →', 'mythemeshop' ) ); ?></div>
- </div>
- <?php } ?>
- </div>
- <!-- Inner Page Content Widgets -->
- <?php dynamic_sidebar('Inner Content Widgets'); ?>
- </article>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement