Skip to content

Commit

Permalink
Merge branch 'feature/TMZ-276' of github.com:elementor/hello-plus int…
Browse files Browse the repository at this point in the history
…o feature/TMZ-276
  • Loading branch information
nicoladj77 committed Jan 12, 2025
2 parents 799344c + 47d1864 commit a34b82a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions modules/template-parts/documents/document-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public static function get_properties(): array {
$properties['allow_closing_remote_library'] = false;
$properties['library_close_title'] = esc_html__( 'Go To Dashboard', 'hello-plus' );
$properties['publish_button_title'] = esc_html__( 'After publishing this widget, you will be able to set it as visible on the entire site in the Admin Table.', 'hello-plus' );
$properties['cpt'] = [ 'elementor_library' ];
/**
* Filter the document properties.
*
Expand Down Expand Up @@ -168,14 +167,13 @@ public function save( $data ) {
}

protected function get_remote_library_config() {
$config = [
'type' => $this->get_name(),
'default_route' => 'templates/ehp-elements',
'autoImportSettings' => true,
'category' => $this->get_name(),
];
$config = parent::get_remote_library_config();

$config['type'] = $this->get_name();
$config['default_route'] = 'templates/ehp-elements';
$config['autoImportSettings'] = true;

return array_replace_recursive( parent::get_remote_library_config(), $config );
return $config;
}

/**
Expand Down

0 comments on commit a34b82a

Please sign in to comment.