class WpvPostFormats

 Methods

Returns the icon denoting the current post format

get_post_format_icon(string $format) : string
Static

Parameters

$format

string

post format name

Returns

stringicon name

Get a quote from the post content

get_the_post_format_quote(object $post) : string
Static
uses \get_content_quote()

Parameters

$post

object

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

Returns

stringThe quote html.

Returns the correct thumbnail name for the current post

get_thumb_name(array $post_data) : string
Static

Parameters

$post_data

array

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

Returns

stringthumbnail name

Post layout settings

post_layout_info() : array
Static

Returns

arrayfiltered post layout settings

Process the data for the current post according to its format

process(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data, possibly modified for the respective post format

Get the post format audio

format_audio(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data modified for the audio post format

Get the post format image

format_image(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data modified for the image post format

Get the post format quote

format_quote(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data modified for the quote post format

Standard post format

format_standard(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data modified for the image post format

Get the post format video

format_video(array $post_data) : array
Static

Parameters

$post_data

array

current post data

Returns

arraycurrent post data modified for the video post format