arguments
1 year ago
arrayable
2 years ago
filters
1 year ago
http
2 years ago
macro-constants
2 years ago
post
1 year ago
resources
1 year ago
theme
2 years ago
attributes-trait.php
2 years ago
base-attributes-trait.php
2 years ago
builder-helper.php
1 year ago
compatibility.php
2 years ago
date-tools.php
2 years ago
gallery.php
2 years ago
get-icon-trait.php
2 years ago
get-template-trait.php
2 years ago
html-attributes-trait.php
2 years ago
instance-trait.php
2 years ago
regexp-tools.php
2 years ago
tools.php
1 year ago
get-template-trait.php
24 lines
| 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 | } |
| 24 |