Skip to content

Commit 4f9e13e

Browse files
committed
Added integration support for SureCart
1 parent db7e9a5 commit 4f9e13e

File tree

10 files changed

+656
-402
lines changed

10 files changed

+656
-402
lines changed

assets/css/admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/surecart.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ function buddyx_load_plugin_support() {
9393
}
9494
}
9595

96+
// SureCart compatibility
97+
if ( defined( 'SURECART_PLUGIN_FILE' ) ) {
98+
$surecart_file = $base_path . '/inc/compatibility/surecart/surecart-functions.php';
99+
if ( file_exists( $surecart_file ) ) {
100+
require_once $surecart_file;
101+
}
102+
}
103+
96104
$plugins_checked = true;
97105
}
98106

inc/Styles/Component.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ public function action_enqueue_styles() {
233233

234234
// Enqueue Dark Mode CSS.
235235
wp_enqueue_style( 'buddyx-dark-mode', $css_uri . 'dark-mode.min.css' );
236+
237+
// Enqueue SureCart CSS.
238+
if ( defined( 'SURECART_PLUGIN_FILE' ) ) {
239+
wp_enqueue_style( 'buddyx-surecart', $css_uri . 'surecart.min.css' );
240+
}
236241
}
237242

238243
/**

inc/Welcome/Component.php

Lines changed: 6 additions & 100 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)