| 1 |
<?php |
| 2 |
|
| 3 |
namespace Hostinger\Admin\Onboarding\Steps; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
class AddLogo extends OnboardingStep { |
| 8 |
public function get_title(): string { |
| 9 |
return __( 'Upload your logo', 'hostinger' ); |
| 10 |
} |
| 11 |
|
| 12 |
public function get_body(): array { |
| 13 |
return array( |
| 14 |
array( |
| 15 |
'title' => __( 'Create a logo', 'hostinger' ), |
| 16 |
'description' => __( 'Adding a logo is a great way to personalize a website or add branding information. You can use your existing logo or create a new one using the <a href="https://logo.hostinger.com/?ref=wordpress-onboarding" target="_blank">AI Logo Maker</a>.', 'hostinger' ), |
| 17 |
), |
| 18 |
array( |
| 19 |
'title' => __( 'Go to the Customize page', 'hostinger' ), |
| 20 |
'description' => __( 'In the left sidebar, click Appearance to expand the menu. In the Appearance section, click Customize. The Customize page will open. ', 'hostinger' ), |
| 21 |
), |
| 22 |
array( |
| 23 |
'title' => __( 'Upload your logo', 'hostinger' ), |
| 24 |
'description' => __( 'In the left sidebar, click Site Identity, then click on the Select Site Icon button. Here, you can upload your brand logo. ', 'hostinger' ), |
| 25 |
), |
| 26 |
); |
| 27 |
} |
| 28 |
|
| 29 |
public function step_identifier(): string { |
| 30 |
return 'logo_upload'; |
| 31 |
} |
| 32 |
|
| 33 |
public function get_redirect_link(): string { |
| 34 |
return admin_url( 'customize.php' ); |
| 35 |
} |
| 36 |
|
| 37 |
public function button_text(): string { |
| 38 |
return __( 'Take me there', 'hostinger' ); |
| 39 |
} |
| 40 |
} |
| 41 |
|