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">
- <?php // theloop
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- // single post
- if ( is_single() ) : ?>
- <div <?php post_class(); ?>>
- <h2 class="page-header"><?php the_title() ;?></h2>
- <?php if ( has_post_thumbnail() ) : ?>
- <?php the_post_thumbnail(); ?>
- <div class="clear"></div>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php wp_link_pages(); ?>
- <?php get_template_part('template-part', 'postmeta'); ?>
- <?php comments_template(); ?>
- </div>
- <?php
- // list of posts
- else : ?>
- <div <?php post_class(); ?>>
- <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 ( has_post_thumbnail() ) : ?>
- <?php the_post_thumbnail(); ?>
- <div class="clear"></div>
- <?php endif; ?>
- <?php the_content(); ?>
- <?php wp_link_pages(); ?>
- <?php get_template_part('template-part', 'postmeta'); ?>
- <?php if ( comments_open() ) : ?>
- <div class="clear"></div>
- <p class="text-right">
- <a class="btn btn-success" href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Leave a Comment','devdmbootstrap3'), __('One Comment','devdmbootstrap3'), '%' . __(' Comments','devdmbootstrap3') );?> <span class="glyphicon glyphicon-comment"></span></a>
- </p>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php endwhile; ?>
- <?php posts_nav_link(); ?>
- <?php else: ?>
- <?php get_404_template(); ?>
- <?php endif; ?>
- </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