-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-data-centre-management.php NEW
More file actions
252 lines (156 loc) · 4.95 KB
/
template-data-centre-management.php NEW
File metadata and controls
252 lines (156 loc) · 4.95 KB
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
<?php
/* Template Name: Data Centre Management */
get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
$title_yoast = get_post_meta($post->ID, '_yoast_wpseo_title', true);
$the_id = get_the_ID();
$the_title = $title_yoast != "" ? $title_yoast : get_the_title();
?>
<div class="row" id="headerrow" style="padding-top:20px; height:120px;"><h1>Data Centre Management</h2></div>
<style>
#headerrow h1 {
font-size:50px !important;
line-height: 0.9 !important;
color:#000000 !important;
}
#headerrow {
padding-left:50px !important;
padding-right:50px !important;
padding-top:40px !important;
background-image:url('https://thestack.com/wp-content/uploads/2016/08/DCM-background-header3.png');
background-attachment:local;
background-repeat:no-repeat;
background-position:top;
}
.attentionred {
color:#ef5a53 !important;
}
.attentionblue {
color:#45afe2 !important;
}
.dcmsidebar {
}
/* MOBILE */
@media only screen and (max-width: 64em) {
#headerrow h1 {
font-size:45px !important;
padding-top:15px !important;
}
#headerrow {
margin: 0 !important;
padding: 20px 20px 0 !important;
max-height: 120px !important;
background-image:none !important;
}
}
.contentdcm p {
font-family: inherit;
font-size: 18px !important;
font-weight: normal;
line-height: 1.4 !important;
margin-bottom: 10px !important;
text-rendering: optimizelegibility;
}
.contentdcm h4 {
font-size: 24px;
line-height: 30px !important;
}
.wpcf7-form-control {
max-width: 700px !important;
}
.dcmsidebar p {
font-size: 20px !important;
line-height: 18px !important;
margin-bottom: 0 !important;
padding-bottom: 9px !important;
}
.dcmsidebar a {
font-size:20px !important;
font-weight:bold !important;
}
.narrower {
max-width: 150px !important;
}
</style>
<div class="row" style="padding-top:40px;">
<?php if(get_field('background_image')){ ?>
<style>
/* body{
background-image: url('<?php echo get_field('background_image'); ?>');
background-size:cover;
} */
.row{
margin-top: -6px!important;
}
p.title{
margin-bottom:0px!important;
}
.ui-tabs .ui-tabs-nav li{
margin:0px;
}
</style>
<?php } ?>
<style>
.mag_box{
float: left;
width: 20%;
margin: 20px 12px;
}
.mag_box img{
/* -webkit-box-shadow: 0px 0px 15px 4px rgba(153,153,153,1);
-moz-box-shadow: 0px 0px 15px 4px rgba(153,153,153,1);
box-shadow: 0px 0px 15px 4px rgba(153,153,153,1); */
}
</style>
<div class="small-12 large-width columns medium-down-space large-space-left">
<div class="row">
<?php
$post_cat_ids = get_the_terms( $post->ID, 'company_category', 'id' );
$cats = array();
if( ! is_wp_error( $post_cat_ids ) && $post_cat_ids !== false ){
foreach($post_cat_ids as $c){
$cats[] = array( 'name' => $c->name, 'slug' => $c->slug );
};
}
?>
<article class="small-12 large-6 columns company_by_location-article noborder">
<div class="contentdcm">
<?php if(get_field('about_us')){ ?>
<?php echo get_field('about_us'); ?>
</div>
<?php } ?>
<div class="clear" style="clear:both;margin-bottom: 30px;"></div>
</article>
</div>
</div>
<aside class="small-12 large-3 large-side-width columns sidebar " style="margin-bottom:0px !important;">
<div class="tablet-line"></div>
<div class="row" style="padding: 0px 20px;">
<a href="#subscribe" id="dcmsubscribe" class="black-btn" style="display:block !important; text-align:center;width:100%; background-color:#000000 !important; padding:8px !important; max-width:200px !important; margin-top:0px !important;">SUBSCRIBE NOW</a>
<?php if(get_field('media_kit')){ ?>
<?php //echo get_field('media_kit'); ?>
<?php } ?>
<?php if(get_field('contact_details')){ ?>
<!-- <h3>Editorial</h3> -->
<?php //echo get_field('contact_details'); ?>
<?php } ?>
<br/><br/>
<h2>Categories</h2>
<div class="dcmsidebar" id="dcmsidebar">
<?php
//$children = get_term_children( '1040', 'company_category' );
$children = get_terms( 'company_category', array( 'child_of' => '1040' ) );
foreach($children as $valid){
$terms = get_term( $valid, 'company_category' );
//print_r($children);
?><p><a href="https://thestack.com/categories/?category=<?php echo $terms->slug; ?>"><?php echo $terms->name; ?></a></p>
<?php } ?>
</div>
</div>
</aside>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>