-
Notifications
You must be signed in to change notification settings - Fork 3
/
taxonomy-photograph-categories.php
63 lines (56 loc) · 1.89 KB
/
taxonomy-photograph-categories.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
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div class="row">
<header class="page-heading block-background block-inner">
<h3><?php wp_title(' ', true,'right'); ?></h3>
<div class="minimize"></div>
</header><!-- .page-heading -->
<div class="main-content block-background column col8">
<div class="block-inner">
<?php
global $wp_query;
$args = array_merge( $wp_query->query_vars, array( 'post_type' => 'photograph' ) );
query_posts( $args );
if(have_posts()) : while(have_posts()): the_post();
?>
<article class="entry-post">
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></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');
}
}else{
colabs_image('width=620&link=img');
}
?>
</figure><!-- .entry-media -->
<div class="entry-content">
<?php colabs_custom_excerpt(); ?>
<p class="more"><a href="<?php the_permalink() ?>"><?php _e("More","colabsthemes"); ?></a></p>
</div><!-- .entry-content -->
</article>
<?php
endwhile;
colabs_pagenav();
endif;
?>
</div><!-- .block-inner -->
</div><!-- .main-content -->
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>