documents/section.php000066600000001660152141473300010731 0ustar00get_main_id(); } /** * @since 2.0.0 * @access protected */ protected function _register_controls() { parent::_register_controls(); Post::register_hide_title_control( $this ); Post::register_style_controls( $this ); } protected function get_remote_library_config() { $config = parent::get_remote_library_config(); $config['type'] = 'page'; $config['default_route'] = 'templates/pages'; return $config; } } documents/library-document.php000066600000003674152141473300012554 0ustar00 true, ]; return $config; } public function print_admin_column_type() { $admin_filter_url = admin_url( Source_Local::ADMIN_MENU_SLUG . '&elementor_library_type=' . $this->get_name() ); printf( '%s', $admin_filter_url, $this->get_title() ); } /** * Save document type. * * Set new/updated document type. * * @since 2.0.0 * @access public */ public function save_template_type() { parent::save_template_type(); wp_set_object_terms( $this->post->ID, $this->get_name(), self::TAXONOMY_TYPE_SLUG ); } } module.php000066600000002105152141473300006544 0ustar00documents ->register_document_type( 'not-supported', Documents\Not_Supported::get_class_full_name() ) ->register_document_type( 'page', Documents\Page::get_class_full_name() ) ->register_document_type( 'section', Documents\Section::get_class_full_name() ); } }