import React, { useEffect } from 'react'; import { ArrowRightIcon, ArrowRightStartOnRectangleIcon, RectangleStackIcon, } from '@heroicons/react/24/outline'; import { __ } from '@wordpress/i18n'; import { removeQueryArgs } from '@wordpress/url'; import { Button, DefaultStep, PreviousStepLink } from '../../components/index'; import { useStateValue } from '../../store/store'; import LimitExceedModal from '../../components/limit-exceeded-modal'; import { WandIcon } from '../ui/icons'; import './style.scss'; import { getStepIndex, removeLocalStorageItem } from '../../utils/functions'; const { showClassicTemplates } = astraSitesVars; const SiteType = () => { const [ { builder, currentIndex, limitExceedModal }, dispatch ] = useStateValue(); const zipPlans = astraSitesVars?.zip_plans; const sitesRemaining = zipPlans?.plan_data?.remaining; const aiSitesRemainingCount = sitesRemaining?.ai_sites_count; useEffect( () => { const startTime = localStorage.getItem( 'st-import-start' ); const endTime = localStorage.getItem( 'st-import-end' ); if ( startTime || endTime ) { localStorage.removeItem( 'st-import-start' ); localStorage.removeItem( 'st-import-end' ); } } ); const handleKeyPress = ( e, navigate ) => { e = e || window.event; if ( e.keyCode === 37 ) { //Left Arrow if ( e.target.previousSibling ) { e.target.previousSibling.focus(); } } else if ( e.keyCode === 39 ) { //Right Arrow if ( e.target.nextSibling ) { e.target.nextSibling.focus(); } } else if ( e.key === 'Enter' ) { //Enter navigate(); } }; useEffect( () => { const urlParams = new URLSearchParams( window.location.search ); const token = urlParams.get( 'token' ); if ( token ) { if ( typeof aiSitesRemainingCount === 'number' && aiSitesRemainingCount <= 0 ) { dispatch( { type: 'set', limitExceedModal: { ...limitExceedModal, open: true, }, } ); } else { dispatch( { type: 'set', currentIndex: 1, } ); } } }, [] ); const handleBuildWithAIPress = () => { if ( typeof aiSitesRemainingCount === 'number' && aiSitesRemainingCount <= 0 ) { dispatch( { type: 'set', limitExceedModal: { ...limitExceedModal, open: true, }, } ); return; } const content = new FormData(); content.append( 'action', 'astra-sites-change-page-builder' ); content.append( '_ajax_nonce', astraSitesVars?._ajax_nonce ); content.append( 'page_builder', 'ai-builder' ); fetch( ajaxurl, { method: 'post', body: content, } ); window.location.href = astraSitesVars?.adminURL + 'themes.php?page=ai-builder'; }; useEffect( () => { if ( currentIndex === getStepIndex( 'page-builder' ) && builder !== 'fse' ) { dispatch( { type: 'set', builder: 'ai-builder', } ); } }, [] ); const colClass = showClassicTemplates ? 'md:grid-cols-2' : 'md:grid-cols-1'; return (

{ __( 'How would you like to build your website?', 'astra-sites' ) }

handleKeyPress( event, handleBuildWithAIPress ) } >
{ __( 'AI Website Builder', 'astra-sites' ) }
{ ' ' } { __( 'Experience the future of website building. We offer AI features powered by ZipWP to help you build your website 10x faster.', 'astra-sites' ) }{ ' ' }
{ showClassicTemplates && (
handleKeyPress( event, () => { dispatch( { type: 'set', currentIndex: 2, } ); } ) } >
{ __( 'Classic Starter Templates', 'astra-sites' ) }
{ ' ' } { __( 'Begin the website-building process with our extensive library of professionally designed templates tailored to meet your requirements.', 'astra-sites' ) }{ ' ' }
) }
{ // remove params const urlParams = new URLSearchParams( window.location.search ); const token = urlParams.get( 'token' ); if ( token ) { const url = removeQueryArgs( window.location.href, 'token', 'email', 'action', 'credit_token' ); window.location = url; } } } /> { /* Back to the wordpress dashboard button */ } } actions={ <> { window.location.href = starterTemplates.adminUrl; } } > { __( 'Back', 'astra-sites' ) } } /> ); }; export default SiteType; URI.MakeAbsolute TYPE: bool VERSION: 2.1.0 DEFAULT: false --DESCRIPTION--

Converts all URIs into absolute forms. This is useful when the HTML being filtered assumes a specific base path, but will actually be viewed in a different context (and setting an alternate base URI is not possible). %URI.Base must be set for this directive to work.

--# vim: et sw=4 sts=4 404 Not Found | Usha Cosmetics

No Results Found

The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.