Skip to content

Commit

Permalink
Wrap changes in #1098 in spans
Browse files Browse the repository at this point in the history
  • Loading branch information
benlk committed Jan 26, 2016
1 parent 69629c2 commit 098e4a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/post-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function largo_byline( $echo = true, $exclude_date = false, $post = null ) {
$byline_temp = '<a class="url fn n" href="' . get_author_posts_url( $author->ID, $author->user_nicename ) . '" title="' . esc_attr( sprintf( __( 'Read All Posts By %s', 'largo' ), $author->display_name ) ) . '" rel="author">' . esc_html( $byline_text ) . '</a>';
if ( $show_job_titles && $job = $author->job_title ) {
// Use parentheses in case of multiple guest authorss. Comma separators would be nonsensical: Firstname lastname, Job Title, Secondname Thirdname, and Fourthname Middle Fifthname
$byline_temp .= ' (' . $job . ')';
$byline_temp .= ' <span class="job-title"><span class="paren-open">(</span>' . $job . '<span class="paren-close">)</span></span>';
}

$out[] = $byline_temp;
Expand All @@ -137,7 +137,7 @@ function largo_byline( $echo = true, $exclude_date = false, $post = null ) {
$author_id = get_post_meta( $post_id, 'post_author', true );
$show_job_titles = of_get_option('show_job_titles');
if ( $show_job_titles && $job = get_the_author_meta( 'job_title' , $author_id ) ) {
$authors .= ', ' . $job;
$authors .= '<span class="job-title"><span class="comma">,</span>' . $job . '</span>';
}
}

Expand Down

0 comments on commit 098e4a0

Please sign in to comment.