GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
register-default-templates.php
Go to the documentation of this file.
1 <?php
2 /**
3  * GravityView default templates and generic template class
4  *
5  * @file register-default-templates.php
6  * @package GravityView
7  * @license GPL2+
8  * @author Katz Web Services, Inc.
9  * @link http://gravityview.co
10  * @copyright Copyright 2015, Katz Web Services, Inc.
11  *
12  * @since 1.15
13  */
14 
15 // Load default templates
16 add_action( 'init', 'gravityview_register_default_templates', 11 );
17 
18 /**
19  * Registers the default templates
20  * @return void
21  */
23  /** @define "GRAVITYVIEW_DIR" "../../" */
24 
25  // The abstract class required by all template files.
26  require_once GRAVITYVIEW_DIR . 'includes/class-gravityview-template.php';
27 
28  $path = GRAVITYVIEW_DIR . 'includes/presets/';
29  include_once $path . 'default-table/class-gravityview-default-template-table.php';
30  include_once $path . 'default-list/class-gravityview-default-template-list.php';
31  include_once $path . 'default-edit/class-gravityview-default-template-edit.php';
32  include_once $path . 'business-listings/class-gravityview-preset-business-listings.php';
33  include_once $path . 'business-data/class-gravityview-preset-business-data.php';
34  include_once $path . 'profiles/class-gravityview-preset-profiles.php';
35  include_once $path . 'staff-profiles/class-gravityview-preset-staff-profiles.php';
36  include_once $path . 'website-showcase/class-gravityview-preset-website-showcase.php';
37  include_once $path . 'issue-tracker/class-gravityview-preset-issue-tracker.php';
38  include_once $path . 'resume-board/class-gravityview-preset-resume-board.php';
39  include_once $path . 'job-board/class-gravityview-preset-job-board.php';
40  include_once $path . 'event-listings/class-gravityview-preset-event-listings.php';
41 }
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory
Definition: gravityview.php:35
gravityview_register_default_templates()
Registers the default templates.