forked from govfresh/govpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
executable file
·45 lines (39 loc) · 1.11 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
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package GovPress
*/
?>
</div><!-- #content -->
</div><!-- .col-width -->
<?php
/*
* A sidebar in the footer? Yep. You can can customize
* your footer with three columns of widgets.
*/
if ( ! is_404() )
get_sidebar( 'footer' );
?>
<?php
$fclass = 'site-footer no-widgets';
if ( is_active_sidebar( 'footer-text' ) ) {
$fclass = 'site-footer widgets';
} ?>
<footer class="<?php echo $fclass; ?>" role="contentinfo">
<div class="col-width">
<?php if ( is_active_sidebar( 'footer-text' ) ) { ?>
<div class="widget-area" role="complementary">
<?php dynamic_sidebar( 'footer-text' ); ?>
</div>
<?php } else { ?>
<?php printf( __( '%1$s, the %2$s theme for government.', 'govpress' ), 'Powered by <a href="http://govpress.co/" rel="designer">GovPress</a>', '<a href="http://wordpress.org/" rel="generator">WordPress</a>' ); ?>
<?php } ?>
</div><!-- .col-width -->
</footer><!-- .site-footer -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>