| @@ -10,13 +10,13 @@ | ||
| 10 | 10 | |
| 11 | 11 | class Create_Pages extends Step_Base { |
| 12 | 12 | const STEP_ID = 'create_pages'; |
| 13 | 13 | |
| 14 | - public function get_id(): string { | |
| 14 | + public function get_id() : string { | |
| 15 | 15 | return self::STEP_ID; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - public function is_absolute_completed(): bool { | |
| 18 | + public function is_absolute_completed() : bool { | |
| 19 | 19 | $pages = $this->wordpress_adapter->get_pages( [ |
| 20 | 20 | 'meta_key' => '_elementor_version', |
| 21 | 21 | 'number' => 3, |
| 22 | 22 | ] ) ?? []; |
| @@ -23,32 +23,32 @@ | ||
| 23 | 23 | |
| 24 | 24 | return count( $pages ) >= 3; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - public function get_title(): string { | |
| 27 | + public function get_title() : string { | |
| 28 | 28 | return esc_html__( 'Create your first 3 pages', 'elementor' ); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public function get_description(): string { | |
| 31 | + public function get_description() : string { | |
| 32 | 32 | return esc_html__( 'Jumpstart your creation with professional designs from the Template Library or start from scratch.', 'elementor' ); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function get_cta_text(): string { | |
| 35 | + public function get_cta_text() : string { | |
| 36 | 36 | return esc_html__( 'Create a new page', 'elementor' ); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - public function get_cta_url(): string { | |
| 39 | + public function get_cta_url() : string { | |
| 40 | 40 | return Plugin::$instance->documents->get_create_new_post_url( 'page' ); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - public function get_learn_more_url(): string { | |
| 43 | + public function get_learn_more_url() : string { | |
| 44 | 44 | return 'http://go.elementor.com/app-website-checklist-pages-article'; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - public function get_is_completion_immutable(): bool { | |
| 47 | + public function get_is_completion_immutable() : bool { | |
| 48 | 48 | return true; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - public function get_image_src(): string { | |
| 51 | + public function get_image_src() : string { | |
| 52 | 52 | return 'https://assets.elementor.com/checklist/v1/images/checklist-step-3.jpg'; |
| 53 | 53 | } |
| 54 | 54 | } |