PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.1
Elementor Website Builder – more than just a page builder v4.2.1
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
elementor / modules / checklist / steps / create-pages.php

create-pages.php in Elementor Website Builder – more than just a page builder 4.2.1, at modules/checklist/steps/create-pages.php

55 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\Checklist\Steps;
4
5 use Elementor\Plugin;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 class Create_Pages extends Step_Base {
12 const STEP_ID = 'create_pages';
13
14 public function get_id(): string {
15 return self::STEP_ID;
16 }
17
18 public function is_absolute_completed(): bool {
19 $pages = $this->wordpress_adapter->get_pages( [
20 'meta_key' => '_elementor_version',
21 'number' => 3,
22 ] ) ?? [];
23
24 return count( $pages ) >= 3;
25 }
26
27 public function get_title(): string {
28 return esc_html__( 'Create your first 3 pages', 'elementor' );
29 }
30
31 public function get_description(): string {
32 return esc_html__( 'Jumpstart your creation with professional designs from the Template Library or start from scratch.', 'elementor' );
33 }
34
35 public function get_cta_text(): string {
36 return esc_html__( 'Create a new page', 'elementor' );
37 }
38
39 public function get_cta_url(): string {
40 return Plugin::$instance->documents->get_create_new_post_url( 'page' );
41 }
42
43 public function get_learn_more_url(): string {
44 return 'http://go.elementor.com/app-website-checklist-pages-article';
45 }
46
47 public function get_is_completion_immutable(): bool {
48 return true;
49 }
50
51 public function get_image_src(): string {
52 return 'https://assets.elementor.com/checklist/v1/images/checklist-step-3.jpg';
53 }
54 }
55