martcol

single-listing.php

Apr 12th, 2013
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.78 KB | None | 0 0
  1. <?php
  2. /**
  3.  
  4.  * Template Name: single-listing.php
  5.  *
  6.  * @author      Konstantin Obenland
  7.  * @package     The Bootstrap
  8.  * @since       1.0.0 - 05.02.2012
  9.  */
  10.  
  11. get_header(); ?>
  12.  
  13. <section id="primary" class="span8">   
  14.     <?php tha_content_before(); ?>
  15.     <div id="content" role="main">
  16.    
  17.         <?php //query_posts( 'post_type=listing' ); ?>
  18. <?php tha_content_top();
  19.  
  20.     while ( have_posts() ) {
  21.             the_post();
  22.  
  23.  
  24.  
  25. tha_entry_before(); ?>
  26. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  27.     <?php tha_entry_top(); ?>
  28.    
  29.     <header class="page-header">
  30.         <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  31.         <div class="entry-meta"><?php the_bootstrap_posted_on(); ?></div><!-- .entry-meta -->
  32.     </header><!-- .entry-header -->
  33.  
  34.     <div class="entry-content clearfix">
  35.         <?php
  36.         the_content();
  37.         the_bootstrap_link_pages(); ?>
  38.     </div><!-- .entry-content -->
  39.  
  40.     <footer class="entry-footer">
  41.         <?php
  42.         $categories_list = get_the_category_list( _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
  43.         $tags_list = get_the_tag_list( '', _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
  44.        
  45.         if ( $categories_list )
  46.             printf( '<span class="cat-links block">' . __( 'Posted in %1$s.', 'the-bootstrap' ) . '</span>', $categories_list );
  47.         if ( $tags_list )
  48.             printf( '<span class="tag-links block">' . __( 'Tagged %1$s.', 'the-bootstrap' ) . '</span>', $tags_list );
  49.         ?>
  50.     </footer><!-- .entry-footer -->
  51.    
  52.     <?php tha_entry_bottom(); ?>
  53. </article><!-- #post-<?php the_ID(); ?> -->
  54. <?php tha_entry_after();
  55.  
  56. if ( get_the_author_meta( 'description' ) AND is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  57. <aside id="author-info" class="row">
  58.     <h2 class="span8"><?php printf( __( 'About %s', 'the-bootstrap' ), get_the_author() ); ?></h2>
  59.     <div id="author-avatar" class="span1">
  60.         <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'the_bootstrap_author_bio_avatar_size', 70 ) ); ?>
  61.     </div><!-- #author-avatar -->
  62.     <div id="author-description" class="span7">
  63.         <?php the_author_meta( 'description' ); ?>
  64.         <div id="author-link">
  65.             <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
  66.                 <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'the-bootstrap' ), get_the_author() ); ?>
  67.             </a>
  68.         </div><!-- #author-link -->
  69.     </div><!-- #author-description -->
  70. </aside><!-- #author-info -->
  71. <?php endif;
  72.  
  73.  
  74. /* End of file content-single.php */
  75. /* Location: ./wp-content/themes/the-bootstrap/partials/content-single.php */
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.             comments_template();
  85.         } ?>
  86.        
  87.         <nav id="nav-single" class="pager">
  88.             <h3 class="assistive-text"><?php _e( 'Post navigation', 'the-bootstrap' ); ?></h3>
  89.             <span class="next"><?php next_post_link( '%link', sprintf( '%1$s <span class="meta-nav">&rarr;</span>', __( 'Next Post', 'the-bootstrap' ) ) ); ?></span>
  90.             <span class="previous"><?php previous_post_link( '%link', sprintf( '<span class="meta-nav">&larr;</span> %1$s', __( 'Previous Post', 'the-bootstrap' ) ) ); ?></span>
  91.         </nav><!-- #nav-single -->
  92.        
  93.         <?php tha_content_bottom(); ?>
  94.         <div class="google">
  95.         <script type="text/javascript"><!--
  96. google_ad_client = "ca-pub-7807678894997074";
  97. /* Page Ad */
  98. google_ad_slot = "2651375015";
  99. google_ad_width = 728;
  100. google_ad_height = 90;
  101. //-->
  102. </script>
  103. <script type="text/javascript"
  104. src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  105. </script>
  106.         </div>
  107.  
  108.     </div><!-- #content -->
  109.     <?php tha_content_after(); ?>
  110. </section><!-- #primary -->
  111.  
  112. <?php
  113. get_sidebar();
  114. get_footer();
  115.  
  116.  
  117. /* End of file index.php */
  118. /* Location: ./wp-content/themes/the-bootstrap/single.php */
Advertisement
Add Comment
Please, Sign In to add comment