![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Widget to display a Gravity Forms form. More...
Public Member Functions | |
| __construct () | |
| add_to_allowlist ( $allowlist) | |
| Add widget to a list of allowed "Hide Until Searched" items. More... | |
| render_frontend ( $widget_args, $content='', $context='') | |
Public Member Functions inherited from Widget | |
| add_shortcode () | |
| Add $this->shortcode_name shortcode to output self::render_frontend() More... | |
| as_configuration () | |
| Return an array of the old format. More... | |
| assign_widget_options ( $options=array(), $template='', $widget='') | |
| Assign template specific widget options. More... | |
| get_setting ( $key) | |
| Get a setting by the setting key. More... | |
| get_settings () | |
| Get the widget settings. More... | |
| get_widget_id () | |
| Get the Widget ID. More... | |
| is_registered () | |
| Whether this Widget's been registered already or not. More... | |
| maybe_do_shortcode ( $text, $widget=null) | |
| Do shortcode if the Widget's shortcode exists. More... | |
| pre_render_frontend () | |
| General validations when rendering the widget. More... | |
| register_widget ( $widgets) | |
| Register widget to become available in admin. More... | |
| render_frontend ( $widget_args, $content='', $context='') | |
| Frontend logic. More... | |
| render_shortcode ( $atts, $content='', $context='') | |
| Shortcode. More... | |
Data Fields | |
| $icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MDguMyA1NTkuNSIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiIGNsYXNzPSJkYXNoaWNvbiBkYXNoaWNvbi1ncmF2aXR5Zm9ybXMiIHJvbGU9ImltZyI+PGc+PHBhdGggY2xhc3M9InN0MCIgZD0iTTQ2OCwxMDkuOEwyOTQuNCw5LjZjLTIyLjEtMTIuOC01OC40LTEyLjgtODAuNSwwTDQwLjMsMTA5LjhDMTguMiwxMjIuNiwwLDE1NCwwLDE3OS41VjM4MAljMCwyNS42LDE4LjEsNTYuOSw0MC4zLDY5LjdsMTczLjYsMTAwLjJjMjIuMSwxMi44LDU4LjQsMTIuOCw4MC41LDBMNDY4LDQ0OS44YzIyLjItMTIuOCw0MC4zLTQ0LjIsNDAuMy02OS43VjE3OS42CUM1MDguMywxNTQsNDkwLjIsMTIyLjYsNDY4LDEwOS44eiBNMzk5LjMsMjQ0LjRsLTE5NS4xLDBjLTExLDAtMTkuMiwzLjItMjUuNiwxMGMtMTQuMiwxNS4xLTE4LjIsNDQuNC0xOS4zLDYwLjdIMzQ4di0yNi40aDQ5LjkJdjc2LjNIMTExLjNsLTEuOC0yM2MtMC4zLTMuMy01LjktODAuNywzMi44LTEyMS45YzE2LjEtMTcuMSwzNy4xLTI1LjgsNjIuNC0yNS44aDE5NC43VjI0NC40eiI+PC9wYXRoPjwvZz48L3N2Zz4=' | |
Data Fields inherited from Widget | |
| $configuration | |
| $icon | |
| $position = '' | |
| $UID = '' | |
Protected Attributes | |
| $show_on_single = true | |
Protected Attributes inherited from Widget | |
| $defaults = array() | |
| $settings = array() | |
| $shortcode_name | |
| $widget_description = '' | |
| $widget_id = '' | |
| $widget_label = '' | |
| $widget_subtitle = '' | |
Private Member Functions | |
| _get_form_choices () | |
| Returns an array of active forms to show as choices for the widget. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Widget | |
| static | from_configuration ( $configuration) |
| Create the needed widget from a configuration array. More... | |
| static | get_default_widget_areas () |
| Default widget areas. More... | |
| static | registered () |
| Return all registered widgets. More... | |
Protected Member Functions inherited from Widget | |
| get_default_settings () | |
| Define general widget settings. More... | |
Widget to display a Gravity Forms form.
Definition at line 8 of file class-gravityview-widget-gravityforms.php.
| __construct | ( | ) |
Definition at line 18 of file class-gravityview-widget-gravityforms.php.
References Widget\$settings, Utils\_GET(), _get_form_choices(), Utils\_POST(), and gravityview().
|
private |
Returns an array of active forms to show as choices for the widget.
0 as default placeholder. Definition at line 79 of file class-gravityview-widget-gravityforms.php.
References GV\$form, and gravityview().
Referenced by __construct().
| add_to_allowlist | ( | $allowlist | ) |
Add widget to a list of allowed "Hide Until Searched" items.
| array | $allowlist | Array of widgets to show before a search is performed, if the setting is enabled. |
Definition at line 115 of file class-gravityview-widget-gravityforms.php.
| render_frontend | ( | $widget_args, | |
$content = '', |
|||
$context = '' |
|||
| ) |
| array | $widget_args | |
| string | $content | |
| string | $context |
Definition at line 127 of file class-gravityview-widget-gravityforms.php.
References $description, $form_id, $title, Utils\get(), and Widget\pre_render_frontend().
| $icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MDguMyA1NTkuNSIgZm9jdXNhYmxlPSJmYWxzZSIgYXJpYS1oaWRkZW49InRydWUiIGNsYXNzPSJkYXNoaWNvbiBkYXNoaWNvbi1ncmF2aXR5Zm9ybXMiIHJvbGU9ImltZyI+PGc+PHBhdGggY2xhc3M9InN0MCIgZD0iTTQ2OCwxMDkuOEwyOTQuNCw5LjZjLTIyLjEtMTIuOC01OC40LTEyLjgtODAuNSwwTDQwLjMsMTA5LjhDMTguMiwxMjIuNiwwLDE1NCwwLDE3OS41VjM4MAljMCwyNS42LDE4LjEsNTYuOSw0MC4zLDY5LjdsMTczLjYsMTAwLjJjMjIuMSwxMi44LDU4LjQsMTIuOCw4MC41LDBMNDY4LDQ0OS44YzIyLjItMTIuOCw0MC4zLTQ0LjIsNDAuMy02OS43VjE3OS42CUM1MDguMywxNTQsNDkwLjIsMTIyLjYsNDY4LDEwOS44eiBNMzk5LjMsMjQ0LjRsLTE5NS4xLDBjLTExLDAtMTkuMiwzLjItMjUuNiwxMGMtMTQuMiwxNS4xLTE4LjIsNDQuNC0xOS4zLDYwLjdIMzQ4di0yNi40aDQ5LjkJdjc2LjNIMTExLjNsLTEuOC0yM2MtMC4zLTMuMy01LjktODAuNywzMi44LTEyMS45YzE2LjEtMTcuMSwzNy4xLTI1LjgsNjIuNC0yNS44aDE5NC43VjI0NC40eiI+PC9wYXRoPjwvZz48L3N2Zz4=' |
Definition at line 10 of file class-gravityview-widget-gravityforms.php.
|
protected |
Definition at line 16 of file class-gravityview-widget-gravityforms.php.