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
2 months 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
2 months ago
compatibility.php
27 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 | class Compatibility { |
| 12 | |
| 13 | public static function has_jet_sm(): bool { |
| 14 | return ( |
| 15 | class_exists( 'JET_SM\Gutenberg\Controls_Manager' ) |
| 16 | && class_exists( 'JET_SM\Gutenberg\Block_Manager' ) |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | public static function has_jet_engine(): bool { |
| 21 | return ( |
| 22 | function_exists( 'jet_engine' ) |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | } |
| 27 |