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 () | |
Initialization. More... | |
legacy_template_warning ( $view, $path) | |
Warn about legacy template being used. More... | |
Static Public Member Functions | |
static | maybe_print_notices ( $gravityview=null) |
Print unconfigured notices to admins. More... | |
Static Private Member Functions | |
static | disable_show_only_approved_entries ( $gravityview) |
Disable the "Show only approved entries" setting, hence displaying all entries on the View. More... | |
static | maybe_print_configuration_notice ( $gravityview) |
Check empty configuration. More... | |
static | maybe_print_entry_approval_notice ( $gravityview) |
Print notice warning admins that "Show only approved" is enabled. More... | |
static | maybe_print_reserved_slugs_notice ( $gravityview) |
Print reserved slug warnings, if they exist. More... | |
If this file is called directly, abort.
The class.
The base for all renderers.
Definition at line 14 of file class-gv-renderer.php.
__construct | ( | ) |
Initialization.
Definition at line 18 of file class-gv-renderer.php.
|
staticprivate |
Disable the "Show only approved entries" setting, hence displaying all entries on the View.
\GV\Template_Context | $gravityview | The $gravityview template object. |
Definition at line 59 of file class-gv-renderer.php.
References $settings, and gravityview().
legacy_template_warning | ( | $view, | |
$path | |||
) |
Warn about legacy template being used.
Generate a callback that shows which legacy template was at fault. Used in gravityview_before.
\GV\View | $view | The view we're looking at. |
string | $path | The path of the offending template. |
Definition at line 371 of file class-gv-renderer.php.
|
staticprivate |
Check empty configuration.
\GV\Template_Context | $gravityview | The $gravityview template object. |
Definition at line 269 of file class-gv-renderer.php.
References $image, $output, $title, and GRAVITYVIEW_FILE.
|
staticprivate |
Print notice warning admins that "Show only approved" is enabled.
\GV\Template_Context | $gravityview | The $gravityview template object. |
Definition at line 92 of file class-gv-renderer.php.
References GravityView_Entry_Approval_Status\APPROVED, GV\bottom, and GRAVITYVIEW_FILE.
|
static |
Print unconfigured notices to admins.
Print reserved slug warnings. Print entry approval notice.
\GV\Template_Context | $gravityview | The $gravityview template object. |
Call the legacy code.
Definition at line 33 of file class-gv-renderer.php.
References GravityView_frontend\getInstance(), and gravityview_get_view_id().
|
staticprivate |
Print reserved slug warnings, if they exist.
Template_Context | $gravityview | The $gravityview template object. |
gravityview/rewrite/reserved_slugs
Modify the reserved embed slugs that trigger a warning. array | $reserved_slugs | An array of strings, reserved slugs. |
\GV\Template_Context | $gravityview | The context. |
Definition at line 314 of file class-gv-renderer.php.
References $output, $title, and gravityview().