-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsingle.php
72 lines (51 loc) · 2.65 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
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
<?php include("header.php"); ?>
<?php
ufandshands_breadcrumbs();
$content_width = 621;
?>
<div id="content-wrap">
<div id="content-shadow">
<div id="content" class="container">
<article id="main-content" class="span-17" role="main">
<div class="box">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php ufandshands_content_title(); //page title ?>
<div class="single-meta">
<p class="published"><span class="black-50"><?php echo ( in_category( array('speeches','speech') ) ? 'Date:' : 'Published:' )?> </span><?php the_time('F jS, Y') ?></p>
<p class="category"><span class="black-50">Category:</span> <?php the_category(', ') ?></p>
</div>
<p><?php
$custom_meta = get_post_custom($post->ID);
$custom_remove_featured = ( isset($custom_meta['custom_meta_post_remove_featured']) )? $custom_meta['custom_meta_post_remove_featured'][0]:false;
if ( ( has_post_thumbnail() ) && ( $custom_remove_featured == false ) ) {
the_post_thumbnail( 'ufl_post_thumb', array('class' => 'shadow') );
}
?></p>
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php // wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<div class="single-meta">
<?php the_tags('<p class="tag black-50">Tagged as: ', ', ','</p>'); ?>
</div>
<div id="social-content">
<div class="fb-like" data-href="<?php echo get_permalink(); ?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="true"></div>
<div><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" >Tweet</a></div>
<div><g:plusone size="medium"></g:plusone></div>
</div>
<div class="single-navigation clear">
<div class="nav-previous"><?php previous_post_link('%link') ?></div>
<div class="nav-next"><?php next_post_link('%link') ?></div>
</div>
<div id="comment-container" class="clear">
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php if ( is_user_logged_in() ) { ?> <p id="edit" class="clear" style="margin-top:20px;"><?php edit_post_link('Edit this article', ' » ', ''); ?> | <a href="<?php echo wp_logout_url(); ?>" title="Log out of this account">Log out »</a></p> <?php } ?>
</div>
</article><!-- end #main-content -->
<?php get_sidebar('post_sidebar'); ?>
</div>
</div>
</div>
<?php include('user-role-menu.php'); ?>
<?php include("footer.php"); ?>