-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
84 lines (80 loc) · 3.41 KB
/
footer.php
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
<?php
/**
* The template for displaying the footer.
*
* @package Theme Freesia
* @subpackage Pixgraphy
* @since Pixgraphy 1.0
*/
$pixgraphy_settings = pixgraphy_get_theme_options();
if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout' && !is_page() && !is_single()){
if( is_404() || is_search() || is_archive()):
if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout'){
if(class_exists('WooCommerce') && (is_shop() || is_product_category())){ ?>
</div> <!-- end .container -->
<?php }else{
if(is_404()){ ?>
</div> <!-- end .container -->
<?php }
// silence is golden
}
}else{?>
</div> <!-- end .container -->
<?php }
else: ?>
</div> <!-- end #main -->
<?php
endif;
}else{?>
</div> <!-- end .container -->
<?php
} ?>
</div> <!-- end #content -->
<!-- Footer Start ============================================= -->
<footer id="colophon" class="site-footer clearfix">
<?php
if(class_exists('Pixgraphy_Plus_Features')){
do_action('pixgraphy_footer_column');
} ?>
<div class="site-info" <?php if($pixgraphy_settings['pixgraphy-img-upload-footer-image'] !=''){?>style="background-image:url('<?php echo esc_url($pixgraphy_settings['pixgraphy-img-upload-footer-image']); ?>');" <?php } ?>>
<div class="container">
<?php if(!empty($pixgraphy_settings['pixgraphy-footer-logo']) || !empty($pixgraphy_settings['pixgraphy-footer-title'])):?>
<div id="site-branding">
<?php
if(!empty($pixgraphy_settings['pixgraphy-footer-title'])): ?>
<h2 id="site-title">
<a href="<?php echo esc_url($pixgraphy_settings['pixgraphy-footer-link']);?>" title="<?php echo esc_html($pixgraphy_settings['pixgraphy-footer-title']);?>"><?php echo esc_html($pixgraphy_settings['pixgraphy-footer-title']);?></a>
</h2>
<!-- end #site-title -->
<?php endif; ?>
</div>
<!-- end #site-branding -->
<?php endif;
if($pixgraphy_settings['pixgraphy_buttom_social_icons'] == 0):
do_action('social_links');
endif;
if(class_exists('Pixgraphy_Plus_Features')){
do_action('pixgraphy_footer_menu');
}
if ( is_active_sidebar( 'pixgraphy_footer_options' ) ) :
dynamic_sidebar( 'pixgraphy_footer_options' );
else:
echo '<div class="copyright">' .'© ' . date('Y') .' '; ?>
<a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" target="_blank" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo get_bloginfo( 'name', 'display' ); ?></a> |
<?php esc_html_e('Designed by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'Theme Freesia', 'pixgraphy' ); ?>" target="_blank" href="<?php echo esc_url( 'https://themefreesia.com' ); ?>"><?php esc_html_e('Theme Freesia','pixgraphy');?></a> |
<?php esc_html_e('Powered by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'WordPress', 'pixgraphy' );?>" target="_blank" href="<?php echo esc_url( 'http://wordpress.org' );?>"><?php esc_html_e('WordPress','pixgraphy'); ?></a>
</div>
<?php endif;?>
<div style="clear:both;"></div>
</div> <!-- end .container -->
</div> <!-- end .site-info -->
<?php
$disable_scroll = $pixgraphy_settings['pixgraphy_scroll'];
if($disable_scroll == 0):?>
<div class="go-to-top"><a title="<?php esc_html_e('Go to Top','pixgraphy');?>" href="#masthead"><i class="fa fa-angle-double-up"></i></a></div> <!-- end .go-to-top -->
<?php endif; ?>
</footer> <!-- end #colophon -->
</div> <!-- end #page -->
<?php wp_footer(); ?>
</body>
</html>