@marvalt/wparser 0.1.70 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -2167,10 +2167,15 @@ function parseContentPosition(contentPosition) {
|
|
|
2167
2167
|
horizontal = 'center';
|
|
2168
2168
|
vertical = part2;
|
|
2169
2169
|
}
|
|
2170
|
+
else if (part2 === 'left' || part2 === 'right') {
|
|
2171
|
+
// WordPress format: "center right" -> vertical=center, horizontal=right
|
|
2172
|
+
vertical = 'center';
|
|
2173
|
+
horizontal = part2;
|
|
2174
|
+
}
|
|
2170
2175
|
else {
|
|
2171
|
-
// "center center"
|
|
2176
|
+
// "center center" -> both center
|
|
2172
2177
|
horizontal = 'center';
|
|
2173
|
-
vertical =
|
|
2178
|
+
vertical = 'center';
|
|
2174
2179
|
}
|
|
2175
2180
|
}
|
|
2176
2181
|
else {
|