lib.newstitle {
wrap = |
10 {
dontCheckPid = 1
tables = tt_news
source.data = GPvar:tx_ttnews|tt_news
source.insertData = 1
conf.tt_news.field = title
conf.tt_news.required = 1
}
}
/* testing snippets
lib.test = TEXT
lib.test < lib.newstitle
lib.rootMenu.2 = RECORDS
lib.rootMenu.2 {
tables = tt_news
source.data = GPvar:tx_ttnews|tt_news
conf.tt_news = TEXT
conf.tt_news.field = title
conf.tt_news.dataWrap = <li title="{field:short // field:title}">|</li>
conf.tt_news.htmlSpecialChars = 1
}
*/
lib.headerBaseImage
= IMAGE
lib.headerBaseImage {
file {
XY = 990,190
format = png
quality = 100
10.file = {$imagePath}header/{$headerImage}
20.text = TYPO
20.offset = -80,52
20.align = right
20.niceText = 1
20.fontSize = 32
20.fontColor = {$headerDarkColor}
20.fontFile = {$fontPath}{$headerFont}
20.shadow.offset = 2,2
20.shadow.blur = 14
20.shadow.opacity = 70
20.shadow.color = {$headerShadowColor}
30.text = free
30.offset = 918,52
30.niceText = 1
30.fontSize = 32
30.fontColor = {$headerLightColor}
30.fontFile = {$fontPath}{$headerFont}
30.shadow.offset = 2,2
30.shadow.blur = 14
30.shadow.opacity = 70
30.shadow.color = {$headerShadowColor}
40.text = {$headerSlogan}
40.offset = {$headerSloganXoffset},80
40.niceText = 1
40.fontSize = 24
40.fontColor = {$headerLightColor}
40.fontFile = {$fontPath}{$headerFont}
40.shadow.offset = 2,2
40.shadow.blur = 12
40.shadow.opacity = 100
40.shadow.color = {$headerShadowColor}
}
}
lib.headerImage {
file {
XY = 990,190
format = jpg
quality = 85
10 < lib.headerBaseImage
#50.text.data = register:newsKeywords
#50.text.data = date:Y
50.text.data = page:subtitle // page:title
#50.text.cObject < lib.newstitle
#50.text = register:newsKeywords
50.offset = 20,165
50.niceText = 1
50.fontSize = 24
50.fontColor = {$headerLightColor}
50.fontFile = {$fontPath}{$headerFont}
50.shadow.offset = 2,2
50.shadow.blur = 12
50.shadow.opacity = 100
50.shadow.color = {$headerShadowColor}
}
}
#lib.HeadLine = TEXT
#lib.HeadLine.dataWrap = {leveltitle: -2} - {page:title}
[globalVar = TSFE:id = {$newsArchive}]
lib.headerImage.file.50.text >
#lib.headerImage.file.50.text.data < DB:tt_news:12:title
[global]
// Nice news title header on the single view page
[globalVar = TSFE:id = {$newsSingle}]
lib.headerImage.file.50.text.cObject < lib.newstitle
[global]
lib.description.value = <div id="description" class="hide"><h1><img src="{$imagePath}TYPOfree.png" alt="{$title}" /></h1></div>
lib.logo.value = <div id="logo" class="hide"><a href="/"><img src="{$imagePath}TYPOfree.small.png" alt="{$title}"/></a></div><div id="slogan" class="hide"><h2>{$slogan}</h2></div>
lib.home.value = <div id="home"><a href="/"><img src="{$imagePath}trance.gif" width="988" height="188" alt="home"/></a></div>
lib.header {
wrap=
1.value = <div id="headerWrap" style="background: top url(
5 = TEXT
5 < lib.headerImage
7 = TEXT
!!.=)>
10 < lib.description
11 < lib.skip
12.value = <div class="header">
13 < lib.home
14 < lib.logo
15 < lib.nav-top
16.value = </div></div>
}