-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
46 lines (33 loc) · 1.29 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
<footer id="footer" class="source-org vcard copyright">
<small><?php
if (get_option("book_wp_copyright")!=""){
echo get_option("book_wp_copyright")." <br/> ";
}
?><a href='https://github.com/menj/book-wp'>Book WP Theme</a> is updated by <a href='https://menj.net'>MENJ</a></small>
</footer>
</section>
<?php wp_footer(); ?>
<!-- here comes the javascript -->
<!-- jQuery is called via the Wordpress-friendly way via functions.php -->
<!-- this is where we put our custom functions -->
<script src="<?php bloginfo('template_directory'); ?>/_/js/jquery.cookie.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/_/js/functions.js"></script>
<?php
if(get_option("book_wp_analytics")!= ""){
?>
<!-- Asynchronous google analytics; this is the official snippet.
-->
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo get_option("book_wp_analytics");?>']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php
} ?>
</body>
</html>