Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php get_template_part('template-part', 'head'); ?>
- <?php get_template_part('template-part', 'topnav'); ?>
- <!-- start content container -->
- <div class="row dmbs-content">
- <?php //left sidebar ?>
- <?php get_sidebar( 'left' ); ?>
- <div class="col-md-<?php devdmbootstrap3_main_content_width(); ?> dmbs-main">
- <!-- any code included here occurs before the wordpress loop and is always displayed -->
- <?php if (have_posts()) : ?>
- <?php $count = 0; ?>
- <!-- If there are posts to display, set the count to zero and begin the loop
- if there are posts to display, process any code included here only once
- display any code output from this region above the entire set of posts -->
- <?php while (have_posts()) : the_post(); ?>
- <?php $count++; ?>
- <div <?php post_class(); ?>>
- <!-- for each post, increase the count variable by one and process any code included here
- the output of any code included here will be displayed above the content of every post -->
- <h2 class="page-header">
- <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'devdmbootstrap3' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
- </h2>
- <?php if ($count == 1) : ?>
- <!-- if this is the first post, process any code that is specified in this region
- process any code specified in this region before the content of the first post -->
- <?php the_content(); ?> <!-- display the full content of the first post only -->
- <!-- process any code specified in this region after the content of the first post -->
- <?php else : ?>
- <!-- if this is not the first post, process any code specified in this region
- process any code specified in this region before the content of each post -->
- <div id="container" class="js-masonry"
- data-masonry-options='{ "columnWidth": 200, "itemSelector": ".item" }'>
- <div class="item">
- <?php the_excerpt(); ?> <!-- display only the excerpt for all other posts -->
- </div>
- </div>
- <!-- for all posts except the first, process this code below each post -->
- <?php endif; ?>
- <!-- Post Meta info -->
- <p class="text-right">
- <span class="glyphicon glyphicon-user"></span> <?php the_author_posts_link(); ?>
- <span class="glyphicon glyphicon-time"></span> <?php the_time('F jS, Y'); ?>
- <span class="glyphicon glyphicon-edit"></span> <?php edit_post_link(__('Edit','devdmbootstrap3')); ?>
- </p>
- </div>
- <!-- for each post, including the first, process any code included here
- any code output will be displayed below the content of every post -->
- <?php endwhile; ?>
- <!-- stop the post loop and process any code included here only once
- any code output will be displayed below the entire set of posts -->
- <h4><?php posts_nav_link() ?><?php previous_post_link(); ?> •
- <?php posts_nav_link() ?><?php next_post_link(); ?></h4>
- <?php else : ?>
- <!-- if there are no posts to display, process any code that is included here
- the output of any code included here will be displayed instead of posts -->
- <p>Sorry, no posts matched your criteria.</p>
- <?php endif; ?>
- <!-- any code included here occurs after the wordpress loop and is always displayed -->
- </div>
- <?php //get the right sidebar ?>
- <?php get_sidebar( 'right' ); ?>
- </div>
- <!-- end content container -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement