Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRESS2 335 Fix the blank space before theme skeleton spins up #104

Merged
Changes from 9 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
30fc0dd
Fixed Blank Space in Theme Style selection step
officiallygod Nov 9, 2022
7d9bfea
Removed Blank Space from Preview step
officiallygod Nov 9, 2022
e176873
Refactored Code
officiallygod Nov 9, 2022
4e6cd43
New Data Structure to save data
officiallygod Nov 10, 2022
3027baa
Added Fast Loader to other pages
officiallygod Nov 10, 2022
9227507
Factored out Skeleton for Live Preview
officiallygod Nov 15, 2022
946f790
Added a few Fixes
officiallygod Nov 15, 2022
9970370
Merge branch 'release/v1.0.0' into PRESS2-335-Fix-the-Blank-Space-bef…
officiallygod Nov 15, 2022
1112399
Update Patterns.php
officiallygod Nov 16, 2022
6e052d6
Moved Style calc to Themes.php
officiallygod Nov 17, 2022
9e3c4dc
Moved Skeleton inside the LivePreview component
officiallygod Nov 17, 2022
3d090de
Review Comments
officiallygod Nov 17, 2022
8460053
Update DesignThemeStylesPreview.js
officiallygod Nov 17, 2022
c119bbf
Fix Homepage step
officiallygod Nov 17, 2022
1b81839
Combining Functions using Ternary
officiallygod Nov 17, 2022
a55546e
Combined the Theme Step data into Preview Settings
officiallygod Nov 21, 2022
c7b0955
JS Lint
officiallygod Nov 21, 2022
d7d9611
PHP Format
officiallygod Nov 21, 2022
513a054
Merge branch 'release/v1.0.0' into PRESS2-335-Fix-the-Blank-Space-bef…
officiallygod Nov 22, 2022
7f36fbb
Added support for Typography Step
officiallygod Nov 22, 2022
59db863
Added Extra checks for previews
officiallygod Nov 22, 2022
891e246
Setting a MAX Animation duration
officiallygod Nov 22, 2022
77b5b99
Update index.js
officiallygod Nov 22, 2022
428ef4c
Refactored Code
officiallygod Nov 23, 2022
ae9bc0a
Merge remote-tracking branch 'origin/release/v1.0.0' into PRESS2-335-…
officiallygod Nov 24, 2022
5452dff
Added Live Preview Skeleton for Site Pages
officiallygod Nov 24, 2022
341a32e
Code Review Comments
officiallygod Nov 29, 2022
6057961
Used store data instead of window data
officiallygod Nov 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions includes/Data/Data.php
Original file line number Diff line number Diff line change
@@ -13,15 +13,16 @@ final class Data {
*/
public static function runtime() {
return array(
'buildUrl' => \NFD_ONBOARDING_BUILD_URL,
'siteUrl' => \get_site_url(),
'restUrl' => \get_home_url() . '/index.php?rest_route=',
'adminUrl' => \admin_url(),
'currentBrand' => self::current_brand(),
'currentPlan' => self::current_plan(),
'currentFlow' => self::current_flow(),
'pluginInstallHash' => Permissions::rest_get_plugin_install_hash(),
'previewSettings' => Preview::get_settings(),
'buildUrl' => \NFD_ONBOARDING_BUILD_URL,
'siteUrl' => \get_site_url(),
'restUrl' => \get_home_url() . '/index.php?rest_route=',
'adminUrl' => \admin_url(),
'currentBrand' => self::current_brand(),
'currentPlan' => self::current_plan(),
'currentFlow' => self::current_flow(),
'pluginInstallHash' => Permissions::rest_get_plugin_install_hash(),
'previewSettings' => Preview::get_settings(),
'themeStepData' => self::theme_data(),
officiallygod marked this conversation as resolved.
Show resolved Hide resolved
);
}

@@ -105,4 +106,17 @@ public static function customer_data() {
}
return array();
}

/**
* Get the current theme data like the theme variations and previews per step
*
* @return array
*/
public static function theme_data()
officiallygod marked this conversation as resolved.
Show resolved Hide resolved
{
$theme_step_data = Patterns::get_count_of_patterns();
$theme_step_data["theme-styles"]["styles"] = count(\WP_Theme_JSON_Resolver::get_style_variations()) + 1;
return $theme_step_data;
officiallygod marked this conversation as resolved.
Show resolved Hide resolved
}

officiallygod marked this conversation as resolved.
Show resolved Hide resolved
} // END \NewfoldLabs\WP\Module\Onboarding\Data()
Loading