WpvPostFormats

class WpvPostFormats

Methods

Returns the icon denoting the current post format

get_post_format_icon(string $format) : string
static

Arguments

$format

string

post format name

Response

string

icon name

Process the data for the current post according to its format

process(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data, possibly modified for the respective post format

Get the post format image

format_image(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data modified for the image post format

Standard post format

format_standard(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data modified for the image post format

Get the post format video

format_video(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data modified for the video post format

Get the post format audio

format_audio(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data modified for the audio post format

Get the post format quote

format_quote(array $post_data) : array
static

Arguments

$post_data

array

current post data

Response

array

current post data modified for the quote post format

Returns the correct thumbnail name for the current post

get_thumb_name(array $post_data) : string
static

Arguments

$post_data

array

current post data as used in WpvPostFormats::process( $post_data )

Response

string

thumbnail name

Post layout settings

post_layout_info() : array
static

Response

array

filtered post layout settings

Get a quote from the post content

get_the_post_format_quote(object &$post = null) : string
static
uses

Arguments

$post

object

( optional ) A reference to the post object, falls back to get_post().

Response

string

The quote html.