| 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 |
|