Guest User

Untitled

a guest
Jul 30th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. <?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
  2. <?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
  3.  
  4. <div class="content single" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
  5. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6. <div class="post">
  7. <a class="sh2" href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( "Permanent Link to ", "wptouch" ); ?><?php if (function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a>
  8. <div class="single-post-meta-top"><?php echo get_the_time( __( 'M jS, Y @ h:i a', 'wptouch'
  9. ) ) ?> &rsaquo; <?php the_author() ?><br />
  10.  
  11. <!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active -->
  12. <?php if ( 'open' == $post->comment_status && bnc_can_show_comments() ) : ?>
  13. <?php if (function_exists('dsq_comments_template')) { ?>
  14. <a href="#dsq-add-new-comment">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
  15. <?php } elseif (function_exists('id_comments_template')) { ?>
  16. <a href="#idc-container-parent">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
  17. <?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?>
  18. <a href="<?php the_permalink() ?>#respond">&darr; <?php _e( "Leave a comment", "wptouch" ); ?></a>
  19. <?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?>
  20. <a href="#com-head">&darr; <?php _e( "Skip to comments", "wptouch" ); ?></a>
  21. <?php } ?>
  22. <?php endif; ?>
  23. </div>
  24. </div>
  25.  
  26. <div class="clearer"></div>
  27. <?php wptouch_include_ads(); ?>
  28.  
  29. <div class="post" id="post-<?php the_ID(); ?>">
  30. <div id="singlentry" class="<?php echo $wptouch_settings['style-text-justify']; ?>">
  31. <?php the_content(); ?>
  32. </div>
  33.  
  34. <!-- Categories and Tags post footer -->
  35.  
  36. <div class="single-post-meta-bottom">
  37. <?php wp_link_pages( 'before=<div class="post-page-nav">' . __( "Article Pages", "wptouch-pro" ) . ':&after=</div>&next_or_number=number&pagelink=page %&previouspagelink=&raquo;&nextpagelink=&laquo;' ); ?>
  38. <?php _e( "Categories", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?>
  39. <?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?>
  40. <a href="<?php the_permalink() ?>#respond"><?php _e( "Leave a comment", "wptouch" ); ?></a>
  41. </div>
  42.  
  43. <ul id="post-options">
  44. <?php $prevPost = get_previous_post(); if ($prevPost) { ?>
  45. <li><a href="<?php $prevPost = get_previous_post(false); $prevURL = get_permalink($prevPost->ID); echo $prevURL; ?>" id="oprev"></a></li>
  46. <?php } ?>
  47. <li><a href="mailto:?subject=<?php
  48. bloginfo('name'); ?>- <?php the_title_attribute();?>&body=<?php _e( "Check out this post:", "wptouch" ); ?>%20<?php the_permalink() ?>" onclick="return confirm('<?php _e( "Mail a link to this post?", "wptouch" ); ?>');" id="omail"></a></li>
  49. <?php wptouch_twitter_link(); ?>
  50. <?php wptouch_facebook_link(); ?>
  51. <li><a href="javascript:return false;" id="obook"></a></li>
  52. <?php $nextPost = get_next_post(); if ($nextPost) { ?>
  53. <li><a href="<?php $nextPost = get_next_post(false); $nextURL = get_permalink($nextPost->ID); echo $nextURL; ?>" id="onext"></a></li>
  54. <?php } ?>
  55. </ul>
  56. </div>
  57.  
  58. <div id="bookmark-box" style="display:none">
  59. <ul>
  60. <li><a href="http://del.icio.us/post?url=<?php echo get_permalink()
  61. ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/delicious.jpg" alt="" /> <?php _e( "Del.icio.us", "wptouch" ); ?></a></li>
  62. <li><a href="http://digg.com/submit?phase=2&url=<?php echo get_permalink()
  63. ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/digg.jpg" alt="" /> <?php _e( "Digg", "wptouch" ); ?></a></li>
  64. <li><a href="http://technorati.com/faves?add=<?php the_permalink() ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/technorati.jpg" alt="" /> <?php _e( "Technorati", "wptouch" ); ?></a></li>
  65. <li><a href="http://ma.gnolia.com/bookmarklet/add?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/magnolia.jpg" alt="" /> <?php _e( "Magnolia", "wptouch" ); ?></a></li>
  66. <li><a href="http://www.newsvine.com/_wine/save?popoff=0&u=<?php echo get_permalink() ?>&h=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/newsvine.jpg" target="_blank"> <?php _e( "Newsvine", "wptouch" ); ?></a></li>
  67. <li class="noborder"><a href="http://reddit.com/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/bookmarks/reddit.jpg" alt="" /> <?php _e( "Reddit", "wptouch" ); ?></a></li>
  68. </ul>
  69. </div>
  70.  
  71. <?php endwhile; ?>
  72.  
  73. <?php if (!function_exists('dsq_comments_template') && !function_exists('id_comments_template')) { ?>
  74.  
  75. <div id="call<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="ajax-load-more">
  76. <div id="spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="spin" style="display:none"></div>
  77. <a class="ajax" href="javascript:return false;" onclick="$wpt('#spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeIn(200); $wpt('#ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>').load('<?php echo get_next_posts_page_link(); ?>', {}, function(){ $wpt('#call<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeOut();});">
  78. <?php _e( "Load more entries...", "wptouch" ); ?>
  79. </a>
  80. </div>
  81. <div id="ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>"></div>
  82.  
  83. <?php } else { ?>
  84. <div class="main-navigation">
  85. <div class="alignleft">
  86. <?php previous_posts_link( __( 'Newer Entries', 'wptouch') ) ?>
  87. </div>
  88. <div class="alignright">
  89. <?php next_posts_link( __('Older Entries', 'wptouch')) ?>
  90. </div>
  91. </div>
  92. <?php } ?>
  93. </div>
  94.  
  95. <?php else : ?>
  96.  
  97. <div class="result-text-footer">
  98. <?php wptouch_core_else_text(); ?>
  99. </div>
  100.  
  101. <?php endif; ?>
  102.  
  103. <!-- Here we're establishing whether the page was loaded via Ajax or not, for dynamic purposes. If it's ajax, we're not bringing in footer.php -->
  104. <?php global $is_ajax; if (!$is_ajax) get_footer();
Add Comment
Please, Sign In to add comment