PluginProbe
Elementor Website Builder – more than just a page builder / 4.2.0
Elementor Website Builder – more than just a page builder v4.2.0
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 / cloud-library / documents / cloud-template-preview.php

cloud-template-preview.php in Elementor Website Builder – more than just a page builder 4.2.0, at modules/cloud-library/documents/cloud-template-preview.php

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Modules\CloudLibrary\Documents;
3
4 use Elementor\Core\Base\Document;
5
6 if ( ! defined( 'ABSPATH' ) ) {
7 exit; // Exit if accessed directly.
8 }
9
10 /**
11 * Elementor preview library document.
12 *
13 * @since 3.29.0
14 */
15 class Cloud_Template_Preview extends Document {
16
17 const TYPE = 'cloud-template-preview';
18
19 public static function get_properties() {
20 $properties = parent::get_properties();
21
22 $properties['admin_tab_group'] = '';
23 $properties['has_elements'] = true;
24 $properties['is_editable'] = true;
25 $properties['show_in_library'] = false;
26 $properties['show_on_admin_bar'] = false;
27 $properties['show_in_finder'] = false;
28 $properties['register_type'] = true;
29 $properties['support_conditions'] = false;
30 $properties['support_page_layout'] = false;
31
32 return $properties;
33 }
34
35 public static function get_type(): string {
36 return self::TYPE;
37 }
38
39 public static function get_title(): string {
40 return esc_html__( 'Cloud Template Preview', 'elementor' );
41 }
42
43 public static function get_plural_title(): string {
44 return esc_html__( 'Cloud Template Previews', 'elementor' );
45 }
46
47 public function get_content( $with_css = false ) {
48 return do_shortcode( parent::get_content( $with_css ) );
49 }
50 }
51