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 (View $view, Entry_Collection $entries, Request $request) | |
Initializer. More... | |
__destruct () | |
add_id_specific_templates ( $templates, $slug, $name) | |
Enable granular template overrides based on current post, view, form, etc. More... | |
render () | |
Output some HTML. More... | |
Public Member Functions inherited from Template | |
__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... | |
Data Fields | |
$entries | |
$request | |
$view | |
Data Fields inherited from Template | |
$located_template = '' | |
Static Public Attributes | |
static | $slug |
Protected Attributes | |
$filter_prefix = 'gravityview/template/views' | |
$plugin_template_directory = 'templates/views/' | |
$theme_template_directory = 'gravityview/views/' | |
Additional Inherited Members | |
Static Public Member Functions inherited from Template | |
static | split_slug ( $slug, $name=null) |
Get a directory part and a full slug+name (file) components. More... | |
If this file is called directly, abort.
Load up the Gamajo Template Loader.
Renders a and a via a .
Definition at line 23 of file class-gv-template-view.php.
__construct | ( | View | $view, |
Entry_Collection | $entries, | ||
Request | $request | ||
) |
Initializer.
\GV\View | $view | The View connected to this template. |
\GV\Entry_Collection | $entries | A collection of entries for this view. |
\GV\Request | $request | The request context. |
Add granular overrides.
Definition at line 69 of file class-gv-template-view.php.
References $entries.
__destruct | ( | ) |
Definition at line 80 of file class-gv-template-view.php.
add_id_specific_templates | ( | $templates, | |
$slug, | |||
$name | |||
) |
Enable granular template overrides based on current post, view, form, etc.
The loading order is:
array | $templates | Existing list of templates. |
string | $slug | Name of the template base, example: table , list , datatables , map |
string | $name | Name of the template part, example: body , footer , head , single |
Definition at line 102 of file class-gv-template-view.php.
References $name, $post, and $templates.
render | ( | ) |
Output some HTML.
Make various pieces of data available to the template under the $gravityview scoped variable.
gravityview/template/view/context
\GV\Template_Context | $context | The context for this template. |
\GV\View_Template | $template | The current template. |
gravityview/template/view/render
Before rendering. \GV\View_Template | $template | The current template. |
Load the template.
Definition at line 127 of file class-gv-template-view.php.
References gravityview().
$entries |
Definition at line 50 of file class-gv-template-view.php.
|
protected |
Definition at line 28 of file class-gv-template-view.php.
|
protected |
Definition at line 40 of file class-gv-template-view.php.
$request |
Definition at line 55 of file class-gv-template-view.php.
|
static |
Definition at line 60 of file class-gv-template-view.php.
|
protected |
Definition at line 34 of file class-gv-template-view.php.
$view |
Definition at line 45 of file class-gv-template-view.php.