forked from italia/design-scuole-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-luogo.php
executable file
·497 lines (462 loc) · 37.7 KB
/
single-luogo.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
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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<?php
/**
* The template for displaying all single luogo
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Design_Scuole_Italia
*/
global $post, $documento, $servizio, $autore, $struttura;
get_template_part("template-parts/single/related-posts","post");
get_template_part("template-parts/single/related-posts","events");
get_template_part("template-parts/single/related-posts","circolari");
$luogo = $post;
get_header();
$user_can_view_post = dsi_members_can_user_view_post(get_current_user_id(), $post->ID);
?>
<main id="main-container" class="main-container redbrown">
<?php get_template_part("template-parts/common/breadcrumb"); ?>
<?php while ( have_posts() ) : the_post();
set_views($post->ID);
$image_url = get_the_post_thumbnail_url($post, "item-gallery");
$autore = get_user_by("ID", $post->post_author);
$elementi_di_interesse = dsi_get_meta("elementi_di_interesse");
$descrizione_breve = dsi_get_meta("descrizione_breve");
$anno_costruzione = dsi_get_meta("anno_costruzione");
$numero_piani = dsi_get_meta("numero_piani");
$posti_sedere = dsi_get_meta("posti_sedere");
$gallery = dsi_get_meta("gallery");
$video = dsi_get_meta("video");
$link_strutture = dsi_get_meta("link_strutture");
$orario_pubblico = dsi_get_meta("orario_pubblico");
$altre_info = dsi_get_meta("info");
$servizi_presenti = dsi_get_meta("servizi_presenti");
$servizi_altro = dsi_get_meta("servizi_altro");
$modalita_accesso = dsi_get_meta("modalita_accesso");
$gestito_da = dsi_get_meta("gestito_da");
$gestito_da_nome = dsi_get_meta("gestito_da_nome");
$gestito_da_link = dsi_get_meta("gestito_da_link");
$gestito_da_persone = dsi_get_meta("gestito_da_persone");
$indirizzo = dsi_get_meta("indirizzo");
$posizione_gps = dsi_get_meta("posizione_gps");
$cap = dsi_get_meta("cap");
$mail = dsi_get_meta("mail");
$telefono = dsi_get_meta("telefono");
if($post->post_parent == 0){
}else{
if(!$indirizzo) $indirizzo = dsi_get_meta("indirizzo", "_dsi_luogo_", $post->post_parent);
if(!$posizione_gps) $posizione_gps = dsi_get_meta("posizione_gps", "_dsi_luogo_", $post->post_parent);
if(!$cap) $cap = dsi_get_meta("cap", "_dsi_luogo_", $post->post_parent);
if(!$mail) $mail = dsi_get_meta("mail", "_dsi_luogo_", $post->post_parent);
if(!$telefono) $telefono = dsi_get_meta("telefono", "_dsi_luogo_", $post->post_parent);
}
?>
<?php if(has_post_thumbnail($post)){ ?>
<section class="section bg-white article-title">
<div class="title-img" style="background-image: url('<?php echo $image_url; ?>');"></div>
<?php
$colsize = 6;
}else{
?>
<section class="section bg-white article-title article-title-small">
<?php
$colsize = 12;
} ?> <div class="container">
<div class="row variable-gutters">
<div class="col-md-<?php echo $colsize; ?>">
<div class="title-content">
<h1><?php the_title(); ?></h1>
<p class="mb-0"><?php echo $descrizione_breve; ?></p>
<?php
$badgeclass = "badge-outline-redbrown";
get_template_part("template-parts/common/badges-argomenti"); ?>
</div><!-- /title-content -->
</div><!-- /col-md-6 -->
</div><!-- /row -->
</div><!-- /container -->
</section><!-- /section -->
<section class="section bg-white">
<div class="container container-border-top">
<div class="row variable-gutters">
<div class="col-lg-3 col-md-4 aside-border px-0">
<aside class="aside-main aside-sticky">
<div class="aside-title" id="place-detail">
<a class="toggle-link-list" data-toggle="collapse" href="#lista-paragrafi" role="button" aria-expanded="true" aria-controls="lista-paragrafi" aria-label="apri/chiudi indice della pagina">
<span><?php _e("Dettagli del luogo", "design_scuole_italia"); ?> <?php the_title(); ?></span>
<svg class="icon icon-toggle svg-arrow-down-small"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-arrow-down-small"></use></svg>
</a>
</div>
<div id="lista-paragrafi" class="link-list-wrapper collapse show" role="region" aria-labelledby="place-detail">
<ul class="link-list">
<?php if($video){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-video" title="Vai al paragrafo <?php _e("Video", "design_scuole_italia"); ?>"><?php _e("Video", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-desc" title="Vai al paragrafo <?php _e("Descrizione", "design_scuole_italia"); ?>"><?php _e("Descrizione", "design_scuole_italia"); ?></a>
</li>
<?php
// do action per innestare elementi tramite plugin / child theme
do_action("dsi_luogo_menu_after_description");
?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-dove" title="Vai al paragrafo <?php _e("Dove si trova", "design_scuole_italia"); ?>"><?php _e("Dove si trova", "design_scuole_italia"); ?></a>
</li>
<?php /* if($modalita_accesso){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-accesso" title="Vai al paragrafo <?php _e("Modalità di accesso", "design_scuole_italia"); ?>"><?php _e("Modalità di accesso", "design_scuole_italia"); ?></a>
</li>
<?php } */ ?>
<?php if($servizi_presenti || $servizi_altro){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-servizi" title="Vai al paragrafo <?php _e("Servizi presenti", "design_scuole_italia"); ?>"><?php _e("Servizi presenti", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if($link_strutture){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-strutture" title="Vai al paragrafo <?php _e("Il luogo è sede di", "design_scuole_italia"); ?>"><?php _e("Il luogo è sede di", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if($gestito_da_nome != "" || (is_array($gestito_da) && count($gestito_da)> 0) || (is_array($gestito_da_persone) && count($gestito_da_persone) > 0)){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-gestione" title="Vai al paragrafo <?php _e("Gestito da", "design_scuole_italia"); ?>"><?php _e("Gestito da", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if(trim($altre_info) != ""){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-altre-info" title="<?php _e("Vai al paragrafo", "design_scuole_italia"); ?> <?php _e("Ulteriori informazioni", "design_scuole_italia"); ?>"><?php _e("Ulteriori informazioni", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if((trim($anno_costruzione) != "") || (trim($numero_piani) != "")|| (trim($posti_sedere) != "")){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-dettagli" title="Vai al paragrafo <?php _e("Dettagli edificio", "design_scuole_italia"); ?>"><?php _e("Dettagli edificio", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if(is_array($gallery) && count($gallery) > 0){ ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-galleria" title="Vai al paragrafo <?php _e("Galleria", "design_scuole_italia"); ?>"><?php _e("Galleria", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
<?php if ( is_array( $posts_array ) && count( $posts_array ) ) { ?>
<li>
<a class="list-item scroll-anchor-offset" href="#art-par-correlati"
title="Vai al paragrafo <?php _e("Circolari, notizie, eventi correlati", "design_scuole_italia"); ?>"><?php _e("Circolari, notizie, eventi correlati", "design_scuole_italia"); ?></a>
</li>
<?php } ?>
</ul>
</div>
<?php do_action("dsi_menu_bottom_items", $post); ?>
</aside>
</div>
<div class="col-lg-8 col-md-8 offset-lg-1">
<article class="article-wrapper pt-4">
<div class="row variable-gutters">
<div class="col-lg-12 d-flex justify-content-end">
<?php get_template_part("template-parts/single/actions"); ?>
</div><!-- /col-lg-12 -->
</div><!-- /row -->
<?php
if($video) {
?>
<h4 id="art-par-video"><?php _e("Video", "design_scuole_italia"); ?></h4>
<div class="row variable-gutters mb-5">
<div class="col-lg-9">
<?php echo wp_oembed_get ($video); ?>
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<?php
}
?>
<div class="row variable-gutters">
<div class="col-lg-9">
<h4 id="art-par-02"><?php _e("Descrizione", "design_scuole_italia"); ?></h4>
<div class="col-lg-12 px-0 wysiwig-text">
<?php the_content(); ?>
</div>
<?php
// se è un parent
if($post->post_parent == 0){
// controllo se il luogo ha child
$args = array(
'post_parent' => $post->ID,
'post_type' => 'luogo',
'numberposts' => -1,
'post_status' => 'publish'
);
$children = get_children( $args );
if(is_array($children) && count($children)>0){
echo "<h6>".__("Ospita", "design_scuole_italia")."</h6>";
echo '<div class="card-deck card-deck-spaced">';
foreach ($children as $child) {
$descrizione_breve_child = dsi_get_meta("descrizione_breve", "", $child->ID);
?>
<div class="card card-bg card-icon rounded">
<a href="<?php echo get_permalink($child); ?>">
<div class="card-body">
<svg class="icon svg-marker-simple"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#svg-marker-simple"></use></svg>
<div class="card-icon-content">
<p><strong><?php echo $child->post_title; ?></strong></p>
<small><?php echo $descrizione_breve_child; ?></small>
</div><!-- /card-icon-content -->
</div><!-- /card-body -->
</a>
</div>
<?php
}
echo "</div>";
}
}
?>
<?php
// do action per innestare elementi tramite plugin / child theme
do_action("dsi_luogo_content_after_description");
?>
<?php
if(is_array($elementi_di_interesse) && $elementi_di_interesse != ""){
?>
<h6><?php _e("Elementi di interesse", "design_scuole_italia"); ?></h6>
<div class="card-deck card-deck-spaced mb-4 card_container_accordion">
<?php
$count = 0;
foreach ($elementi_di_interesse as $elemento){
$descrizione_more = '';
$descrizione = $elemento["descrizione"];
$description_length = dsi_get_option("excerpt_length", "luoghi");
$descrizione_excerpt = dsi_truncate($descrizione, $description_length, ' ', '');
if(strlen($descrizione)>$description_length) {
$descrizione_more = str_replace($descrizione_excerpt, '', $descrizione);
$descrizione_excerpt .= '...';
}
?>
<div class="card card-bg card-bg-simple rounded card_accordion">
<div class="card-body">
<div id="dsi_description_container_<?php echo $count; ?>">
<p><?php echo $elemento["titolo"]; ?></p>
<small>
<span id="dsi_description_<?php echo $count; ?>"><?php echo $descrizione_excerpt; ?></span>
<?php if(!empty($descrizione_more)): ?>
<p style="position: absolute; left: -9999em" id="dsi_description_more_<?php echo $count; ?>"><?php echo $descrizione_more; ?></p>
<?php endif; ?>
</small>
</div>
<a href="#" class="show small dsi_more" data-id="<?php echo $count; ?>">Visualizza altro</a>
</div><!-- /card-body -->
</div><!-- /card card-bg card-icon rounded -->
<?php
$count++;
}
?>
</div>
<?php
}
?>
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<h4 id="art-par-dove"><?php _e("Dove si trova", "design_scuole_italia"); ?></h4>
<?php
global $lg;
$lg=12;
get_template_part("template-parts/luogo/card"); ?>
<?php if($modalita_accesso){ ?>
<h6><?php _e("Modalità di accesso", "design_scuole_italia"); ?></h6>
<div class="row variable-gutters mb-5">
<div class="col-lg-12">
<div class="card-deck card-deck-spaced">
<?php
foreach ($modalita_accesso as $tacc){
$titolo = "";
if(isset($tacc["tipologia_accesso"])){
if($tacc["tipologia_accesso"] == "accessibilita")
$titolo = "Accessibilità";
else
$titolo = ucfirst($tacc["tipologia_accesso"]);
}else{
$tacc["tipologia_accesso"] = "";
$titolo = "";
}
?>
<div class="card card-bg card-icon-big rounded mb-4">
<div class="card-icon-container">
<?php get_template_part("template-parts/svg/icona",$tacc["tipologia_accesso"]); ?>
</div><!-- /card-icon-container -->
<div class="card-content">
<h4><?php echo $titolo; ?></h4>
<div class="row variable-gutters">
<div class="col-lg-12">
<p><strong><?php if(isset($tacc["titolo_accesso"])) echo $tacc["titolo_accesso"]; ?></strong></p>
<small><?php if(isset($tacc["Indirizzo_accesso"])) echo $tacc["Indirizzo_accesso"]; ?></small>
</div><!-- /col-lg-12 -->
</div><!-- /row -->
</div><!-- /card-content -->
</div><!-- /card card-bg card-icon-main rounded -->
<?php
}
?>
</div>
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<?php } ?>
<?php if($servizi_presenti || $servizi_altro){ ?>
<h4 id="art-par-06" class="mb-4"><?php _e("Servizi presenti", "design_scuole_italia"); ?></h4>
<?php if($servizi_presenti){ ?>
<div class="row variable-gutters">
<div class="col-lg-12">
<div class="card-deck card-deck-spaced">
<?php foreach ($servizi_presenti as $idservizio){
$servizio = get_post($idservizio);
get_template_part("template-parts/servizio/card");
} ?>
</div><!-- /card-deck card-deck-spaced -->
</div><!-- /col-lg-12 -->
</div><!-- /row -->
<?php }
if($servizi_altro){
?>
<div class="row variable-gutters">
<div class="col-lg-12 wysiwig-text">
<?php echo wpautop($servizi_altro); ?>
</div>
</div>
<?php } ?>
<?php } ?>
<?php if($link_strutture){ ?>
<h4 id="art-par-strutture" class="mb-4"><?php _e("Il luogo è sede di", "design_scuole_italia"); ?></h4>
<div class="row variable-gutters mb-4">
<div class="col-lg-12">
<div class="card-deck card-deck-spaced">
<?php
foreach ( $link_strutture as $id_struttura ) {
$struttura = get_post($id_struttura);
get_template_part("template-parts/struttura/card");
}
?>
</div><!-- /card-deck card-deck-spaced -->
</div><!-- /col-lg-12 -->
</div><!-- /row -->
<?php } ?>
<?php if($gestito_da_nome != "" || (is_array($gestito_da) && count($gestito_da)> 0) || (is_array($gestito_da_persone) && count($gestito_da_persone) > 0)){ ?>
<h4 id="art-par-08"><?php _e("Gestito da", "design_scuole_italia"); ?></h4>
<?php if(is_array($gestito_da) && count($gestito_da)> 0){ ?>
<h6><?php _e("Strutture che gestiscono il luogo", "design_scuole_italia"); ?></h6>
<div class="row variable-gutters">
<div class="col-lg-12">
<div class="card-deck card-deck-spaced">
<?php
foreach ( $gestito_da as $id_struttura ) {
$struttura = get_post($id_struttura);
get_template_part("template-parts/struttura/card");
}
?>
</div><!-- /card-deck card-deck-spaced -->
</div><!-- /col-lg-12 -->
</div><!-- /row -->
<?php } ?>
<?php if(is_array($gestito_da_persone) && count($gestito_da_persone)>0){ ?>
<h6><?php _e("Persone che gestiscono il luogo", "design_scuole_italia"); ?></h6>
<div class="card-deck card-deck-spaced mb-2">
<?php
foreach ($gestito_da_persone as $idutente) {
$autore = get_user_by("ID", $idutente);
?>
<div class="card card-bg card-avatar rounded">
<a href="<?php echo get_author_posts_url( $autore->ID); ?>">
<div class="card-body">
<?php get_template_part("template-parts/autore/card"); ?>
</div>
</a>
</div><!-- /card card-bg card-avatar rounded -->
<?php
}
?>
</div><!-- /card-deck -->
<?php } ?>
<?php if($gestito_da_nome != "") { ?>
<div class="row variable-gutters mb-3">
<div class="col-lg-9">
<p class="mb-3"><?php echo $gestito_da_nome; ?></p>
<?php if($gestito_da_link != ""){ ?>
<div class="btn-wrapper mb-5">
<a class="btn btn-redbrown" href="<?php echo $gestito_da_link; ?>"><?php _e("Vai alla pagina del gestore", "design_scuole_italia"); ?></a>
</div>
<?php } ?>
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<?php } ?>
<?php } ?>
<?php
if(trim($altre_info) != ""){
?>
<h4 id="art-par-altre-info"><?php _e("Ulteriori informazioni", "design_scuole_italia"); ?></h4>
<div class="row variable-gutters">
<div class="col-lg-9 wysiwig-text">
<?php echo wpautop($altre_info); ?>
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<?php
}
?>
<?php if((trim($anno_costruzione) != "") || (trim($numero_piani) != "") || (trim($posti_sedere) != "") ){ ?>
<h4 id="art-par-dettagli"><?php _e("Dettagli edificio", "design_scuole_italia"); ?></h4>
<div class="row variable-gutters">
<div class="col-lg-9">
<div class="big-data-rounded-icon">
<div class="big-data-rounded-icon-wrapper">
<svg width="100%" height="100%" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">
<rect id="Rectangle-path" x="0" y="0.035" width="32" height="32" style="fill:none;"/>
<path d="M4.294,2.738l2.602,-2.602c0.085,-0.074 0.127,-0.123 0.328,-0.136l17.552,0c0.02,0.001 0.041,0.003 0.061,0.004c0.198,0.039 0.152,0.032 0.267,0.132l2.621,2.621c0.165,0.065 0.197,0.165 0.215,0.406l0,28.354c-0.026,0.36 -0.124,0.439 -0.463,0.463l-9.453,0c-1.348,0.045 -2.698,0 -4.047,0l-9.454,0c-0.359,-0.026 -0.438,-0.123 -0.463,-0.463l0,-28.354c0.019,-0.26 0.076,-0.374 0.234,-0.425Zm22.72,0.888l-22.028,0l0,27.428l8.513,0c-0.037,-1.645 0.013,-3.292 0.013,-4.938c0.008,-0.241 0.192,-0.437 0.431,-0.461c1.371,-0.047 2.743,-0.047 4.114,0c0.228,0.023 0.407,0.202 0.43,0.43c0.057,1.655 0.011,3.313 0.002,4.969l8.525,0l0,-27.428Zm-9.452,22.953l-3.124,0l0,4.475l3.124,0l0,-4.475Zm-6.261,-7.676c0.23,0.02 0.415,0.203 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.24 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.196 -0.462,-0.436c-0.04,-1.359 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.196,-0.442 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm6.751,0c0.23,0.02 0.415,0.203 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.24 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.196 -0.462,-0.436c-0.04,-1.359 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.193,-0.441 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm6.751,0c0.23,0.02 0.415,0.203 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.24 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.193 -0.462,-0.436c-0.04,-1.359 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.193,-0.441 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm-13.992,0.925l-3.124,0l0,3.125l3.124,0l0,-3.125Zm6.751,0l-3.124,0l0,3.125l3.124,0l0,-3.125Zm6.751,0l-3.124,0l0,3.125l3.124,0l0,-3.125Zm-13.012,-7.676c0.231,0.021 0.415,0.205 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.241 -0.196,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.196 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.193,-0.441 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm6.751,0c0.23,0.021 0.415,0.203 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.24 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.193 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.196,-0.442 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm6.751,0c0.23,0.021 0.415,0.203 0.435,0.436c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.24 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.193 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.196,-0.442 0.436,-0.463c1.367,-0.039 2.737,-0.039 4.104,0Zm-13.992,0.926l-3.124,0l0,3.124l3.124,0l0,-3.124Zm6.751,0l-3.124,0l0,3.124l3.124,0l0,-3.124Zm6.751,0l-3.124,0l0,3.124l3.124,0l0,-3.124Zm0.49,-7.676c0.23,0.02 0.415,0.202 0.435,0.435c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.241 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.442,-0.196 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.193,-0.441 0.436,-0.462c1.367,-0.04 2.737,-0.04 4.104,0Zm-13.502,0c0.231,0.02 0.415,0.204 0.435,0.435c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.241 -0.196,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.193 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.196,-0.441 0.436,-0.462c1.367,-0.04 2.737,-0.04 4.104,0Zm6.751,0c0.231,0.02 0.415,0.204 0.435,0.435c0.04,1.358 0.001,2.718 0.001,4.077c-0.007,0.241 -0.193,0.441 -0.436,0.462c-1.358,0.04 -2.718,0.001 -4.077,0.001c-0.241,-0.007 -0.441,-0.196 -0.462,-0.436c-0.04,-1.358 -0.001,-2.718 -0.001,-4.077c0.007,-0.241 0.196,-0.441 0.436,-0.462c1.367,-0.04 2.737,-0.04 4.104,0Zm-7.241,0.925l-3.124,0l0,3.124l3.124,0l0,-3.124Zm13.502,0l-3.124,0l0,3.124l3.124,0l0,-3.124Zm-6.751,0l-3.124,0l0,3.124l3.124,0l0,-3.124Zm-11.921,-3.627l20.718,0l-1.775,-1.774l-17.168,0l-1.775,1.774Z"/>
</svg>
</div><!-- /big-data-rounded-icon-wrapper -->
<div class="big-data-rounded-icon-content">
<?php if($anno_costruzione){ ?>
<h4><?php _e("Anno di costruzione", "design_scuole_italia"); ?></h4>
<p><?php echo $anno_costruzione; ?></p>
<?php } ?>
<?php if($numero_piani){ ?>
<h4><?php _e("Numero di piani", "design_scuole_italia"); ?></h4>
<p><?php echo $numero_piani; ?></p>
<?php } ?>
<?php if($posti_sedere){ ?>
<h4><?php _e("Posti a sedere", "design_scuole_italia"); ?></h4>
<p><?php echo $posti_sedere; ?></p>
<?php } ?>
</div>
</div><!-- /big-data-rounded-icon -->
</div><!-- /col-lg-9 -->
</div><!-- /row -->
<?php } ?>
<?php do_action("dsi_content_bottom_items", $post); ?>
</article>
</div><!-- /col-lg-8 -->
</div><!-- /row -->
</div><!-- /container -->
</section>
<?php if(is_array($gallery) && count($gallery) > 0){ ?>
<section class="section bg-gray-light py-5" id="art-par-galleria">
<div class="container py-4">
<div class="title-section text-center mb-5">
<h3 class="h4"><?php _e("Gallery", "design_scuole_italia"); ?> <?php the_title(); ?></h3>
</div><!-- /title-large -->
<div class="row variable-gutters">
<div class="col">
<div class="it-carousel-wrapper simple-two-carousel splide" data-bs-carousel-splide>
<div class="splide__track">
<ul class="splide__list">
<?php get_template_part( "template-parts/single/gallery", $post->post_type ); ?>
</ul>
</div><!-- /carousel-simple -->
</div>
</div><!-- /col -->
</div><!-- /row -->
</div><!-- /container -->
</section><!-- /section -->
<?php } ?>
<?php
endwhile; // End of the loop. ?>
<?php
global $related_type;
$related_type = "card-white";
get_template_part("template-parts/single/more-posts"); ?>
</main><!-- #main -->
<?php
get_footer();