PHP Class Carbon_Fields\Templater\Templater

Show file Open project: htmlburger/carbon-fields Class Usage Examples

Protected Properties

Property Type Description
$templates

Public Methods

Method Description
__construct ( ) Initialize a new templater.
add_template ( string $name, string $html ) Register a new template.
render_templates ( ) Render all registered templates.

Method Details

__construct() public method

Hook all templates to the administration footer.
public __construct ( )

add_template() public static method

Register a new template.
public static add_template ( string $name, string $html )
$name string Template name
$html string Template content

render_templates() public method

Render all registered templates.
public render_templates ( )

Property Details

$templates protected static property

protected static $templates