| 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 |
public static function register_elementor_hooks() { |
| 12 |
require_once FrmAppHelper::plugin_path() . '/classes/widgets/FrmElementorWidget.php'; |
| 13 |
\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new \FrmElementorWidget() ); |
| 14 |
|
| 15 |
if ( is_admin() ) { |
| 16 |
add_action( |
| 17 |
'elementor/editor/after_enqueue_styles', |
| 18 |
function() { |
| 19 |
wp_enqueue_style( 'font_icons', FrmAppHelper::plugin_url() . '/css/font_icons.css', array(), FrmAppHelper::plugin_version() ); |
| 20 |
} |
| 21 |
); |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
public static function admin_init() { |
| 26 |
FrmAppController::load_wp_admin_style(); |
| 27 |
FrmFormsController::insert_form_popup(); |
| 28 |
} |
| 29 |
} |
| 30 |
|