s-element-pack'), 'button-click' => esc_html__('Button Click', 'bdthemes-element-pack'), 'mouse-click' => esc_html__('Mouse Click', 'bdthemes-element-pack'), 'mountain' => esc_html__('Bell Ring', 'bdthemes-element-pack'), 'hosted_url' => esc_html__('Local Audio (.ogg only)', 'bdthemes-element-pack'), ], 'frontend_available' => true, 'condition' => [ 'ep_sound_effects_active' => 'yes', ], ] ); $widget->add_control( 'ep_sound_effects_source_local_link', [ 'type' => Controls_Manager::HIDDEN, 'default' => BDTEP_ASSETS_URL . 'sounds/', 'frontend_available' => true, 'condition' => [ 'ep_sound_effects_active' => 'yes', ], ] ); $widget->add_control( 'ep_sound_effects_hosted_url', [ 'label' => esc_html__('Local Audio', 'bdthemes-element-pack'), 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, 'categories' => [ TagsModule::POST_META_CATEGORY, TagsModule::MEDIA_CATEGORY, ], ], 'media_type' => 'audio/ogg', 'default' => [ 'url' => BDTEP_ASSETS_URL . 'sounds/mouse-double-click.ogg', ], 'frontend_available' => true, 'description' => 'Right now you can use only OGG sound file.', 'condition' => [ 'ep_sound_effects_active' => 'yes', 'ep_sound_effects_source' => 'hosted_url' ] ] ); $widget->add_control( 'ep_sound_effects_hosted_url_mp3', [ 'label' => esc_html__('Local Audio MP3 (Fallback)', 'bdthemes-element-pack') . BDTEP_NC, 'type' => Controls_Manager::MEDIA, 'dynamic' => [ 'active' => true, 'categories' => [ TagsModule::POST_META_CATEGORY, TagsModule::MEDIA_CATEGORY, ], ], 'media_type' => 'audio', 'frontend_available' => true, 'description' => 'Please upload MP3 file for fallback.', 'condition' => [ 'ep_sound_effects_active' => 'yes', 'ep_sound_effects_source' => 'hosted_url' ] ] ); } public function should_script_enqueue($widget) { if ('yes' === $widget->get_settings_for_display('ep_sound_effects_active')) { wp_enqueue_script('ep-sound-effects'); } } protected function add_actions() { add_action('elementor/element/common/_section_style/after_section_end', [$this, 'register_section']); add_action('elementor/element/common/section_element_pack_sound_effects_controls/before_section_end', [$this, 'register_controls'], 10, 2); // render scripts add_action('elementor/frontend/widget/before_render', [$this, 'should_script_enqueue']); } }
Warning: Trying to access array offset on int in /htdocs/wp-content/plugins/bdthemes-element-pack/admin/module-settings.php on line 3976

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/bdthemes-element-pack/modules/sound-effects/module.php:1) in /htdocs/wp-content/plugins/sellkit/includes/contact-segmentation/contact-data-updater.php on line 114

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/bdthemes-element-pack/modules/sound-effects/module.php:1) in /htdocs/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/plugins/bdthemes-element-pack/modules/sound-effects/module.php:1) in /htdocs/wp-includes/pluggable.php on line 1453