Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: single-listing.php
- *
- * @author Konstantin Obenland
- * @package The Bootstrap
- * @since 1.0.0 - 05.02.2012
- */
- get_header(); ?>
- <section id="primary" class="span8">
- <?php tha_content_before(); ?>
- <div id="content" role="main">
- <?php //query_posts( 'post_type=listing' ); ?>
- <?php tha_content_top();
- while ( have_posts() ) {
- the_post();
- tha_entry_before(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <?php tha_entry_top(); ?>
- <header class="page-header">
- <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
- <div class="entry-meta"><?php the_bootstrap_posted_on(); ?></div><!-- .entry-meta -->
- </header><!-- .entry-header -->
- <div class="entry-content clearfix">
- <?php
- the_content();
- the_bootstrap_link_pages(); ?>
- </div><!-- .entry-content -->
- <footer class="entry-footer">
- <?php
- $categories_list = get_the_category_list( _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
- $tags_list = get_the_tag_list( '', _x( ', ', 'used between list items, there is a space after the comma', 'the-bootstrap' ) );
- if ( $categories_list )
- printf( '<span class="cat-links block">' . __( 'Posted in %1$s.', 'the-bootstrap' ) . '</span>', $categories_list );
- if ( $tags_list )
- printf( '<span class="tag-links block">' . __( 'Tagged %1$s.', 'the-bootstrap' ) . '</span>', $tags_list );
- ?>
- </footer><!-- .entry-footer -->
- <?php tha_entry_bottom(); ?>
- </article><!-- #post-<?php the_ID(); ?> -->
- <?php tha_entry_after();
- 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 ?>
- <aside id="author-info" class="row">
- <h2 class="span8"><?php printf( __( 'About %s', 'the-bootstrap' ), get_the_author() ); ?></h2>
- <div id="author-avatar" class="span1">
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'the_bootstrap_author_bio_avatar_size', 70 ) ); ?>
- </div><!-- #author-avatar -->
- <div id="author-description" class="span7">
- <?php the_author_meta( 'description' ); ?>
- <div id="author-link">
- <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
- <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'the-bootstrap' ), get_the_author() ); ?>
- </a>
- </div><!-- #author-link -->
- </div><!-- #author-description -->
- </aside><!-- #author-info -->
- <?php endif;
- /* End of file content-single.php */
- /* Location: ./wp-content/themes/the-bootstrap/partials/content-single.php */
- comments_template();
- } ?>
- <nav id="nav-single" class="pager">
- <h3 class="assistive-text"><?php _e( 'Post navigation', 'the-bootstrap' ); ?></h3>
- <span class="next"><?php next_post_link( '%link', sprintf( '%1$s <span class="meta-nav">→</span>', __( 'Next Post', 'the-bootstrap' ) ) ); ?></span>
- <span class="previous"><?php previous_post_link( '%link', sprintf( '<span class="meta-nav">←</span> %1$s', __( 'Previous Post', 'the-bootstrap' ) ) ); ?></span>
- </nav><!-- #nav-single -->
- <?php tha_content_bottom(); ?>
- <div class="google">
- <script type="text/javascript"><!--
- google_ad_client = "ca-pub-7807678894997074";
- /* Page Ad */
- google_ad_slot = "2651375015";
- google_ad_width = 728;
- google_ad_height = 90;
- //-->
- </script>
- <script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
- </script>
- </div>
- </div><!-- #content -->
- <?php tha_content_after(); ?>
- </section><!-- #primary -->
- <?php
- get_sidebar();
- get_footer();
- /* End of file index.php */
- /* Location: ./wp-content/themes/the-bootstrap/single.php */
Advertisement
Add Comment
Please, Sign In to add comment