| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly |
| 7 |
} |
| 8 |
|
| 9 |
class Custom_Icons_Promotion_Item extends Base_Promotion_Template { |
| 10 |
public function get_name() { |
| 11 |
return 'custom_icons'; |
| 12 |
} |
| 13 |
|
| 14 |
public function get_label() { |
| 15 |
return esc_html__( 'Custom Icons', 'elementor' ); |
| 16 |
} |
| 17 |
|
| 18 |
public function get_page_title() { |
| 19 |
return esc_html__( 'Custom Icons', 'elementor' ); |
| 20 |
} |
| 21 |
|
| 22 |
protected function get_promotion_title():string { |
| 23 |
return sprintf( |
| 24 |
/* translators: %s: br */ |
| 25 |
esc_html__( 'Enjoy creative freedom %s with Custom Icons', 'elementor' ), |
| 26 |
'<br />' |
| 27 |
); |
| 28 |
} |
| 29 |
|
| 30 |
protected function get_content_lines(): array { |
| 31 |
return [ |
| 32 |
sprintf( |
| 33 |
esc_html__( 'Expand your icon library beyond FontAwesome and add icon %s libraries of your choice', 'elementor' ), |
| 34 |
'<br />' |
| 35 |
), |
| 36 |
esc_html__( 'Add any icon, anywhere on your website', 'elementor' ), |
| 37 |
]; |
| 38 |
} |
| 39 |
|
| 40 |
protected function get_cta_url(): string { |
| 41 |
return 'https://go.elementor.com/go-pro-custom-icons/'; |
| 42 |
} |
| 43 |
|
| 44 |
protected function get_video_url(): string { |
| 45 |
return 'https://www.youtube-nocookie.com/embed/PsowinxDWfM?si=SV9Z3TLz3_XEy5C6'; |
| 46 |
} |
| 47 |
} |
| 48 |
|