-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.php
249 lines (235 loc) · 8.14 KB
/
Home.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<?php
/*
Template Name: Home page
*/
get_header();
?>
<!-- Intro Section -->
<section id="intro" class="home_parallax intro-section">
<div id="logo-t-m" class="wow fadeInDown"><a href="javascript:void(0);"><img alt="" src="<?php echo get_template_directory_uri(); ?>/images/logo.png"> </a></div>
<header id="header">
<!-- Home page slider images and contents -->
<ul class="bxslider">
<?php query_posts( 'cat=16' );
while ( have_posts() ) : the_post();
?>
<li><?php the_post_thumbnail('full'); ?></li>
<?php endwhile;
wp_reset_query();
?>
</ul>
<div class="slider-contant">
<div class="container">
<div class="row">
<div class="col-lg-12">
<?php $slider_contents = get_post(118); echo $slider_contents->post_content; ?>
</div>
</div>
</div>
</div>
</header>
<div class="page-scroll-main"> <a class="btn btn-default page-scroll" href="#about"><i class="fa fa-chevron-down"></i></a> </div>
</section>
<!-- About Section -->
<section id="about" class="about-section">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="title wow fadeInDown" data-wow-delay="0.5s">
<h2>Accelerate your Learning </h2>
<div class="head-line"></div>
</div>
<div class="new-way-img">
<div class="kdsx">
<!--h3>Testimonials</h3-->
<div class="col-md-4 gdf" id ='test'><?php [testimonials] ?></div>
</div>
<div class="card-main">
<ul class="bxslider">
<?php query_posts( 'cat=17' );
while ( have_posts() ) : the_post();
?>
<li><?php the_post_thumbnail('full'); ?></li>
<?php endwhile;
wp_reset_query();
?>
</ul>
</div>
<div class="clear"></div>
</div>
</div>
<div class="col-lg-12">
<div class="halfway">
<?php $learning_contents = get_post(124); echo $learning_contents->post_content; ?>
</div>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<div id="services" class="services-section">
<div class="Cards-below Cards_below_parallax">
<div class="container">
<div class="row">
<div class="col-md-2 col-sm-3">
<div class="wow slideInLeft CardsbelowL">
<a class="page-scroll" href="#Cardsbelow"> <?php $Beat_colour = get_post_custom_values( 'Beat_colour', 10 ); echo $Beat_colour[0]; ?> </a>
</div>
</div>
<div class="col-md-8 col-sm-6">
<div class="wow fadeInDown card-mid"><?php echo get_the_post_thumbnail( 142, 'full' ); ?></div>
</div>
<div class="col-md-2 col-sm-3">
<div class="NextPage wow slideInRight">
<a class="page-scroll" href="#contact"><?php $unique = get_post_custom_values( 'unique', 10 ); echo $unique[0]; ?></a>
</div>
</div>
<div class="clear"></div>
<div id="Cardsbelow" class="BoxMain">
<ul>
<?php query_posts( 'cat=18&posts_per_page=7' );
$i=1;
while ( have_posts() ) : the_post();
switch ($i) {
case 1:
$liclass = "wow slideInLeft";
$divclass = "BoxDiv";
break;
case 2:
$liclass = "";
$divclass = "BoxDiv bg2";
break;
case 3:
$liclass = "wow slideInRight";
$divclass = "BoxDiv bg3";
break;
case 4:
$liclass = "";
$divclass = "BoxDiv bg4";
break;
case 5:
$liclass = "wow slideInLeft";
$divclass = "BoxDiv bg5";
break;
case 6:
$liclass = "";
$divclass = "BoxDiv bg6";
break;
case 7:
$liclass = "wow fadeInDown";
$divclass = "BoxDiv bg7";
break;
}
?>
<li class="<?php echo $liclass; ?>">
<div class="<?php echo $divclass; ?>"> <a href="javascript:void(0)"><?php the_post_thumbnail('full'); ?></a> </div>
</li>
<?php $i++; endwhile;
wp_reset_query();
?>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- Contact Section -->
<section id="contact" class="Types-of-Cards contact-section">
<div class="container">
<div class="row">
<div class="title wow fadeInDown" data-wow-delay="0.5s">
<h2>Types of Cards</h2>
<div class="head-line"></div>
</div>
<div class="TypesCardsText">
<?php query_posts( 'cat=19' );
while ( have_posts() ) : the_post();
?>
<div class="TypesCardsTextRow clearfix">
<div class="wow slideInLeft col-md-6 col-sm-6">
<div class="types-cards-img"><?php the_post_thumbnail('full'); ?></div>
</div>
<div class="wow slideInRight col-md-6 col-sm-6">
<div class="types-cards-TextR">
<h3><?php the_title(); ?></h3>
<p><?php the_content(); ?></p>
</div>
</div>
</div>
<?php endwhile;
wp_reset_query();
?>
</div>
</div>
</div>
<div class="Communication Communication_parallax">
<div class="container">
<div class="row">
<div class="wow slideInLeft col-md-6 col-sm-6">
<?php $book_link = get_post_custom_values( 'book_link', 10 ); ?>
<div class="Communication-img"><a href="<?php echo $book_link[0]; ?>" target="new"><?php echo get_the_post_thumbnail( 185, 'full' ); ?></a></div>
</div>
<div class="wow slideInRight col-md-6 col-sm-6">
<div class="CommunicationR">
<h3><?php $title = get_post(185); echo $title->post_title; ?> </h3>
<p> <?php echo $title->post_content; ?></p>
</div>
</div>
</div>
</div>
</div>
<!---div class="Subscrib Subscribe_parallax">
<div class="container">
<div class="row">
<!--?php dynamic_sidebar( 'Widget Area' ); ?>
</div>
</div>
</div--->
<div class="opash">
<div class="container">
<div class="row">
<h4></h4>
<!--form>
<input class="oli" type="text" name="email" placeholder="Enter your Email">
<input class="ouyr" type="submit">
</form--->
</div>
</div>
</div>
<div class="GetTouch">
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="panel">
<div class="title">
<h2>Get in Touch</h2>
<div class="head-line"></div>
</div>
<p class="col-md-6 col-md-offset-3">Have feedback, suggestion, or any thought about our app? Feel free to contact us anytime, we will get back to you in 24 hours. </p>
<div class="contact-bubble-bg col-md-6 col-md-offset-3">
<div class="contact-text">
<div class="form-group">
<input class="form-control" type="text" value="Your Name" name="Email" id="Em3ail"
onblur="if (this.value == '') {this.value = 'Your Name';}"
onfocus="if (this.value == 'Your Name') {this.value = '';}" />
</div>
<div class="form-group">
<input class="form-control" type="text" value="Your Email Address" name="Email" id="Em2ail"
onblur="if (this.value == '') {this.value = 'Your Email Address';}"
onfocus="if (this.value == 'Your Email Address') {this.value = '';}" />
</div>
<div class="Comments form-group">
<textarea class="form-control" name="inputname" onfocus="if(this.value == 'Subject') { this.value = ''; }" onblur="if (this.value == '') { this.value='Subject'; }">Subject</textarea>
</div>
<div class="SubmitBtn form-group">
<button class="form-control btn-primary">Send Messag</button>
</div>
</div>
</div>
</div>
<!--<div id="flip" class="GetTouchBg"> <a href="javascript:void(0)"><i class="fa fa-envelope-o"></i></a> </div>-->
</div>
</div>
</div>
</div>
<?php get_footer(); ?>