Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Test Front Page
- *
- * Blogroll with slider.
- *
- * @package OxygenChild
- * @subpackage Template
- */
- get_header(); // Loads the header.php template. ?>
- <?php get_template_part( 'featured-content' ); // Loads the featured-content.php template. ?>
- <div class="aside">
- <?php get_template_part( 'menu', 'secondary' ); // Loads the menu-secondary.php template. ?>
- <?php get_sidebar( 'primary' ); // Loads the sidebar-primary.php template. ?>
- </div>
- <?php do_atomic( 'before_content' ); // oxygen_before_content ?>
- <div class="content-wrap">
- <div id="content">
- <?php do_atomic( 'open_content' ); // oxygen_open_content ?>
- <div class="hfeed">
- <h4 class="section-title">Recent Articles</h4>
- <?php $args = array( 'post__not_in' => get_option( 'sticky_posts' ), 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => ( get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1 ) ); ?>
- <?php $wp_query = new WP_Query( $args ); ?>
- <?php if ( $wp_query->have_posts() ) : ?>
- <?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
- <?php do_atomic( 'before_entry' ); // oxygen_before_entry ?>
- <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
- <?php do_atomic( 'open_entry' ); // oxygen_open_entry ?>
- <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'width' => 470, 'height' => 140, 'default_image' => get_template_directory_uri() . '/images/archive-thumbnail-placeholder.gif' ) ); ?>
- <div class="entry-header">
- <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published]', hybrid_get_parent_textdomain() ) . '</div>' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'by [entry-author]', hybrid_get_parent_textdomain() ) . '</div>' ); ?>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-edit-link]', hybrid_get_parent_textdomain() ) . '</div>' ); ?>
- </div>
- <?php echo apply_atomic_shortcode( 'byline', '<div class="byline-cat">' . __( '[entry-terms taxonomy="category" before=""]', hybrid_get_parent_textdomain() ) . '</div>' ); ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', hybrid_get_parent_textdomain() ), 'after' => '</p>' ) ); ?>
- </div>
- <a class="read-more" href="<?php the_permalink(); ?>">Read Article</a>
- <?php do_atomic( 'close_entry' ); // oxygen_close_entry ?>
- </div><!-- .hentry -->
- <?php do_atomic( 'after_entry' ); // oxygen_after_entry ?>
- <?php endwhile; ?>
- <?php else : ?>
- <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
- <?php endif; ?>
- </div><!-- .hfeed -->
- <?php do_atomic( 'close_content' ); // oxygen_close_content ?>
- <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
- <?php wp_reset_postdata(); // Reset Post Data ?>
- </div><!-- #content -->
- <?php do_atomic( 'after_content' ); // oxygen_after_content ?>
- <?php get_footer(); // Loads the footer.php template. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement