-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathour-team-elementor.php
47 lines (38 loc) · 1.23 KB
/
our-team-elementor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Plugin Name: team Widgets Elementor
* Description: Elementor custom widgets from team Widgets Elementor Web Apps.
* Plugin URI: teamWidgetsElementoryassine_dotma
* Version: 1.0.0
* Author: yassine_dotma
* Author URI: c
* Text Domain: team-elementor-widget
* Elementor tested up to: 3.5.0
* Elementor Pro tested up to: 3.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Register Widgets.
*
* Include widget file and register widget class.
* @since 1.0.0
* @param \Elementor\Widgets_Manager $widgets_manager Elementor widgets manager.
* @return void
*/
function register_team_custom_widgets( $widgets_manager ) {
require_once( __DIR__ . '/widgets/our-team-widget.php' ); // include the widget file
$widgets_manager->register( new \Elementor_Team_Widget() ); // register the widget
}
add_action( 'elementor/widgets/register', 'register_team_custom_widgets' );
/*
* Load profile card scripts and styles
* @since v1.0.0
*/
if (!function_exists('team_widget_script')) {
function team_widget_script() {
wp_enqueue_style('bootstrap',plugins_url('assets/css/font-awesome.css',__FILE__));
}
}
add_action('wp_enqueue_scripts','team_widget_script');