-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·90 lines (89 loc) · 3.63 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php get_header(); ?>
<div id="main">
<div id="twocolumns">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="content-block">
<div class="holder">
<div class="frame">
<h1><?php the_title(); ?></h1>
<div class="links-holder">
<span><em class="date"><?php the_time('d.m.Y') ?> </em>by <?php the_author_link(); ?></span>
<a class="comment" href="<?php the_permalink(); ?>#comments">Add Comment</a>
</div>
<?php the_content('Read the rest of this entry »'); ?>
<div class="tags-holder">
<span>Category: <?php the_category(', ') ?></span>
<ul class="tags"><?php the_tags('<li>Tagged: ', ', ', '</li>'); ?></ul>
</div>
</div>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="aside">
<?php
$page_id = get_post_meta($post->ID, 'page_id', true);
if ( !empty($page_id) ) { ?>
<div class="box">
<div class="holder">
<div class="frame">
<h2><span>AUTHOR </span> PROFILE</h2>
<?php
query_posts(array(
'post_type' => 'page',
'post__in' => array($page_id)
)
);
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="title-section">
<?php if (has_post_thumbnail()) : ?>
<a class="photo" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('author-photo'); ?>
<span class="photo-t-l"> </span>
<span class="photo-t-r"> </span>
<span class="photo-b-l"> </span>
<span class="photo-b-r"> </span>
</a>
<?php endif; ?>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php
$person = get_post_meta($post->ID, 'person', true);
if ( !empty($person) ) {
echo $person;
}
?>
</div>
<?php custom_the_content('Read the rest of this entry »'); ?>
<a class="more" href="<?php the_permalink(); ?>">read more</a>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
</div>
</div>
</div>
<?php }
?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
<?php endif; ?>
</div>
</div>
<div id="sidebar">
<?php if ( !function_exists('dyn
amic_sidebar') || !dynamic_sidebar('Social Icon 2') ) : ?>
<?php endif; ?>
<?php include('left-sidebar.php'); ?>
<ul class="links">
<li><a class="rss" href="/rss/%5Bsite_url%5D/?feed=rss2">RSS</a></li>
<li><a class="podcast" href="http://modfilms.jellycast.com/podcast/feed/71">Podcast</a></li>
</ul>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>