-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-home.php
293 lines (110 loc) · 7.03 KB
/
page-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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<?php
/*
Template Name: Home
*/
?>
<?php
if (!empty($_GET['search-listings'])) {
require('search-listings.php');
return;
}
get_header(); ?>
<div class="sixteen columns alpha omega">
<div class="eight columns">
<h1>Corporate Housing from Almost Home</h1>
<?php echo do_shortcode('[nivoslider id="2369"]'); ?>
<h3>Customizing Your Corporate Housing Accommodations to The Perfect Choice</h3>
<p>We customize our apartments with a corporate housing package to fit your special requests. Would you like an office in your home instead of a second bedroom? Do you need a washer or dryer in the apartment or a fitness facility on the community premises? Explain your requests to our caring housing specialists and they will create a perfect customized package for your temporary housing or extended stay need.</p>
</div>
<div class="seven columns">
<h2>What We Offer</h2>
<h3>Short-Term Business Assignments</h3>
<p>Need housing for a month or two while on a short-term business assignment? One of our corporate apartments may just be what you are looking for. Cost-effective and with a feel much like home, many business travelers have found our furnished apartments to more than meet their expectations.</p>
<h3>Relocation in Your Desired Location of the City</h3>
<p>Our philosophy of providing multiple corporate housing locations in each city creates convenience, affordability and choice for our clients. Our menu of great apartment or home locations means the relocation property that will best serve your needs is selected.</p>
<h3>Emergency Housing in Times of Disaster</h3>
<p>Almost Home is a perfect temporary housing solution when disaster strikes by fire or flood and you need a furnished apartment or home for an extended stay until your own home is back in order. Because the cost is less than a hotel, your insurance carrier will be pleased and you will live in comfortable housing that is almost like home!</p>
<p><b>Almost Home Corporate Housing Corporate Office</b><br>
20 South 1st Avenue, Sturgeon Bay, WI 54235<br>
(920) 743-8765</p>
</div>
</div>
<?php
$layout = $ct_options['ct_homepage_layout']['enabled'];
if ($layout) :
foreach ($layout as $key=>$value) {
switch($key) {
// Slider
case 'slider' : ?>
<?php ct_slider(); ?>
<?php
break;
// Featured Listings
case 'featured_listings' : ?>
<section id="featured-listings" class="sixteen columns alpha omega marT40">
<div id="carousel" class="flexslider sixteen columns alpha omega">
<h3>Featured Listings</h3>
<ul class="slides marT10">
<?php
$args = array(
'status' => 'featured',
'post_type' => 'listings',
'posts_per_page' => 12
);
query_posts($args);
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li>
<div class="img-wrap">
<?php ct_status(); ?>
<?php ct_first_image_linked(); ?>
</div>
<div class="featured-listing-info marT6 marL10">
<h5 class="marB0"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
<p class="location marB8"><?php city(); ?>, <?php state(); ?> <?php zipcode(); ?></p>
<?php if( (get_post_meta($post->ID, "_ct_price", true)) != "" ) { ?><p class="price marB0"><strong><?php currency(); ?><?php listing_price(); ?></strong><?php if(has_status('for-rent') || has_status('rental')) { echo " /month"; } ?></p><?php } ?>
<p class="propinfo marB0"><?php if(has_type('land') || has_type('lot')) { ?><?php echo get_post_meta($post->ID, "lotsize_value", true); ?> <?php acres(); ?><?php } elseif(has_type('commercial')) { ?><?php // Display Nothing ?><?php } else { ?><?php beds(); ?> <?php baths(); ?><?php if((get_post_meta($post->ID, "_ct_sqft", true))) { ?> | <?php echo get_post_meta($post->ID, "_ct_sqft", true); ?> <?php sqftsqm(); ?><?php } ?><?php } ?></p>
</div>
</li>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</section>
<?php
break;
// Call To Action
case 'call_to_action' : ?>
<div id="cta" class="sixteen columns marT40">
<div id="cta-inner">
<?php echo stripslashes($ct_options['ct_cta_text']); ?>
<div class="clear"></div>
</div>
</div>
<?php
break;
// Three Column Widget Area
case 'three_col_widget_area' : ?>
<section id="three-col-widget-area" class="sixteen columns alpha omega marT40">
<div class="five columns alpha marT30">
<?php echo stripslashes($ct_options['ct_why_us']); ?>
</div>
<div class="widget-area ten columns offset-by-one omega marT30">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Three Column Homepage') ) :else: endif; ?>
</div>
</section>
<?php
break;
// Four Column Widget Area
case 'four_col_widget_area' : ?>
<section id="four-col-widget-area" class="sixteen columns alpha omega marT40">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Four Column Homepage') ) :else: endif; ?>
</section>
<?php
break;
// Testimonials
case 'testimonials' :
include(get_template_directory() . '/includes/testimonials.php');
break;
}
} endif; ?>
<?php get_footer(); ?>