-
Notifications
You must be signed in to change notification settings - Fork 1
/
components.php
48 lines (40 loc) · 1.66 KB
/
components.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
48
<?php
defined('ABSPATH') || exit; // Exit if accessed directly
/**
* Register BREADCRUMB widget
* @package lp-elementor-widgets
* @version 1.0.0
*/
function register_breadcrumbs($widgets_manager) {
require_once(get_stylesheet_directory() . '/lp-elementor-widgets/breadcrumbs/breadcrumbs.php');
$widgets_manager->register(new \Breadcrumbs());
}
add_action('elementor/widgets/widgets_registered', 'register_breadcrumbs');
/**
* Register SCROLL DOWN widgets
* @package lp-elementor-widgets
* @version 1.0.0
*/
# Register SCROLL DOWN SPINNER widget
function register_scrollDownSpinner($widgets_manager) {
require_once(get_stylesheet_directory() . '/lp-elementor-widgets/scrollDownSpinner/scrollDownSpinner.php');
$widgets_manager->register(new \Scroll_Down_Spinner());
}
add_action('elementor/widgets/widgets_registered', 'register_scrollDownSpinner');
# Register SCROLL DOWN INDICATOR widget
function register_scrollDownIndicator($widgets_manager) {
require_once(get_stylesheet_directory() . '/lp-elementor-widgets/scrollDownIndicator/scrollDownIndicator.php');
$widgets_manager->register(new \Scroll_Down_Indicator());
}
add_action('elementor/widgets/widgets_registered', 'register_scrollDownIndicator');
# Register widget's style
function registerStyle_scrollDownSpinner() {
wp_register_style('scrollDown', get_stylesheet_directory_uri() . '/lp-elementor-widgets/css/scrollDown.min.css');
}
add_action('wp_enqueue_scripts', 'registerStyle_scrollDownSpinner');
/**
* Register Custom Shape Dividers
* @package lp-elementor-widgets
* @version 1.0.1
*/
require_once(get_stylesheet_directory() . '/lp-elementor-widgets/shapeDividers/customShapeDividers.php');