forked from devinsays/portfolio-press
/
footer.php
executable file
·54 lines (40 loc) · 1.3 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
<?php
/**
* Footer template
*
* @package Portfolio Press
*/
?>
</div>
</div><!-- #main -->
</div><!-- #page -->
<footer id="colophon">
<div class="col-width">
<?php if ( is_active_sidebar('footer-1') ||
is_active_sidebar('footer-2') ||
is_active_sidebar('footer-3') ||
is_active_sidebar('footer-4') ) : ?>
<div id="footer-widgets">
<?php $i = 0; while ( $i <= 4 ) : $i++; ?>
<?php if ( is_active_sidebar('footer-'.$i) ) { ?>
<div class="block footer-widget-<?php echo $i; ?>">
<?php dynamic_sidebar('footer-'.$i); ?>
</div>
<?php } ?>
<?php endwhile; ?>
<div class="clear"></div>
</div><!-- /#footer-widgets -->
<?php endif; ?>
<div id="site-generator">
<p><?php if ( ! $footer = portfoliopress_get_option( 'footer_text', false ) ) { ?>
<?php _e('Powered by', 'portfolio-press'); ?> <a href="http://wordpress.org/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'portfolio-press' ); ?>" rel="generator"><?php printf( __( 'WordPress', 'portfolio-press' ) ); ?></a> & <a href="http://wptheming.com/2010/07/portfolio-theme/"><?php _e('Portfolio', 'portfolio-press'); ?></a>.
<?php } else {
echo stripslashes($footer);
} ?>
</p>
</div>
</div>
</footer><!-- #colophon -->
<?php wp_footer(); ?>
</body>
</html>