PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.6
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.6
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / controllers / FrmElementorController.php

FrmElementorController.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.6, at classes/controllers/FrmElementorController.php

36 lines 823 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 /**
7 * @since 5.0.06
8 */
9 class FrmElementorController {
10
11 /**
12 * @return void
13 */
14 public static function register_elementor_hooks() {
15 require_once FrmAppHelper::plugin_path() . '/classes/widgets/FrmElementorWidget.php';
16 \Elementor\Plugin::instance()->widgets_manager->register( new \FrmElementorWidget() );
17
18 if ( is_admin() ) {
19 add_action(
20 'elementor/editor/after_enqueue_styles',
21 function() {
22 wp_enqueue_style( 'font_icons', FrmAppHelper::plugin_url() . '/css/font_icons.css', array(), FrmAppHelper::plugin_version() );
23 }
24 );
25 }
26 }
27
28 /**
29 * @return void
30 */
31 public static function admin_init() {
32 FrmAppController::load_wp_admin_style();
33 FrmFormsController::insert_form_popup();
34 }
35 }
36