-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
74 lines (68 loc) · 2.18 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
<?php
/**
* Base footer
*
* @package Acato\WOO_Portal_Theme
* @subpackage Acato\WOO_Portal_Theme\Footer
* @author Acato
*/
namespace Acato\WOO_Portal_Theme;
use Acato\WOO_Portal_Theme\Tools;
$site_title = get_bloginfo('name');
?>
</main>
<footer class="footer">
<div class="footer__nav container">
<div class="nav__item nav__logo">
<a class="logo" href="<?php echo esc_url( get_bloginfo( 'url' ) ); ?>" aria-label="Ga naar <?php echo esc_attr( $site_title ) ?>">
<?php
$image = wp_get_attachment_image( cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_logo_id' ), 'medium' );
if ( ! empty( $image ) ) {
echo wp_kses_post( $image );
} else {
echo '<div>' . esc_html( $site_title ) . '</div>';
}
?>
</a>
</div>
<div class="nav__item">
<div class="nav__content">
<?php
$text2 = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_col_2_text' );
if ( ! empty( $text2 ) ) {
echo wp_kses_post( $text2 );
}?>
</div>
</div>
<div class="nav__item">
<div class="nav__content">
<?php
$text3 = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_col_3_text' );
$btn_text = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_col_3_woogle_button_text' );
$btn_url = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_col_3_woogle_button_url' );
if ( ! empty( $text3 ) ) {
echo wp_kses_post( $text3 );
} ?>
<?php if ( ! empty( $btn_url ) ) { ?>
<a class="footer__btn" href="<?php echo esc_url( $btn_url ) ?>" target="_blank">
<?php echo esc_html( $btn_text );
Tools::svg( 'external-link' ); ?>
</a>
<?php } ?>
</div>
</div>
</div>
<div class="legal">
<div class="footer__nav container">
<span>
<?php
$disclaimer = cmb2_get_option( 'woo_portal_theme_options', 'woo_portal_theme_legal_text' );
echo ( esc_html( $disclaimer) );
?>
</span>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>