Make WordPress Themes

source: lightning/4.1.8/footer.php

Last change on this file was 91361, checked in by themedropbox, 8 years ago

New version of Lightning - 4.1.8

File size: 2.1 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 wp_nav_menu( array(
19                'theme_location'    => 'Footer',
20                'container'         => 'nav',
21                'items_wrap'        => '<ul id="%1$s" class="%2$s nav">%3$s</ul>',
22                'fallback_cb'       => '',
23                'depth'             => 1
24            ) ); ?>
25        </div>
26    </div>
27    <div class="container sectionBox">
28        <div class="row ">
29            <?php
30            // Area setting
31            $footer_widget_area = array(
32                // Use 1 widget area
33                1 => array('class' => 'col-md-12'),
34                // Use 2 widget area
35                2 => array('class' => 'col-md-6'),
36                // Use 3 widget area
37                3 => array('class' => 'col-md-4'),
38                // Use 4 widget area
39                4 => array('class' => 'col-md-3'),
40                );
41
42            $footer_widget_area_count = 3;
43            $footer_widget_area_count = apply_filters( 'lightning_footer_widget_area_count', $footer_widget_area_count );
44
45            // Print widget area
46            for ( $i = 1; $i <= $footer_widget_area_count; ) {
47                echo '<div class="'.$footer_widget_area[$footer_widget_area_count]['class'].'">';
48                    if ( is_active_sidebar( 'footer-widget-'.$i ) ) dynamic_sidebar( 'footer-widget-'.$i );
49                echo '</div>';
50                $i++;
51            }
52            ?>
53        </div>
54    </div>
55    <div class="container sectionBox copySection text-center">
56          <?php lightning_the_footerCopyRight(); ?>
57    </div>
58</footer>
59<?php do_action('lightning_footer_after'); ?>
60<?php wp_footer();?>
61</body>
62</html>
Note: See TracBrowser for help on using the repository browser.