forked from acolas/Twitter-Bootstrap-2---Wordpress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
executable file
·42 lines (38 loc) · 1.08 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
<?php
/**
* Default Footer
*
* @package WP-Bootstrap
* @subpackage Default_Theme
* @since WP-Bootstrap 0.1
*
* Last Revised: February 4, 2012
*/
?>
<footer>
<p class="pull-right"><a href="#">Back to top</a></p>
<p>© <?php bloginfo('name'); ?> <?php the_time('Y') ?></p>
<?php
if ( function_exists('dynamic_sidebar')) dynamic_sidebar("footer-content");
?>
</footer>
</div> <!-- /container -->
<?php wp_footer(); ?>
<script type="text/javascript">
// Adding the class "dropdown" to li elements with submenus //
jQuery(document).ready(function(){
jQuery("ul.sub-menu").parent().addClass("dropdown");
jQuery("ul#main-menu li.dropdown a").addClass("dropdown-toggle");
jQuery("ul.sub-menu li a").removeClass("dropdown-toggle");
jQuery('.navbar-fixed-top .dropdown-toggle').append('<b class="caret"></b>');
});
</script>
<script type="text/javascript">
jQuery(document).ready(function(){
// Don't FORGET: replace all $ with jQuery to prevent conflicts //
jQuery('a.dropdown-toggle')
.attr('data-toggle', 'dropdown');
});
</script>
</body>
</html>