-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
144 lines (135 loc) · 6.28 KB
/
footer.php
File metadata and controls
144 lines (135 loc) · 6.28 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Newsphere
*/
?>
</div>
<?php do_action('newsphere_action_full_width_upper_footer_section'); ?>
<footer class="site-footer">
<?php $newsphere_footer_widgets_number = newsphere_get_option('number_of_footer_widget');
if (1 == $newsphere_footer_widgets_number) {
$col = 'col-md-12';
} elseif (2 == $newsphere_footer_widgets_number) {
$col = 'col-md-6';
} elseif (3 == $newsphere_footer_widgets_number) {
$col = 'col-md-4';
} else {
$col = 'col-md-4';
} ?>
<?php if (is_active_sidebar( 'footer-first-widgets-section') || is_active_sidebar( 'footer-second-widgets-section') || is_active_sidebar( 'footer-third-widgets-section') || is_active_sidebar( 'footer-fourth-widgets-section')) : ?>
<div class="primary-footer">
<div class="container-wrapper">
<div class="af-container-row">
<?php if (is_active_sidebar( 'footer-first-widgets-section') ) : ?>
<div class="primary-footer-area footer-first-widgets-section <?php echo esc_attr($col); ?> col-sm-12">
<section class="widget-area color-pad">
<?php dynamic_sidebar('footer-first-widgets-section'); ?>
</section>
</div>
<?php endif; ?>
<?php if (is_active_sidebar( 'footer-second-widgets-section') ) : ?>
<div class="primary-footer-area footer-second-widgets-section <?php echo esc_attr($col); ?> col-sm-12">
<section class="widget-area color-pad">
<?php dynamic_sidebar('footer-second-widgets-section'); ?>
</section>
</div>
<?php endif; ?>
<?php if (is_active_sidebar( 'footer-third-widgets-section') ) : ?>
<div class="primary-footer-area footer-third-widgets-section <?php echo esc_attr($col); ?> col-sm-12">
<section class="widget-area color-pad">
<?php dynamic_sidebar('footer-third-widgets-section'); ?>
</section>
</div>
<?php endif; ?>
<?php if (is_active_sidebar( 'footer-fourth-widgets-section') ) : ?>
<div class="primary-footer-area footer-fourth-widgets-section <?php echo esc_attr($col); ?> col-sm-12">
<section class="widget-area color-pad">
<?php dynamic_sidebar('footer-fourth-widgets-section'); ?>
</section>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if(1 != newsphere_get_option('hide_footer_menu_section')): ?>
<?php if (has_nav_menu( 'aft-footer-nav' ) || has_nav_menu( 'aft-social-nav' )):
$class = 'col-1';
if (has_nav_menu( 'aft-footer-nav' ) && has_nav_menu( 'aft-social-nav' )){
$class = 'col-2';
}
?>
<div class="secondary-footer">
<div class="container-wrapper">
<div class="af-container-row clearfix af-flex-container">
<?php if (has_nav_menu( 'aft-footer-nav' )): ?>
<div class="float-l pad color-pad <?php echo esc_attr($class); ?>">
<div class="footer-nav-wrapper">
<?php
wp_nav_menu(array(
'theme_location' => 'aft-footer-nav',
'menu_id' => 'footer-menu',
'depth' => 1,
'container' => 'div',
'container_class' => 'footer-navigation'
)); ?>
</div>
</div>
<?php endif; ?>
<?php if (has_nav_menu( 'aft-social-nav' )): ?>
<div class="float-l pad color-pad <?php echo esc_attr($class); ?>">
<div class="footer-social-wrapper">
<div class="aft-small-social-menu">
<?php
wp_nav_menu(array(
'theme_location' => 'aft-social-nav',
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'menu_id' => 'social-menu',
'container' => 'div',
'container_class' => 'social-navigation'
));
?>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="site-info">
<div class="container-wrapper">
<div class="af-container-row">
<div class="col-1 color-pad">
<?php $newsphere_copy_right = newsphere_get_option('footer_copyright_text'); ?>
<?php if (!empty($newsphere_copy_right)): ?>
<?php echo esc_html($newsphere_copy_right); ?>
<?php endif; ?>
<?php $newsphere_theme_credits = newsphere_get_option('hide_footer_copyright_credits'); ?>
<?php if ($newsphere_theme_credits != 1): ?>
<span class="sep"> | </span>
<?php
/* translators: 1: Theme name, 2: Theme author. */
printf(esc_html__('%1$s by %2$s.', 'newsphere'), '<a href="https://afthemes.com/products/newsphere">Newsphere</a>', 'AF themes');
?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</footer>
</div>
<a id="scroll-up" class="secondary-color">
<i class="fa fa-angle-up"></i>
</a>
<?php wp_footer(); ?>
</body>
</html>