PluginProbe
Elementor Website Builder – more than just a page builder / 3.25.2
Elementor Website Builder – more than just a page builder v3.25.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/checklist/steps/setup-header.php +16 -12 4.2.23.25.2 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace Elementor\Modules\Checklist\Steps;
4 4
5 +use Elementor\Core\Isolation\Wordpress_Adapter_Interface;
6 +use Elementor\Modules\Checklist\Module as Checklist_Module;
5 7 use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 8 use Elementor\Utils;
7 9
8 10 if ( ! defined( 'ABSPATH' ) ) {
@@ -11,21 +13,21 @@
11 13
12 14 class Setup_Header extends Step_Base {
13 15 const STEP_ID = 'setup_header';
14 16
15 - public function __construct( $module, $wordpress_adapter = null, $elementor_adapter = null, $should_promote = true ) {
17 + public function __construct( $module, $wordpress_adapter = null, $kit_adapter = null, $should_promote = true ) {
16 18 $promotion_data = $should_promote
17 19 ? $this->render_promotion()
18 20 : null;
19 21
20 - parent::__construct( $module, $wordpress_adapter, $elementor_adapter, $promotion_data );
22 + parent::__construct( $module, $wordpress_adapter, $kit_adapter, $promotion_data );
21 23 }
22 24
23 - public function get_id(): string {
25 + public function get_id() : string {
24 26 return self::STEP_ID;
25 27 }
26 28
27 - public function is_visible(): bool {
29 + public function is_visible() : bool {
28 30 if ( Utils::has_pro() ) {
29 31 return false;
30 32 }
31 33
@@ -31,9 +33,9 @@
31 33
32 34 return parent::is_visible();
33 35 }
34 36
35 - public function is_absolute_completed(): bool {
37 + public function is_absolute_completed() : bool {
36 38 $args = [
37 39 'post_type' => 'elementor_library',
38 40 'meta_query' => [
39 41 'relation' => 'AND',
@@ -57,33 +59,33 @@
57 59
58 60 return count( $header_templates ) >= 1;
59 61 }
60 62
61 - public function get_title(): string {
63 + public function get_title() : string {
62 64 return esc_html__( 'Set up a header', 'elementor' );
63 65 }
64 66
65 - public function get_description(): string {
67 + public function get_description() : string {
66 68 return esc_html__( 'This element applies across different pages, so visitors can easily navigate around your site.', 'elementor' );
67 69 }
68 70
69 - public function get_cta_text(): string {
71 + public function get_cta_text() : string {
70 72 return esc_html__( 'Add a header', 'elementor' );
71 73 }
72 74
73 - public function get_cta_url(): string {
75 + public function get_cta_url() : string {
74 76 return '';
75 77 }
76 78
77 - public function get_image_src(): string {
79 + public function get_image_src() : string {
78 80 return 'https://assets.elementor.com/checklist/v1/images/checklist-step-4.jpg';
79 81 }
80 82
81 - public function get_is_completion_immutable(): bool {
83 + public function get_is_completion_immutable() : bool {
82 84 return false;
83 85 }
84 86
85 - public function get_learn_more_url(): string {
87 + public function get_learn_more_url() : string {
86 88 return 'https://go.elementor.com/app-website-checklist-header-article';
87 89 }
88 90
89 91 private function render_promotion() {
@@ -95,6 +97,8 @@
95 97 ],
96 98 'elementor/checklist/promotion',
97 99 'upgrade_url'
98 100 );
101 +
99 102 }
103 +
100 104 }