This repository was archived by the owner on Jan 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
47 lines (41 loc) · 3.66 KB
/
single.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
This is the single post template
*/
?>
<?php get_header(); ?>
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="the_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="clear"></div>
<div class="entry">
<?php the_content('Read more »'); ?>
</div>
Posted in <?php the_category(', '); ?> on <?php the_time('j F Y') ?><br />
<div class="clear"></div>
<p class="postmetadata">
<?php comments_popup_link('No Comments »', 'One Comment »', '% Comments »'); ?>
</p>
<?php the_tags(); ?>
<p class="linktous">
<a href="javascript:var notes='';if(window.getSelection)notes=window.getSelection();else if(document.getSelection)notes=document.getSelection();else if(document.selection)notes=document.selection.createRange().text;if(notes.length>350)notes=notes.substring(0,349);location.href='http://digg.com/submit?phase=3&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(notes)" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/digg.png" alt="Digg This" /> Digg This Post</a> | <a href="javascript:(function(){location.href='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&jump=yes'})()" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/delicious.png" alt="Save to del.icio.us" /> Save to del.icio.us</a> | <a href="javascript:var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1239647138&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/facebook.png" alt="Share on Facebook" /> Share on Facebook</a> | <a href="http://twitter.com/home?status=Check this out: <?php the_title(); ?> <?php bloginfo('url'); ?>/?p=<?php the_ID(); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png" alt="Send this page to Twitter" /> Tweet This</a> | <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/stumbleupon.png" alt="Stumble This" /> Stumble This</a> | <a href="<?php bloginfo('rss_url'); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/rss.png" alt="Subscribe by RSS" /> Subscribe by RSS</a>
</p>
<p><?php edit_post_link('Edit this entry','','.'); ?></p>
<div class="clear"></div>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
<div class="spacer-10"></div>
<div class="spacer-10"></div>
<div id="comments">
<?php comments_template(); ?>
</div>
</div>
<div class="spacer-10"></div>
</div>
<?php endwhile; endif; ?>
<?php get_sidebar(); ?>
<div class="clear"></div>
<?php get_footer(); ?>