GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Namespaces | Variables
sort-filter.php File Reference

Go to the source code of this file.

Namespaces

 GravityView
 GPL2+
 

Variables

 $_directions = array()
 
 $curr_form = gravityview_get_form_id( $post->ID )
 
 $current_settings = gravityview_get_template_settings( $post->ID )
 
global $post
 
 $sort_directions_input = '<select name="template_settings[sort_direction][]" class="gravityview_sort_direction" id="gravityview_sort_direction_%d">%s</select>'
 
 $sort_fields_input = '<select name="template_settings[sort_field][]" class="gravityview_sort_field" id="gravityview_sort_field_%d">%s</select>'
 
if(is_array( $current_settings['sort_field'])) else
 

Variable Documentation

◆ $_directions

$_directions = array()

Definition at line 39 of file sort-filter.php.

◆ $curr_form

$curr_form = gravityview_get_form_id( $post->ID )

Definition at line 9 of file sort-filter.php.

◆ $current_settings

foreach ((array)\GV\Utils::get($current_settings, 'sort_direction', array()) as $i=> $direction) $current_settings = gravityview_get_template_settings( $post->ID )

Definition at line 12 of file sort-filter.php.

◆ $post

global $post

Definition at line 7 of file sort-filter.php.

◆ $sort_directions_input

$sort_directions_input = '<select name="template_settings[sort_direction][]" class="gravityview_sort_direction" id="gravityview_sort_direction_%d">%s</select>'

Definition at line 49 of file sort-filter.php.

◆ $sort_fields_input

$sort_fields_input = '<select name="template_settings[sort_field][]" class="gravityview_sort_field" id="gravityview_sort_field_%d">%s</select>'

Definition at line 29 of file sort-filter.php.

◆ else

if (is_array($current_settings[ 'sort_field'])) else
Initial value:
{
$primary_sort_fields = $secondary_sort_fields = gravityview_get_sortable_fields( $curr_form, $current_settings['sort_field'] )
$curr_form
Definition: sort-filter.php:9
gravityview_get_sortable_fields( $formid, $current='')
Render dropdown (select) with the list of sortable fields from a form ID.
$current_settings
Definition: sort-filter.php:12

Definition at line 34 of file sort-filter.php.