GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
includes
admin
metaboxes
views
multiple-entries.php
Go to the documentation of this file.
1
<?php
2
/**
3
* @package GravityView
4
* @subpackage Gravityview/admin/metaboxes/views
5
* @global $post
6
*/
7
global
$post
;
8
9
$curr_form
=
gravityview_get_form_id
(
$post
->ID );
10
11
// View template settings
12
$current_settings
=
gravityview_get_template_settings
(
$post
->ID );
13
14
$settings
= [
15
'page_size'
,
16
'hide_until_searched'
,
17
'hide_empty'
,
18
'no_entries_options'
,
19
'no_results_text'
,
20
'no_entries_form'
,
21
'no_entries_form_title'
,
22
'no_entries_form_description'
,
23
'no_entries_redirect'
,
24
'no_search_results_text'
,
25
];
26
27
?>
28
29
<table
class
=
"form-table"
>
30
<?php
31
32
foreach
(
$settings
as $setting ) {
33
GravityView_Render_Settings::render_setting_row
( $setting,
$current_settings
);
34
}
35
36
/**
37
* Render additional Multiple Entries settings
38
*
39
* @since 2.9.4
40
*
41
* @param array $current_settings Array of settings returned from {@see gravityview_get_template_settings()}.
42
*/
43
do_action(
'gravityview/metaboxes/multiple_entries/after'
,
$current_settings
);
44
?>
45
</table>
$settings
$settings
Definition:
multiple-entries.php:14
$current_settings
$current_settings
Definition:
multiple-entries.php:12
GravityView_Render_Settings\render_setting_row
static render_setting_row( $key='', $current_settings=array(), $override_input=null, $name='template_settings[%s]', $id='gravityview_se_%s')
Output a table row for view settings.
Definition:
class.render.settings.php:528
gravityview_get_template_settings
gravityview_get_template_settings( $post_id)
Get all the settings for a View.
Definition:
connector-functions.php:234
$curr_form
$curr_form
Definition:
multiple-entries.php:9
gravityview_get_form_id
gravityview_get_form_id( $view_id)
Get the connected form ID from a View ID.
Definition:
connector-functions.php:197
$post
global $post
Definition:
multiple-entries.php:7