forked from themejack/briar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixed-footer.php
More file actions
39 lines (33 loc) · 1.52 KB
/
fixed-footer.php
File metadata and controls
39 lines (33 loc) · 1.52 KB
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
<?php
/**
* Fixed footer template
*
* @package Briar
* @since 1.0
*/
?>
<div class="fixed-footer animated fadeIn active">
<div class="fixed-footer__avatar" style="background-image: url(<?php echo esc_url( get_avatar_url( get_the_author_meta( 'ID' ), array( 'size' => 35 ) ) ); ?>);"></div><!-- /.avatar -->
<div class="fixed-footer__content">
<?php briar_posted_on(); ?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ', ', 'briar' ) );
if ( $categories_list ) : ?>
<p class="category-list hidden-xs hidden-sm">
<?php echo $categories_list; // WPCS: XSS OK. ?>
</p>
<?php endif;
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', __( ', ', 'briar' ) );
if ( $tags_list ) : ?>
<p class="tags-list hidden-xs hidden-sm">
<?php echo $tags_list; // WPCS: XSS OK. ?>
</p>
<?php endif; ?>
</div><!-- /.content -->
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="fixed-footer__btn hidden-sm hidden-xs hidden-md"><?php esc_html_e( 'Back to homepage', 'briar' ); ?></a>
<?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?>
<a href="#comments" class="fixed-footer__btn fixed-footer__btn--red scroll-to-comments"><?php echo comments_number( __( 'Leave a comment', 'briar' ), __( '1 comment', 'briar' ), __( '% comments', 'briar' ) ); ?></a>
<?php endif; ?>
</div><!-- /.fixed footer -->