| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Promotions\AdminMenuItems; |
| 4 |
|
| 5 |
use Elementor\Core\Admin\EditorOneMenu\Interfaces\Menu_Item_Interface; |
| 6 |
use Elementor\Modules\EditorOne\Classes\Menu_Config; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
class Editor_One_Fonts_Menu extends Base_Promotion_Template implements Menu_Item_Interface { |
| 13 |
|
| 14 |
public function get_position(): int { |
| 15 |
return 10; |
| 16 |
} |
| 17 |
|
| 18 |
public function get_slug(): string { |
| 19 |
return 'elementor_custom_fonts'; |
| 20 |
} |
| 21 |
|
| 22 |
public function get_parent_slug(): string { |
| 23 |
return Menu_Config::ELEMENTOR_MENU_SLUG; |
| 24 |
} |
| 25 |
|
| 26 |
public function get_label(): string { |
| 27 |
return esc_html__( 'Fonts', 'elementor' ); |
| 28 |
} |
| 29 |
|
| 30 |
public function get_group_id(): string { |
| 31 |
return Menu_Config::CUSTOM_ELEMENTS_GROUP_ID; |
| 32 |
} |
| 33 |
|
| 34 |
public function get_name() { |
| 35 |
return 'custom_fonts'; |
| 36 |
} |
| 37 |
|
| 38 |
public function get_page_title() { |
| 39 |
return esc_html__( 'Custom Fonts', 'elementor' ); |
| 40 |
} |
| 41 |
|
| 42 |
protected function get_promotion_title(): string { |
| 43 |
return esc_html__( 'Stay on brand with a Custom Font', 'elementor' ); |
| 44 |
} |
| 45 |
|
| 46 |
protected function get_content_lines(): array { |
| 47 |
return [ |
| 48 |
esc_html__( 'Upload any font to keep your website true to your brand', 'elementor' ), |
| 49 |
sprintf( |
| 50 |
/* translators: %s: br */ |
| 51 |
esc_html__( 'Remain GDPR compliant with Custom Fonts that let you disable %s Google Fonts from your website', 'elementor' ), |
| 52 |
'<br />' |
| 53 |
), |
| 54 |
]; |
| 55 |
} |
| 56 |
|
| 57 |
protected function get_cta_url(): string { |
| 58 |
return 'https://go.elementor.com/go-pro-custom-fonts/'; |
| 59 |
} |
| 60 |
|
| 61 |
protected function get_video_url(): string { |
| 62 |
return 'https://www.youtube-nocookie.com/embed/j_guJkm28eY?si=cdd2TInwuGDTtCGD'; |
| 63 |
} |
| 64 |
} |
| 65 |
|