SilentComics /
Strip
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * Dispay author bio on author index page |
||||||
| 4 | * |
||||||
| 5 | * Dependent on bio being available for current author. |
||||||
| 6 | * |
||||||
| 7 | * @package WordPress |
||||||
| 8 | * @subpackage Strip |
||||||
| 9 | */ |
||||||
| 10 | |||||||
| 11 | ?> |
||||||
| 12 | |||||||
| 13 | <div class="author-info"> |
||||||
| 14 | <div class="author-avatar"> |
||||||
| 15 | <?php |
||||||
| 16 | /** |
||||||
| 17 | * Filter the strip author bio avatar size. |
||||||
| 18 | * |
||||||
| 19 | * @since strip 1.0 |
||||||
| 20 | * |
||||||
| 21 | * @param int $size The avatar height and width size in pixels. |
||||||
| 22 | */ |
||||||
| 23 | $author_bio_avatar_size = apply_filters( 'strip_author_bio_avatar_size', 240 ); |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 24 | |||||||
| 25 | echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); |
||||||
|
0 ignored issues
–
show
The function
get_the_author_meta was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
get_avatar was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 26 | ?> |
||||||
| 27 | </div><!-- .author-avatar --> |
||||||
| 28 | |||||||
| 29 | <div class="author-meta"> |
||||||
| 30 | |||||||
| 31 | <div class="author-description"> |
||||||
| 32 | <h2 class="author-title"><span class="author-heading"><?php esc_html_e( '✎', 'strip' ); ?></span> <?php echo get_the_author(); ?></h2> |
||||||
|
0 ignored issues
–
show
The function
get_the_author was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
esc_html_e was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 33 | |||||||
| 34 | |||||||
| 35 | <p class="author-bio"> |
||||||
| 36 | <?php the_author_meta( 'description' ); ?> |
||||||
|
0 ignored issues
–
show
The function
the_author_meta was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 37 | <a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
||||||
|
0 ignored issues
–
show
The function
esc_url was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
The function
get_author_posts_url was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 38 | <br> <?php printf( esc_html__( 'View all articles by %s', 'strip' ), get_the_author() ); ?> |
||||||
|
0 ignored issues
–
show
The function
esc_html__ was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 39 | </a> |
||||||
| 40 | </p><!-- .author-bio --> |
||||||
| 41 | </div><!-- .author-description --> |
||||||
| 42 | </div><!-- .author-meta --> |
||||||
| 43 | </div><!-- .author-info --> |
||||||
| 44 |