-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter-blank_widgets.php
91 lines (68 loc) · 1.86 KB
/
footer-blank_widgets.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
<?php
/**
* The Blank footer with widgets template.
*
* @since olea 1.0
*/
?>
</div><!-- end #page -->
<footer id="footer" style="margin: 0; padding: 0; border: none;">
<?php // FOOTER WIDGETS //////////////////////////////// ?>
<?php if ( is_active_sidebar( 'footer-widgets-1' ) || is_active_sidebar( 'footer-widgets-2' ) || is_active_sidebar( 'footer-widgets-3' ) ) : ?>
<div id="footerwidgets">
<div class="row">
<?php
if ( is_active_sidebar( 'footer-widgets-1' ) ) {
echo '<div>';
dynamic_sidebar( 'footer-widgets-1' );
echo '</div>';
}
if ( is_active_sidebar( 'footer-widgets-2' ) ){
echo '<div>';
dynamic_sidebar( 'footer-widgets-2' );
echo '</div>';
}
if ( is_active_sidebar( 'footer-widgets-3' ) ) {
echo '<div>';
dynamic_sidebar( 'footer-widgets-3' );
echo '</div>';
}
if ( is_active_sidebar( 'footer-widgets-4' ) ) {
echo '<div>';
dynamic_sidebar( 'footer-widgets-4' );
echo '</div>';
}
?>
</div><!-- / .row -->
</div>
<div class="row"><div class="footer-border clearfix small-12"></div></div>
<?php endif; ?>
</footer>
<?php
// SOME WOOCOMMERCE STUFF:
global $woocommerce, $olea_woo_is_active;
if( $olea_woo_is_active ) {
if( function_exists( 'wc_notice_count' ) ) {
if( wc_notice_count() ) {
echo '<div class="theme-shop-message">';
do_action( 'woocommerce_before_single_product' );
echo '</div>';
}
}else{
// backward < 2.1 compatibility:
if( $woocommerce->error_count() > 0 || $woocommerce->message_count() > 0 ) {
echo '<div class="theme-shop-message">';
do_action( 'woocommerce_before_single_product' );
echo '</div>';
}
}
}
?>
<?php wp_footer(); ?>
<!-- <script type="text/javascript">
function noError(){return true;}
window.onerror = noError;
</script>
-->
</body>
</html>