Method |
Description |
|
and_list ( array $array, string $between = ', ', string $between_last = null ) |
function and_list
Turns an array of strings into a friendly delimited string separated by commas and an "and" |
|
apply ( string $format, string $onwhat ) |
Called to register a format function to a plugin hook, only passing the hook's first parameter to the Format function. |
|
apply_with_hook_params ( string $format, string $onwhat ) |
Called to register a format function to a plugin hook, and passes all of the hook's parameters to the Format function. |
|
autop ( string $value ) |
function autop
Converts non-HTML paragraphs separated with 2 or more new lines into HTML paragraphs
while preserving any internal HTML. |
|
by_index ( integer $index ) : Format |
function by_index
Returns an indexed formatter object, for use by lambda functions created
to supply additional parameters to plugin filters. |
|
format_date ( DateTime $date, string $format ) : string |
Format a date using a specially formatted string
Useful for using a single string to format multiple date components. |
|
html_messages ( array $notices, array $errors ) : string |
html_messages
Creates an HTML unordered list of an array of messages |
|
humane_messages ( array $notices, array $errors ) : string |
humane_messages
Creates JS calls to display session messages |
|
json_messages ( array $notices, array $errors ) : string |
json_messages
Creates a JSON list of session messages |
|
load_all ( ) |
function load_all
Loads and stores an instance of all declared Format classes for future use |
|
more ( string $content, Post $post, $properties = [] ) : string |
Returns a truncated version of post content when the post isn't being displayed on its own. |
|
nice_date ( DateTime $date, string $dateformat = 'F j, Y' ) |
function nice_date
Formats a date using a date format string |
|
nice_time ( DateTime $date, string $dateformat = 'H:i:s' ) |
function nice_time
Formats a time using a date format string |
|
summarize ( $text, integer $count = 100, integer $max_paragraphs = 1 ) : string |
Returns a shortened version of whatever is passed in. |
|
tag_and_list ( $terms, string $between = ', ', string $between_last = null, boolean $sort_alphabetical = false ) : string |
function tag_and_list
Formatting function (should be in Format class?)
Turns an array of tag names into an HTML-linked list with commas and an "and". |
|
term_tree ( mixed $terms, string $tree_name, array $config = [] ) : string |
function term_tree
Create nested HTML lists from a hierarchical vocabulary. |
|