forked from PorteAperteSulWeb/pasw2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
86 lines (69 loc) · 3.16 KB
/
footer.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
</div>
<div class="clear"></div>
<?php if (get_option('pasw_loghi_footer')!= '') { ?>
<div class="imglinks">
<?php echo html_entity_decode(get_option('pasw_loghi_footer')); ?>
<div class="clear"></div>
</div>
<?php } else { echo '<br/><br/><br/>'; } ?>
</div>
<div id="footer">
<div id="footer-interno">
<div class="footer-column">
<img style="float:left;padding:10px;max-height:140px;" src="<?php echo get_option('pasw_logo'); ?>" alt=""/>
<span style="float:left;padding-top: 12px;max-width: 70%;">
<?php bloginfo('name'); ?>
<br/>
<small>
<?php
$site_url = get_site_url();
if (get_option('pasw_indirizzo_scuola') != '') {
echo stripslashes(get_option('pasw_indirizzo_scuola')) . '<br/>';
}
if (get_option('pasw_recapito_scuola') != '') {
echo stripslashes(get_option('pasw_recapito_scuola')) . '<br/>';
}
if (get_option('pasw_email_scuola') != '') {
echo stripslashes(get_option('pasw_email_scuola')) . '<br/>';
}
?>
<?php echo html_entity_decode(get_option('pasw_testo_footer')); ?><br/>
</small>
</span>
</div>
<div class="footer-column" style="width:15%;">
<?php
$menu_name = 'menu-3'; // Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu)
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) {
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menu_items = wp_get_nav_menu_items($menu->term_id);
$i = 0;
echo '<ul style="list-style-type: square;font-size: 0.8em;margin-top: 30px;">';
foreach ( (array) $menu_items as $key => $menu_item ) {
echo '<li><a href="' . $menu_item->url . '">' . $menu_item->title . '</a></li>';
}
echo '</ul>';
}
?>
</div>
<div id="footer-credits">
Credits
<p>Sito realizzato <?php if (get_option('pasw_Autore')) { echo 'da ' . get_option('pasw_Autore') . '<br/>'; }?>su modello della comunità di pratica<br/>
<?php
// #######################
// Abbiamo lavorato molto su questo nuovo tema. Per favore, non rimuovere i credits.
// #######################
?>
<a title="Porte Aperte sul Web" href="http://www.porteapertesulweb.it/"> <img src="<?php echo get_template_directory_uri() . '/images/logopab.png'; ?>" width="180" alt=""/></a>
<br/><small> Versione 2015.<?php echo get_option('pasw2015_version'); ?><br/>
Proudly powered by <a href="http://wordpress.org" title="Piattaforma CMS WordPress">WordPress</a> •
<a href="http://validator.w3.org/check/referer" title="HTML5 valido"><abbr title="HyperText Markup Language">HTML5</abbr></a> •
<a href="http://jigsaw.w3.org/css-validator/check/referer" title="CSS valido"><abbr title="Cascading Style Sheets">CSS</abbr></a>
</small>
</p>
</div>
</div>
</div>
<?php wp_footer(); ?>
</body>
</html>