function settings_row($ds) { ?> <table class="form-table"> <caption> FixedHeader & FixedColumns <p class="description"><?php esc_html_e('Keep headers or columns in place and visible while scrolling a table.', 'gv-datatables'); ?> </p> </caption> <tr valign="top"> <td colspan="2"> <?php echo GravityView_Render_Settings::render_field_option('datatables_settings[fixedheader]', array('label' => __('Enable FixedHeader', 'gv-datatables'), 'type' => 'checkbox', 'value' => 1, 'tooltip' => 'gv_datatables_fixedheader'), $ds['fixedheader']); ?> </td> </tr> <tr valign="top"> <td colspan="2"> <?php echo GravityView_Render_Settings::render_field_option('datatables_settings[fixedcolumns]', array('label' => __('Enable FixedColumns', 'gv-datatables'), 'type' => 'checkbox', 'value' => 1, 'tooltip' => 'gv_datatables_fixedcolumns'), $ds['fixedcolumns']); ?> </td> </tr> </table> <?php }
function settings_row($ds) { ?> <table class="form-table"> <caption>Scroller</caption> <tr valign="top"> <td colspan="2"> <?php echo GravityView_Render_Settings::render_field_option('datatables_settings[scroller]', array('label' => __('Enable Scroller', 'gv-datatables'), 'type' => 'checkbox', 'value' => 1, 'tooltip' => 'gv_datatables_scroller'), $ds['scroller']); ?> </td> </tr> <tr valign="top"> <td scope="row"> <label for="gravityview_dt_scrollerheight"><?php esc_html_e('Table Height', 'gv-datatables'); ?> </label> </td> <td> <input name="datatables_settings[scrolly]" id="gravityview_dt_scrollerheight" type="number" step="1" min="50" value="<?php empty($ds['scrolly']) ? print 500 : (print $ds['scrolly']); ?> " class="small-text"> </td> </tr> </table> <?php }
function settings_row($ds) { ?> <table class="form-table"> <caption>Responsive</caption> <tr valign="top"> <td colspan="2"> <?php echo GravityView_Render_Settings::render_field_option('datatables_settings[responsive]', array('label' => __('Enable Responsive Tables', 'gv-datatables'), 'type' => 'checkbox', 'value' => 1, 'tooltip' => 'gv_datatables_responsive'), $ds['responsive']); ?> </td> </tr> </table> <?php }
function settings_row($ds) { $tt_buttons_labels = GV_Extension_DataTables_TableTools::tabletools_button_labels(); ?> <table class="form-table"> <caption>TableTools</caption> <tr valign="top"> <td colspan="2"> <?php echo GravityView_Render_Settings::render_field_option('datatables_settings[tabletools]', array('label' => __('Enable TableTools', 'gv-datatables'), 'type' => 'checkbox', 'value' => 1, 'tooltip' => 'gv_datatables_tabletools'), $ds['tabletools']); ?> </td> </tr> <tr valign="top" id="gv_dt_tt_buttons"> <td colspan="2"> <h3><?php esc_html_e('Display Buttons', 'gv-datatables'); ?> </h3> </p> <ul class="ul-square"> <?php foreach ($ds['tt_buttons'] as $b_key => $b_value) { if (empty($tt_buttons_labels[$b_key])) { continue; } echo '<li>' . GravityView_Render_Settings::render_field_option('datatables_settings[tt_buttons][' . $b_key . ']', array('label' => $tt_buttons_labels[$b_key], 'type' => 'checkbox', 'value' => 1), $ds['tt_buttons'][$b_key]) . '</li>'; } ?> </ul> </td> </tr> </table> <?php }
/** * @deprecated since 1.2 * Start using GravityView_Render_Settings::render_field_option */ public static function render_field_option($name = '', $option, $curr_value = NULL) { _deprecated_function('GravityView_Admin_Views::render_field_option', '1.1.7', 'GravityView_Render_Settings::render_field_option'); return GravityView_Render_Settings::render_field_option($name, $option, $curr_value); }