| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\FloatingButtons\Widgets; |
| 4 |
|
| 5 |
use Elementor\Modules\FloatingButtons\Base\Widget_Floating_Bars_Base; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* Elementor Floating Bars Var 1 widget. |
| 13 |
* |
| 14 |
* Elementor widget that displays a banner with icon and link |
| 15 |
* |
| 16 |
* @since 3.23.0 |
| 17 |
*/ |
| 18 |
class Floating_Bars_Var_1 extends Widget_Floating_Bars_Base { |
| 19 |
|
| 20 |
public function get_name(): string { |
| 21 |
return 'floating-bars-var-1'; |
| 22 |
} |
| 23 |
|
| 24 |
public function get_title(): string { |
| 25 |
return esc_html__( 'Floating Bar CTA', 'elementor' ); |
| 26 |
} |
| 27 |
|
| 28 |
public function get_group_name(): string { |
| 29 |
return 'floating-bars'; |
| 30 |
} |
| 31 |
|
| 32 |
public function render(): void { |
| 33 |
$this->add_inline_editing_attributes( 'announcement_text', 'none' ); |
| 34 |
$this->add_inline_editing_attributes( 'cta_text', 'none' ); |
| 35 |
|
| 36 |
parent::render(); |
| 37 |
} |
| 38 |
} |
| 39 |
|