15 <table
class=
"form-table">
29 $sort_fields_input =
'<select name="template_settings[sort_field][]" class="gravityview_sort_field" id="gravityview_sort_field_%d">%s</select>';
40 foreach ( (array)\
GV\Utils::get(
$current_settings,
'sort_direction', array() ) as
$i => $direction ) {
44 $_directions[ sprintf(
'sort_direction_%d',
$i + 1 ) ] = $direction;
49 $sort_directions_input =
'<select name="template_settings[sort_direction][]" class="gravityview_sort_direction" id="gravityview_sort_direction_%d">%s</select>';
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.
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.
gravityview_get_sortable_fields( $formid, $current='')
Render dropdown (select) with the list of sortable fields from a form ID.