Skip to content

Commit 8f872d3

Browse files
committed
rm unused settings and fix fade in
1 parent de2db2a commit 8f872d3

2 files changed

Lines changed: 2 additions & 40 deletions

File tree

settings/settings-fields.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,6 @@ function wpsf_register_settings( $wpsf_settings ) {
4545
'type' => 'checkbox',
4646
'default' => 0,
4747
),
48-
array(
49-
'id' => 'hide_hello_elementor_page_title',
50-
'title' => 'Hello Elementor Page Title',
51-
'desc' => 'Hide the page title from the Hello Elementor theme.',
52-
'type' => 'checkbox',
53-
'default' => 0,
54-
),
55-
array(
56-
'id' => 'wrap_content',
57-
'title' => 'Wrap Elementor Content',
58-
'desc' => 'Wrap Elementor content with `main#content`.',
59-
'type' => 'checkbox',
60-
'default' => 0,
61-
),
6248
array(
6349
'id' => 'subtle_fade_in_entrance_animations',
6450
'title' => 'Fade in Entrance Animations',

settings/settings.php

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,8 @@ function init() {
6060
add_action( 'admin_head', [$this, 'elementor_hide_back_to_wp_editor_button'] );
6161
}
6262

63-
if ($settings['elementor_hide_hello_elementor_page_title']) {
64-
add_filter( 'hello_elementor_page_title', '__return_false');
65-
}
66-
67-
if ($settings['elementor_wrap_content']) {
68-
add_action( 'elementor/theme/before_do_single', [$this, 'main_open'] );
69-
add_action( 'elementor/theme/after_do_single', [$this, 'main_close'] );
70-
71-
add_action( 'elementor/theme/before_do_archive', [$this, 'main_open'] );
72-
add_action( 'elementor/theme/after_do_archive', [$this, 'main_close'] );
73-
}
74-
7563
if ($settings['elementor_subtle_fade_in_entrance_animations']) {
76-
add_action( 'wp_enqueue_scripts', [$this, 'elementor_subtle_fade_in_entrance_animations'] );
64+
add_action( 'wp_enqueue_scripts', [$this, 'elementor_subtle_fade_in_entrance_animations'], 9999 );
7765
}
7866
}
7967

@@ -105,20 +93,8 @@ function disable_user_endpoint( $endpoints ) {
10593
return $endpoints;
10694
}
10795

108-
function main_open() {
109-
?>
110-
<main id="content">
111-
<?php
112-
}
113-
114-
function main_close() {
115-
?>
116-
</main>
117-
<?php
118-
}
119-
12096
function elementor_subtle_fade_in_entrance_animations() {
121-
wp_enqueue_style('sd-elementor-subtle-fade-in-entrance-animations', plugin_dir_url(__DIR__) . 'assets/elementor-subtle-fade-in-entrance-animations.css', ['e-animations'], '1.0.0');
97+
wp_enqueue_style('sd-elementor-subtle-fade-in-entrance-animations', plugin_dir_url(__DIR__) . 'assets/elementor-subtle-fade-in-entrance-animations.css', null, '1.0.0');
12298
}
12399

124100
function add_registration_date_column( $columns ) {

0 commit comments

Comments
 (0)