![]() |
GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
| __construct () | |
| add_block_category ( $categories) | |
| Adds GravityView category to Gutenberg editor. More... | |
| get_views () | |
| Returns the list of views for the block editor. More... | |
| localize_block_assets () | |
| Localizes shared block assets that's made available to all blocks via the global window.gkGravityKitBlocks object. More... | |
| register_blocks () | |
| Registers block renderers. More... | |
Static Public Member Functions | |
| static | render_shortcode ( $shortcode) |
| Renders shortcode and returns rendered content along with newly enqueued scripts and styles. More... | |
Data Fields | |
| const | MIN_WP_VERSION = '6.0.0' |
| const | SLUG = 'gk-gravityview-blocks' |
Private Attributes | |
| $blocks_build_path | |
Definition at line 8 of file class-gv-gutenberg-blocks.php.
| __construct | ( | ) |
Definition at line 15 of file class-gv-gutenberg-blocks.php.
References GRAVITYVIEW_DIR.
| add_block_category | ( | $categories | ) |
Adds GravityView category to Gutenberg editor.
| array | $categories |
Definition at line 144 of file class-gv-gutenberg-blocks.php.
| get_views | ( | ) |
Returns the list of views for the block editor.
gk/gravityview/gutenberg/blocks/views Modifies the Views object used in the UI.| array | $formatted_views |
Definition at line 197 of file class-gv-gutenberg-blocks.php.
References GVCommon\get_all_views().
Referenced by Blocks\localize_block_assets().
| localize_block_assets | ( | ) |
Localizes shared block assets that's made available to all blocks via the global window.gkGravityKitBlocks object.
gk/gravityview/gutenberg/blocks/localization Modifies the global blocks localization data.| array | $block_localization_data |
Definition at line 160 of file class-gv-gutenberg-blocks.php.
References Blocks\get_views(), and gravityview().
| register_blocks | ( | ) |
Registers block renderers.
Definition at line 38 of file class-gv-gutenberg-blocks.php.
References Arr\get(), GRAVITYVIEW_DIR, and GRAVITYVIEW_FILE.
|
static |
Renders shortcode and returns rendered content along with newly enqueued scripts and styles.
| string | $shortcode |
Definition at line 235 of file class-gv-gutenberg-blocks.php.
References GravityView_frontend\getInstance(), and GravityView_View_Data\getInstance().
Referenced by Entry\render(), ViewDetails\render(), EntryField\render(), EntryLink\render(), and View\render().
|
private |
Definition at line 13 of file class-gv-gutenberg-blocks.php.
| const MIN_WP_VERSION = '6.0.0' |
Definition at line 9 of file class-gv-gutenberg-blocks.php.
| const SLUG = 'gk-gravityview-blocks' |
Definition at line 11 of file class-gv-gutenberg-blocks.php.