|
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" 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') ?> › <?php the_author() ?><br /> |
|
9 |
|
10 <!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active --> |
|
11 <?php if ('open' == $post->comment_status) : ?> |
|
12 <?php if (function_exists('dsq_comments_template')) { ?> |
|
13 <a href="#dsq-add-new-comment">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a> |
|
14 <?php } elseif (function_exists('id_comments_template')) { ?> |
|
15 <a href="#idc-container-parent">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a> |
|
16 <?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?> |
|
17 <a href="#respond">↓ <?php _e( "Leave a comment", "wptouch" ); ?></a> |
|
18 <?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?> |
|
19 <a href="#com-head">↓ <?php _e( "Skip to comments", "wptouch" ); ?></a> |
|
20 <?php } ?> |
|
21 <?php endif; ?> |
|
22 </div> |
|
23 <div class="clearer"></div> |
|
24 </div> |
|
25 |
|
26 <?php wptouch_include_adsense(); ?> |
|
27 |
|
28 <div class="post" id="post-<?php the_ID(); ?>"> |
|
29 <div id="singlentry" class="<?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>"> |
|
30 <?php the_content(); ?> |
|
31 </div> |
|
32 |
|
33 <!-- Categories and Tags post footer --> |
|
34 |
|
35 <div class="single-post-meta-bottom"> |
|
36 <?php link_pages('<div class="post-page-nav">' . __( "Article Pages", "wptouch" ) . ': ', '</div>', 'number', ' »', '« '); ?> |
|
37 <?php _e( "Categories", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?> |
|
38 <?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?> |
|
39 </div> |
|
40 |
|
41 <ul id="post-options"> |
|
42 <?php $prevPost = get_previous_post(); if ($prevPost) { ?> |
|
43 <li><a href="<?php $prevPost = get_previous_post(false); $prevURL = get_permalink($prevPost->ID); echo $prevURL; ?>" id="oprev"></a></li> |
|
44 <?php } ?> |
|
45 <li><a href="mailto:?subject=<?php |
|
46 bloginfo('name'); ?>- <?php the_title();?>&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> |
|
47 <?php wptouch_twitter_link(); // This detects if it's an Apple mobile device or not and serves up the right Twitter link ?> |
|
48 <li><a href="javascript:return false;" onclick="wptouch_toggle_bookmarks();" id="obook"></a></li> |
|
49 <?php $nextPost = get_next_post(); if ($nextPost) { ?> |
|
50 <li><a href="<?php $nextPost = get_next_post(false); $nextURL = get_permalink($nextPost->ID); echo $nextURL; ?>" id="onext"></a></li> |
|
51 <?php } ?> |
|
52 </ul> |
|
53 </div> |
|
54 |
|
55 <div id="twitter-box" style="display:none"> |
|
56 <ul> |
|
57 <li><a href="javascript:return false;" onclick="window.location='tweetie:'+window.location"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/tweetie.png" alt="tweetie" /> <?php _e( "Post to Tweetie", "wptouch" ); ?></a></li> |
|
58 <li><a href="javascript:return false;" onclick="window.location='twitterrific:///post?message='+escape(window.location)"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/twitteriffic.png" alt="twitteriffic" /> <?php _e( "Post to Twitteriffic", "wptouch" ); ?></a></li> |
|
59 <li><a href="javascript:return false;" onclick="window.location='twit:'+window.location"><img src="<?php echo compat_get_plugin_url( 'wptouch' ); ?>/themes/core/core-images/twitter/twittelator.png" alt="twittelator" /> <?php _e( "Post to Twittelator Pro", "wptouch" ); ?></a></li> |
|
60 </ul> |
|
61 </div> |
|
62 |
|
63 <div id="bookmark-box" style="display:none"> |
|
64 <ul> |
|
65 <li><a href="http://del.icio.us/post?url=<?php echo get_permalink() |
|
66 ?>&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> |
|
67 <li><a href="http://digg.com/submit?phase=2&url=<?php echo get_permalink() |
|
68 ?>&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> |
|
69 <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> |
|
70 <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> |
|
71 <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> |
|
72 <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> |
|
73 </ul> |
|
74 </div> |
|
75 |
|
76 <!-- Let's rock the comments --> |
|
77 |
|
78 <?php comments_template(); ?> |
|
79 |
|
80 <?php endwhile; else : ?> |
|
81 |
|
82 <!-- Dynamic test for what page this is. A little redundant, but so what? --> |
|
83 |
|
84 <div class="result-text-footer"> |
|
85 <?php wptouch_core_else_text(); ?> |
|
86 </div> |
|
87 |
|
88 <?php endif; ?> |
|
89 </div> |
|
90 |
|
91 <!-- Do the footer things --> |
|
92 |
|
93 <?php global $is_ajax; if (!$is_ajax) get_footer(); ?> |