← All changes
|
modules/library/documents/library-document.php
+4
-11
4.1.0-dev2
→
3.6.6
View file →
| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | use Elementor\Modules\Library\Traits\Library; |
| 6 | 6 | use Elementor\TemplateLibrary\Source_Local; |
| 7 | 7 | |
| 8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | - exit; // Exit if accessed directly. | |
| 9 | + exit; // Exit if accessed directly | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * Elementor library document. |
| @@ -27,13 +27,8 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | const TAXONOMY_TYPE_SLUG = 'elementor_library_type'; |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * The customization group for Kit Export. | |
| 32 | - */ | |
| 33 | - const EXPORT_GROUP = 'site-templates'; | |
| 34 | - | |
| 35 | - /** | |
| 36 | 31 | * Get document properties. |
| 37 | 32 | * |
| 38 | 33 | * Retrieve the document properties. |
| 39 | 34 | * |
| @@ -49,10 +44,12 @@ | ||
| 49 | 44 | $properties['admin_tab_group'] = 'library'; |
| 50 | 45 | $properties['show_in_library'] = true; |
| 51 | 46 | $properties['register_type'] = true; |
| 52 | 47 | $properties['cpt'] = [ Source_Local::CPT ]; |
| 53 | - $properties['export_group'] = static::EXPORT_GROUP; | |
| 54 | 48 | |
| 49 | + // TODO: Remove - Backwards compatibility, since 'Theme_Document' does not support 'static::get_type'. | |
| 50 | + $properties['show_in_finder'] = false; | |
| 51 | + | |
| 55 | 52 | return $properties; |
| 56 | 53 | } |
| 57 | 54 | |
| 58 | 55 | /** |
| @@ -75,10 +72,6 @@ | ||
| 75 | 72 | 'save_as_same_type' => true, |
| 76 | 73 | ]; |
| 77 | 74 | |
| 78 | 75 | return $config; |
| 79 | - } | |
| 80 | - | |
| 81 | - public function get_content( $with_css = false ) { | |
| 82 | - return do_shortcode( parent::get_content( $with_css ) ); | |
| 83 | 76 | } |
| 84 | 77 | } |