16 $use_legacy_table_style = apply_filters(
'gravityview/template/table/use-legacy-style',
false );
18 $css_filename =
'table-view.css';
20 if ( $use_legacy_table_style ) {
21 $css_filename =
'table-view-legacy.css';
24 $table_settings = array(
27 'label' => __(
'Table',
'gk-gravityview' ),
28 'description' => __(
'Display items in a table view.',
'gk-gravityview' ),
29 'logo' => plugins_url(
'includes/presets/default-table/logo-default-table.png',
GRAVITYVIEW_FILE ),
40 'show_as_link' => array(
42 'label' => __(
'Link to single entry',
'gk-gravityview' ),
44 'context' =>
'directory',
54 'areaid' =>
'table-columns',
55 'title' => __(
'Visible Table Columns',
'gk-gravityview' ),
56 'subtitle' => __(
'Each field will be displayed as a column in the table.',
'gk-gravityview' ),
74 add_filter(
'gravityview/admin/add_button_label', array( $this,
'maybe_modify_button_label' ), 10, 2 );
93 if( $this->template_id !== \
GV\Utils::get( $atts,
'template_id' ) ) {
97 if(
'field' !== \
GV\Utils::get( $atts,
'type' ) ) {
101 if(
'edit' === \
GV\Utils::get( $atts,
'zone' ) ) {
105 return __(
'Add Table Column',
'gk-gravityview' );
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory, with trailing slash ...
GravityView_Default_Template_Table class.
maybe_modify_button_label( $label='', $atts=array())
Changes the button label to reflect that fields = rows.
add_hooks()
Adds hooks specific to this template.
Class used to register a new template to be shown in GravityView presets.
gravityview_css_url( $css_file='', $dir_path='')
Functions that don't require GravityView or Gravity Forms API access but are used in the plugin to ex...
new GravityView_Default_Template_Table
const GRAVITYVIEW_FILE
Full path to the GravityView file "GRAVITYVIEW_FILE" "./gravityview.php".
__construct( $id, $settings=array(), $field_options=array(), $areas=array())