PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
← All changes | includes/classes/get-template-trait.php +23 -19 1.1.1 → 3.6.6 View file →
@@ -1,19 +1,23 @@
1 -<?php
2 -
3 -
4 -namespace Jet_Form_Builder\Classes;
5 -
6 -
7 -trait Get_Template_Trait {
8 - /**
9 - * Returns template path
10 - *
11 - * @param [type] $path [description]
12 - *
13 - * @return [type] [description]
14 - */
15 - public function get_global_template( $path = '' ) {
16 - return JET_FORM_BUILDER_PATH . 'templates/' . $path;
17 - }
18 -
19 -}
1 +<?php
2 +
3 +
4 +namespace Jet_Form_Builder\Classes;
5 +
6 +// If this file is called directly, abort.
7 +if ( ! defined( 'WPINC' ) ) {
8 + die;
9 +}
10 +
11 +trait Get_Template_Trait {
12 + /**
13 + * Returns template path
14 + *
15 + * @param [type] $path [description]
16 + *
17 + * @return [type] [description]
18 + */
19 + public function get_global_template( $path = '' ) {
20 + return JET_FORM_BUILDER_PATH . 'templates' . DIRECTORY_SEPARATOR . $path;
21 + }
22 +
23 +}