| @@ -24,115 +24,32 @@ | ||
| 24 | 24 | |
| 25 | 25 | add_action( 'admin_notices', [ $this, 'easyel_admin_promo_notice' ] , 0 ); |
| 26 | 26 | add_action( 'admin_init', [ $this, 'easyel_admin_promo_notice_dismiss_handler' ] ); |
| 27 | 27 | |
| 28 | - add_filter('plugin_action_links_'.EASYELEMENTS_PATH,[ $this,'easyel_setting_page_link' ] ); | |
| 29 | - | |
| 30 | - add_action( 'plugins_loaded', [ $this, "easyel_plugin_loaded" ] ); | |
| 31 | - | |
| 32 | - register_activation_hook( EASYELEMENTS_PATH, [ __CLASS__, 'easy_elements_activate' ] ); | |
| 33 | - | |
| 34 | - add_action('elementor/controls/register', function( $controls_manager ) { | |
| 35 | - $controls_manager->register( | |
| 36 | - new \Easyel\EasyElements\Utils\SearchSelect2() | |
| 37 | - ); | |
| 38 | - }); | |
| 39 | - | |
| 40 | - \Easyel\EasyElements\Extensions\WrapperLink\EasyelWrapperLink::get_instance(); | |
| 41 | - | |
| 42 | 28 | } |
| 43 | 29 | |
| 44 | - public static function easy_elements_activate() { | |
| 30 | + function easyel_admin_promo_notice() { | |
| 45 | 31 | |
| 46 | - if ( class_exists( '\Easyel\EasyElements\Admin\Admin_Settings' ) ) { | |
| 47 | - | |
| 48 | - $option_key_extension = 'easy_element_extensions'; | |
| 49 | - $settings = get_option( $option_key_extension, [] ); | |
| 50 | - | |
| 51 | - $include_extension = array( | |
| 52 | - "enable_wrapper_link", | |
| 53 | - "enable_post_duplicator", | |
| 54 | - "enable_dynamic_content", | |
| 55 | - ); | |
| 56 | - | |
| 57 | - $fields2 = []; | |
| 58 | - | |
| 59 | - if ( function_exists('easyel_get_extension_fields') ) { | |
| 60 | - $fields2 = easyel_get_extension_fields(); | |
| 61 | - } | |
| 62 | - | |
| 63 | - foreach ( $fields2 as $key => $data ) { | |
| 64 | - | |
| 65 | - if ( array_key_exists( $key, $settings ) ) { | |
| 66 | - continue; | |
| 67 | - } | |
| 68 | - | |
| 69 | - $settings[$key] = in_array( $key, $include_extension, true ) ? 1 : 0; | |
| 70 | - } | |
| 71 | - | |
| 72 | - update_option( $option_key_extension, $settings ); | |
| 73 | - | |
| 74 | - $include_widget = array( | |
| 75 | - "easy_table", | |
| 76 | - "bmi_calculator", | |
| 77 | - ); | |
| 78 | - | |
| 79 | - $available_elements = \Easyel\EasyElements\Admin\Admin_Settings::get_instance()->easyel_elements_get_available_widgets(); | |
| 80 | - $tab = 'widget'; | |
| 81 | - | |
| 82 | - foreach ( $available_elements as $key => $widget ) { | |
| 83 | - | |
| 84 | - if ( isset( $widget['tab'] ) && $widget['tab'] === $tab ) { | |
| 85 | - | |
| 86 | - $option_name = 'easy_element_' . $tab . '_' . $key; | |
| 87 | - | |
| 88 | - $existing_value = get_option( $option_name, null ); | |
| 89 | - | |
| 90 | - if ( $existing_value !== null ) { | |
| 91 | - continue; | |
| 92 | - } | |
| 93 | - | |
| 94 | - if ( in_array( $key, $include_widget, true ) ) { | |
| 95 | - add_option( $option_name, '0' ); | |
| 96 | - } | |
| 97 | - } | |
| 98 | - } | |
| 99 | - } | |
| 100 | - | |
| 101 | - flush_rewrite_rules(); | |
| 102 | - } | |
| 103 | - | |
| 104 | - public function easyel_admin_promo_notice() { | |
| 105 | - | |
| 106 | - // Already dismissed | |
| 107 | - if ( get_option( 'easyel_admin_promo_notice_dismissed2' ) ) { | |
| 32 | + // Check if dismissed | |
| 33 | + if ( get_option( 'easyel_admin_promo_notice_dismissed1' ) ) { | |
| 108 | 34 | return; |
| 109 | 35 | } |
| 110 | 36 | |
| 111 | 37 | $dismiss_url = wp_nonce_url( |
| 112 | - add_query_arg( | |
| 113 | - [ 'easyel_promo_notice_dismiss' => '1' ], | |
| 114 | - admin_url() | |
| 115 | - ), | |
| 38 | + add_query_arg( 'easyel_promo_notice_dismiss1', '1' ), | |
| 116 | 39 | 'easyel_promo_notice_dismiss_nonce' |
| 117 | 40 | ); |
| 118 | 41 | ?> |
| 119 | 42 | |
| 120 | - <div class="notice notice-info easyel-promo-notice"> | |
| 43 | + <div class="notice easyel-promo-notice is-dismissible"> | |
| 121 | 44 | <div class="easyel-promo-content"> |
| 122 | 45 | <div class="easyel-promo-left"> |
| 123 | - <span class="orange">Holiday & New Year Sale</span> • <span></span> Discount Up To | |
| 46 | + <span class="orange">Easy Elements Black Friday Sale</span> • <span>Early Bird Sale</span> Discount Up To | |
| 124 | 47 | <span style="color:#ff7dcb;">65%</span> OFF |
| 125 | 48 | <a class="easyel-promo-btn" href="https://wpeasyelements.com/pricing/" target="_blank"> |
| 126 | 49 | Grab the Deal → |
| 127 | 50 | </a> |
| 128 | - | |
| 129 | 51 | </div> |
| 130 | - <div class="easyel-promo-right"> | |
| 131 | - <a href="<?php echo esc_url( $dismiss_url ); ?>" style="text-decoration:none;"> | |
| 132 | - ✕ Dismiss | |
| 133 | - </a> | |
| 134 | - </div> | |
| 135 | 52 | </div> |
| 136 | 53 | </div> |
| 137 | 54 | |
| 138 | 55 | <?php |
| @@ -137,33 +54,27 @@ | ||
| 137 | 54 | |
| 138 | 55 | <?php |
| 139 | 56 | } |
| 140 | 57 | |
| 141 | - public function easyel_admin_promo_notice_dismiss_handler() { | |
| 58 | + function easyel_admin_promo_notice_dismiss_handler() { | |
| 59 | + if ( isset( $_GET['easyel_promo_notice_dismiss1'] ) ) { | |
| 142 | 60 | |
| 143 | - if ( ! is_admin() ) { | |
| 144 | - return; | |
| 145 | - } | |
| 61 | + // Safely get the nonce | |
| 62 | + $nonce = isset( $_GET['_wpnonce'] ) ? sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) : ''; | |
| 146 | 63 | |
| 147 | - if ( empty( $_GET['easyel_promo_notice_dismiss'] ) ) { | |
| 148 | - return; | |
| 149 | - } | |
| 64 | + // Verify nonce | |
| 65 | + if ( ! wp_verify_nonce( $nonce, 'easyel_promo_notice_dismiss_nonce' ) ) { | |
| 66 | + return; | |
| 67 | + } | |
| 150 | 68 | |
| 151 | - $nonce = isset( $_GET['_wpnonce'] ) | |
| 152 | - ? sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) | |
| 153 | - : ''; | |
| 69 | + update_option( 'easyel_admin_promo_notice_dismissed1', 1 ); | |
| 154 | 70 | |
| 155 | - if ( ! wp_verify_nonce( $nonce, 'easyel_promo_notice_dismiss_nonce' ) ) { | |
| 156 | - return; | |
| 71 | + wp_redirect( remove_query_arg( [ 'easyel_promo_notice_dismiss1', '_wpnonce' ] ) ); | |
| 72 | + exit; | |
| 157 | 73 | } |
| 74 | + } | |
| 158 | 75 | |
| 159 | - update_option( 'easyel_admin_promo_notice_dismissed2', 1 ); | |
| 160 | 76 | |
| 161 | - wp_safe_redirect( | |
| 162 | - remove_query_arg( [ 'easyel_promo_notice_dismiss', '_wpnonce' ] ) | |
| 163 | - ); | |
| 164 | - exit; | |
| 165 | - } | |
| 166 | 77 | |
| 167 | 78 | public function init() { |
| 168 | 79 | // Safety checks |
| 169 | 80 | |
| @@ -171,44 +82,9 @@ | ||
| 171 | 82 | add_action( 'easy_header', [ $this, 'easyel_before_content_container_hfe'], 20 ); |
| 172 | 83 | add_action( 'easy_footer', [ $this, 'easyel_after_content_container_hfe' ], 5 ); |
| 173 | 84 | |
| 174 | 85 | add_action( 'admin_notices', [ $this, 'easyelements_admin_notice_missing_elementor' ] ); |
| 175 | - } | |
| 176 | 86 | |
| 177 | - public function easyel_plugin_loaded () { | |
| 178 | - | |
| 179 | - \Easyel\EasyElements\Utils\Enqueue::get_instance(); | |
| 180 | - \Easyel\EasyElements\Utils\QueryHelper::get_instance(); | |
| 181 | - | |
| 182 | - if( is_admin() ) { | |
| 183 | - \Easyel\EasyElements\Admin\Admin_Settings::get_instance(); | |
| 184 | - } | |
| 185 | - | |
| 186 | - if ( did_action( 'elementor/loaded' ) ) { | |
| 187 | - \Easyel\EasyElements\Template_Library\Easyel_Templates_Library::get_instance(); | |
| 188 | - \Easyel\EasyElements\Header_Footer_Builder\Classes\Easy_Header_Footer_Elementor::get_instance(); | |
| 189 | - } | |
| 190 | - | |
| 191 | - \Easyel\EasyElements\Theme_Builder\Easyel_Theme_Builder_CPT::get_instance(); | |
| 192 | - | |
| 193 | - \Easyel\EasyElements\Theme_Builder\Easyel_Theme_Builder_Front::get_instance(); | |
| 194 | - | |
| 195 | - \Easyel\EasyElements\PostType\OffcanvasPostType::get_instance(); | |
| 196 | - \Easyel\EasyElements\CustomCode\Easyel_Custom_Code::get_instance(); | |
| 197 | - \Easyel\EasyElements\Extensions\ExtensionHook\ExtensionModule::get_instance(); | |
| 198 | - \Easyel\EasyElements\Extensions\CustomCss\EasyelCustomCss::get_instance()->init(); | |
| 199 | - \Easyel\EasyElements\Extensions\Duplicator\EasyelDuplicator::get_instance(); | |
| 200 | - \Easyel\EasyElements\Extensions\SettingExport\EasyelExport::get_instance(); | |
| 201 | - \Easyel\EasyElements\Extensions\LiveCopy\CopyPaste::get_instance(); | |
| 202 | - \Easyel\EasyElements\Extensions\VisibilityControl\VisibilityModule::get_instance(); | |
| 203 | - \Easyel\EasyElements\Extensions\Jarallax\JaralaxControl::get_instance()->init(); | |
| 204 | - \Easyel\EasyElements\Extensions\Jarallax\GlobalJarallax::get_instance();; | |
| 205 | - | |
| 206 | - if ( ! class_exists( '\Appsero\Client' ) ) { | |
| 207 | - return; | |
| 208 | - } | |
| 209 | - | |
| 210 | - \Easyel\EasyElements\Tracking\Appsero_Tracker::instance(); | |
| 211 | 87 | } |
| 212 | 88 | |
| 213 | 89 | public function easyelements_admin_notice_missing_elementor() { |
| 214 | 90 | |
| @@ -342,222 +218,217 @@ | ||
| 342 | 218 | $widgets_manager = \Elementor\Plugin::instance()->widgets_manager; |
| 343 | 219 | |
| 344 | 220 | $widgets = [ |
| 345 | 221 | 'site_logo' => [ |
| 346 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Site_Logo_Widget', | |
| 222 | + 'class' => '\Easyel_Site_Logo_Widget', | |
| 347 | 223 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/site-logo/site-logo.php', |
| 348 | 224 | 'tab' => 'widget' |
| 349 | 225 | ], |
| 350 | 226 | 'heading' => [ |
| 351 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Heading_Widget', | |
| 227 | + 'class' => '\Easyel_Heading_Widget', | |
| 352 | 228 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/heading/heading.php', |
| 353 | 229 | 'tab' => 'widget' |
| 354 | 230 | ], |
| 355 | 231 | 'clients_logo' => [ |
| 356 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Clients_Logo__Widget', | |
| 232 | + 'class' => '\Easyel_Clients_Logo__Widget', | |
| 357 | 233 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/clients-logo-grid/logo.php', |
| 358 | 234 | 'tab' => 'widget' |
| 359 | 235 | ], |
| 360 | 236 | 'icon_box' => [ |
| 361 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Icon_Box__Widget', | |
| 237 | + 'class' => '\Easyel_Icon_Box__Widget', | |
| 362 | 238 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/icon-box/icon.php', |
| 363 | 239 | 'tab' => 'widget' |
| 364 | 240 | ], |
| 365 | 241 | 'simple_tab' => [ |
| 366 | - 'class' => '\Easyel\EasyElements\Widgets\EasyElements\Widgets\Easyel_Tab_Widget', | |
| 242 | + 'class' => '\Easyel_Tab_Widget', | |
| 367 | 243 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/tab/tab.php', |
| 368 | 244 | 'tab' => 'widget' |
| 369 | 245 | ], |
| 370 | 246 | 'testimonials' => [ |
| 371 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Testimonials__Widget', | |
| 247 | + 'class' => '\Easyel_Testimonials__Widget', | |
| 372 | 248 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/testimonials-grid/testimonials.php', |
| 373 | 249 | 'tab' => 'widget' |
| 374 | 250 | ], |
| 375 | 251 | 'team_grid' => [ |
| 376 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Team_Grid__Widget', | |
| 252 | + 'class' => '\Easyel_Team_Grid__Widget', | |
| 377 | 253 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/team-grid/team-grid.php', |
| 378 | 254 | 'tab' => 'widget' |
| 379 | 255 | ], |
| 380 | 256 | 'search' => [ |
| 381 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Search_Widget', | |
| 257 | + 'class' => '\Easyel_Search_Widget', | |
| 382 | 258 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/search/search.php', |
| 383 | 259 | 'tab' => 'widget' |
| 384 | 260 | ], |
| 385 | 261 | 'contact_box' => [ |
| 386 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Contact_Box__Widget', | |
| 262 | + 'class' => '\Easyel_Contact_Box__Widget', | |
| 387 | 263 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/contact-box/contact.php', |
| 388 | 264 | 'tab' => 'widget' |
| 389 | 265 | ], |
| 390 | 266 | 'faq' => [ |
| 391 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_FAQ_Accordion_Widget', | |
| 267 | + 'class' => '\Easyel_FAQ_Accordion_Widget', | |
| 392 | 268 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/faq/faq.php', |
| 393 | 269 | 'tab' => 'widget' |
| 394 | 270 | ], |
| 395 | 271 | 'blog_grid' => [ |
| 396 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Blog_Grid__Widget', | |
| 272 | + 'class' => '\Easyel_Blog_Grid__Widget', | |
| 397 | 273 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/blog-grid/blog-grid.php', |
| 398 | 274 | 'tab' => 'widget' |
| 399 | 275 | ], |
| 400 | 276 | 'video' => [ |
| 401 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Video_Popup_Widget', | |
| 277 | + 'class' => '\Easyel_Video_Popup_Widget', | |
| 402 | 278 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/video/video.php', |
| 403 | 279 | 'tab' => 'widget' |
| 404 | 280 | ], |
| 405 | 281 | 'pricing_table' => [ |
| 406 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Pricing_Table_Widget', | |
| 282 | + 'class' => '\Easyel_Pricing_Table_Widget', | |
| 407 | 283 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/pricing-table/pricing.php', |
| 408 | 284 | 'tab' => 'widget' |
| 409 | 285 | ], |
| 410 | 286 | 'service_list' => [ |
| 411 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Service_List_Widget', | |
| 287 | + 'class' => '\Easyel_Service_List_Widget', | |
| 412 | 288 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/service-list/service-list.php', |
| 413 | 289 | 'tab' => 'widget' |
| 414 | 290 | ], |
| 415 | 291 | 'navigation_menu' => [ |
| 416 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Navigation_Menu_Widget', | |
| 292 | + 'class' => '\Easyel_Navigation_Menu_Widget', | |
| 417 | 293 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/navigation-menu/navigation-menu.php', |
| 418 | 294 | 'tab' => 'widget' |
| 419 | 295 | ], |
| 420 | 296 | 'page_title' => [ |
| 421 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Page_Title_Widget', | |
| 297 | + 'class' => '\Easyel_Page_Title_Widget', | |
| 422 | 298 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/page-title/page-title.php', |
| 423 | 299 | 'tab' => 'widget' |
| 424 | 300 | ], |
| 425 | 301 | 'button' => [ |
| 426 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Button_Widget', | |
| 302 | + 'class' => '\Easyel_Button_Widget', | |
| 427 | 303 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/button/button.php', |
| 428 | 304 | 'tab' => 'widget' |
| 429 | 305 | ], |
| 430 | 306 | 'process_grid' => [ |
| 431 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Process_Grid_Widget', | |
| 307 | + 'class' => '\Easyel_Process_Widget', | |
| 432 | 308 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/process-grid/process-grid.php', |
| 433 | 309 | 'tab' => 'widget' |
| 434 | 310 | ], |
| 435 | 311 | 'process_list' => [ |
| 436 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Process_lists_Widget', | |
| 312 | + 'class' => '\Easyel_Process_list_Widget', | |
| 437 | 313 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/process-list/process-list.php', |
| 438 | 314 | 'tab' => 'widget' |
| 439 | 315 | ], |
| 440 | 316 | 'social_share' => [ |
| 441 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Social_Share_Widget', | |
| 317 | + 'class' => '\Easyel_Social_Share_Widget', | |
| 442 | 318 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/social-share/social-share.php', |
| 443 | 319 | 'tab' => 'widget' |
| 444 | 320 | ], |
| 445 | 321 | 'social_icon' => [ |
| 446 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Social_Icon_Widget', | |
| 322 | + 'class' => '\Easyel_Social_Icon_Widget', | |
| 447 | 323 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/social-icon/social.php', |
| 448 | 324 | 'tab' => 'widget' |
| 449 | 325 | ], |
| 450 | 326 | 'breadcrumb' => [ |
| 451 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Breadcrumb_Widget', | |
| 327 | + 'class' => '\Easyel_Breadcrumb_Widget', | |
| 452 | 328 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/breadcrumb/breadcrumb.php', |
| 453 | 329 | 'tab' => 'widget' |
| 454 | 330 | ], |
| 455 | 331 | 'domain_search' => [ |
| 456 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Domain_Search_Widget', | |
| 332 | + 'class' => '\Easyel_Domain_Search_Widget', | |
| 457 | 333 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/domain-search/domain-search.php', |
| 458 | 334 | 'tab' => 'widget' |
| 459 | 335 | ], |
| 460 | 336 | 'easy_offcanvas' => [ |
| 461 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Offcanvas_Widget', | |
| 337 | + 'class' => '\Easyel_Offcanvas_Widget', | |
| 462 | 338 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/offcanvas/offcanvas.php', |
| 463 | 339 | 'tab' => 'widget' |
| 464 | 340 | ], |
| 465 | 341 | 'easy_table' => [ |
| 466 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Table_Elementor_Widget', | |
| 342 | + 'class' => '\Easyel_Table_Elementor_Widget', | |
| 467 | 343 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/table/table-normal.php', |
| 468 | 344 | 'tab' => 'widget' |
| 469 | 345 | ], |
| 470 | 346 | 'easy_scroll_to_top' => [ |
| 471 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Scroll_To_Top_Widget', | |
| 347 | + 'class' => '\Easyel_Scroll_To_Top_Widget', | |
| 472 | 348 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/scroll-to-top/scroll.php', |
| 473 | 349 | 'tab' => 'widget' |
| 474 | 350 | ], |
| 475 | 351 | 'easy_cf7' => [ |
| 476 | - 'class' => '\Easyel\EasyElements\Widgets\easyel__CF7_Widget', | |
| 352 | + 'class' => '\easyel__CF7_Widget', | |
| 477 | 353 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/cf7/contact-cf7.php', |
| 478 | 354 | 'tab' => 'widget' |
| 479 | 355 | ], |
| 480 | 356 | 'easy_gallery' => [ |
| 481 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel__Gallery_Widget', | |
| 357 | + 'class' => '\Easyel__Gallery_Widget', | |
| 482 | 358 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/gallery/gallery.php', |
| 483 | 359 | 'tab' => 'widget' |
| 484 | 360 | ], |
| 485 | 361 | 'easy_progress' => [ |
| 486 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Progress_Widget', | |
| 362 | + 'class' => '\Easyel_Progress_Widget', | |
| 487 | 363 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/progress/progress.php', |
| 488 | 364 | 'tab' => 'widget' |
| 489 | 365 | ], |
| 490 | 366 | 'counter' => [ |
| 491 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Counter_Widget', | |
| 367 | + 'class' => '\Easyel_Counter_Widget', | |
| 492 | 368 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/counter/counter.php', |
| 493 | 369 | 'tab' => 'widget' |
| 494 | 370 | ], |
| 495 | 371 | 'countdown' => [ |
| 496 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Count_Down_Widget', | |
| 372 | + 'class' => '\Easyel_Count_Down_Widget', | |
| 497 | 373 | 'file' => EASYELEMENTS_DIR_PATH . '/widgets/countdown/countdown.php', |
| 498 | 374 | 'tab' => 'widget' |
| 499 | 375 | ], |
| 500 | 376 | 'excerpt' => [ |
| 501 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Excerpt_Widget', | |
| 502 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/excerpt/excerpt.php', | |
| 503 | - 'tab' => 'widget' | |
| 504 | - ], | |
| 505 | - 'post_title' => [ | |
| 506 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Title_Widget', | |
| 507 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-title/post-title.php', | |
| 508 | - 'tab' => 'widget' | |
| 509 | - ], | |
| 510 | - 'post_content' => [ | |
| 511 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_content_Widget', | |
| 512 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-content/post-content.php', | |
| 513 | - 'tab' => 'widget' | |
| 514 | - ], | |
| 515 | - 'featured_image' => [ | |
| 516 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_free_Featured_Image_Widget', | |
| 517 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/featured-image/featured-image.php', | |
| 518 | - 'tab' => 'widget' | |
| 519 | - ], | |
| 520 | - 'post_meta' => [ | |
| 521 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Meta_Widget', | |
| 522 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-meta/post-meta.php', | |
| 523 | - 'tab' => 'widget' | |
| 524 | - ], | |
| 525 | - 'post_pagination' => [ | |
| 526 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Pagination_Widget', | |
| 527 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-pagination/post-pagination.php', | |
| 528 | - 'tab' => 'widget' | |
| 529 | - ], | |
| 530 | - 'post_comments' => [ | |
| 531 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Comments_Widget', | |
| 532 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-comments/post-comments.php', | |
| 533 | - 'tab' => 'widget' | |
| 534 | - ], | |
| 377 | + 'class' => '\Easyel_Free_Excerpt_Widget', | |
| 378 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/excerpt/excerpt.php', | |
| 379 | + 'tab' => 'widget' | |
| 380 | + ], | |
| 381 | + 'post_title' => [ | |
| 382 | + 'class' => '\Easyel_Free_Post_Title_Widget', | |
| 383 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-title/post-title.php', | |
| 384 | + 'tab' => 'widget' | |
| 385 | + ], | |
| 386 | + 'post_content' => [ | |
| 387 | + 'class' => '\Easyel_Free_Post_content_Widget', | |
| 388 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-content/post-content.php', | |
| 389 | + 'tab' => 'widget' | |
| 390 | + ], | |
| 391 | + 'featured_image' => [ | |
| 392 | + 'class' => '\Easyel_free_Featured_Image_Widget', | |
| 393 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/featured-image/featured-image.php', | |
| 394 | + 'tab' => 'widget' | |
| 395 | + ], | |
| 396 | + 'post_meta' => [ | |
| 397 | + 'class' => '\Easyel_Free_Post_Meta_Widget', | |
| 398 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-meta/post-meta.php', | |
| 399 | + 'tab' => 'widget' | |
| 400 | + ], | |
| 401 | + 'post_pagination' => [ | |
| 402 | + 'class' => '\Easyel_Free_Post_Pagination_Widget', | |
| 403 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-pagination/post-pagination.php', | |
| 404 | + 'tab' => 'widget' | |
| 405 | + ], | |
| 406 | + 'post_comments' => [ | |
| 407 | + 'class' => '\Easyel_Free_Post_Comments_Widget', | |
| 408 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-comments/post-comments.php', | |
| 409 | + 'tab' => 'widget' | |
| 410 | + ], | |
| 535 | 411 | 'post_tags' => [ |
| 536 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Tags_Widget', | |
| 537 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-tag/post-tag.php', | |
| 538 | - 'tab' => 'widget' | |
| 539 | - ], | |
| 540 | - 'post_author' => [ | |
| 541 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Post_Author_Info_Widget', | |
| 542 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-author/post-author.php', | |
| 543 | - 'tab' => 'widget' | |
| 544 | - ], | |
| 412 | + 'class' => '\Easyel_Free_Post_Tags_Widget', | |
| 413 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-tag/post-tag.php', | |
| 414 | + 'tab' => 'widget' | |
| 415 | + ], | |
| 416 | + 'post_author' => [ | |
| 417 | + 'class' => '\Easyel_Free_Post_Author_Info_Widget', | |
| 418 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/post-author/post-author.php', | |
| 419 | + 'tab' => 'widget' | |
| 420 | + ], | |
| 545 | 421 | 'archive_post' => [ |
| 546 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Free_Archive_Post__Widget', | |
| 547 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/archive-post/archive-post.php', | |
| 548 | - 'tab' => 'widget', | |
| 549 | - ], | |
| 422 | + 'class' => '\Easyel_Free_Archive_Post__Widget', | |
| 423 | + 'file' => EASYELEMENTS_DIR_PATH . '/widgets/archive-post/archive-post.php', | |
| 424 | + 'tab' => 'widget', | |
| 425 | + ], | |
| 550 | 426 | 'login_register' => [ |
| 551 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Login_Register_Widget', | |
| 552 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/login-register/login-register.php', | |
| 427 | + 'class' => '\Easyel_Login_Register_Widget', | |
| 428 | + 'file' => __DIR__ . '/widgets/login-register/login-register.php', | |
| 553 | 429 | 'tab' => 'widget', |
| 554 | 430 | ], |
| 555 | - 'feature_list' => [ | |
| 556 | - 'class' => '\Easyel\EasyElements\Widgets\Easyel_Feature_List__Widget', | |
| 557 | - 'file' => EASYELEMENTS_DIR_PATH . '/widgets/feature-list/feature-list.php', | |
| 558 | - 'tab' => 'widget', | |
| 559 | - ], | |
| 560 | 431 | ]; |
| 561 | 432 | |
| 562 | 433 | foreach ( $widgets as $key => $data ) { |
| 563 | 434 | $option_name = 'easy_element_' . $data['tab'] . '_' . $key; |
| @@ -574,15 +445,9 @@ | ||
| 574 | 445 | $widgets_manager->register( new $data['class']() ); |
| 575 | 446 | } |
| 576 | 447 | } |
| 577 | 448 | } |
| 578 | - } | |
| 579 | - | |
| 580 | - public function easyel_setting_page_link( $links ) { | |
| 581 | - $action_link = sprintf("<a href='%s'>%s</a>",admin_url('admin.php?page=easy-elements-dashboard'),__('Settings','easy-elements')); | |
| 582 | - array_push( $links,$action_link ); | |
| 583 | - return $links; | |
| 584 | 449 | } |
| 585 | 450 | |
| 586 | 451 | } |
| 587 | 452 | |
| 588 | 453 | Easyel_Elements_Elementor_Extension::instance(); |