| @@ -19,13 +19,13 @@ | ||
| 19 | 19 | |
| 20 | 20 | parent::__construct( $module, $wordpress_adapter, $elementor_adapter, $promotion_data ); |
| 21 | 21 | } |
| 22 | 22 | |
| 23 | - public function get_id(): string { | |
| 23 | + public function get_id() : string { | |
| 24 | 24 | return self::STEP_ID; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - public function is_visible(): bool { | |
| 27 | + public function is_visible() : bool { | |
| 28 | 28 | if ( Utils::has_pro() ) { |
| 29 | 29 | return false; |
| 30 | 30 | } |
| 31 | 31 | |
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | |
| 32 | 32 | return parent::is_visible(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function is_absolute_completed(): bool { | |
| 35 | + public function is_absolute_completed() : bool { | |
| 36 | 36 | $args = [ |
| 37 | 37 | 'post_type' => 'elementor_library', |
| 38 | 38 | 'meta_query' => [ |
| 39 | 39 | 'relation' => 'AND', |
| @@ -57,33 +57,33 @@ | ||
| 57 | 57 | |
| 58 | 58 | return count( $header_templates ) >= 1; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - public function get_title(): string { | |
| 61 | + public function get_title() : string { | |
| 62 | 62 | return esc_html__( 'Set up a header', 'elementor' ); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function get_description(): string { | |
| 65 | + public function get_description() : string { | |
| 66 | 66 | return esc_html__( 'This element applies across different pages, so visitors can easily navigate around your site.', 'elementor' ); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - public function get_cta_text(): string { | |
| 69 | + public function get_cta_text() : string { | |
| 70 | 70 | return esc_html__( 'Add a header', 'elementor' ); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - public function get_cta_url(): string { | |
| 73 | + public function get_cta_url() : string { | |
| 74 | 74 | return ''; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function get_image_src(): string { | |
| 77 | + public function get_image_src() : string { | |
| 78 | 78 | return 'https://assets.elementor.com/checklist/v1/images/checklist-step-4.jpg'; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - public function get_is_completion_immutable(): bool { | |
| 81 | + public function get_is_completion_immutable() : bool { | |
| 82 | 82 | return false; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function get_learn_more_url(): string { | |
| 85 | + public function get_learn_more_url() : string { | |
| 86 | 86 | return 'https://go.elementor.com/app-website-checklist-header-article'; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | private function render_promotion() { |
| @@ -95,6 +95,8 @@ | ||
| 95 | 95 | ], |
| 96 | 96 | 'elementor/checklist/promotion', |
| 97 | 97 | 'upgrade_url' |
| 98 | 98 | ); |
| 99 | + | |
| 99 | 100 | } |
| 101 | + | |
| 100 | 102 | } |