-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
138 lines (110 loc) · 3.89 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
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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package fotobook
*/
$the_theme = wp_get_theme();
$container = get_theme_mod( 'understrap_container_type' );
?>
<div class="bg-secondary py-5">
<div class="container">
<div class="row">
<?php for ($i=1; $i < 4; $i++) { ?>
<div class="col-lg col-sm-6 mb-3">
<?php wp_nav_menu(
array(
'theme_location' => 'footer-'.$i,
'container' => 'nav',
'container_class' => 'footer-menu ',
'depth' => 1,
'fallback_cb' => '',
)
); ?>
</div>
<?php } ?>
<div class="col-lg d-sm-none d-xl-block"></div>
<div class="col-lg col-sm-6">
<div class="footer-menu">
<a href="http://www.facebook.com/<?php echo esc_attr(get_theme_mod( 'fotobook_facebook_username', 'kuzaru' )); ?>" target="_blank">
<i class="fa fa-facebook-square fa-lg fa-fw"></i>
</a><a href="http://www.instagram.com/<?php echo esc_attr(get_theme_mod( 'fotobook_instagram_username', 'kuskuszamzam' )); ?>/" target="_blank">
<i class="fa fa-instagram fa-lg fa-fw"></i>
</a><a href="http://twitter.com/<?php echo esc_attr(get_theme_mod( 'fotobook_twitter_username', 'kuskus_maskus' )); ?>" target="_blank">
<i class="fa fa-twitter-square fa-lg fa-fw"></i>
</a><br><br>
<img src="<?php echo esc_url(get_theme_mod('fotobook_footer_logo_url',get_template_directory_uri().'/img/z_zamlahani.png')) ?>" class="rounded" height="100" width="100">
</div>
</div>
</div>
</div>
</div>
<div class="wrapper bg-secondary text-center" id="wrapper-footer">
<div class="<?php echo esc_attr( $container ); ?>">
<div class="row">
<div class="col-md-12">
<footer class="site-footer" id="colophon">
<div class="site-info">
<a href="<?php echo esc_url( __( 'http://wordpress.org/','fotobook' ) ); ?>"><?php printf(
/* translators:*/
esc_html__( 'Proudly powered by %s', 'fotobook' ),'WordPress' ); ?></a>
<span class="sep"> | </span>
<?php printf( // WPCS: XSS ok.
/* translators:*/
esc_html__( 'Theme: %1$s by %2$s.', 'fotobook' ), $the_theme->get( 'Name' ), '<a href="'.esc_url( __('http://www.zamlahani.com', 'fotobook')).'">Khussal Zamlahani</a>' ); ?>
(<?php printf( // WPCS: XSS ok.
/* translators:*/
esc_html__( 'Version: %1$s', 'fotobook' ), $the_theme->get( 'Version' ) ); ?>)
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!--col end -->
</div><!-- row end -->
</div><!-- container end -->
</div><!-- wrapper footer end -->
</div><!-- #page we need this extra closing tag here -->
<?php wp_footer(); ?>
</div><!-- tambahan untuk mmenu jquery -->
<style type="text/css">
.mm-menu{background-color: #f3f0e7}
</style>
<script>
jQuery(document).ready(function($) {
var $menu = $("#fotobook-menu").mmenu({
// options
navbar:{title:"<?php bloginfo( 'name' ); ?>"},
"extensions": [
"pagedim-black"
]
},{
// configuration
offCanvas: {
pageSelector: "#fotobook-page"
},
classNames: {
fixedElements: {
fixed: "mm-fixed",
sticky: "mm-sticky"
}
}
});
var $icon = $(".hamburger-toggler");
var API = $menu.data( "mmenu" );
$icon.on( "click", function() {
API.open();
});
API.bind( "open:finish", function() {
setTimeout(function() {
$icon.addClass( "is-active" );
}, 100);
});
API.bind( "close:finish", function() {
setTimeout(function() {
$icon.removeClass( "is-active" );
}, 100);
});
});
</script>
</body>
</html>