\Barn2\Plugin\WC_Default_Quantity\UtilsTemplate

Handles the rendering of template files.

Summary

Methods
Properties
Constants
init()
render()
locate_template()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$theme_directory
$plugin_directory
$plugin_name
N/A

Properties

$theme_directory

$theme_directory :

Type

$plugin_directory

$plugin_directory :

Type

$plugin_name

$plugin_name :

Type

Methods

init()

init(string  $mainFile,null|string  $theme_directory = null)

Parameters

string $mainFile

main plugin file

null|string $theme_directory

name of folder would be use to override plugin templates in theme

render()

render(string  $__template,array  $__variables = array())

Render template

Parameters

string $__template
array $__variables

locate_template()

locate_template(string  $template): string

Parameters

string $template

Returns

string