GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
class-gravityview-placeholder-template.php
Go to the documentation of this file.
1 <?php
2 /**
3  * GravityView placeholder templates
4  *
5  * @file class-gravityview-placeholder-template.php
6  * @package GravityView
7  * @license GPL2+
8  * @author Katz Web Services, Inc.
9  * @link http://gravityview.co
10  * @copyright Copyright 2021, Katz Web Services, Inc.
11  *
12  * @since 2.10
13  */
15 
16  function __construct( $id = 'template_placeholder', $settings = array() ) {
17 
18  $default_template_settings = array(
19  'type' => 'custom',
20  'buy_source' => 'https://www.gravitykit.com/pricing/',
21  'slug' => '',
22  'template_id' => '',
23  'label' => '',
24  'description' => '',
25  'logo' => '',
26  'price_id' => '',
27  'textdomain' => '',
28  );
29 
30  $settings = wp_parse_args( $settings, $default_template_settings );
31 
32  $this->id = $id;
33  $this->settings = $settings;
34 
35  parent::__construct( $id, $settings, array(), array() );
36  }
37 
38 }
Class used to register a new template to be shown in GravityView presets.
__construct( $id='template_placeholder', $settings=array())