-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathfooter.php
executable file
·53 lines (46 loc) · 1.12 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
<?php
/**
* The template for displaying the footer.
*
* @package WordPress
* @subpackage Documentation
* @version 2021-01-26
*/
tha_content_after();
if ( ! is_singular() ) {
documentation_get_paginate_bar();
}
?>
</div><!-- #content @see header.php -->
<?php
get_sidebar();
tha_footer_before();
?>
<div id="footer">
<?php tha_footer_top(); ?>
<p>© 2007 - <?php echo date( 'Y' ); ?> | <a href="<?php home_url( '/' ); ?>" class="site-name"><?php bloginfo(
'name'
); ?></a>
<?php
$redirect = documentation_get_options( 'rewrite_url' );
if ( ! is_user_logged_in() ) {
$link = ' | <a href="' . get_option(
'siteurl'
) . '/wp-login.php?redirect_to=' . $redirect . '">' . esc_attr__( 'Login', 'documentation' ) . '</a>';
} else {
$link = ' | <a href="' . home_url( '/' ) . '/wp-login.php?action=logout&redirect_to=' . home_url(
'/'
) . '">' . esc_attr__( 'Logout', 'documentation' ) . '</a>';
}
echo apply_filters( 'loginout', $link );
?>
</p>
<?php tha_footer_bottom(); ?>
</div>
<?php
wp_footer();
tha_footer_after();
?>
</div><!-- #wrap @see header.php -->
</body>
</html>