Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** Template Name: listlistings.php
- *
- */
- get_header(); ?>
- <section id="primary" class="span8">
- <?php tha_content_before(); ?>
- <div id="content" role="main">
- <?php tha_content_top(); ?>
- <div id="wpbdmentry">
- <?php
- if(!isset($excludebuttons))
- {?>
- <div id="lco">
- <div class="title"><?php print(wpbusdirman_post_menu_button_submitlisting());?>
- <?php print(wpbusdirman_post_menu_button_directory());?></div>
- <div class="button" style="margin:0;padding:0;"></div>
- <div style="clear:both;"></div></div>
- <?php }
- include(WPBUSDIRMAN_TEMPLATES_PATH . '/wpbusdirman-template-globals.php');
- // Display featured/sticky listings
- $wpbdmisindex=1;
- include(WPBUSDIRMAN_TEMPLATES_PATH . '/wpbusdirman-sticky-loop.php');
- // Display regular listings
- $args=array(
- 'post_type' => $wpbdmposttype,
- 'post_status' => 'publish',
- 'paged'=>$paged,
- 'orderby'=>$wpbdmorderlistingsby,
- 'order'=>$wpbdmsortorderlistings,
- 'post__not_in' => $ids
- );
- query_posts($args);
- if ( have_posts() )
- { $count = 0;
- while ( have_posts() )
- {
- the_post();$count++;
- print(wpbusdirman_the_listing_title($count));
- }
- ?>
- <div class="navigation">
- <?php
- if(function_exists('wp_pagenavi'))
- {
- wp_pagenavi();
- }
- elseif(function_exists('wp_paginate'))
- {
- wp_paginate();
- }
- else
- {
- ?>
- <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
- <?php
- }
- ?>
- </div>
- <?php
- }
- else
- {
- ?>
- <p><?php _e("There were no listings found in the directory","WPBDM"); ?></p>
- <?php
- }
- wp_reset_query();
- ?>
- </div>
- <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