forked from italia/design-comuni-wordpress-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
executable file
·38 lines (37 loc) · 1.73 KB
/
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
<?php
/**
* The template for displaying home
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Design_Comuni_Italia
*/
get_header();
?>
<main id="main-container" class="main-container redbrown">
<h1 class="visually-hidden">
<?php echo dci_get_option("nome_comune"); ?>
</h1>
<section id="head-section">
<h2 class="visually-hidden">Contenuti in evidenza</h2>
<?php
$messages = dci_get_option( "messages", "home_messages" );
if($messages && !empty($messages)) {
get_template_part("template-parts/home/messages");
}
?>
<?php get_template_part("template-parts/home/notizie"); ?>
<?php get_template_part("template-parts/home/calendario"); ?>
</section>
<section id="evidenza" class="evidence-section">
<div class="section py-5 pb-lg-80 px-lg-5 position-relative" style="<?php if (file_exists(get_stylesheet_directory().'/assets/img/evidenza-header.png')){ ?>background-image: url('<?php echo esc_url( get_stylesheet_directory_uri()); ?>/assets/img/evidenza-header.png');<?php }else{ ?>background-image: url('<?php echo esc_url( get_template_directory_uri()); ?>/assets/img/evidenza-header.png');<?php } ?>">
<?php get_template_part("template-parts/home/argomenti"); ?>
<?php get_template_part("template-parts/home/siti","tematici"); ?>
</div>
</section>
<?php get_template_part("template-parts/home/ricerca"); ?>
<?php get_template_part("template-parts/common/valuta-servizio"); ?>
<?php get_template_part("template-parts/common/assistenza-contatti"); ?>
</main>
<?php
get_footer();