##############################
## CONFIG
##############################
# this is germany :)
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE@euro
config.linkVars = L
config.renderCharset = iso-8859-15

# simulate .html files (not index.php?id...)
config.simulateStaticDocuments = 1
# make home.0.html appear as home.html
config.simulateStaticDocuments_noTypeIfNoTitle = 1
# transfer parameters using base64
config.simulateStaticDocuments_pEnc = md5
#config.simulateStaticDocuments_pEnc_onlyP = tx_jwcalendar_pi1[action],tx_jwcalendar_pi1[eventid],tx_jwcalendar_pi1[uid],cHash

# the images on the startpage rotate daily at least
config.cache_clearAtMidnight = 1

# enable admin-panel
#config.admPanel = 1

# spam-protect emails
config.spamProtectEmailAddresses = 6
config.spamProtectEmailAddresses_atSubst = (at)

config.doctype = xhtml_trans
config.xhtml_cleaning = all
config.htmlTag_langKey = de
config.removeDefaultJS = external
config.inlineStyle2TempFile = 1
config.disablePrefixComment = 1

config.headerComment (
	 + + + + + + + + + + + + + + + + + + +
	+ (c) 2006 trIBut - empowered to help +
	+       http://www.tribut.de/         +
	 + + + + + + + + + + + + + + + + + + +
)

includeLibs.ts_ckfortune = EXT:ck_fortune/pi1/class.tx_ckfortune_pi1.php

##############################
## AUTO-PARSER
##############################
plugin.tx_automaketemplate_pi1 {
	content = FILE
	content.file = fileadmin/template/html/main.html
	elements {
		BODY.all = 1
		BODY.all.subpartMarker = DOCUMENT_BODY
		HEAD.all = 1
		HEAD.all.subpartMarker = DOCUMENT_HEADER
		HEAD.rmTagSections = title
	}
	relPathPrefix = fileadmin/template/
}

##############################
## CALENDAR
##############################
plugin.tx_jwcalendar_pi1 {
	templateFile = fileadmin/template/html/cal_default.html
	date_format = %a, %e. %B %Y
	parseFunc.nonTypoTagStdWrap.br = 1
	tooltipShowImage = 1
	tooltipImageWidth = 75
	imageMaxWidth = 150
	defaultNumEntries = 7
}
plugin.tx_jwcalendar_pi1._CSS_DEFAULT_STYLE >
plugin.tx_jwcalendar_pi1.imageLinkWrap < tt_content.image.20.1.imageLinkWrap
plugin.tx_jwcalendar_pi1.imageLinkWrap.enable >
plugin.tx_jwcalendar_pi1.imageLinkWrap.enable = 1

##############################
## TEMPLATES (SUBPARTS/MARKS)
##############################
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
	template =< plugin.tx_automaketemplate_pi1
	workOnSubpart = DOCUMENT_BODY
	subparts {
		##############################
		## MENU
		##############################
		MENU = HMENU
		MENU.1 = TMENU
		MENU.1 {
			#expAll = 1
			noBlur = 1
			wrap = <ul class="menu-level1">|</ul>
			NO = 1
			NO.wrapItemAndSub = <li class="normal">|</li>
			NO.ATagParams = onmouseover="menu_in(this);" onmouseout="menu_out();" style="filter:alpha(opacity=30);opacity: 0.3;-moz-opacity: 0.3;"
			ACT = 1
			ACT.wrapItemAndSub = <li class="active">|</li>
			ACT.ATagParams = style="filter:alpha(opacity=60);opacity: 0.6;-moz-opacity: 0.6;"
			# CUR = 1
			# CUR.allWrap = <li class="current">|</li>
			# CUR.ATagParams = onmouseover="menu_in(this);" onmouseout="menu_out();" style="filter:alpha(opacity=60);opacity: 0.6;-moz-opacity: 0.6;"
		}

		MENU.2 = TMENU
		MENU.2 < temp.mainTemplate.subparts.MENU.1
		MENU.2.wrap = <ul class="menu-level2">|</ul>

		##############################
		## CONTENT
		##############################
		CONTENT < styles.content.get
	}
	marks {
		##############################
		## MININAV
		##############################
		MININAV = HMENU
		MININAV.special = list
		MININAV.special.value = 17, 16, 20, 38
		MININAV.1 = TMENU
		MININAV.1 {
			NO = 1
			NO.allWrap = |&nbsp;&bull;&nbsp;|*||*| |
		}

		##############################
		## TEASER IMAGES
		##############################
		TEASER < styles.content.getRight

		##############################
		## RANDOM IMAGE
		##############################
		# USER_INT effectively disables caching. beware!
		RANDIMAGE = USER_INT
		#RANDIMAGE = USER
		RANDIMAGE {
			userFunc = tx_ckfortune_pi1->main
			10.datapid = 28
			10.time = rand
			# 10.time = 1440
			10.10.field = image
			10.10.type = TEXT
			10.10.type.file = IMAGEASTEXT
		}

		##############################
		## ANNOUNCEMENT MARQUEE
		##############################
		ANNOUNCE = COA
		ANNOUNCE {
			10 = HTML
			10.value = <marquee>
			20 < styles.content.getLeft
			30 = HTML
			30.value = </marquee>
			# only render if we have content
			if.isTrue.numRows {
				table = tt_content
				select.where = colPos = 1
			}
		}
	}
}

temp.headTemplate = TEMPLATE
temp.headTemplate {
	template =< plugin.tx_automaketemplate_pi1
	workOnSubpart = DOCUMENT_HEADER
}


##############################
## LAYOUT
##############################
# remove blur from sitemap
tt_content.menu.20.2 {
	1.noBlur = 1
	2.noBlur = 1
	3.noBlur = 1
	4.noBlur = 1
}
# image width in filelinks-content element
tt_content.uploads.20.linkProc.iconCObject.file.width = 35
# otherwise in-page links won't work
tt_content.stdWrap.dataWrap = <a name="{field:uid}"></a> |

##############################
## PAGE-CONFIG
##############################
page = PAGE
page {
	typeNum = 0
	bodyTag = <body>
	# we rather do this manually in the template
	# stylesheet = 
	10 < temp.mainTemplate
	headerData.10  < temp.headTemplate
}