Skip to content

Commit

Permalink
update: move elementor to external-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
daonham committed Feb 8, 2022
1 parent adebba6 commit b957c87
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public function register_widgets( $widgets_manager ) {
if ( ! empty( self::WIDGETS ) ) {

// Abstract class for widgets.
require_once LP_PLUGIN_PATH . 'inc/elementor/widgets/widget-base.php';
require_once LP_PLUGIN_PATH . 'inc/external-plugin/elementor/widgets/widget-base.php';

foreach ( self::WIDGETS as $widget => $class ) {
$class = sprintf( '\Elementor\%s', $class );

if ( ! class_exists( $class ) ) {
$widget_path = LP_PLUGIN_PATH . 'inc/elementor/widgets/' . $widget . '.php';
$widget_path = LP_PLUGIN_PATH . 'inc/external-plugin/elementor/widgets/' . $widget . '.php';

if ( file_exists( $widget_path ) ) {
require_once $widget_path;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion learnpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function includes() {
// require_once 'inc/class-lp-preview-course.php';

if ( defined( 'ELEMENTOR_VERSION' ) ) {
require_once 'inc/elementor/class-lp-elementor.php';
require_once 'inc/external-plugin/elementor/class-lp-elementor.php';
}

require_once 'inc/class-lp-widget.php';
Expand Down

0 comments on commit b957c87

Please sign in to comment.