-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
56 lines (30 loc) · 1.07 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
<?php
if( "on" == cram_meta('cram_show_widgets') ) :
if( is_page() ) get_sidebar( 'page' );
if( is_single() ) get_sidebar();
endif;
?>
</div><!-- end content -->
<?php $options = get_option('cram_options'); ?>
<div id="footer">
<div class="row">
<h4><?php echo $options['footer_text']; ?></h4>
</div><!-- end row -->
</div><!-- end footer -->
</div><!-- end page-wrap -->
<?php wp_footer(); ?>
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
<?php if ( $options['include_analytics'] ) : ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-<?php echo $options['analytics_id']; ?>']);
_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 endif; ?>
</body>
</html>