From 5a58afddf612cd33e4387420ff868caefbe4d3e5 Mon Sep 17 00:00:00 2001 From: LPdsgn Date: Sun, 9 Jun 2024 13:32:18 +0200 Subject: [PATCH] Updated folder & files structure --- README.md | 2 +- components.php | 8 ++++---- scrollDownIndicator/scrollDownIndicator.php | 2 +- scrollDownSpinner/scrollDownSpinner.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 06341e7..4548407 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Then add this line of code to your `functions.php` file to load the widgets: /* CUSTOM ELEMENTOR WIDGET * qui i widget custom registrati in Elementor */ -include_once(get_stylesheet_directory() . '/components/components.php'); +include_once(get_stylesheet_directory() . '/lp-elementor-widgets/components.php'); ``` > **Note** | diff --git a/components.php b/components.php index d87eaba..1d0ab81 100644 --- a/components.php +++ b/components.php @@ -10,7 +10,7 @@ * @version 1.0.0 */ function register_breadcrumbs($widgets_manager) { - require_once(get_stylesheet_directory() . '/components/breadcrumbs.php'); + require_once(get_stylesheet_directory() . '/lp-elementor-widgets/breadcrumbs.php'); $widgets_manager->register(new \Breadcrumbs()); } @@ -24,21 +24,21 @@ function register_breadcrumbs($widgets_manager) { # Register SCROLL DOWN SPINNER widget function register_scrollDownSpinner($widgets_manager) { - require_once(get_stylesheet_directory() . '/components/scrollDownSpinner/scrollDownSpinner.php'); + 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() . '/components/scrollDownIndicator/scrollDownIndicator.php'); + 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() . '/components/css/scrollDown.min.css'); + wp_register_style('scrollDown', get_stylesheet_directory_uri() . '/lp-elementor-widgets/css/scrollDown.min.css'); wp_enqueue_style('scrollDown'); } add_action('wp_enqueue_scripts', 'registerStyle_scrollDownSpinner'); \ No newline at end of file diff --git a/scrollDownIndicator/scrollDownIndicator.php b/scrollDownIndicator/scrollDownIndicator.php index 7b926d3..a7d1413 100644 --- a/scrollDownIndicator/scrollDownIndicator.php +++ b/scrollDownIndicator/scrollDownIndicator.php @@ -7,7 +7,7 @@ class Scroll_Down_Indicator extends \Elementor\Widget_Base public function __construct($data = [], $args = null) { parent::__construct($data, $args); - require_once(get_stylesheet_directory() . '/components/scrollDownIndicator/hex_to_rgba.php'); + require_once(get_stylesheet_directory() . '/lp-elementor-widgets/scrollDownIndicator/hex_to_rgba.php'); } public function get_name() { diff --git a/scrollDownSpinner/scrollDownSpinner.php b/scrollDownSpinner/scrollDownSpinner.php index b5aefe5..999e84c 100644 --- a/scrollDownSpinner/scrollDownSpinner.php +++ b/scrollDownSpinner/scrollDownSpinner.php @@ -77,7 +77,7 @@ protected function render() { return; } ?> - Scroll to see more content + Scroll to see more content