| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Checklist\Steps; |
| 4 |
|
| 5 |
use Elementor\Core\DocumentTypes\Page; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
class Add_Logo extends Step_Base { |
| 12 |
const STEP_ID = 'add_logo'; |
| 13 |
|
| 14 |
const SITE_IDENTITY_TAB = 'settings-site-identity'; |
| 15 |
|
| 16 |
public function get_id(): string { |
| 17 |
return self::STEP_ID; |
| 18 |
} |
| 19 |
|
| 20 |
public function is_absolute_completed(): bool { |
| 21 |
return $this->wordpress_adapter->has_custom_logo(); |
| 22 |
} |
| 23 |
|
| 24 |
public function get_title(): string { |
| 25 |
return esc_html__( 'Add your logo', 'elementor' ); |
| 26 |
} |
| 27 |
|
| 28 |
public function get_description(): string { |
| 29 |
return __( 'Let\'s start by adding your logo and filling in the site identity settings. This will establish your initial presence and also improve SEO.', 'elementor' ); |
| 30 |
} |
| 31 |
|
| 32 |
public function get_cta_text(): string { |
| 33 |
return esc_html__( 'Go to Site Identity', 'elementor' ); |
| 34 |
} |
| 35 |
|
| 36 |
public function get_cta_url(): string { |
| 37 |
return Page::get_site_settings_url_config( self::SITE_IDENTITY_TAB )['url']; |
| 38 |
} |
| 39 |
|
| 40 |
public function get_is_completion_immutable(): bool { |
| 41 |
return false; |
| 42 |
} |
| 43 |
|
| 44 |
public function get_image_src(): string { |
| 45 |
return 'https://assets.elementor.com/checklist/v1/images/checklist-step-1.jpg'; |
| 46 |
} |
| 47 |
|
| 48 |
public function get_learn_more_url(): string { |
| 49 |
return 'http://go.elementor.com/app-website-checklist-logo-article'; |
| 50 |
} |
| 51 |
} |
| 52 |
|