-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
107 lines (95 loc) · 3.22 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package iPanelThemes Knowledgebase
*/
?>
</div><!-- #content -->
</div>
</div>
<script>
/*Menu-toggle*/
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("active");
});
/*Scroll Spy*/
$('body').scrollspy({ target: '#spy', offset:80});
/*Smooth link animation*/
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
</script>
<footer style="color:#fff;">
<div class="site-info bg-primary">
<div class="copyright text-light container">
<?php
wp_nav_menu( array(
'menu' => 'primaryalt',
'theme_location' => 'primaryalt',
'depth' => 4,
'container' => '',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'IPT_Bootstrap_Walker_Nav_Menu::fallback',
'walker' => new IPT_Bootstrap_Walker_Nav_Menu())
);
?>
<div style="float:right; padding-top:15px;">
<?php query_posts('showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<i class="fas fa-history"></i> <?php the_time('d.m.Y') ?> tarihinde yenilendi
<?php endwhile;?>
<?php
wp_reset_query();?>
</div>
</div>
</div><!-- .site-info -->
<div class="site-info text-light" style="background:#222; padding-top:20px; padding-bottom:20px;">
<div class="container">
<div class="row">
<div class="col-md-3">
<a href="https://kutuphanemizden.com" rel="nofollow noreferrer noopener" target="_blank" title="Kütüphanemizden"><img src="<?php echo get_bloginfo('template_directory');?>/images/logow.png" style="margin-right:10px;"></a> © <?php echo date('Y'); ?> <span style="color: white;">·</span> <a style="color: white;" href="https://github.com/swashata/ipt-knowledgebase-theme-wp" rel="nofollow noreferrer noopener" target="_blank" title="WP Knowledge Base Theme">KBT</a>
</div>
<div class="col-md-3" style="text-align:right;">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div>
<div class="col-md-6" style="text-align:right;">
<?php dynamic_sidebar( 'sidebar-3' ); ?>
</div>
</div>
</div>
</div>
<?php wp_footer(); ?>
</footer><!-- #colophon -->
<?php if ( of_get_option( 'reklam_alt' ) ) { ?>
<div class="container" style="margin-top:20px; margin-bottom:20px;">
<div class="reklamnet">
<?php echo of_get_option( 'reklam_alt', '' ); ?>
</div>
</div>
<?php } ?>
</div><!-- #page -->
<script>
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px */
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
}
/* Set the width of the side navigation to 0 and the left margin of the page content to 0 */
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
}
</script>
</body>
</html>