|
|
@@ -15,8 +15,8 @@ export const createMiniTeaser = ({ |
|
|
const tile = createElement('a', ['tile', 'mini-teaser', type], null); |
|
|
const tile = createElement('a', ['tile', 'mini-teaser', type], null); |
|
|
tile.href = link; |
|
|
tile.href = link; |
|
|
const textBox = createElement('div', ['text-box'], null, tile); |
|
|
const textBox = createElement('div', ['text-box'], null, tile); |
|
|
createElement('h5', ['category'], category, textBox); |
|
|
|
|
|
createElement('h4', ['title'], title, textBox); |
|
|
|
|
|
|
|
|
createElement('div', ['category','like-h5'], category, textBox); |
|
|
|
|
|
createElement('div', ['title','like-h4'], title, textBox); |
|
|
return tile; |
|
|
return tile; |
|
|
}else{ |
|
|
}else{ |
|
|
const tile = createElement('a', ['tile', 'mini-teaser', type], null); |
|
|
const tile = createElement('a', ['tile', 'mini-teaser', type], null); |
|
|
@@ -28,10 +28,10 @@ export const createMiniTeaser = ({ |
|
|
const textBox = createElement('div', ['text-box'], null, tile); |
|
|
const textBox = createElement('div', ['text-box'], null, tile); |
|
|
if (icon && icon.length > 0) { |
|
|
if (icon && icon.length > 0) { |
|
|
createElement('div', ['icon-box', 'pictogram-' + icon.toLowerCase().split(' ').join('-')], null, textBox); |
|
|
createElement('div', ['icon-box', 'pictogram-' + icon.toLowerCase().split(' ').join('-')], null, textBox); |
|
|
createElement('h4', ['title'], title, textBox); |
|
|
|
|
|
|
|
|
createElement('div', ['title','like-h4'], title, textBox); |
|
|
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel,iconPosition: 'icon-right', icon: null, preventClick: false})) |
|
|
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel,iconPosition: 'icon-right', icon: null, preventClick: false})) |
|
|
}else{ |
|
|
}else{ |
|
|
createElement('h4', ['title', 'noicon'], title, textBox); |
|
|
|
|
|
|
|
|
createElement('div', ['title', 'noicon', 'like-h4'], title, textBox); |
|
|
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel, iconPosition: 'icon-right', icon: null, preventClick: false})) |
|
|
textBox.appendChild(createButton({elementType: 'span',color: 'white', label: buttonlabel, iconPosition: 'icon-right', icon: null, preventClick: false})) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|