feat(v1.8.0): Twitter-style conversation modal, light theme, major CSS/JS refactor

This commit is contained in:
SamiAhmed7777
2026-06-09 18:18:55 -07:00
parent 955e443274
commit ba00d0d382
9 changed files with 1330 additions and 932 deletions
+3 -8
View File
@@ -15,19 +15,14 @@ class Beep_Plugin {
add_action('wp_enqueue_scripts', [__CLASS__, 'enqueue_assets']);
// Set default Giphy API key if not already set
if (!get_option('beep_giphy_key')) {
update_option('beep_giphy_key', 'xuxYxuIvzPqw5tPB4laa7sQO8dFtSlNS');
}
// Elementor widget — only load if Elementor is active
add_action('elementor/widgets/register', function () {
add_action('elementor/widgets/register', function ($widgets_manager) {
if (!class_exists('\Elementor\Widget_Base')) return;
$widget_file = BEEP_DIR . 'includes/class-elementor-widget.php';
if (!file_exists($widget_file)) return;
require_once $widget_file;
if (class_exists('\Elementor\Beep_Elementor_Widget')) {
$widgets_manager->register(new \Elementor\Beep_Elementor_Widget());
if (class_exists('Beep_Elementor_Widget')) {
$widgets_manager->register(new Beep_Elementor_Widget());
}
}, 5);