-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·89 lines (55 loc) · 2.17 KB
/
single.php
File metadata and controls
executable file
·89 lines (55 loc) · 2.17 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
/*
Single
Establishes the single post template.
Copyright (C) 2011 CyberChimps
*/
/* Call globals. */
global $themename, $themeslug, $options;
/* End globals. */
/* Define variables. */
$showfblike = $options[$themeslug.'_show_fb_like'];
$showgplus = $options[$themeslug.'_show_gplus'];
/* End variable definition. */
get_header(); ?>
<div id="content_wrap">
<div id="content_left">
<div class="content_padding">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post_container">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2 class="posts_title"><?php the_title(); ?></h2>
<?php get_template_part ('meta', 'single'); ?>
<div class="entry">
<?php the_content(); ?>
</div><!--end entry-->
<div style="clear:both;"></div>
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
<?php if ($showgplus == "1"):?>
<div class="gplusone" >
<g:plusone size="standard" count="true"></g:plusone>
</div >
<?php endif;?>
<?php if ($showfblike == "1" ):?>
<div class="fb" >
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:530px; height:28px"></iframe>
</div>
<?php endif;?>
<!--end fb-->
<div class="tags">
<?php the_tags('Tags: ', ', ', '<br />'); ?>
</div><!--end tags-->
<div class="postmetadata">
<?php get_template_part ('share', 'single' ); ?>
</div><!--end postmetadata-->
</div><!--end post_class-->
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div><!--end post_container-->
</div><!--end content_padding-->
</div> <!--end content_left-->
<?php get_sidebar(); ?>
</div><!--end content_wrap-->
<div style="clear:both;"></div>
<?php get_footer(); ?>