-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer-single.php
105 lines (75 loc) · 2.77 KB
/
footer-single.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
<?php
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Footer Template
*
* Here we setup all logic and XHTML that is required for the footer section of all screens.
*
* @package WooFramework
* @subpackage Template
*/
global $woo_options;
$settings = array(
'homepage_enable_promo_message' => 'true'
);
$settings = woo_get_dynamic_values( $settings );
$total = 4;
if ( isset( $woo_options['woo_footer_sidebars'] ) && ( $woo_options['woo_footer_sidebars'] != '' ) ) {
$total = $woo_options['woo_footer_sidebars'];
}
?>
</div><!-- /.wrapper -->
<div class="bg-footer">
<?php
if ( is_home() && 'true' == $settings['homepage_enable_promo_message'] ) {
get_template_part( 'includes/promo-message' );
}
?>
<?php
if ( ( woo_active_sidebar( 'footer-1' ) ||
woo_active_sidebar( 'footer-2' ) ||
woo_active_sidebar( 'footer-3' ) ||
woo_active_sidebar( 'footer-4' ) ) && $total > 0 ) {
?>
<div class="wrapper-footer">
<?php woo_footer_before(); ?>
<section id="footer-widgets" class="col-full col-<?php echo $total; ?> fix">
<?php $i = 0; while ( $i < $total ) { $i++; ?>
<?php if ( woo_active_sidebar( 'footer-' . $i ) ) { ?>
<div class="block footer-widget-<?php echo $i; ?>">
<?php woo_sidebar( 'footer-' . $i ); ?>
</div>
<?php } ?>
<?php } // End WHILE Loop ?>
</section><!-- /#footer-widgets -->
<?php } // End IF Statement ?>
</div><!-- /.wrapper-footer -->
</div><!-- .bg-footer -->
<div class="clear"></div>
<footer id="footer" class="col-full">
<div class="footer-inner">
<div id="copyright" class="col-left">
<?php if( isset( $woo_options['woo_footer_left'] ) && $woo_options['woo_footer_left'] == 'true' ) {
echo stripslashes( $woo_options['woo_footer_left_text'] );
} else { ?>
<p><?php bloginfo(); ?> © <?php echo date( 'Y' ); ?>. <?php _e( 'All Rights Reserved.', 'woothemes' ); ?></p>
<?php } ?>
</div>
<div id="credit" class="col-right">
<?php woo_display_social_icons (); ?>
<?php if( isset( $woo_options['woo_footer_right'] ) && $woo_options['woo_footer_right'] == 'true' )?>
</div>
</div><!--/.footer-inner-->
</footer><!-- /#footer -->
<?php wp_footer(); ?>
<?php woo_foot(); ?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-20596351-2', 'jornaldafotografia.com.br');
ga('send', 'pageview');
</script>
</body>
</html>