GravityView  2.9.2
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions
Renderer Class Reference

If this file is called directly, abort. More...

Inheritance diagram for Renderer:
Entry_Renderer Field_Renderer View_Renderer Edit_Entry_Renderer

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...
 

Detailed Description

If this file is called directly, abort.

The class.

The base for all renderers.

Definition at line 14 of file class-gv-renderer.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Initialization.

Definition at line 18 of file class-gv-renderer.php.

Member Function Documentation

◆ legacy_template_warning()

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.

Parameters
\GV\View$viewThe view we're looking at.
string$pathThe path of the offending template.
Returns
A closure used in the filter.

Definition at line 130 of file class-gv-renderer.php.

◆ maybe_print_notices()

static maybe_print_notices (   $gravityview = null)
static

Print unconfigured notices to admins.

Print reserved slug warnings.

Parameters
\GV\Template_Context$gravityviewThe $gravityview template object.
Returns
void

Call the legacy code.

Check reserved slugs.

Runs Filter:
gravityview/rewrite/reserved_slugs Modify the reserved embed slugs that trigger a warning.
Since
2.5
Parameters
[in,out]array$reserved_slugsAn array of strings, reserved slugs.
\GV\Template_Context$gravityviewThe context.

Check empty configuration.

Definition at line 32 of file class-gv-renderer.php.

References $image, $output, $title, GV\get(), GravityView_frontend\getInstance(), gravityview(), GRAVITYVIEW_FILE, and gravityview_get_view_id().


The documentation for this class was generated from the following file: