Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
- <?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
- <div class="content single" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post">
- <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>
- <div class="single-post-meta-top"><?php echo get_the_time( __( 'M jS, Y @ h:i a', 'wptouch'
- ) ) ?> › <?php the_author() ?><br />
- <!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active -->
- <?php if ( 'open' == $post->comment_status && bnc_can_show_comments() ) : ?>
- <?php if (function_exists('dsq_comments_template')) { ?>
- <a href="#dsq-add-new-comment">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a>
- <?php } elseif (function_exists('id_comments_template')) { ?>
- <a href="#idc-container-parent">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a>
- <?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?>
- <a href="<?php the_permalink() ?>#respond">↓ <?php _e( "Leave a comment", "wptouch" ); ?></a>
- <?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?>
- <a href="#com-head">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a>
- <?php } ?>
- <?php endif; ?>
- </div>
- </div>
- <div class="clearer"></div>
- <?php wptouch_include_ads(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <div id="singlentry" class="<?php echo $wptouch_settings['style-text-justify']; ?>">
- <?php the_content(); ?>
- </div>
- <!-- Categories and Tags post footer -->
- <div class="single-post-meta-bottom">
- <?php wp_link_pages( 'before=<div class="post-page-nav">' . __( "Article Pages", "wptouch-pro" ) . ':&after=</div>&next_or_number=number&pagelink=page %&previouspagelink=»&nextpagelink=«' ); ?>
- <?php _e( "Categories", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?>
- <?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?>
- <a href="<?php the_permalink() ?>#respond"><?php _e( "Leave a comment", "wptouch" ); ?></a>
- </div>
- <ul id="post-options">
- <?php $prevPost = get_previous_post(); if ($prevPost) { ?>
- <li><a href="<?php $prevPost = get_previous_post(false); $prevURL = get_permalink($prevPost->ID); echo $prevURL; ?>" id="oprev"></a></li>
- <?php } ?>
- <li><a href="mailto:?subject=<?php
- 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>
- <?php wptouch_twitter_link(); ?>
- <?php wptouch_facebook_link(); ?>
- <li><a href="javascript:return false;" id="obook"></a></li>
- <?php $nextPost = get_next_post(); if ($nextPost) { ?>
- <li><a href="<?php $nextPost = get_next_post(false); $nextURL = get_permalink($nextPost->ID); echo $nextURL; ?>" id="onext"></a></li>
- <?php } ?>
- </ul>
- </div>
- <div id="bookmark-box" style="display:none">
- <ul>
- <li><a href="http://del.icio.us/post?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/delicious.jpg" alt="" /> <?php _e( "Del.icio.us", "wptouch" ); ?></a></li>
- <li><a href="http://digg.com/submit?phase=2&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/digg.jpg" alt="" /> <?php _e( "Digg", "wptouch" ); ?></a></li>
- <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>
- <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>
- <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>
- <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>
- </ul>
- </div>
- <?php endwhile; ?>
- <?php if (!function_exists('dsq_comments_template') && !function_exists('id_comments_template')) { ?>
- <div id="call<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="ajax-load-more">
- <div id="spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="spin" style="display:none"></div>
- <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();});">
- <?php _e( "Load more entries...", "wptouch" ); ?>
- </a>
- </div>
- <div id="ajaxentries<?php echo md5($_SERVER['REQUEST_URI']); ?>"></div>
- <?php } else { ?>
- <div class="main-navigation">
- <div class="alignleft">
- <?php previous_posts_link( __( 'Newer Entries', 'wptouch') ) ?>
- </div>
- <div class="alignright">
- <?php next_posts_link( __('Older Entries', 'wptouch')) ?>
- </div>
- </div>
- <?php } ?>
- </div>
- <?php else : ?>
- <div class="result-text-footer">
- <?php wptouch_core_else_text(); ?>
- </div>
- <?php endif; ?>
- <!-- 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 -->
- <?php global $is_ajax; if (!$is_ajax) get_footer();
Add Comment
Please, Sign In to add comment