PHP Класс Themosis\Taxonomy\TaxFieldRenderer

Utility class that output html in order to display the custom fields of the taxonomies.
Показать файл Открыть проект

Открытые методы

Метод Описание
render ( string $typeOfPage, array $fields, stdClass $term = null ) Handle output for the "add term" page.

Приватные методы

Метод Описание
closeTagsForAddPage ( ) Close tags for the 'Add term' page.
closeTagsForEditPage ( ) Close tags for the 'Edit term' page.
infos ( string $typeOfPage, string $info ) Display the 'info' html tags.
isAddPage ( string $typeOfPage ) : boolean Helper function that checks the page type.
media ( string $typeOfPage, array $field, stdClass $term = null ) Render a Media field.
openTagsForAddPage ( string $name, string $title ) Open tags for the 'Add term' page.
openTagsForEditPage ( string $name, string $title ) Open tags for the 'Edit term' page.
text ( string $typeOfPage, array $field, stdClass $term = null ) Render a text field.

Описание методов

render() публичный статический Метод

Handle output for the "add term" page.
public static render ( string $typeOfPage, array $fields, stdClass $term = null )
$typeOfPage string Type of the page where to output the field - Accepted values : 'add', 'edit'.
$fields array The fields to output.
$term stdClass The term object sent by WordPress.