inc/byline_class.php

property $author_id

Temporary variable used for the author ID; This must be public, because Largo_CoAuthors_Byline’s methods incorporate methods from Largo_Byline, and parent classes cannot see private or protected members of extending classes.

var:int $he ID of the author for this post
populate_variables()

Set us up the vars

  • ‘post_id’: an integer post ID
  • ‘exclude_date’: boolean whether or not to include the date in the byline
Parameters:
  • $args (array) – Associative array containing following keys:
See:

$post_id $ets this from $args

See:

$exclude_date $ets this from $args

See:

$custom $ills this array with the output of get_post_custom

See:

$author_id $ets this from the post meta

generate_byline()

this creates the byline text and adds it to $this->output

See:$output $reates this
__toString()

This is what turns the whole class into a string

See:$output
See:generate_byline()
avatar()

On single posts, output the avatar for the author object This supports both Largo_Byline and Largo_CoAuthors_Byline

a wrapper around largo_author_link

job_title()

If job titles are enabled by Largo’s theme option, display the one for this author

twitter()

If this author has a twitter ID, output it as a link on an i.icon-twitter

maybe_published_date()

Determine whether to display the date

published_date()

A wrapper around largo_time to determine when the post was published

Output the edit link for this post, only to admin users

generate_byline()

differs from Largo_Byline in following ways: - no avatar - no job title - no twitter

class Largo_CoAuthors_Byline
Bylines for Co-Authors Plus guest authors
property $author

Temporary variable used to contain the coauthor being rendered by the loop inside generate_byline();

See:$this->generate_byline();
property $author_id

Temporary variable used for the author ID; This must be public, because Largo_CoAuthors_Byline’s methods incorporate methods from Largo_Byline, and parent classes cannot see private or protected members of extending classes.

See:$this->generate_byline();
generate_byline()

Differs from Largo_Byline in following ways:

  • gets list of coauthors, runs avatar, author_link, job_title, organization, twitter for each of those
  • joins list of coauthors with commas and ‘and’ as appropriate

A coauthors-specific byline link method

job_title()

Job title from the coauthors object

organization()

Output coauthor users’s organization

twitter()

twitter link from the coauthors object