Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoladj77 committed Jan 12, 2025
1 parent a34b82a commit 3a2998b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions modules/template-parts/classes/sources/source-remote-ehp.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ protected function get_templates( string $editor_layout_type ): array {

$templates_data = $this->get_templates_remotely( $editor_layout_type );

error_log( 'templates_data: ' . print_r( $templates_data, true ) );

if ( empty( $templates_data ) ) {
return [];
}
Expand Down
4 changes: 2 additions & 2 deletions modules/theme/components/theme-overrides.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function admin_config( array $config ): array {
return $config;
}

public function register_remote_source( ) {
public function register_remote_source() {
Utils::elementor()->templates_manager->register_source(
'HelloPlus\Modules\TemplateParts\Classes\Sources\Source_Remote_Ehp'
);
Expand All @@ -60,7 +60,7 @@ public function __construct() {
add_filter( 'hello-plus-theme/settings/hello_style', '__return_false' );
add_filter( 'hello-plus-theme/customizer/enable', Setup_Wizard::has_site_wizard_been_completed() ? '__return_false' : '__return_true' );
add_filter( 'hello-plus-theme/rest/admin-config', [ $this, 'admin_config' ] );
add_action('elementor/init', [ $this, 'register_remote_source' ] );
add_action( 'elementor/init', [ $this, 'register_remote_source' ] );
add_action( 'elementor/editor/localize_settings', [ $this, 'localize_settings' ] );
}
}

0 comments on commit 3a2998b

Please sign in to comment.