"Only premium users can register a new domain through our system. If you [link: purchase a yearly subscription plan] to Strikingly, we'll give you a domain for free!",
),
{
root: <div className="field-hint" />,
link: <a href={
UserMetaStore.isZbjUser()
? 'javascript: alert("八戒云站暂不支持升级,请添加新的套餐。")'
: '/s/pricing?ref=free_domain'
} />,
},
)}
<div
className="s-btn big basic-blue"
onClick={this._onRegisterNewDomain}>
{__('Check Availability')}
// rollout for new domain project v1
if (!canBuyAllDomains) {
if (domainPurchaseStatus === 'free') {
registerDomainContainer = (
<div className="register-domain">
{tct(
__(
"If you [link: purchase a yearly subscription plan] to Strikingly, we'll give you a domain for free for the first year!",
),
{
root: <div className="field-hint" />,
link: (
<a
href={
UserMetaStore.isZbjUser()
? 'javascript: alert("八戒云站暂不支持升级,请添加新的套餐。")'
: '/s/pricing?ref=free_domain'
}
/>
),
},
)}
<div
className="s-btn big basic-blue"
onClick={this._onRegisterNewDomain}>
{__('Check Availability')}
</div>
</div>
</div>
)
)
} else if (
!justConnectedAfterRegister &&
v2DomainSetting.entitledToFreeDomain
) {
registerDomainContainer = (
<div className="register-domain">
<div className="field-hint">
{__(
`You're on a yearly plan and can register a new domain for free!`,
)}
</div>
<div
className="s-btn big basic-blue"
onClick={this._onRegisterNewDomain}>
{__('Claim My Free Domain!')}
</div>
</div>
)
} else {
registerDomainContainer = (
<div className="register-domain">
<div className="field-hint">
{__(`Don't own a domain yet? Grab one here for $24.95/year.`)}
</div>
<div
className="s-btn big basic-blue"
onClick={this._onRegisterNewDomain}>
{__('Register New Domain')}
</div>
</div>
)
}
} else if (
!justConnectedAfterRegister &&
CurrentUserStore.hasFreeDomain() &&
v2DomainSetting.entitledToFreeDomain
) {
registerDomainContainer = (
...
...
@@ -662,7 +710,7 @@ class DomainsTab extends React.Component {
registerDomainContainer = (
<div className="register-domain">
<div className="field-hint">
{__(`Don't own a domain yet? Grab one here for $24.95/year.`)}
{__(`Don't own a domain yet? Grab one here.`)}
</div>
<div
className="s-btn big basic-blue"
...
...
@@ -722,68 +770,70 @@ class DomainsTab extends React.Component {
'Domain|Register for or connect to a custom domain for this site.',
)}
title={__('Domain|Connect to a custom domain for this site.')}
hint={__(
'Upgrade your account to either Limited or Pro to access this feature!',
)}
source="cd">
{!isSxl && (
<div>
{showPurchaseSuccessMsg && (
<ReactTransitionGroup>
<JQSlide
component={DOM.div}
className="s-box green small fist">
<i className="fa fa-check" />
{tct(
__(
"Domain|[placeholderStrong: You just got a new domain!] And we've already connected it to your site. Remember, you must check your email to validate your domain.",