-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout-1.php
162 lines (151 loc) · 4.25 KB
/
about-1.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?php /* Template Name: About Page One */ ?>
<?php get_header(); ?>
<div class="full-width text-center featured-image-banner" style="background-image: url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID)) ?>')">
<h1 class="blog-post-title"><?php the_title(); ?></h1>
</div>
<div class="about-us-content row">
<div class="container">
<div class = "col-sm-12 col-md-6">
<?php if ( is_active_sidebar( 'about-us-top-left' ) ) { dynamic_sidebar( 'about-us-top-left' ); } ?>
</div>
<div class = "col-sm-12 col-md-6">
<?php if ( is_active_sidebar( 'about-us-top-right' ) ) { dynamic_sidebar( 'about-us-top-right' ); } ?>
</div>
</div>
</div>
<div class="about-us-stats row">
<div class="container">
<h2 class="stat-title">
Fun Facts About Us
</h2>
<?php if ( is_active_sidebar( 'about-us-stats' ) ) { dynamic_sidebar( 'about-us-stats' ); } ?>
</div>
</div>
<div class="services-container row"><div class="container">
<div class="about-one-heading">
<h2>What We Do</h2>
<?php
if ( have_posts() ) {
while ( have_posts() ) : the_post();
?>
<div class="page-content">
<?php the_content(); ?>
</div>
<?php
endwhile;
}
?>
</div>
<span class="hide-tablet">
<?php
$query = new WP_Query( array('post_type' => 'services','posts_per_page' => 3 ) );
while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="services-box col-sm-12 col-md-6 col-lg-6 animated fadeInUp">
<div class="services-image">
<?php the_post_thumbnail(); ?>
</div>
<div class="service-info-container">
<div class="services-box-title">
<?php the_title(); ?>
</div>
<div class="services-content">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</span>
<span class="hide-mobile hide-desktop">
<?php
$query = new WP_Query( array('post_type' => 'services','posts_per_page' => 2 ) );
while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="services-box col-sm-12 col-md-6 col-lg-6 animated fadeInUp">
<div class="services-image">
<?php the_post_thumbnail(); ?>
</div>
<div class="service-info-container">
<div class="services-box-title">
<?php the_title(); ?>
</div>
<div class="services-content">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</span>
</div>
</div>
<div class="team-members-container row">
<div class="container">
<div class="about-one-heading">
<h2>Our Team of Experts</h2>
<p>
Our experts have more than 10 years of combined experience in web design.
</p>
</div>
<div class="row">
<?php
$query = new WP_Query( array('post_type' => 'team','posts_per_page' => 3 ) );
while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="team-member-box col-sm-12 col-md-4 col-lg-4 animated fadeInUp">
<div class="team-member-image">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
</a>
</div>
<div class="team-info-container">
<div class="team-member-title">
<a href="<?php the_permalink();?>">
<?php the_title(); ?>
</a>
</div>
<div class="team-member-content">
<div class="team-excerpt">
<?php the_excerpt(); ?>
</div>
<hr>
<a href=<?php the_permalink(); ?> class=teambiobtn >Read Bio +</a>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
<div class="portfolio-container row">
<div class="container">
<div class="about-one-heading">
<h2>Our Work</h2>
<p>
Consectetur adipisicing elit, ut labo reet dolore magna aliqua.
Praesent dapibus distigular paterns.
</p>
</div>
<?php
$query = new WP_Query( array('post_type' => 'portfolio','posts_per_page' => 6 ) );
while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="portfolio-box col-sm-12 col-md-6 col-lg-6 animated fadeInUp">
<div class="portfolio-image">
<?php the_post_thumbnail(); ?>
</div>
<div class="portfolio-info-container">
<div class="portfolio-title">
<?php the_title(); ?>
</div>
<div class="portfolio-content">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
<?php if ( is_active_sidebar( 'about-full-width' ) ) : ?>
<div id="page-full-width">
<div class="container">
<?php dynamic_sidebar( 'about-full-width' ); ?>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>