-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate-home.php
55 lines (50 loc) · 1.32 KB
/
template-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
<?php
/*
Template Name: Home page
*/
get_header();
if(have_posts()){
while(have_posts()){
the_post();
$title=get_the_title();
$pageId=get_the_ID();
$subtitle=get_post_meta($pageId, 'subtitle_value', true);
$slider=get_post_meta($pageId, 'slider_value', true);
$slider_prefix=get_post_meta($post->ID, 'slider_name_value', true);
if($slider_prefix=='default'){
$slider_prefix='';
}
include(TEMPLATEPATH . '/includes/page-header.php');
?>
<div id="content-container" class="content-gradient">
<div id="full-width">
<!--content-->
<?php
the_content();
}
}
?>
<div class="column-wrapper">
<?php
for($i=1; $i<=3; $i++){
$suf=$i==3?'-3':'';
?>
<div class="services-box three-columns<?php echo $suf; ?>">
<h4><?php echo get_opt('_home_box_title'.$i); ?></h4>
<?php if(get_opt('_home_box_icon'.$i)!=''){ ?>
<img src="<?php echo get_opt('_home_box_icon'.$i); ?>" class="img-frame" />
<?php } ?>
<?php echo get_opt('_home_box_desc'.$i); ?>
<?php if(trim(get_opt('_home_box_btn_text'.$i))!=''){ ?>
<a href="<?php echo get_opt('_home_box_btn_link'.$i); ?>" ><?php echo get_opt('_home_box_btn_text'.$i); ?><span class="more-arrow">»</span></a>
<?php } ?>
</div>
<?php }
?>
</div>
</div>
<div class="clear"></div>
</div>
<?php
get_footer();
?>