PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 4.3.6
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v4.3.6
6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 3.6.66 All 195 releases
fluentform / app / Modules / Widgets / ElementorWidget.php

ElementorWidget.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 4.3.6, at app/Modules/Widgets/ElementorWidget.php

37 lines 983 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Modules\Widgets;
4 use Elementor\Plugin as Elementor;
5 use FluentForm\App\Modules\Widgets\FluentFormWidget;
6
7 class ElementorWidget
8 {
9 private $app = null;
10
11 public function __construct($app)
12 {
13 $this->app = $app;
14 add_action( 'elementor/widgets/widgets_registered', array($this, 'init_widgets') );
15 }
16
17
18 public function init_widgets()
19 {
20 $this->enqueueAssets();
21
22 $widgets_manager = Elementor::instance()->widgets_manager;
23
24 if ( file_exists( FLUENTFORM_DIR_PATH.'app/Modules/Widgets/FluentFormWidget.php' ) ) {
25 require_once FLUENTFORM_DIR_PATH.'app/Modules/Widgets/FluentFormWidget.php';
26 $widgets_manager->register_widget_type( new FluentFormWidget() );
27 }
28 }
29
30
31 public function enqueueAssets()
32 {
33 wp_enqueue_style('fluentform-elementor-widget', $this->app->publicUrl('css/fluent-forms-elementor-widget.css'), array(), FLUENTFORM_VERSION );
34 }
35
36 }
37