-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-projects.php
51 lines (30 loc) · 1.35 KB
/
loop-projects.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
<?php
$all_posts = bloodhound_projects_WP_Query(); ?>
<div class="bxslider">
<?php
foreach ( $all_posts as $posts ) : ?>
<section id="bloodhound-projects-section">
<div class="row">
<?php
foreach ( $posts as $post ) :
setup_postdata( $post );
$meta = get_post_meta( $post->ID, 'bloodhound_add_post', true ); ?>
<a href="<?php the_permalink(); ?>" <?php bloodhound_project_anchor_classes(); ?>>
<?php if( has_post_thumbnail() ) : $url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); ?>
<div class="block" style="height:200px;background:url(<?php echo $url; ?>) no-repeat center center / cover;"></div>
<?php endif; ?>
<article <?php post_class( 'bloodhound-project-anchor center relative' ); bloodhound_the_page_styles( $post ); ?>>
<h3 style="color:<?php echo $meta['title-color']; ?>;"><?php the_title(); ?></h3>
<div class="block bloodhound-project-excerpt" style="color:<?php echo $meta['title-color']; ?>;">
<?php the_excerpt(); ?>
</div>
<span class="bloodhound-project-icon block center" style="color:<?php echo $meta['title-color']; ?>;"><i class="fa fa-fw <?php echo $meta['nav-icon']; ?>"></i></span>
</article>
</a>
<?php wp_reset_postdata();
endforeach; ?>
</div>
</section>
<?php
endforeach; ?>
</div>