diff --git a/client/landing/stepper/declarative-flow/plugin-bundle-data.ts b/client/landing/stepper/declarative-flow/plugin-bundle-data.ts index 9cb8b9f5b7cd2..e4da8dec1008f 100644 --- a/client/landing/stepper/declarative-flow/plugin-bundle-data.ts +++ b/client/landing/stepper/declarative-flow/plugin-bundle-data.ts @@ -95,6 +95,13 @@ export const bundleStepsSettings: BundleStepsSettings = { }, checkForActivePlugins: [ 'woocommerce' ], }, + sensei: { + customSteps: [], + checkForActivePlugins: [ 'sensei-lms' ], + endFlow: ( { adminUrl, exitFlow } ) => { + return exitFlow( `${ adminUrl }admin.php?page=sensei_setup_wizard` ); + }, + }, }; export type BundledPlugin = keyof typeof bundleStepsSettings & string; diff --git a/client/my-sites/theme/hooks/use-bundle-settings.tsx b/client/my-sites/theme/hooks/use-bundle-settings.tsx index be01fd9a5f22d..3b48e546f8d95 100644 --- a/client/my-sites/theme/hooks/use-bundle-settings.tsx +++ b/client/my-sites/theme/hooks/use-bundle-settings.tsx @@ -29,6 +29,15 @@ const WooOnPlansIcon = () => ( ); +const SenseiIcon = () => ( + + + +); + export function useBundleSettings( themeSoftware?: string ): BundleSettingsHookReturn { const translate = useTranslate(); const isEnglishLocale = useIsEnglishLocale(); @@ -58,7 +67,7 @@ export function useBundleSettings( themeSoftware?: string ): BundleSettingsHookR 'This theme comes bundled with the WooCommerce plugin. Upgrade to a Business plan to select this theme and unlock all its features.' ), bundledPluginMessage: translate( - 'This theme comes bundled with {{link}}WooCommerce{{/link}} plugin.', + 'This theme comes bundled with the {{link}}WooCommerce{{/link}} plugin.', { components: { link: , @@ -67,6 +76,29 @@ export function useBundleSettings( themeSoftware?: string ): BundleSettingsHookR ), }; + case 'sensei': + return { + name: 'Sensei LMS', + softwareName: 'Sensei LMS', + iconComponent: SenseiIcon, + color: '#43AF99', + designPickerBadgeTooltip: translate( + 'This theme comes bundled with Sensei. Create and sell courses that your students will love.' + ), + bannerUpsellDescription: translate( + 'This theme comes bundled with the Sensei plugin. Upgrade to a %(businessPlanName)s plan to select this theme and unlock all its features.', + { args: { businessPlanName } } + ) as string, + bundledPluginMessage: translate( + 'This theme comes bundled with the {{link}}Sensei{{/link}} plugin.', + { + components: { + link: , + }, + } + ), + }; + default: return null; }