From 5da10993e421cccde6ea15a80d20d581c1c5da01 Mon Sep 17 00:00:00 2001 From: Eric Binnion Date: Thu, 7 Sep 2017 10:30:15 -0500 Subject: [PATCH] New build --- class.jetpack-onboarding-end-points.php | 12 +++++------ css/welcome-panel.css | 27 +++++++++++++++++++------ jetpack-onboarding.php | 2 +- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/class.jetpack-onboarding-end-points.php b/class.jetpack-onboarding-end-points.php index 67e76dd..996b7ad 100644 --- a/class.jetpack-onboarding-end-points.php +++ b/class.jetpack-onboarding-end-points.php @@ -9,7 +9,7 @@ class Jetpack_Onboarding_EndPoints { const BUSINESS_ADDRESS_SAVED_KEY = 'jpo_business_address_saved'; const MAX_THEMES = 3; const NUM_RAND_THEMES = 3; - const VERSION = "1.5"; + const VERSION = '1.6'; const WOOCOMMERCE_ID = 'woocommerce/woocommerce.php'; const WOOCOMMERCE_SLUG = 'woocommerce'; const HIDE_FOR_ALL_USERS_OPTION = 'jpo_hide_always'; @@ -103,11 +103,11 @@ static function js_vars() { ); // create an assoc array of step_key => apply_filters( 'jpo_step_enabled_$slug', true ); - $steps_enabled = array_combine( + $steps_enabled = array_combine( $step_slugs, - array_map( - array( 'Jetpack_Onboarding_EndPoints', 'filter_wizard_step_enabled' ), - $step_slugs + array_map( + array( 'Jetpack_Onboarding_EndPoints', 'filter_wizard_step_enabled' ), + $step_slugs ) ); @@ -410,7 +410,7 @@ static function hide_dashboard_widget() { static function show_dashboard_widget() { delete_option( self::HIDE_FOR_ALL_USERS_OPTION ); - + $setting = get_user_option( get_current_user_id(), "metaboxhidden_dashboard" ); if ( ! $setting || ! is_array( $setting ) ) { diff --git a/css/welcome-panel.css b/css/welcome-panel.css index d7df7a0..04d0a05 100644 --- a/css/welcome-panel.css +++ b/css/welcome-panel.css @@ -354,7 +354,7 @@ position: relative; background: #fff; border: 1px solid #ddd; - margin: 56px 10px 10px; + margin: 10px; padding: 52px 16px; min-height: 600px; min-height: calc( 100vh - 66px); } @@ -387,17 +387,32 @@ border: 1px solid #eee; } .welcome__debug { + margin: 56px 0 0 10px; position: relative; z-index: 11; } + @media (min-width: 782px) { + .welcome__debug { + margin: 10px 0 -10px 20px; } } + .welcome__debug a.button { + margin-left: 8px; + margin-bottom: 0; } + .welcome__debug a.button:first-child { + margin-left: 0; } .welcome__loading-overlay { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; + position: absolute; + top: -10px; + left: -10px; + right: -10px; + bottom: -10px; z-index: 10; background-color: rgba(255, 255, 255, 0.6); } + @media (min-width: 782px) { + .welcome__loading-overlay { + top: -20px; + left: -20px; + right: -20px; + bottom: -20px; } } .welcome__loading-message { position: absolute; diff --git a/jetpack-onboarding.php b/jetpack-onboarding.php index 3642ad4..ce9e5be 100644 --- a/jetpack-onboarding.php +++ b/jetpack-onboarding.php @@ -3,7 +3,7 @@ * Plugin Name: Jetpack Onboarding * Plugin URI: https://github.com/automattic/jetpack-onboarding * Description: Jetpack Onboarding Wizard. - * Version: 1.5 + * Version: 1.6 */ defined( 'JETPACK_ONBOARDING_BASE_DIR' ) or define( 'JETPACK_ONBOARDING_BASE_DIR', dirname( __FILE__ ) );