mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-25 21:59:48 +08:00
* add: volume and solid crown icon * add: volume and crown icons to export * update: refactor menu item to a new component * add: screen reader to the menu items and reorganize them * add: pro item infotip content * add: capabilities item and pro info tip to exports * update: import ProInfoTip component and change disabled logic * update: imports * update: refactor pro item infotip into the separate component * update: refactor infotip and add comments * add: custom switch component * add: logo settings layout * update: switch component * add: useToggleSetting hook to manage widget settings. * update: move pro feature key to a separate constant * fix: pro icon style * update: remove branding key * update: pro enable check structure * update: pro enabled check structure * update: key name * update: update key before checking for it * fix: null error * add: update logic to get the tools settings based on plan * update: exclude remove-elementor-label from the minimum option rule * update: add formlabel and eventnames * add: logic to deactivate the features which are disabled for the plan * fix: PHP warning * fix: keyword name * add: GOLINKS * add: open link function * fix: PHP warning undefined key * update: logic to show the icon and added golinks
34 lines
1.1 KiB
JavaScript
34 lines
1.1 KiB
JavaScript
import { __ } from '@wordpress/i18n';
|
|
import { FEATURE_MAPPER } from './index';
|
|
|
|
export const MENU_SETTINGS = {
|
|
'content-adjustments': {
|
|
title: __('Content Adjustments', 'pojo-accessibility'),
|
|
options: {
|
|
'bigger-text': FEATURE_MAPPER['bigger-text'],
|
|
'bigger-line-height': FEATURE_MAPPER['bigger-line-height'],
|
|
'text-align': FEATURE_MAPPER['text-align'],
|
|
'readable-font': FEATURE_MAPPER['readable-font'],
|
|
},
|
|
},
|
|
'orientation-adjustments': {
|
|
title: __('Orientation Adjustments', 'pojo-accessibility'),
|
|
options: {
|
|
'page-structure': FEATURE_MAPPER['page-structure'],
|
|
'screen-reader': FEATURE_MAPPER['screen-reader'],
|
|
sitemap: FEATURE_MAPPER.sitemap,
|
|
'reading-mask': FEATURE_MAPPER['reading-mask'],
|
|
'hide-images': FEATURE_MAPPER['hide-images'],
|
|
'pause-animations': FEATURE_MAPPER['pause-animations'],
|
|
'highlight-links': FEATURE_MAPPER['highlight-links'],
|
|
'focus-outline': FEATURE_MAPPER['focus-outline'],
|
|
},
|
|
},
|
|
'color-adjustments': {
|
|
title: __('Color Adjustments', 'pojo-accessibility'),
|
|
options: {
|
|
grayscale: FEATURE_MAPPER.grayscale,
|
|
contrast: FEATURE_MAPPER.contrast,
|
|
},
|
|
},
|
|
};
|