Advertisement
Guest User

indexdevdm

a guest
Aug 23rd, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.04 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php get_template_part('template-part', 'head'); ?>
  4.  
  5. <?php get_template_part('template-part', 'topnav'); ?>
  6.  
  7. <!-- start content container -->
  8. <div class="row dmbs-content">
  9.  
  10.     <?php //left sidebar ?>
  11.     <?php get_sidebar( 'left' ); ?>
  12.  
  13.     <div class="col-md-<?php devdmbootstrap3_main_content_width(); ?> dmbs-main">
  14.  
  15.             <?php // theloop
  16.                 if ( have_posts() ) : while ( have_posts() ) : the_post();
  17.  
  18.                     // single post
  19.                     if ( is_single() ) : ?>
  20.  
  21.                         <div <?php post_class(); ?>>
  22.  
  23.                             <h2 class="page-header"><?php the_title() ;?></h2>
  24.  
  25.                             <?php if ( has_post_thumbnail() ) : ?>
  26.                                 <?php the_post_thumbnail(); ?>
  27.                                 <div class="clear"></div>
  28.                             <?php endif; ?>
  29.                             <?php the_content(); ?>
  30.                             <?php wp_link_pages(); ?>
  31.                             <?php get_template_part('template-part', 'postmeta'); ?>
  32.                             <?php comments_template(); ?>
  33.  
  34.                         </div>
  35.                     <?php
  36.                     // list of posts
  37.                     else : ?>
  38.                        <div <?php post_class(); ?>>
  39.  
  40.                             <h2 class="page-header">
  41.                                 <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>
  42.                             </h2>
  43.  
  44.                             <?php if ( has_post_thumbnail() ) : ?>
  45.                                <?php the_post_thumbnail(); ?>
  46.                                 <div class="clear"></div>
  47.                             <?php endif; ?>
  48.                             <?php the_content(); ?>
  49.                             <?php wp_link_pages(); ?>
  50.                             <?php get_template_part('template-part', 'postmeta'); ?>
  51.                             <?php  if ( comments_open() ) : ?>
  52.                                    <div class="clear"></div>
  53.                                   <p class="text-right">
  54.                                       <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>
  55.                                   </p>
  56.                             <?php endif; ?>
  57.                        </div>
  58.  
  59.                      <?php  endif; ?>
  60.  
  61.                 <?php endwhile; ?>
  62.                 <?php posts_nav_link(); ?>
  63.                 <?php else: ?>
  64.  
  65.                     <?php get_404_template(); ?>
  66.  
  67.             <?php endif; ?>
  68.  
  69.    </div>
  70.  
  71.    <?php //get the right sidebar ?>
  72.    <?php get_sidebar( 'right' ); ?>
  73.  
  74. </div>
  75. <!-- end content container -->
  76.  
  77. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement