-
Notifications
You must be signed in to change notification settings - Fork 6
/
footer.php
58 lines (47 loc) · 1.37 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
<?php
/**
* The template for displaying the footer.
*
* @package WordPress
* @subpackage Typical
*/
?>
<footer>
<?php
get_sidebar( 'footer' );
?>
<div role="contentinfo">
<?php
// Custom footer text set in Theme Options or fallback
$customText = get_option('footer-text');
if ($customText != null) {
echo $customText;
} else { ?>
<p>You have been reading
<em>
<a href="<?php echo $home_url_escaped; ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</em>
</p>
<?php } ?>
<?php
// Hide footer credits if set to do so in Theme Options
$hideClass = '';
$hide = get_option('hide-icons');
if ( $hide != null ) {
$hideClass = ' class="hide"';
}
?>
<p>
<span <?php echo $hideClass; ?>>
<small><a title="Powered by Wordpress" href="http://www.wordpress.org"><span aria-hidden="true">W</span></a> <i>Powered by WordPress</i></small>
<small><a title="Theme by Heydon Pickering" href="http://www.heydonworks.com"><span aria-hidden="true">☢</span> <i>Theme by Heydon Pickering</i></a></small>
</span>
<small><a title="RSS Subscription" href="<?php bloginfo('rss2_url'); ?>"><span aria-hidden="true">R</span> <i>RSS Subscription</i></a></small>
</p>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>