Advertisement
Guest User

single for Responsive Parent

a guest
Dec 7th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 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/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 the_content(__('Read more &#8250;', 'responsive')); ?>
  50.  
  51. <?php if ( get_the_author_meta('description') != '' ) : ?>
  52.  
  53. <div id="author-meta">
  54. <?php if (function_exists('get_avatar')) { echo get_avatar( get_the_author_meta('email'), '80' ); }?>
  55. <div class="about-author"><?php _e('About','responsive'); ?> <?php the_author_posts_link(); ?></div>
  56. <p><?php the_author_meta('description') ?></p>
  57. </div><!-- end of #author-meta -->
  58.  
  59. <?php endif; // no description, no author's meta ?>
  60.  
  61. <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  62. </div><!-- end of .post-entry -->
  63.  
  64. <div class="navigation">
  65. <div class="previous"><?php previous_post_link( '&#8249; %link' ); ?></div>
  66. <div class="next"><?php next_post_link( '%link &#8250;' ); ?></div>
  67. </div><!-- end of .navigation -->
  68.  
  69. <div class="post-data">
  70. <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  71. <?php printf(__('Posted in %s', 'responsive'), get_the_category_list(', ')); ?>
  72. </div><!-- end of .post-data -->
  73.  
  74. <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
  75. </div><!-- end of #post-<?php the_ID(); ?> -->
  76.  
  77. <?php comments_template( '', true ); ?>
  78.  
  79. <?php endwhile; ?>
  80.  
  81. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  82. <div class="navigation">
  83. <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  84. <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  85. </div><!-- end of .navigation -->
  86. <?php endif; ?>
  87.  
  88. <?php else : ?>
  89.  
  90. <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  91. <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  92. <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>
  93. <?php get_search_form(); ?>
  94.  
  95. <?php endif; ?>
  96.  
  97. </div><!-- end of #content -->
  98.  
  99. <?php get_sidebar(); ?>
  100. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement