GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-default-template-table.php
Go to the documentation of this file.
1 <?php
2 
3 /**
4  * GravityView_Default_Template_Table class.
5  * Defines Table(default) template
6  */
8 
9  function __construct( $id = 'default_table', $settings = array(), $field_options = array(), $areas = array() ) {
10 
11  $table_settings = array(
12  'slug' => 'table',
13  'type' => 'custom',
14  'label' => __( 'Table (default)', 'gravityview' ),
15  'description' => __( 'Display items in a table view.', 'gravityview' ),
16  'logo' => plugins_url( 'includes/presets/default-table/logo-default-table.png', GRAVITYVIEW_FILE ),
17  'css_source' => gravityview_css_url( 'table-view.css', GRAVITYVIEW_DIR . 'templates/css/' ),
18  );
19 
20  $settings = wp_parse_args( $settings, $table_settings );
21 
22  /**
23  * @see GravityView_Admin_Views::get_default_field_options() for Generic Field Options
24  * @var array
25  */
26  $field_options = array(
27  'show_as_link' => array(
28  'type' => 'checkbox',
29  'label' => __( 'Link to single entry', 'gravityview' ),
30  'value' => false,
31  'context' => 'directory'
32  ),
33  );
34 
35  $areas = array(
36  array(
37  '1-1' => array(
38  array(
39  'areaid' => 'table-columns',
40  'title' => __( 'Visible Table Columns', 'gravityview' ),
41  'subtitle' => __( 'Each field will be displayed as a column in the table.', 'gravityview' ),
42  )
43  )
44  )
45  );
46 
47 
48  parent::__construct( $id, $settings, $field_options, $areas );
49 
50  }
51 }
52 
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory
Definition: gravityview.php:35
gravityview_css_url($css_file= '', $dir_path= '')
Functions that don&#39;t require GravityView or Gravity Forms API access but are used in the plugin to ex...
GravityView_Default_Template_Table class.
Class used to register a new template to be shown in GravityView presets.
__construct($id, $settings=array(), $field_options=array(), $areas=array())
const GRAVITYVIEW_FILE(!defined( 'ABSPATH'))
Plugin Name: GravityView Plugin URI: https://gravityview.co Description: The best, easiest way to display Gravity Forms entries on your website.
Definition: gravityview.php:26