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 (\GV\View $view, \GV\Entry $entry=null, \GV\Field $field=null, \GV\Request $request=null) | |
Catch deprecated template loads. More... | |
__destruct () | |
add_id_specific_templates ( $templates, $slug, $name) | |
Enable overrides of GravityView templates on a granular basis. More... | |
locate_template ( $template_names, $load=false, $require_once=false) | |
render ( $slug) | |
Setup legacy rendering. More... | |
Protected Attributes | |
$filter_prefix = 'gravityview' | |
$theme_template_directory = 'gravityview' | |
Private Attributes | |
$entry | |
$view | |
If this file is called directly, abort.
Load up the Gamajo Template Loader.
Makes sure they work by setting up context, etc.
Definition at line 23 of file class-gv-template-legacy-override.php.
__construct | ( | \GV\View | $view, |
\GV\Entry | $entry = null , |
||
\GV\Field | $field = null , |
||
\GV\Request | $request = null |
||
) |
Catch deprecated template loads.
\GV\View | $view | The View. |
\GV\Entry | $entry | The Entry. |
\GV\Field | $field | The Field. |
\GV\Request | $request | The request. |
Definition at line 56 of file class-gv-template-legacy-override.php.
References $entry, and gravityview().
__destruct | ( | ) |
Definition at line 66 of file class-gv-template-legacy-override.php.
add_id_specific_templates | ( | $templates, | |
$slug, | |||
$name | |||
) |
Enable overrides of GravityView templates on a granular basis.
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 96 of file class-gv-template-legacy-override.php.
References $name, $post, and $templates.
locate_template | ( | $template_names, | |
$load = false , |
|||
$require_once = false |
|||
) |
Definition at line 75 of file class-gv-template-legacy-override.php.
render | ( | $slug | ) |
Setup legacy rendering.
string | $slug | The slug. |
You got one shot. One opportunity. To render all the widgets you have ever wanted.
Since we're overriding the singleton we need to remove the widget actions since they can only be called once in a request (did_action/do_action mutex).
Oh, and Mom's spaghetti.
Single entry view.
Directory view.
Remove multiple sorting before calling legacy filters. This allows us to fake it till we make it.
Definition at line 125 of file class-gv-template-legacy-override.php.
References $entries, $entry, $post, GravityView_View\getInstance(), and Legacy_Context\push().
|
private |
Definition at line 44 of file class-gv-template-legacy-override.php.
|
protected |
Definition at line 28 of file class-gv-template-legacy-override.php.
|
protected |
Definition at line 34 of file class-gv-template-legacy-override.php.
|
private |
Definition at line 39 of file class-gv-template-legacy-override.php.