-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagecontent-services.php
98 lines (71 loc) · 2.27 KB
/
pagecontent-services.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
<?php $t =& peTheme(); ?>
<?php $content =& $t->content; ?>
<?php $meta =& $content->meta(); ?>
<?php if ( defined( 'HOME_SLIDER') ) echo '<div class="slider-cover">'; ?>
<!-- Begin Services -->
<section class="parallax colored clearfix" id="<?php $content->slug(); ?>" style="background-image: url(' <?php echo $meta->services->background; ?>');">
<div class="content dark padded container">
<div class="title grid-full">
<h2><?php $content->title(); ?></h2>
<span class="border"></span>
<div class="sub-heading">
<?php $content->content(); ?>
</div>
</div>
<div class="clearfix"></div>
<?php
if (empty($meta->services->services)) {
$services = get_posts( array( 'post_type' => 'service', 'posts_per_page' => -1 ) );
if ( is_array( $services ) ) {
foreach( $services as $service ) {
$servicesarray[] = $service->ID;
}
$meta->services->services = $servicesarray;
}
}
?>
<?php if (!empty($meta->services->services)) { ?>
<?php
if ($loop = $t->data->customLoop((object) array("post_type"=>"service","id" => $meta->services->services,"orderby" => "post__in",))) {
?>
<!-- Icons -->
<ul class="icons clearfix">
<?php
while ($content->looping()) {
$meta =& $content->meta();
$features = isset( $meta->info->features ) ? $meta->info->features : '';
$icon = isset( $meta->info->icon ) ? $meta->info->icon : '';
?>
<!-- Single Icon -->
<li class="overview animated entrance" data-appear-bottom-offset="100">
<!-- Feature List -->
<div class="tooltip">
<div class="details">
<?php if ( isset( $features ) && is_array( $features ) ): ?>
<ul class="feature-list">
<?php foreach ( $features as $feature ) { ?>
<li><span class="list-dot"></span><?php echo $feature; ?></li>
<?php } ?>
</ul>
<?php endif; ?>
</div>
</div>
<span class="arrow-down"></span>
<span class="feature-icon feature">
<i class="<?php echo $icon; ?>"></i>
</span>
<!-- Title -->
<h4><?php $content->title(); ?></h4>
</li>
<?php
}
?>
</ul>
<?php
$content->resetLoop();
}
?>
<?php } ?>
</div>
</section>
<?php if ( defined( 'HOME_SLIDER') ) echo '</div>'; ?>