-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-gallery.php
76 lines (65 loc) · 2.65 KB
/
archive-gallery.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
<?php
/**
* Default Post Template
* Description: Post template with a content container and right sidebar.
*
* @package WordPress
* @subpackage BootstrapWP
*/
get_header(); ?>
<div class="page-feature"></div>
<div class="container">
<div class="row">
<div class="col-md-12">
<?php if (function_exists('bootstrapwp_breadcrumbs')) {
bootstrapwp_breadcrumbs();
} ?>
</div><!--/.span12 -->
</div><!--/.row -->
<div class="container">
<div class="full-width-content gallery">
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="row span-overflow">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts( array( 'post_type' => 'gallery', 'paged'=>$paged, 'showposts'=>-1) );
if (have_posts()) : while ( have_posts() ) : the_post();
$featured = rwmb_meta('bootbase_member_featured');
if ($featured == false) {
# We list person
?>
<div class="col-md-3">
<div class="album-archive-image thumbnail">
<a class="album-archive-link" href='<?php the_permalink(); ?>'>
<?php
$position = rwmb_meta('bootbase_member_position');
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id,'bootbase-square-500', true);
$image_full = wp_get_attachment_image_src($image_id,'full', true);
?>
<img width="100%" src="<?php echo $image_url[0]; ?>" >
<div class="album-archive-title">
<h4><?php the_title();?></h4>
</div>
<?php
} //endiff
?>
</a>
</div>
</div>
<?php
// Prevent weirdness
wp_reset_postdata();
} # End of person
endwhile; endif;
?>
</div> <!-- row -->
</div> <!-- end col-md-7 -->
</div> <!-- Span -->
</div> <!-- row -->
</div>
</div>
</div>
<?php get_footer(); ?>