GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-default-template-edit.php
Go to the documentation of this file.
1 <?php
2 /**
3  * GravityView preset template
4  *
5  * @file class-gravityview-preset-website-showcase.php
6  * @package GravityView
7  * @license GPL2+
8  * @author GravityView <[email protected]>
9  * @link http://gravityview.co
10  * @copyright Copyright 2015, Katz Web Services, Inc.
11  *
12  * @since 1.15
13  */
14 
15 /**
16  * GravityView_Default_Template_Edit class.
17  * Defines Edit Table(default) template (Edit Entry) - this is not visible; it's an internal template only.
18  */
20 
21  function __construct( $id = 'default_table_edit', $settings = array(), $field_options = array(), $areas = array() ) {
22 
23  $edit_settings = array(
24  'slug' => 'edit',
25  'type' => 'internal',
26  'label' => __( 'Edit Table', 'gk-gravityview' ),
27  'description' => __('Display items in a table view.', 'gk-gravityview'),
28  'logo' => plugins_url('includes/presets/default-table/logo-default-table.png', GRAVITYVIEW_FILE),
29  'css_source' => gravityview_css_url( 'table-view.css', GRAVITYVIEW_DIR . 'templates/css/' ),
30  );
31 
32  $settings = wp_parse_args( $settings, $edit_settings );
33 
34  /**
35  * @see GravityView_Admin_Views::get_default_field_options() for Generic Field Options
36  * @var array
37  */
38  $field_options = array();
39 
40  $areas = array(
41  array(
42  '1-1' => array(
43  array(
44  'areaid' => 'edit-fields',
45  'title' => __('Visible Edit Fields', 'gk-gravityview' )
46  )
47  )
48  )
49  );
50 
51 
52  parent::__construct( $id, $settings, $field_options, $areas );
53 
54  }
55 
56 }
57 
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory, with trailing slash ...
Definition: gravityview.php:49
Class used to register a new template to be shown in GravityView presets.
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_Edit class.
const GRAVITYVIEW_FILE
Full path to the GravityView file "GRAVITYVIEW_FILE" "./gravityview.php".
Definition: gravityview.php:40
__construct( $id, $settings=array(), $field_options=array(), $areas=array())