feat(v1.8.0): Twitter-style conversation modal, light theme, major CSS/JS refactor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user