plugin.tx_t3eventscourse {
	view {
		templateRootPath = {$plugin.tx_t3eventscourse.view.templateRootPath}
		partialRootPath = {$plugin.tx_t3eventscourse.view.partialRootPath}
		layoutRootPath = {$plugin.tx_t3eventscourse.view.layoutRootPath}
	}

	mvc.callDefaultActionIfActionCantBeResolved = 1
	persistence {
		storagePid = {$plugin.tx_t3eventscourse.persistence.storagePid}
	}

	settings {
		termsAndConditionsPid = {$plugin.tx_t3eventscourse.settings.termsAndConditionsPid}
		privacyStatementsPid = {$plugin.tx_t3eventscourse.settings.privacyStatementsPid}
		debug {
			course {
				settings = 0
				list = 0
				show = 0
			}

			lesson {
				settings = 0
				list = 0
				show = 0
			}
		}

		course {
			list {
				paginate = 1
				showSortBy = 1
			}
		}

		lesson {
			show {
				map {
					initialZoom = {$plugin.tx_t3eventscourse.settings.lesson.show.map.initialZoom}
				}
			}

			list {
				paginate = 1
				showSortBy = 1
			}

			listPid = {$plugin.tx_t3eventscourse.settings.lesson.listPid}
			detailPid = {$plugin.tx_t3eventscourse.settings.lesson.detailPid}
		}

		reservation {
			detailPid = {$plugin.tx_t3eventscourse.settings.reservation.detailPid}
			confirm {
				fromEmail = {$plugin.tx_t3eventscourse.settings.reservation.default.fromEmail}
				subject = {$plugin.tx_t3eventscourse.settings.reservation.confirm.subject}
				templateFileName = {$plugin.tx_t3eventscourse.settings.reservation.confirm.templateFileName}
				folderName = {$plugin.tx_t3eventscourse.settings.reservation.confirm.folderName}
				sendNotification = {$plugin.tx_t3eventscourse.settings.reservation.confirm.sendNotification}
			}
		}
	}

	features {
		# uncomment the following line to enable the new Property Mapper.
		# rewrittenPropertyMapper = 1
	}
}

# disable default CSS from t3events
plugin.tx_t3events._CSS_DEFAULT_STYLE >

plugin.tx_t3eventscourse._CSS_DEFAULT_STYLE (

	.tx-t3events table {
		border-collapse:separate;
		border-spacing:10px;
	}

	.tx-t3events table th {
		font-weight:bold;
	}

	.tx-t3events table td {
		vertical-align:top;
	}

	.typo3-messages .message-error {
		color:red;
	}

	.typo3-messages .message-ok {
		color:green;
	}
	.typo3-messages .message-notice {
		color: #1C3862;
	}
)


####################
# include default CSS

page.includeCSS.dakosyReservationsBasic = EXT:dakosy_reservations/Resources/Public/Css/dakosyReservationsBasic.css

####################
# date format helper
# provides a workaround for missing localization of <f:format.date /> view helper
lib.dateMe = TEXT
lib.dateMe {
	current = 1
	strftime = %a, %d.%m.%y
}

####################
# time format helper
# provides a workaround for incorrect behaviour of <f:format.date /> view helper
# see: https://forge.typo3.org/issues/49449
lib.timeValue = TEXT
lib.timeValue {
	current = 1
	strftime.GMT = 1
	strftime = %H:%M
}
