-
Notifications
You must be signed in to change notification settings - Fork 3
/
single.php
55 lines (47 loc) · 1.75 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
<?php get_header(); ?>
<div class="row">
<header class="page-heading block-background block-inner">
<h3><?php _e("Single","colabsthemes"); echo ' '.get_post_type(); ?></h3>
<div class="minimize"></div>
</header><!-- .page-heading -->
<div class="main-content block-background column col8">
<?php
if(have_posts()) : while(have_posts()): the_post();
?>
<div class="block-inner">
<article class="entry-post">
<header class="entry-header">
<h2 class="entry-title"><?php the_title(); ?></h2>
<?php colabs_post_meta(); ?>
</header>
<figure class="entry-media">
<?php
$single_top = get_post_custom_values("colabs_single_top");
if (($single_top[0]!='')||($single_top[0]=='none')){
if ($single_top[0]=='single_video'){
$embed = colabs_get_embed('colabs_embed',400,231,'single_video',$post->ID);
if ($embed!=''){
echo '<div class="single_video">'.$embed.'</div>';
}
}elseif($single_top[0]=='single_image'){
colabs_image('width=620&link=img');
}
}
?>
</figure><!-- .entry-media -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong>','colabsthemes'), 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div><!-- .entry-content -->
<?php echo colabs_share(); ?>
</article>
<?php comments_template(); ?>
</div><!-- .block-inner -->
<?php
endwhile;
endif;
?>
</div><!-- .main-content -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>