sfc-utils 1.4.6 → 1.4.8
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/components/topper2.mjs +9 -2
- package/package.json +1 -1
package/components/topper2.mjs
CHANGED
|
@@ -7,14 +7,21 @@ import ImageSlideshow from "./slideshow/imageslideshow.mjs"
|
|
|
7
7
|
import * as topperStyles from "../styles/modules/topper2.module.less"
|
|
8
8
|
import * as imageStyles from "../styles/modules/topperimage.module.less"
|
|
9
9
|
|
|
10
|
-
const Topper2 = ({ settings, wcmData }) => {
|
|
11
|
-
|
|
10
|
+
const Topper2 = ({ settings, wcmData, mods }) => {
|
|
11
|
+
let {
|
|
12
12
|
Topper_Style, Title, Title_Style, Deck, Image, Image_Alt, Video_Mp4, Image_Caption, Image_Credits,
|
|
13
13
|
HeaderDek_Vertical_Position, HeaderDek_Vertical_Offset, HeaderDek_Horizontal_Offset,
|
|
14
14
|
HeaderDek_Horizontal_Position, Inverted_Colors, Inverted_Layout, Inverted_Text_Color,
|
|
15
15
|
Topper_Background_Color
|
|
16
16
|
} = settings
|
|
17
17
|
|
|
18
|
+
// Handle mods here, in case the project modifies the title
|
|
19
|
+
if (mods){
|
|
20
|
+
if (mods.Title){
|
|
21
|
+
Title = mods.Title
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
const headerDekStyleList = () => {
|
|
19
26
|
switch (Topper_Style) {
|
|
20
27
|
case "stacked":
|