Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 7th, 2012  |  syntax: None  |  size: 4.00 KB  |  views: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Single Posts Template
  8.  *
  9.  *
  10.  * @file           single.php
  11.  * @package        Responsive
  12.  * @author         Emil Uzelac
  13.  * @copyright      2003 - 2012 ThemeID
  14.  * @license        license.txt
  15.  * @version        Release: 1.0
  16.  * @filesource     wp-content/themes/responsive/single.php
  17.  * @link           http://codex.wordpress.org/Theme_Development#Single_Post_.28single.php.29
  18.  * @since          available since Release 1.0
  19.  */
  20. ?>
  21. <?php get_header(); ?>
  22.  
  23.         <div id="content" class="grid col-620">
  24.        
  25.                 <?php while (have_posts()) : the_post(); ?>
  26.        
  27.         <?php $options = get_option('responsive_theme_options'); ?>
  28.                 <?php if ($options['breadcrumb'] == 0): ?>
  29.                 <?php echo responsive_breadcrumb_lists(); ?>
  30.         <?php endif; ?>
  31.          
  32.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  33.                 <h1 class="post-title"><?php the_title(); ?></h1>
  34.  
  35.                 <div class="post-meta">
  36.                 <?php responsive_post_meta_data(); ?>
  37.                
  38.                                     <?php if ( comments_open() ) : ?>
  39.                         <span class="comments-link">
  40.                         <span class="mdash">&mdash;</span>
  41.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  42.                         </span>
  43.                     <?php endif; ?>
  44.                 </div><!-- end of .post-meta -->
  45.                                
  46.                 <div class="post-entry">
  47.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  48.                    
  49.                 </div><!-- end of .post-entry -->      
  50.  
  51.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>            
  52.             </div><!-- end of #post-<?php the_ID(); ?> -->
  53.  
  54.         <?php endwhile; ?>
  55.        
  56.        
  57. <?php
  58. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  59. // Find connected pages
  60. $connected = new WP_Query( array(
  61.   'connected_type' => 'workout',
  62.   'connected_items' => get_queried_object(),
  63.   'nopaging' => true,
  64.   'orderby' => 'title',
  65.   'order' => 'ASC',
  66.   'paged' => $paged
  67. ) );
  68.  
  69. // Display connected pages
  70.  
  71. ?>
  72.  
  73.                 <?php while ($connected->have_posts()) : $connected->the_post(); ?>
  74.                  
  75.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  76.                 <h1 class="post-title"><?php the_title(); ?></h1>
  77.  
  78.                 <div class="post-meta">
  79.                 <?php responsive_post_meta_data(); ?>
  80.                
  81.                                     <?php if ( comments_open() ) : ?>
  82.                         <span class="comments-link">
  83.                         <span class="mdash">&mdash;</span>
  84.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  85.                         </span>
  86.                     <?php endif; ?>
  87.                 </div><!-- end of .post-meta -->
  88.                                
  89.                 <div class="post-entry">
  90.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  91.                 </div><!-- end of .post-entry -->                        
  92.  
  93.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>            
  94.             </div><!-- end of #post-<?php the_ID(); ?> -->
  95.            
  96.                        
  97.            
  98.         <?php endwhile; ?>
  99.  
  100.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  101.         <div class="navigation">
  102.                         <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  103.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  104.                 </div><!-- end of .navigation -->
  105.         <?php endif; ?>
  106.      
  107.         </div><!-- end of #content -->
  108.  
  109. <?php get_sidebar(); ?>
  110. <?php get_footer(); ?>