-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase-study-details.php
More file actions
359 lines (310 loc) · 14.2 KB
/
Copy pathcase-study-details.php
File metadata and controls
359 lines (310 loc) · 14.2 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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?php
require_once __DIR__ . '/includes/db.php';
require_once __DIR__ . '/includes/case-study-functions.php';
$caseStudy = getCaseStudyBySlugOrId($pdo);
if (!$caseStudy) {
http_response_code(404);
exit('Case study not found.');
}
$sections = getCaseStudySections($pdo, (int) $caseStudy['id']);
$processSteps = getCaseStudyProcessSteps($pdo, (int) $caseStudy['id']);
$galleryImages = getCaseStudyGallery($pdo, (int) $caseStudy['id']);
$canonicalUrl = 'https://www.cloudtechnologycomputing.com/case-study/' . urlencode($caseStudy['slug']);
$metaTitle = $caseStudy['meta_title'] ?: $caseStudy['title'];
$metaDescription = $caseStudy['meta_description'] ?: $caseStudy['excerpt'];
$ogImage = $caseStudy['og_image'] ?: assetPath($caseStudy['featured_image']);
$ogImageAbsolute = (str_starts_with($ogImage, 'http://') || str_starts_with($ogImage, 'https://'))
? $ogImage
: 'https://www.cloudtechnologycomputing.com' . $ogImage;
$publishedAt = !empty($caseStudy['published_at']) ? strtotime($caseStudy['published_at']) : null;
$updatedAt = !empty($caseStudy['updated_at']) ? strtotime($caseStudy['updated_at']) : null;
?>
<?php
$pagePreloadImage = assetPath($caseStudy['featured_image'] ?: 'assets/img/home-6/CloudTechnologyComputingDisplay.avif');
include __DIR__ . '/header.php';
?>
<title><?= e($metaTitle) ?></title>
<meta name="description" content="<?= e($metaDescription) ?>">
<meta name="author" content="Jhon Arzu-Gil">
<meta name="robots" content="index, follow">
<link rel="canonical" href="<?= e($canonicalUrl) ?>">
<meta property="og:title" content="<?= e($metaTitle) ?>">
<meta property="og:description" content="<?= e($metaDescription) ?>">
<meta property="og:url" content="<?= e($canonicalUrl) ?>">
<meta property="og:image" content="<?= e($ogImage) ?>">
<meta property="og:site_name" content="Cloud Technology Computing">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="<?= e($metaTitle) ?>">
<meta name="twitter:description" content="<?= e($metaDescription) ?>">
<meta name="twitter:image" content="<?= e($ogImage) ?>">
<script type="application/ld+json">
<?= json_encode([
'@context' => 'https://schema.org',
'@type' => 'Article',
'headline' => $metaTitle,
'description' => $metaDescription,
'image' => $ogImageAbsolute,
'author' => [
'@type' => 'Organization',
'name' => 'Cloud Technology Computing',
'url' => 'https://www.cloudtechnologycomputing.com/',
],
'publisher' => [
'@type' => 'Organization',
'name' => 'Cloud Technology Computing',
'logo' => [
'@type' => 'ImageObject',
'url' => 'https://www.cloudtechnologycomputing.com/assets/img/sm-logo.svg',
],
],
'datePublished' => $publishedAt ? date('c', $publishedAt) : null,
'dateModified' => $updatedAt ? date('c', $updatedAt) : ($publishedAt ? date('c', $publishedAt) : null),
'mainEntityOfPage' => $canonicalUrl,
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) ?>
</script>
<!-- Article and BreadcrumbList structured data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"@id": "<?= e($canonicalUrl); ?>#article",
"headline": "<?= e($metaTitle); ?>",
"description": "<?= e($metaDescription); ?>",
"image": "<?= e($ogImageAbsolute); ?>",
"datePublished": "<?= e($caseStudy['published_at'] ?? ''); ?>",
"dateModified": "<?= e($caseStudy['updated_at'] ?? $caseStudy['published_at'] ?? ''); ?>",
"author": {
"@type": "Person",
"name": "Jhon Arzu-Gil",
"url": "https://www.arzugil.com/"
},
"publisher": {
"@type": "Organization",
"@id": "https://www.cloudtechnologycomputing.com/#organization",
"name": "Cloud Technology Computing",
"logo": {
"@type": "ImageObject",
"url": "https://www.cloudtechnologycomputing.com/assets/img/sm-logo.svg"
}
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "<?= e($canonicalUrl); ?>"
},
"inLanguage": "en-US"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{"@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.cloudtechnologycomputing.com/"},
{"@type": "ListItem", "position": 2, "name": "Case Studies", "item": "https://www.cloudtechnologycomputing.com/case-study-standard.php"},
{"@type": "ListItem", "position": 3, "name": "<?= e($caseStudy['title']); ?>", "item": "<?= e($canonicalUrl); ?>"}
]
}
</script>
</head>
<body class="home-dark2">
<div class="preloader">
<div id="particles-background" class="vertical-centered-box"></div>
<div id="particles-foreground" class="vertical-centered-box"></div>
<div class="vertical-centered-box">
<div class="content">
<div class="loader-circle"></div>
<div class="loader-line-mask">
<div class="loader-line"></div>
</div>
</div>
</div>
</div>
<div class="header-sidebar">
<div class="siderbar-top">
<div class="sidebar-log">
<a href="/">Cloud Technology Computing</a>
</div>
<div class="close-btn">
<i class="bi bi-x-lg"></i>
</div>
</div>
<div class="sidebar-content">
<p>🌐 Cloud Technology Computing | Texas-Based | Cloud Computing & Web Development Wizards 🚀</p>
</div>
<div class="address-card">
<div class="content">
<div class="informations">
<div class="single-info">
<div class="icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<div class="info">
<p>Houston, Texas, United States</p>
</div>
</div>
<div class="single-info">
<div class="icon">
<i class="fas fa-phone-alt"></i>
</div>
<div class="info">
<a href="tel:17138709966">+1 713 870 9966</a>
</div>
</div>
<div class="single-info">
<div class="icon">
<i class="far fa-envelope"></i>
</div>
<div class="info">
<a href="mailto:Jgil20@me.com">Jgil20@me.com</a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "nav.php"; ?>
<section class="breadcrumbs">
<div class="breadcrumb-sm-images">
<div class="inner-banner-1 magnetic-item">
<img
loading="lazy"
src="<?= assetPath('assets/img/inner-pages/OnlineAdvertisingCloudTechnologyComputing.avif'); ?>"
alt="Cloud technology advertising" width="164" height="210" >
</div>
<div class="inner-banner-2 magnetic-item">
<img
loading="lazy"
src="<?= assetPath('assets/img/inner-pages/ibm cloud provider.avif'); ?>"
alt="Cloud provider" width="250" height="191" >
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="breadcrumb-wrapper">
<div class="breadcrumb-cnt">
<span>Case Study Details</span>
<h1><?= e($caseStudy['subtitle'] ?: $caseStudy['title']); ?></h1>
<div class="breadcrumb-list">
<a href="/">Home</a>
<img
loading="lazy"
src="<?= assetPath('assets/img/inner-pages/breadcrumb-arrow.svg'); ?>"
alt="" width="16" height="9" >
Case Study Details
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="case-study-details sec-mar">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="case-study-title">
<h2><?= e($caseStudy['title']); ?></h2>
</div>
<div class="case-big-img magnetic-item">
<img
loading="lazy"
class="img-fluid"
src="<?= assetPath($caseStudy['featured_image']); ?>"
alt="<?= e($caseStudy['featured_image_alt'] ?: $caseStudy['title']); ?>" width="800" height="500" >
</div>
<?php if (!empty($caseStudy['content_intro'])): ?>
<div class="case-content mb-60">
<?= $caseStudy['content_intro']; ?>
</div>
<?php endif; ?>
<?php foreach ($sections as $section): ?>
<?php if ($section['image_position'] === 'full' || empty($section['section_image'])): ?>
<div class="row mb-120">
<div class="col-lg-12">
<div class="case-content mb-60">
<h2><?= e($section['section_title']); ?></h2>
<?= $section['section_content']; ?>
</div>
</div>
</div>
<?php elseif ($section['image_position'] === 'left'): ?>
<div class="row g-lg-4 gy-5 mb-120">
<div class="col-lg-6">
<div class="case-img magnetic-item">
<img
loading="lazy"
class="img-fluid"
src="<?= assetPath($section['section_image']); ?>"
alt="<?= e($section['section_image_alt'] ?: $section['section_title']); ?>" width="800" height="600" >
</div>
</div>
<div class="col-lg-6 d-flex align-items-center">
<div class="case-content">
<h2><?= e($section['section_title']); ?></h2>
<?= $section['section_content']; ?>
</div>
</div>
</div>
<?php else: ?>
<div class="row g-lg-4 gy-5 mb-120">
<div class="col-lg-6 d-flex align-items-center">
<div class="case-content">
<h2><?= e($section['section_title']); ?></h2>
<?= $section['section_content']; ?>
</div>
</div>
<div class="col-lg-6">
<div class="case-img magnetic-item">
<img
loading="lazy"
class="img-fluid"
src="<?= assetPath($section['section_image']); ?>"
alt="<?= e($section['section_image_alt'] ?: $section['section_title']); ?>" width="800" height="600" >
</div>
</div>
</div>
<?php endif; ?>
<?php if ($section['section_title'] === 'Process Load Times' && !empty($processSteps)): ?>
<div class="row g-4 justify-content-center mb-120">
<?php foreach ($processSteps as $step): ?>
<div class="col-xl-3 col-sm-6">
<div class="single-process magnetic-item">
<?php if (!empty($step['icon'])): ?>
<div class="icon">
<img
loading="lazy"
src="<?= assetPath($step['icon']); ?>"
alt="<?= e($step['title']); ?>" width="64" height="64" >
</div>
<?php endif; ?>
<span><?= e($step['step_number']); ?></span>
<h3><?= e($step['title']); ?></h3>
<p><?= e($step['description']); ?></p>
</div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php if (!empty($galleryImages)): ?>
<div class="row g-4 justify-content-center">
<?php foreach ($galleryImages as $image): ?>
<div class="col-md-6">
<div class="case-img magnetic-item">
<img
loading="lazy"
class="img-fluid"
src="<?= assetPath($image['image']); ?>"
alt="<?= e($image['image_alt'] ?: $caseStudy['title']); ?>" width="800" height="500" >
</div>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>