Skip to content

Commit f4b5fee

Browse files
committed
fix: pro notice update, translation, renaming default theme
1 parent eb77f8d commit f4b5fee

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

src/components/font-pair-picker/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ const FontPairPicker = props => {
3232
style={ omit( { ...headingStyles }, [ 'fontSize', 'lineHeight' ] ) }
3333
className="ugb-global-settings-font-pair__label"
3434
>
35-
{ headingStyles?.fontFamily ? headingStyles.fontFamily : 'Theme Heading Default' }
35+
{ headingStyles?.fontFamily ? headingStyles.fontFamily : __( 'Default Heading', i18n ) }
3636
</span>
3737
<span
3838
style={ omit( { ...paragraphStyles }, [ 'fontSize', 'lineHeight' ] ) }
3939
className="ugb-global-settings-font-pair__sub-label"
4040
>
41-
{ paragraphStyles?.fontFamily ? paragraphStyles?.fontFamily : 'Theme Body Default' }
41+
{ paragraphStyles?.fontFamily ? paragraphStyles?.fontFamily : __( 'Default Body', i18n ) }
4242
</span>
4343
</div>
4444
)

src/components/pro-control/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ const LABELS = {
117117
<li>{ __( 'Organize your custom icons in your library', i18n ) }</li>
118118
</ul>,
119119
},
120+
'font-pairs': {
121+
title: __( 'Customize Font Pairs', i18n ),
122+
description: <ul>
123+
<li>{ __( 'Add your own custom Font Pairs', i18n ) }</li>
124+
<li>{ __( 'Edit custom Font Pairs based on the selected preset', i18n ) }</li>
125+
</ul>,
126+
},
120127
}
121128

122129
const ProControl = props => {

src/plugins/global-settings/typography/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import {
1313
PanelAdvancedSettings, AdvancedSelectControl, ControlSeparator, FontPairPicker, ProControl,
1414
} from '~stackable/components'
1515
import { fetchSettings } from '~stackable/util'
16-
import { i18n, isPro } from 'stackable'
16+
import {
17+
i18n, isPro, showProNotice,
18+
} from 'stackable'
1719
import {
1820
omit, head, isEqual,
1921
} from 'lodash'
@@ -286,7 +288,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-typography',
286288
<ControlSeparator />
287289

288290
<div className="ugb-global-settings-font-pair__heading">
289-
<h3>Preset Font Pairs</h3>
291+
<h3>{ __( 'Preset Font Pairs' ) }</h3>
290292
{ isPro && applyFilters(
291293
'stackable.global-settings.typography.font-pairs.addFontPair',
292294
[ ...FONT_PAIRS, ...customFontPairs ],
@@ -346,7 +348,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-typography',
346348
/>
347349
} ) }
348350
</div>
349-
{ ! isPro && <ProControl type="global-font-pairs" title="Creating and editing Custom Font Pairs are premium features" /> }
351+
{ showProNotice && <ProControl type="font-pairs" /> }
350352
<ControlSeparator />
351353
</div>
352354
}
@@ -364,7 +366,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-typography',
364366
)
365367
}
366368

367-
<h3>Typography Settings</h3>
369+
<h3>{ __( 'Typography Settings' ) }</h3>
368370
<style> { getThemeStyles() } </style>
369371
{ TYPOGRAPHY_TAGS.map( ( {
370372
label, selector, help,

0 commit comments

Comments
 (0)