@@ -12,6 +12,7 @@ public function __construct() {
1212
1313 // Add admin menu.
1414 add_action ( 'admin_menu ' , array ( $ this , 'add_settings_page ' ) );
15+ add_filter ( 'wpsf_menu_icon_url_solid_dynamics ' , array ( $ this , 'menu_icon_url ' ) );
1516
1617 // Add an optional settings validation filter (recommended).
1718 add_filter ( $ this ->wpsf ->get_option_group () . '_settings_validate ' , array ( &$ this , 'validate_settings ' ) );
@@ -30,6 +31,10 @@ public function add_settings_page() {
3031 );
3132 }
3233
34+ public function menu_icon_url () {
35+ return plugin_dir_url (__DIR__ ) . 'assets/solid-dynamics-icon.svg ' ;
36+ }
37+
3338 public function validate_settings ( $ input ) {
3439 // Do your settings validation here
3540 // Same as $sanitize_callback from http://codex.wordpress.org/Function_Reference/register_setting.
@@ -60,20 +65,8 @@ function init() {
6065 add_action ( 'admin_head ' , [$ this , 'elementor_hide_back_to_wp_editor_button ' ] );
6166 }
6267
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-
7568 if ($ settings ['elementor_subtle_fade_in_entrance_animations ' ]) {
76- add_action ( 'wp_enqueue_scripts ' , [$ this , 'elementor_subtle_fade_in_entrance_animations ' ] );
69+ add_action ( 'wp_enqueue_scripts ' , [$ this , 'elementor_subtle_fade_in_entrance_animations ' ], 9999 );
7770 }
7871 }
7972
@@ -105,20 +98,8 @@ function disable_user_endpoint( $endpoints ) {
10598 return $ endpoints ;
10699 }
107100
108- function main_open () {
109- ?>
110- <main id="content">
111- <?php
112- }
113-
114- function main_close () {
115- ?>
116- </main>
117- <?php
118- }
119-
120101 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 ' );
102+ 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 ' );
122103 }
123104
124105 function add_registration_date_column ( $ columns ) {
0 commit comments