Make WordPress Themes

source: lightning/12.1.1/footer.php

Last change on this file was 135922, checked in by themedropbox, 5 years ago

New version of Lightning - 12.1.1

File size: 1.9 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="<?php lightning_the_class_name( '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 footerWidget">
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                                // Use 6 widget area
45                                6 => array( 'class' => 'col-md-2' ),
46                        );
47
48                        $footer_widget_area_count = 3;
49                        $footer_widget_area_count = apply_filters( 'lightning_footer_widget_area_count', $footer_widget_area_count );
50
51                        // Print widget area
52                        for ( $i = 1; $i <= $footer_widget_area_count; ) {
53                                echo '<div class="' . $footer_widget_area[ $footer_widget_area_count ]['class'] . '">';
54                                if ( is_active_sidebar( 'footer-widget-' . $i ) ) {
55                                        dynamic_sidebar( 'footer-widget-' . $i );
56                                }
57                                echo '</div>';
58                                $i++;
59                        }
60                        ?>
61                </div>
62        </div>
63
64        <?php do_action( 'lightning_copySection_before' ); ?>
65
66        <div class="container sectionBox copySection text-center">
67                        <?php lightning_the_footerCopyRight(); ?>
68        </div>
69</footer>
70<?php do_action( 'lightning_footer_after' ); ?>
71<?php wp_footer(); ?>
72</body>
73</html>
Note: See TracBrowser for help on using the repository browser.