Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header();
- ?>
- <!-- Begin #colLeft -->
- <div id="colLeft">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <!-- Begin .postBox -->
- <div class="postBox">
- <div class="postBoxTop"></div>
- <div class="postBoxMid">
- <div class="postBoxMidInner first clearfix">
- <div class="date"><?php the_time('M') ?><br /><span class="day"><?php the_time('j') ?></span><br /><?php the_time('Y') ?></div>
- <div class="category"><?php the_category(' // ') ?> </div>
- <div class="postMetaSingle">
- <img src="<?php bloginfo('template_directory'); ?>/images/eye.png" alt="Views" title="views" /> <?php print_page_views(get_the_ID('')); ?> <img src="<?php bloginfo('template_directory'); ?>/images/comments_bw.png" alt="Comments" title="comments" /> <?php comments_popup_link('0', '10', '%'); ?> </div>
- <div class="latest_post_box_edge"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/latest_post_box_edge.png" alt="latest_post_box_edge" /></div>
- <div class="title"><h1><?php the_title(); ?></h1></div>
- <?php edit_post_link('<img src="http://www.zoomingjapan.com/wp-content/themes/alltuts/images/edit.gif" border="0" />'); ?>
- <?php the_content(); ?>
- <div class="pagelink"><?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?></div>
- <?php the_tags('<div class="postTags">',' ','<br /></div>'); ?>
- </div>
- <div class="postCredentials">
- <h2>Enjoyed this post?</h2>
- <!-- Social Sharing Icons -->
- <div class="social_suscribe"><div class="social">
- <h3>Share:</h3>
- <a href="http://twitter.com/home/?status=<?php the_title(); ?> : <?php the_permalink(); ?>" title="Tweet this!">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/twitter.png" alt="Tweet this!" /></a>
- <a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>" title="Share on Facebook.">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/facebook.png" alt="Share on Facebook" id="sharethis-last" /></a>
- <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="StumbleUpon.">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/stumpleupon.png" alt="StumbleUpon" /></a>
- <a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Digg this!">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/digg.png" alt="Digg This!" /></a>
- <a href="http://del.icio.us/post?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Bookmark on Delicious.">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/delicious.png" alt="Bookmark on Delicious" /></a>
- <a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Bookmark on Reddit.">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/reddit.png" alt="Bookmark on Delicious" /></a>
- <a href="http://technorati.com/signup/?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>" title="Share on Technorati.">
- <img src="<?php bloginfo('template_directory'); ?>/images/social2/technorati.png" alt="Bookmark on Delicious" /></a>
- </div>
- <!-- end Social Sharing Icons -->
- <!-- Social Suscribing -->
- <div class="suscribe"> <h3>Suscribe:</h3>
- <a href="http://www.zoomingjapan.com/feed" title="Suscribe to RSS feed"><img src="<?php bloginfo('template_directory'); ?>/images/social2/rss.png" alt="rss" /></a>
- <a href="http://www.twitter.com/zoomingjapan" title="Follow me on Twitter"><img src="<?php bloginfo('template_directory'); ?>/images/social2/twitter.png" alt="twitter" /></a>
- <a href="http://www.flickr.com/photos/zoomingjapan/" title="Always get the latest photos at my Flickr"><img src="<?php bloginfo('template_directory'); ?>/images/social2/flickr.png" alt="flickr" /></a>
- </div>
- <!-- end Social Suscribing -->
- <!-- Sweet Coffee -->
- <div class="sushi">
- <h3>Sushi:</h3>
- <a id="sushi"><img src="http://zoomingjapan.com/wp-content/themes/alltuts/images/sushi.png" alt="" /></a>
- <div class="tooltip_sushi">Do you enjoy this website? Great! It would be awesome if you could help to keep it running. It costs a lot of money and effort to keep this website alive! <img src="http://zoomingjapan.com/wp-includes/images/smilies/e%20%2826%29.gif" alt="" /> So how about inviting me to some <b>yummie sushi</b>?<br />
- Thank you so much! <img src="http://zoomingjapan.com/wp-includes/images/smilies/e%20%2811%29.gif" alt="" />
- <form style="text-align: right;" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="6SYCQGTMEWHQS"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1"></form></div>
- </div>
- <!-- end Sweet Coffee -->
- </div>
- <h2>Related Posts</h2>
- <!-- "previous page" action -->
- <a class="prev browse left"></a>
- <!-- root element for scrollable -->
- <div class="scrollable" id=chained>
- <!-- root element for the items -->
- <div class="items">
- <!-- 1-5 -->
- <div>
- <!-- Related Posts-->
- <?php
- $backup = $post;
- $tags = wp_get_post_tags($post->ID);
- if ($tags) {
- $tag_ids = array();
- foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
- $args = array(
- 'tag__in' => $tag_ids,
- 'post__not_in' => array($post->ID),
- 'posts_per_page'=> 12
- );
- $my_query = new WP_Query( $args );
- if( $my_query->have_posts() ):
- ?>
- <div class="relatedPosts">
- <?php
- while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail(array(120,80)); ?></a>
- <div class="relatedPosts_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></div></div>
- // if this is not the last post
- // and remainder of current post plus one then divided by four is zero
- // close the container and open a new one
- <?php if( $my_query->current_post != ( $my_query->post_count - 1 ) && ( ( $my_query->current_post + 1 ) % 4 ) == 0 ):
- ?>
- </div>
- <div class="relatedPosts">
- <?php
- endif;
- endwhile;
- ?>
- </div>
- <?php
- endif; ?>
- <?php
- $post = $backup;
- wp_reset_query(); ?>
- <!-- end Related Posts-->
- </div>
- <!-- 6-10 -->
- <div>
- <!-- Related Posts-->
- <!-- end Related Posts-->
- </div>
- </div>
- </div>
- <!-- "next page" action -->
- <a class="next browse right"></a>
- <br clear="all" />
- </div>
- <div class="postBoxMidInner">
- <?php comments_template(); ?>
- </div>
- </div>
- <div class="postBoxBottom"></div>
- </div>
- <?php endwhile; else: ?>
- <p>Sorry, but you are looking for something that isn't here.</p>
- <?php endif; ?>
- </div>
- <!-- End #colLeft -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment