PHP Class WPDiscourse\Templates\HTMLTemplates

Show file Open project: discourse/wp-discourse Class Usage Examples

Public Methods

Method Description
bad_response_html ( ) : mixed | void The template that is displayed in the comments section after a post is created with bad credentials.
comment_html ( ) : mixed | void HTML template for each comment
no_replies_html ( ) : mixed | void HTML template for no replies.
participant_html ( ) : mixed | void HTML template for each participant
publish_format_html ( ) : mixed | void HTML template for published byline
replies_html ( ) : mixed | void HTML template for replies.

Method Details

bad_response_html() public static method

This template is displayed in the comments section when there is no discourse_permalink index in the response returned from Discourse::sync_to_discourse_work Can be customized in the theme using the filter provided.
public static bad_response_html ( ) : mixed | void
return mixed | void

comment_html() public static method

Can be customized from within a theme using the filter provided. Available tags: {discourse_url}, {discourse_url_name}, {topic_url}, {avatar_url}, {user_url}, {username}, {fullname}, {comment_body}, {comment_created_at}, {comment_url}
public static comment_html ( ) : mixed | void
return mixed | void

no_replies_html() public static method

Can be customized from within a theme using the filter provided. Available tags: {comments}, {discourse_url}, {discourse_url_name}, {topic_url}
public static no_replies_html ( ) : mixed | void
return mixed | void

participant_html() public static method

Can be customized from within a theme using the filter provided. Available tags: {discourse_url}, {discourse_url_name}, {topic_url}, {avatar_url}, {user_url}, {username}
public static participant_html ( ) : mixed | void
return mixed | void

publish_format_html() public static method

Can be customized from within a theme using the filter provided. Available tags: {excerpt}, {blogurl}, {author}, {thumbnail}, {featuredimage}
public static publish_format_html ( ) : mixed | void
return mixed | void

replies_html() public static method

Can be customized from within a theme using the filter provided. Available tags: {comments}, {discourse_url}, {discourse_url_name}, {topic_url}, {more_replies}, {participants}
public static replies_html ( ) : mixed | void
return mixed | void