GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
sort-filter.php
Go to the documentation of this file.
1 <?php
2 /**
3  * @package GravityView
4  * @subpackage Gravityview/admin/metaboxes/partials
5  * @global WP_Post $post
6  */
7 global $post;
8 
10 
11 // View template settings
13 
14 ?>
15 <table class="form-table striped">
16 
17  <?php
18 
19  do_action( 'gravityview_metabox_sort_filter_before', $current_settings );
20 
21  // Begin Sort fields
22  do_action( 'gravityview_metabox_sort_before', $current_settings );
23 
24  /**
25  * @since 1.7
26  */
27  GravityView_Render_Settings::render_setting_row( 'sort_columns', $current_settings );
28 
29  $sort_fields_input = '<select name="template_settings[sort_field]" id="gravityview_sort_field">'.gravityview_get_sortable_fields( $curr_form, $current_settings['sort_field'] ).'</select>';
30 
31  GravityView_Render_Settings::render_setting_row( 'sort_field', $current_settings, $sort_fields_input );
32 
33  GravityView_Render_Settings::render_setting_row( 'sort_direction', $current_settings );
34 
35 
36  // End Sort fields
37  do_action( 'gravityview_metabox_sort_after', $current_settings );
38 
39  // Begin Filter fields
40  do_action( 'gravityview_metabox_filter_before', $current_settings );
41 
42  GravityView_Render_Settings::render_setting_row( 'start_date', $current_settings );
43 
44  GravityView_Render_Settings::render_setting_row( 'end_date', $current_settings );
45 
46  // End Filter fields
47  do_action( 'gravityview_metabox_filter_after', $current_settings );
48 
49  do_action( 'gravityview_metabox_sort_filter_after', $current_settings );
50 
51  ?>
52 
53 </table>
global $post
Definition: sort-filter.php:7
$sort_fields_input
Definition: sort-filter.php:29
$current_settings
Definition: sort-filter.php:12
$curr_form
Definition: sort-filter.php:9
gravityview_get_template_settings($post_id)
Get all the settings for a View.
gravityview_get_form_id($view_id)
Get the connected form ID from a View ID.