![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
| __construct () | |
| General template initialization. More... | |
| __destruct () | |
| Disallow any cleanup for fear of loss of global data. More... | |
| pop_template_data ( $var_name='data') | |
| Restore the template data from the stack. More... | |
| push_template_data ( $data, $var_name='data') | |
| Push the current template data down the stack and set. More... | |
Static Public Member Functions | |
| static | split_slug ( $slug, $name=null) |
| Get a directory part and a full slug+name (file) components. More... | |
Data Fields | |
| $located_template = '' | |
Static Private Attributes | |
| static | $data_stack = array() |
If this file is called directly, abort.
Load up the Gamajo Template Loader.
Stores information on where a template to render an object is, and other metadata.
Definition at line 24 of file class-gv-template.php.
| __construct | ( | ) |
General template initialization.
Sets the $plugin_directory field.
Set plugin directory.
Definition at line 41 of file class-gv-template.php.
References gravityview().
| __destruct | ( | ) |
Disallow any cleanup for fear of loss of global data.
The destructor in Gamajo 1.3.0 destroys all of $wp_query. This has the chance of inappropriately destroying valid data that's been stored under the same key.
Disallow this.
Definition at line 55 of file class-gv-template.php.
| pop_template_data | ( | $var_name = 'data' | ) |
Restore the template data from the stack.
| string | $var_name | The data variable identifier (Default: "data") |
Definition at line 115 of file class-gv-template.php.
| push_template_data | ( | $data, | |
$var_name = 'data' |
|||
| ) |
Push the current template data down the stack and set.
This allows us to use the same variable in the template scope without destroying data under the same variable in a nested or parallel template.
| mixed | $data | The data to set. |
| string | $var_name | The data variable identifier (Default: "data") |
Definition at line 89 of file class-gv-template.php.
|
static |
Get a directory part and a full slug+name (file) components.
| string | $slug | The slug, template base. |
| string | $name | The name, template part. Default: null |
Definition at line 66 of file class-gv-template.php.
References $name.
|
staticprivate |
Definition at line 29 of file class-gv-template.php.
| $located_template = '' |
Definition at line 34 of file class-gv-template.php.