-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
executable file
·86 lines (79 loc) · 2.76 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
<?php
/**
* The template for displaying the footer.
*
* Contains footer content and the closing of the
* #main div element.
*
* @package Odin
* @since 2.2.0
*/
?>
</div><!-- .row -->
</div><!-- #wrapper -->
<footer id="footer" role="contentinfo" class="col-md-12">
<div class="container">
<div class="col-md-3 logo-social">
<?php $image = get_theme_mod( 'footer_logo', false ); ?>
<?php if ( $image ) :?>
<a href="<?php home_url();?>" class="site-logo">
<img src="<?php echo esc_url( $image );?>" alt="<?php bloginfo( 'name' ); ?>" />
</a>
<?php endif;?>
<div class="pull-right social-icons">
<?php $links = get_theme_mod( 'social_links', false );?>
<?php if ( $links ) : ?>
<?php foreach( $links as $link ) : ?>
<?php $class = sprintf( 'fa-%s-f', $link[ 'link_icon' ] );?>
<?php if ( 'twitter' === $link[ 'link_icon'] ) {
$class = 'fa-twitter';
}
if ( 'instagram' === $link[ 'link_icon'] ) {
$class = 'fa-instagram';
}
if ( 'whatsapp' === $link[ 'link_icon'] ) {
$class = 'fa-whatsapp';
}
if ( 'telegram' === $link[ 'link_icon'] ) {
$class = 'fa-telegram-plane';
}
if ( 'youtube' === $link[ 'link_icon'] ) {
$class = 'fas fa-play';
}
?>
<a href="<?php echo esc_url( $link[ 'link_url'] );?>">
<i class="fab <?php echo $class;?>"></i>
</a>
<?php endforeach;?>
<?php endif;?>
</div><!-- .pull-right social-icons -->
</div><!-- .col-md-3 logo-social -->
<div class="col-md-6 nav-footer">
<?php for ( $i = 1; $i < 5; $i++ ) : ?>
<?php $theme_location = sprintf( 'menu-footer-%s', $i );?>
<nav class="nav-footer-each col-md-3">
<?php
wp_nav_menu(
array(
'theme_location' => $theme_location,
'depth' => 1,
'container' => false,
)
);
?>
</nav><!-- .nav-footer-each col-md-3 -->
<?php endfor;?>
</div><!-- .col-md-7 nav-footer -->
<div class="col-md-3 madeby">
<a href="https://resistenciapsol50.com.br">
<img src="<?php echo get_template_directory_uri();?>/assets/images/resistencia.png" alt="<?php _e( 'Mantido pela Resistencia - Corrente interna do PSOL', 'eol');?>" title="<?php _e( 'Mantido pela Resistencia - Corrente interna do PSOL', 'eol');?>">
</a>
<a href="https://brasa.art.br">
<img src="<?php echo get_template_directory_uri();?>/assets/images/brasa.png" alt="<?php _e( 'Desenvolvido em WordPress pela Brasa.art.br', 'eol' );?>" title="<?php _e( 'Desenvolvido em WordPress pela Brasa.art.br', 'eol' );?>">
</a>
</div><!-- .col-md-3 madeby -->
</div><!-- .container -->
</footer><!-- #footer -->
<?php wp_footer(); ?>
</body>
</html>