-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] seperate responsive image typoscript for contact cards CE (#299)
- Loading branch information
1 parent
2d8b11c
commit 84ab333
Showing
2 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
102 changes: 102 additions & 0 deletions
102
Configuration/TypoScript/Library/lib.responsiveContactCards.setupts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
lib.responsiveContactCards = TEXT | ||
lib.responsiveContactCards { | ||
current = 1 | ||
wrap = responsiveBg| | ||
|
||
append = LOAD_REGISTER | ||
append { | ||
t3kit_responsiveContactCards = TEXT | ||
t3kit_responsiveContactCards { | ||
prepend = TEXT | ||
prepend { | ||
data = register:t3kit_responsiveContactCards | ||
wrap = |, | ||
required = 1 | ||
} | ||
|
||
current = 1 | ||
trim = 1 | ||
} | ||
} | ||
|
||
} | ||
|
||
page.cssInline { | ||
1460 = FILES | ||
1460 { | ||
|
||
references.data = register:t3kit_responsiveContactCards | ||
|
||
renderObj = COA | ||
renderObj { | ||
5 = LOAD_REGISTER | ||
5 { | ||
mediaImageIndex = TEXT | ||
mediaImageIndex { | ||
cObject = TEXT | ||
cObject { | ||
data = register:sectionIteration | ||
intval = 1 | ||
outerWrap = |+1 | ||
} | ||
|
||
prioriCalc = 1 | ||
} | ||
} | ||
|
||
10 = TEXT | ||
10 { | ||
prepend = TEXT | ||
prepend { | ||
data = file:current:uid | ||
noTrimWrap = |.responsiveBg| { background-image: url(/| | ||
} | ||
|
||
cObject = IMG_RESOURCE | ||
cObject { | ||
file { | ||
import.data = file:current:uid | ||
treatIdAsReference = 1 | ||
width = 212 | ||
} | ||
} | ||
|
||
append = TEXT | ||
append { | ||
value = ); } | ||
} | ||
} | ||
|
||
20 = TEXT | ||
20.cObject < .10 | ||
20 { | ||
cObject.cObject.file.width = 256 | ||
noTrimWrap = | @media (max-width: 767px) { | } | | ||
} | ||
30 = TEXT | ||
30.cObject < .10 | ||
30 { | ||
cObject.cObject.file.width = 384 | ||
noTrimWrap = | @media (min-width: 992px) { | } | | ||
} | ||
60 = TEXT | ||
60.cObject < .10 | ||
60 { | ||
cObject.cObject.file.width = 414 | ||
noTrimWrap = | @media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2), (max-width: 767px) and (min-resolution: 2dppx) { | } | | ||
} | ||
70 = TEXT | ||
70.cObject < .10 | ||
70 { | ||
cObject.cObject.file.width = 512 | ||
noTrimWrap = | @media (min-width: 768px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 768px) and (min-resolution: 2dppx) { | } | | ||
} | ||
80 = TEXT | ||
80.cObject < .10 | ||
80 { | ||
cObject.cObject.file.width = 768 | ||
noTrimWrap = | @media (min-width: 992px) and (-webkit-min-device-pixel-ratio: 2), (min-width: 992px) and (min-resolution: 2dppx) { | } | | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters