Make WordPress Themes

source: lightning/9.8.0/footer.php

Last change on this file was 129847, checked in by themedropbox, 6 years ago

New version of Lightning - 9.8.0

File size: 1.8 KB
Line 
1<?php if ( is_active_sidebar( 'footer-upper-widget-1' ) ) : ?>
2<div class="section sectionBox siteContent_after">
3        <div class="container ">
4                <div class="row ">
5                        <div class="col-md-12 ">
6                        <?php dynamic_sidebar( 'footer-upper-widget-1' ); ?>
7                        </div>
8                </div>
9        </div>
10</div>
11<?php endif; ?>
12
13<?php do_action( 'lightning_footer_before' ); ?>
14
15<footer class="section siteFooter">
16        <div class="footerMenu">
17           <div class="container">
18                        <?php
19                        wp_nav_menu(
20                                array(
21                                        'theme_location' => 'Footer',
22                                        'container'      => 'nav',
23                                        'items_wrap'     => '<ul id="%1$s" class="%2$s nav">%3$s</ul>',
24                                        'fallback_cb'    => '',
25                                        'depth'          => 1,
26                                )
27                        );
28                        ?>
29                </div>
30        </div>
31        <div class="container sectionBox">
32                <div class="row ">
33                        <?php
34                        // Area setting
35                        $footer_widget_area = array(
36                                // Use 1 widget area
37                                1 => array( 'class' => 'col-md-12' ),
38                                // Use 2 widget area
39                                2 => array( 'class' => 'col-md-6' ),
40                                // Use 3 widget area
41                                3 => array( 'class' => 'col-md-4' ),
42                                // Use 4 widget area
43                                4 => array( 'class' => 'col-md-3' ),
44                        );
45
46                        $footer_widget_area_count = 3;
47                        $footer_widget_area_count = apply_filters( 'lightning_footer_widget_area_count', $footer_widget_area_count );
48
49                        // Print widget area
50                        for ( $i = 1; $i <= $footer_widget_area_count; ) {
51                                echo '<div class="' . $footer_widget_area[ $footer_widget_area_count ]['class'] . '">';
52                                if ( is_active_sidebar( 'footer-widget-' . $i ) ) {
53                                        dynamic_sidebar( 'footer-widget-' . $i );
54                                }
55                                echo '</div>';
56                                $i++;
57                        }
58                        ?>
59                </div>
60        </div>
61
62        <?php do_action( 'lightning_copySection_before' ); ?>
63
64        <div class="container sectionBox copySection text-center">
65                        <?php lightning_the_footerCopyRight(); ?>
66        </div>
67</footer>
68<?php do_action( 'lightning_footer_after' ); ?>
69<?php wp_footer(); ?>
70</body>
71</html>
Note: See TracBrowser for help on using the repository browser.