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
jetformbuilder / compatibility / jet-engine / compatibility / elementor / elementor.php

elementor.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.6, at compatibility/jet-engine/compatibility/elementor/elementor.php

29 lines 709 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace JFB_Compatibility\Jet_Engine\Compatibility\Elementor;
4
5 class Elementor {
6
7 public function init_hooks() {
8 // compatibility with 3.7
9 if (
10 defined( 'ELEMENTOR_VERSION' ) &&
11 version_compare( ELEMENTOR_VERSION, '3.5.0', '>=' )
12 ) {
13 add_action( 'elementor/widgets/register', array( $this, 'register_widgets' ) );
14 } else {
15 add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widgets' ) );
16 }
17 }
18
19 public function register_widgets( $manager ) {
20 // compatibility with 3.7
21 if ( method_exists( $manager, 'register' ) ) {
22 $manager->register( new Check_Mark\Widget() );
23 } else {
24 $manager->register_widget_type( new Check_Mark\Widget() );
25 }
26 }
27
28 }
29