src/lib/Post/Author.php
/**
     * @param string $before Text to preppend to link.
     * @param string $after Text to append to link.
     */
@param string $before Text to preppend to link.
@param string $after Text to append to link.
@param string $before Text to preppend to link . @param string $after Text to append to link .
public function name(string $before = '', string $after = ''): string
    {
        $link = '';
        if ($before) {
            $link .= '<span class="before-author-link">'.
                \esc_attr($before).
            '</span> ';
        }
        if ($url = $this->postsUrl()) {
            $link .= '<span class="author">
                <a rel="author nofollow" class="url" href="'.
                    \esc_attr($url).'">'
                .$this->meta('display_name').'</a>
            </span>';
        } else {
            $link .= '<span class="author">'.
                $this->meta('display_name').
            '</span>';
        }
        if ($after) {
            $link .= '<span class="after-author-link">'.\esc_attr($after).'</span> ';
        }
        return $link;
    }
public function name ( string $ before = '' , string $ after = '' ) : string { $ link = '' ; if ( $ before ) { $ link .= '<span class="before-author-link">' . \ esc_attr ( $ before ) . '</span> ' ; } if ( $ url = $ this -> postsUrl ( ) ) { $ link .= '<span class="author">
                <a rel="author nofollow" class="url" href="' . \ esc_attr ( $ url ) . '">' . $ this -> meta ( 'display_name' ) . '</a>
            </span>' ; } else { $ link .= '<span class="author">' . $ this -> meta ( 'display_name' ) . '</span>' ; } if ( $ after ) { $ link .= '<span class="after-author-link">' . \ esc_attr ( $ after ) . '</span> ' ; } return $ link ; }
@param string $before Text to preppend to link.
@param string $before Text to preppend to link .