| @@ -198,9 +198,9 @@ | ||
| 198 | 198 | if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { |
| 199 | 199 | return; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | - Plugin::$instance->db->set_is_elementor_page( $post_id, ! empty( $_POST['_elementor_post_mode'] ) ); | |
| 202 | + Plugin::$instance->documents->get( $post_id )->set_is_built_with_elementor( ! empty( $_POST['_elementor_post_mode'] ) ); | |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | /** |
| 206 | 206 | * Add Elementor post state. |
| @@ -416,9 +416,9 @@ | ||
| 416 | 416 | <?php endif; ?> |
| 417 | 417 | </div> |
| 418 | 418 | <?php if ( $recently_edited_query->have_posts() ) : ?> |
| 419 | 419 | <div class="e-overview__recently-edited"> |
| 420 | - <h3 class="e-overview__heading"><?php echo __( 'Recently Edited', 'elementor' ); ?></h3> | |
| 420 | + <h3 class="e-heading e-divider_bottom"><?php echo __( 'Recently Edited', 'elementor' ); ?></h3> | |
| 421 | 421 | <ul class="e-overview__posts"> |
| 422 | 422 | <?php |
| 423 | 423 | while ( $recently_edited_query->have_posts() ) : |
| 424 | 424 | $recently_edited_query->the_post(); |
| @@ -434,9 +434,9 @@ | ||
| 434 | 434 | </div> |
| 435 | 435 | <?php endif; ?> |
| 436 | 436 | <?php if ( ! empty( $elementor_feed ) ) : ?> |
| 437 | 437 | <div class="e-overview__feed"> |
| 438 | - <h3 class="e-overview__heading"><?php echo __( 'News & Updates', 'elementor' ); ?></h3> | |
| 438 | + <h3 class="e-heading e-divider_bottom"><?php echo __( 'News & Updates', 'elementor' ); ?></h3> | |
| 439 | 439 | <ul class="e-overview__posts"> |
| 440 | 440 | <?php foreach ( $elementor_feed as $feed_item ) : ?> |
| 441 | 441 | <li class="e-overview__post"> |
| 442 | 442 | <a href="<?php echo esc_url( $feed_item['url'] ); ?>" class="e-overview__post-link" target="_blank"> |
| @@ -450,9 +450,9 @@ | ||
| 450 | 450 | <?php endforeach; ?> |
| 451 | 451 | </ul> |
| 452 | 452 | </div> |
| 453 | 453 | <?php endif; ?> |
| 454 | - <div class="e-overview__footer"> | |
| 454 | + <div class="e-overview__footer e-divider_top"> | |
| 455 | 455 | <ul> |
| 456 | 456 | <?php foreach ( $this->get_dashboard_overview_widget_footer_actions() as $action_id => $action ) : ?> |
| 457 | 457 | <li class="e-overview__<?php echo esc_attr( $action_id ); ?>"><a href="<?php echo esc_attr( $action['link'] ); ?>" target="_blank"><?php echo esc_html( $action['title'] ); ?> <span class="screen-reader-text"><?php echo __( '(opens in a new window)', 'elementor' ); ?></span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></li> |
| 458 | 458 | <?php endforeach; ?> |
| @@ -488,8 +488,14 @@ | ||
| 488 | 488 | 'link' => Utils::get_pro_link( 'https://elementor.com/pro/?utm_source=wp-overview-widget&utm_campaign=gopro&utm_medium=wp-dash' ), |
| 489 | 489 | ], |
| 490 | 490 | ]; |
| 491 | 491 | |
| 492 | + // Visible to all core users when Elementor Pro is not installed. | |
| 493 | + $additions_actions['find_an_expert'] = [ | |
| 494 | + 'title' => __( 'Find an Expert', 'elementor' ), | |
| 495 | + 'link' => 'https://go.elementor.com/go-pro-find-an-expert', | |
| 496 | + ]; | |
| 497 | + | |
| 492 | 498 | /** |
| 493 | 499 | * Dashboard widget footer actions. |
| 494 | 500 | * |
| 495 | 501 | * Filters the additions actions displayed in Elementor dashboard widget. |
| @@ -631,11 +637,19 @@ | ||
| 631 | 637 | if ( $current_version_minor_part === $new_version_minor_part ) { |
| 632 | 638 | return; |
| 633 | 639 | } |
| 634 | 640 | ?> |
| 641 | + <hr class="e-major-update-warning__separator" /> | |
| 635 | 642 | <div class="e-major-update-warning"> |
| 636 | - <div class="e-major-update-warning__title"><?php echo __( 'Heads up, Please backup before upgrade!', 'elementor' ); ?></div> | |
| 637 | - <div class="e-major-update-warning__message"><?php echo sprintf( __( 'The latest update includes some substantial changes across different areas of the plugin. We highly recommend you <a href="%s">backup your site before upgrading</a>, and make sure you first update in a staging environment', 'elementor' ), 'https://go.elementor.com/wp-dash-update-backup' ); ?></div> | |
| 643 | + <div class="e-major-update-warning__icon"> | |
| 644 | + <i class="eicon-info-circle"></i> | |
| 645 | + </div> | |
| 646 | + <div> | |
| 647 | + <div class="e-major-update-warning__title"> | |
| 648 | + <?php echo __( 'Heads up, Please backup before upgrade!', 'elementor' ); ?> | |
| 649 | + </div> | |
| 650 | + <div class="e-major-update-warning__message"><?php echo sprintf( __( 'The latest update includes some substantial changes across different areas of the plugin. We highly recommend you <a href="%s">backup your site before upgrading</a>, and make sure you first update in a staging environment', 'elementor' ), 'https://go.elementor.com/wp-dash-update-backup' ); ?></div> | |
| 651 | + </div> | |
| 638 | 652 | </div> |
| 639 | 653 | <?php |
| 640 | 654 | } |
| 641 | 655 | |
| @@ -706,19 +720,8 @@ | ||
| 706 | 720 | |
| 707 | 721 | $settings = [ |
| 708 | 722 | 'home_url' => home_url(), |
| 709 | 723 | 'settings_url' => Settings::get_url(), |
| 710 | - 'i18n' => [ | |
| 711 | - 'rollback_confirm' => __( 'Are you sure you want to reinstall previous version?', 'elementor' ), | |
| 712 | - 'rollback_to_previous_version' => __( 'Rollback to Previous Version', 'elementor' ), | |
| 713 | - 'yes' => __( 'Continue', 'elementor' ), | |
| 714 | - 'cancel' => __( 'Cancel', 'elementor' ), | |
| 715 | - 'new_template' => __( 'New Template', 'elementor' ), | |
| 716 | - 'back_to_wordpress_editor_message' => __( 'Please note that you are switching to WordPress default editor. Your current layout, design and content might break.', 'elementor' ), | |
| 717 | - 'back_to_wordpress_editor_header' => __( 'Back to WordPress Editor', 'elementor' ), | |
| 718 | - 'beta_tester_sign_up' => __( 'Sign Up', 'elementor' ), | |
| 719 | - 'do_not_show_again' => __( 'Don\'t Show Again', 'elementor' ), | |
| 720 | - ], | |
| 721 | 724 | 'user' => [ |
| 722 | 725 | 'introduction' => User::get_introduction_meta(), |
| 723 | 726 | ], |
| 724 | 727 | 'beta_tester' => [ |