Advertisement
Guest User

single.php

a guest
Dec 16th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.60 KB | None | 0 0
  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-child-theme/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 if (have_posts()) : ?>
  26.  
  27.         <?php while (have_posts()) : the_post(); ?>
  28.        
  29.         <?php $options = get_option('responsive_theme_options'); ?>
  30.         <?php if ($options['breadcrumb'] == 0): ?>
  31.         <?php echo responsive_breadcrumb_lists(); ?>
  32.         <?php endif; ?>
  33.          
  34.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  35.                 <h1 class="post-title"><?php the_title(); ?></h1>
  36.  
  37.                 <div class="post-meta">
  38.                 <?php responsive_post_meta_data(); ?>
  39.                
  40.                     <?php if ( comments_open() ) : ?>
  41.                         <span class="comments-link">
  42.                         <span class="mdash">&mdash;</span>
  43.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  44.                         </span>
  45.                     <?php endif; ?>
  46.                 </div><!-- end of .post-meta -->
  47.                                
  48.                 <div class="post-entry">
  49.                     <?php if ( has_post_thumbnail()) : ?>
  50.                         <?php the_post_thumbnail(); ?>
  51.                     <?php endif; ?>
  52.                    
  53.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  54.                    
  55.                     <?php if ( get_the_author_meta('description') != '' ) : ?>
  56.                    
  57.                     <div id="author-meta">
  58.                     <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>
  59.                         <div class="about-author"><?php _e('About','responsive'); ?> <?php the_author_posts_link(); ?></div>
  60.                         <p><?php the_author_meta('description') ?></p>
  61.                     </div><!-- end of #author-meta -->
  62.                    
  63.                     <?php endif; // no description, no author's meta ?>
  64.                    
  65.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  66.                 </div><!-- end of .post-entry -->
  67.                
  68.                 <div class="navigation">
  69.                     <div class="previous"><?php previous_post_link( '&#8249; %link' ); ?></div>
  70.                     <div class="next"><?php next_post_link( '%link &#8250;' ); ?></div>
  71.                 </div><!-- end of .navigation -->
  72.                
  73.                 <div class="post-data">
  74.                     <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  75.                     <?php printf(__('Posted in %s', 'responsive'), get_the_category_list(', ')); ?>
  76.                 </div><!-- end of .post-data -->            
  77.  
  78.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>            
  79.             </div><!-- end of #post-<?php the_ID(); ?> -->
  80.            
  81.             <?php comments_template( '', true ); ?>
  82.            
  83.         <?php endwhile; ?>
  84.  
  85.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  86.         <div class="navigation">
  87.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  88.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  89.         </div><!-- end of .navigation -->
  90.         <?php endif; ?>
  91.  
  92.         <?php else : ?>
  93.  
  94.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  95.         <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  96.         <h6><?php _e( 'You can return', 'responsive' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'responsive' ); ?>"><?php _e( '&larr; Home', 'responsive' ); ?></a> <?php _e( 'or search for the page you were looking for', 'responsive' ); ?></h6>
  97.         <?php get_search_form(); ?>
  98.  
  99. <?php endif; ?>  
  100.      
  101.         </div><!-- end of #content -->
  102.  
  103. <?php get_sidebar(); ?>
  104. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement