Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: style-engine.js
return generateRule(style, options, ['typography', 'textColumns'], 'columnCount');
[1000] Fix | Delete
}
[1001] Fix | Delete
};
[1002] Fix | Delete
const textDecoration = {
[1003] Fix | Delete
name: 'textDecoration',
[1004] Fix | Delete
generate: (style, options) => {
[1005] Fix | Delete
return generateRule(style, options, ['typography', 'textDecoration'], 'textDecoration');
[1006] Fix | Delete
}
[1007] Fix | Delete
};
[1008] Fix | Delete
const textTransform = {
[1009] Fix | Delete
name: 'textTransform',
[1010] Fix | Delete
generate: (style, options) => {
[1011] Fix | Delete
return generateRule(style, options, ['typography', 'textTransform'], 'textTransform');
[1012] Fix | Delete
}
[1013] Fix | Delete
};
[1014] Fix | Delete
const writingMode = {
[1015] Fix | Delete
name: 'writingMode',
[1016] Fix | Delete
generate: (style, options) => {
[1017] Fix | Delete
return generateRule(style, options, ['typography', 'writingMode'], 'writingMode');
[1018] Fix | Delete
}
[1019] Fix | Delete
};
[1020] Fix | Delete
/* harmony default export */ const typography = ([fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textColumns, textDecoration, textTransform, writingMode]);
[1021] Fix | Delete
[1022] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/style-engine/build-module/styles/index.js
[1023] Fix | Delete
/**
[1024] Fix | Delete
* Internal dependencies
[1025] Fix | Delete
*/
[1026] Fix | Delete
[1027] Fix | Delete
[1028] Fix | Delete
[1029] Fix | Delete
[1030] Fix | Delete
[1031] Fix | Delete
[1032] Fix | Delete
[1033] Fix | Delete
[1034] Fix | Delete
const styleDefinitions = [...border, ...styles_color, ...dimensions, ...outline, ...spacing, ...typography, ...styles_shadow, ...styles_background];
[1035] Fix | Delete
[1036] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/style-engine/build-module/index.js
[1037] Fix | Delete
/**
[1038] Fix | Delete
* External dependencies
[1039] Fix | Delete
*/
[1040] Fix | Delete
[1041] Fix | Delete
[1042] Fix | Delete
/**
[1043] Fix | Delete
* Internal dependencies
[1044] Fix | Delete
*/
[1045] Fix | Delete
[1046] Fix | Delete
[1047] Fix | Delete
[1048] Fix | Delete
/**
[1049] Fix | Delete
* Generates a stylesheet for a given style object and selector.
[1050] Fix | Delete
*
[1051] Fix | Delete
* @since 6.1.0 Introduced in WordPress core.
[1052] Fix | Delete
*
[1053] Fix | Delete
* @param style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json
[1054] Fix | Delete
* @param options Options object with settings to adjust how the styles are generated.
[1055] Fix | Delete
*
[1056] Fix | Delete
* @return A generated stylesheet or inline style declarations.
[1057] Fix | Delete
*/
[1058] Fix | Delete
function compileCSS(style, options = {}) {
[1059] Fix | Delete
const rules = getCSSRules(style, options);
[1060] Fix | Delete
[1061] Fix | Delete
// If no selector is provided, treat generated rules as inline styles to be returned as a single string.
[1062] Fix | Delete
if (!options?.selector) {
[1063] Fix | Delete
const inlineRules = [];
[1064] Fix | Delete
rules.forEach(rule => {
[1065] Fix | Delete
inlineRules.push(`${paramCase(rule.key)}: ${rule.value};`);
[1066] Fix | Delete
});
[1067] Fix | Delete
return inlineRules.join(' ');
[1068] Fix | Delete
}
[1069] Fix | Delete
const groupedRules = rules.reduce((acc, rule) => {
[1070] Fix | Delete
const {
[1071] Fix | Delete
selector
[1072] Fix | Delete
} = rule;
[1073] Fix | Delete
if (!selector) {
[1074] Fix | Delete
return acc;
[1075] Fix | Delete
}
[1076] Fix | Delete
if (!acc[selector]) {
[1077] Fix | Delete
acc[selector] = [];
[1078] Fix | Delete
}
[1079] Fix | Delete
acc[selector].push(rule);
[1080] Fix | Delete
return acc;
[1081] Fix | Delete
}, {});
[1082] Fix | Delete
const selectorRules = Object.keys(groupedRules).reduce((acc, subSelector) => {
[1083] Fix | Delete
acc.push(`${subSelector} { ${groupedRules[subSelector].map(rule => `${paramCase(rule.key)}: ${rule.value};`).join(' ')} }`);
[1084] Fix | Delete
return acc;
[1085] Fix | Delete
}, []);
[1086] Fix | Delete
return selectorRules.join('\n');
[1087] Fix | Delete
}
[1088] Fix | Delete
[1089] Fix | Delete
/**
[1090] Fix | Delete
* Returns a JSON representation of the generated CSS rules.
[1091] Fix | Delete
*
[1092] Fix | Delete
* @since 6.1.0 Introduced in WordPress core.
[1093] Fix | Delete
*
[1094] Fix | Delete
* @param style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json
[1095] Fix | Delete
* @param options Options object with settings to adjust how the styles are generated.
[1096] Fix | Delete
*
[1097] Fix | Delete
* @return A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value.
[1098] Fix | Delete
*/
[1099] Fix | Delete
function getCSSRules(style, options = {}) {
[1100] Fix | Delete
const rules = [];
[1101] Fix | Delete
styleDefinitions.forEach(definition => {
[1102] Fix | Delete
if (typeof definition.generate === 'function') {
[1103] Fix | Delete
rules.push(...definition.generate(style, options));
[1104] Fix | Delete
}
[1105] Fix | Delete
});
[1106] Fix | Delete
return rules;
[1107] Fix | Delete
}
[1108] Fix | Delete
[1109] Fix | Delete
(window.wp = window.wp || {}).styleEngine = __webpack_exports__;
[1110] Fix | Delete
/******/ })()
[1111] Fix | Delete
;
[1112] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function