-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-testimonial.php
77 lines (57 loc) · 1.99 KB
/
template-testimonial.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
<?php
/**
Template Name: Testimonial
*/
get_header(); ?>
<!-- BEGIN: banner wrapper -->
<section id="bannerWrapper">
<!-- BEGIN: banner area -->
<article class="bannerArea inner">
<div class="item" style="background-image: url(<?php if(get_field('banner_image')): ?><?php the_field('banner_image'); ?><?php else: ?><?php the_field('banner_image',7); ?><?php endif; ?>);">
<div class="mycontainer">
<aside class="overlay">
<span class="bgrot"></span>
<div class="text">
<div class="sub">
<div class="under">
<h2><?php the_title(); ?></h2>
<p><?php the_field('banner_short_description'); ?></p>
</div>
</div>
</div>
</aside>
</div>
</div>
</article>
<!-- END: banner area -->
</section>
<!-- END: banner wrapper -->
<!-- BEGIN: middle wrapper -->
<section id="middleWrapper">
<!-- BEGIN: testimonial area -->
<article class="testimonialArea">
<?php $args = array(
'post_type' => 'testimoni',
'posts_per_page' => -1,
'order' => 'ASC'
);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<div class="item">
<div class="mycontainer">
<aside class="image col-xs-12 col-sm-12 col-md-12 col-lg-6" style="background-image: url( <?php echo wp_get_attachment_url( get_post_thumbnail_id(get_the_id())) ?>);"></aside>
<aside class="text col-xs-12 col-sm-12 col-md-12 col-lg-6">
<?php the_content(); ?>
<cite><i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star-half"></i></cite>
<h3><?php the_title(); ?></h3>
<span><?php the_field('designation'); ?></span>
</aside>
</div>
</div>
<?php endwhile; wp_reset_query(); ?>
</article>
<!-- END: testimonial area -->
</section>
<!-- END: middle wrapper -->
<?php get_footer(); ?>