forked from creativecommons/search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
45 lines (40 loc) · 1.57 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
<?php
// "Single" template will always, by definition, have a single post.
// I'm quite sure this will not change, except on opposites day, perhaps.
if ( have_posts() ) {
the_post();
} else {
require (TEMPLATEPATH . '/404.php');
exit();
}
?>
<?php get_header(); ?>
<body>
<div id="container">
<?php include 'page-nav.php'; ?>
<div id="main" role="main">
<div class="container">
<div class="twelve columns">
<div style="margin-top: 1em;"><h3><a href="/weblog">News</a></h3></div>
<div class="first row">
<?php edit_post_link("Edit This Post", '<p class="alignright edit">', '</p>'); ?>
<h1><?php the_title(); ?></h1>
<h4><?php the_author() ?>, <?php the_time('F jS, Y')?></h4>
</div>
<div class="row" id="post-<?php the_ID(); ?>">
<?php the_content(); ?>
<div class="twitter">
<?php /* FIXME: use official buttons here, include facebook */ ?>
<a href="http://twitter.com/home?status=<?php the_title() ?> - <?php the_permalink() ?> via @creativecommons">Share on Twitter</a>
<a href="http://identi.ca/?action=newnotice&status_textarea=<?php the_title() ?>%20-%20<?php the_permalink() ?>%20via%20@creativecommons">Share on Identi.ca</a>
</div>
<?php dynamic_sidebar('Single Post'); ?>
<?php if ( get_the_tags() ) { ?>
<div class="postTags"><?php the_tags(); ?></div>
<?php } ?>
<div class="comments"><?php comments_template(); ?></div>
</div>
</div><!-- end of .container -->
</div><!--! end of #main -->
</div><!--! end of #container -->
<?php get_footer(); ?>