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 (Entry $entry, View $view, Request $request) | |
Initializer. More... | |
__destruct () | |
add_id_specific_templates ( $templates, $slug, $name) | |
Enable granular template overrides based on current post, view, form, etc. More... | |
get_back_label ( $do_replace=true) | |
Fetch the back link label for an entry context. 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 | |
$entry | |
$request | |
$view | |
Data Fields inherited from Template | |
$located_template = '' | |
Static Public Attributes | |
static | $slug |
Protected Attributes | |
$filter_prefix = 'gravityview/template/entries' | |
$plugin_template_directory = 'templates/entries/' | |
$theme_template_directory = 'gravityview/entries/' | |
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 using a .
Definition at line 23 of file class-gv-template-entry.php.
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-entry.php.
References $entry.
__destruct | ( | ) |
Definition at line 80 of file class-gv-template-entry.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 107 of file class-gv-template-entry.php.
References $name, $post, and $templates.
get_back_label | ( | $do_replace = true | ) |
Fetch the back link label for an entry context.
boolean | $do_replace | Whether to perform merge tag replacements, etc. |
gravityview/template/links/back/label
filterDefinition at line 165 of file class-gv-template-entry.php.
References gravityview(), and GravityView_API\replace_variables().
render | ( | ) |
Output some HTML.
Make various pieces of data available to the template under the $gravityview scoped variable.
gravityview/template/entry/context
\GV\Template_Context | $context | The context for this template. |
\GV\Entry_Template | $template | The current template. |
Load the template.
Definition at line 137 of file class-gv-template-entry.php.
$entry |
Definition at line 45 of file class-gv-template-entry.php.
|
protected |
Definition at line 28 of file class-gv-template-entry.php.
|
protected |
Definition at line 40 of file class-gv-template-entry.php.
$request |
Definition at line 55 of file class-gv-template-entry.php.
|
static |
Definition at line 60 of file class-gv-template-entry.php.
|
protected |
Definition at line 34 of file class-gv-template-entry.php.
$view |
Definition at line 50 of file class-gv-template-entry.php.