Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
ebinnion committed Sep 7, 2017
1 parent fb8adf8 commit 5da1099
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
12 changes: 6 additions & 6 deletions class.jetpack-onboarding-end-points.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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
)
);

Expand Down Expand Up @@ -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 ) ) {
Expand Down
27 changes: 21 additions & 6 deletions css/welcome-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion jetpack-onboarding.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__ ) );
Expand Down

0 comments on commit 5da1099

Please sign in to comment.