Make WordPress Themes

source: square/1.5.4/footer.php

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

New version of Square - 1.5.4

File size: 3.1 KB
Line 
1<?php
2/**
3 * The template for displaying the footer.
4 *
5 * @package Square
6 */
7
8?>
9
10        </div><!-- #content -->
11
12        <footer id="sq-colophon" class="sq-site-footer">
13                <?php if(is_active_sidebar('square-footer1') || is_active_sidebar('square-footer2') || is_active_sidebar('square-footer3') || is_active_sidebar('square-footer4') ): ?>
14                <div id="sq-top-footer">
15                        <div class="sq-container">
16                                <div class="sq-top-footer sq-clearfix">
17                                        <div class="sq-footer sq-footer1">
18                                                <?php if(is_active_sidebar('square-footer1')): 
19                                                        dynamic_sidebar('square-footer1');
20                                                endif;
21                                                ?>     
22                                        </div>
23
24                                        <div class="sq-footer sq-footer2">
25                                                <?php if(is_active_sidebar('square-footer2')): 
26                                                        dynamic_sidebar('square-footer2');
27                                                endif;
28                                                ?>     
29                                        </div>
30
31                                        <div class="sq-footer sq-footer3">
32                                                <?php if(is_active_sidebar('square-footer3')): 
33                                                        dynamic_sidebar('square-footer3');
34                                                endif;
35                                                ?>     
36                                        </div>
37
38                                        <div class="sq-footer sq-footer4">
39                                                <?php if(is_active_sidebar('square-footer4')): 
40                                                        dynamic_sidebar('square-footer4');
41                                                endif;
42                                                ?>     
43                                        </div>
44                                </div>
45                        </div>
46                </div>
47                <?php endif; ?>
48
49                <?php if(is_active_sidebar('square-about-footer')): ?>
50                <div id="sq-middle-footer">
51                        <div class="sq-container">
52                                <?php 
53                                        dynamic_sidebar('square-about-footer');
54                                ?>
55                        </div>
56                </div>
57                <?php endif; ?>
58
59                <div id="sq-bottom-footer">
60                        <div class="sq-container sq-clearfix">
61                                <div class="sq-site-info">
62                                        <?php printf( esc_html__( 'WordPress Theme', 'square' ) ); ?>
63                                        <span class="sep"> | </span>
64                                        <?php printf( 
65                                                /* translators: 1: link 2: Theme name */
66                                                esc_html__( '%1$s by %2$s', 'square' ), '<a target="_blank" href="http://hashthemes.com/wordpress-theme/square/">Square</a>', 'Hash Themes'
67                                        ); ?>
68                                </div>
69
70                                <div class="sq-site-social">
71                                <?php 
72                                        $facebook = get_theme_mod('square_social_facebook');
73                                        $twitter = get_theme_mod('square_social_twitter');
74                                        $pinterest = get_theme_mod('square_social_pinterest');
75                                        $youtube = get_theme_mod('square_social_youtube');
76                                        $linkedin = get_theme_mod('square_social_linkedin');
77                                        $instagram = get_theme_mod('square_social_instagram');
78
79                                        if($facebook)
80                                                echo '<a class="sq-facebook" href="'.esc_url( $facebook ).'" target="_blank"><i class="fa fa-facebook"></i></a>';
81
82                                        if($twitter)
83                                                echo '<a class="sq-twitter" href="'.esc_url( $twitter ).'" target="_blank"><i class="fa fa-twitter"></i></a>';
84                                       
85                                        if($pinterest)
86                                                echo '<a class="sq-pinterest" href="'.esc_url( $pinterest ).'" target="_blank"><i class="fa fa-pinterest"></i></a>';
87
88                                        if($youtube)
89                                                echo '<a class="sq-youtube" href="'.esc_url( $youtube ).'" target="_blank"><i class="fa fa-youtube"></i></a>';
90
91                                        if($linkedin)
92                                                echo '<a class="sq-linkedin" href="'.esc_url( $linkedin ).'" target="_blank"><i class="fa fa-linkedin"></i></a>';
93
94                                        if($instagram)
95                                                echo '<a class="sq-instagram" href="'.esc_url( $instagram ).'" target="_blank"><i class="fa fa-instagram"></i></a>';
96                                ?>
97                                </div>
98                        </div>
99                </div>
100        </footer><!-- #colophon -->
101</div><!-- #page -->
102
103<?php wp_footer(); ?>
104
105</body>
106</html>
Note: See TracBrowser for help on using the repository browser.