lib.pagetitle = TEXT
lib.pagetitle.data = page : title

lib.currentPageId = TEXT
lib.currentPageId.data = TSFE:id

lib.eventsPageId = TEXT
lib.eventsPageId.value = {$menu.eventsPageId}
 

# LOGO
park.logo = TEXT
park.logo.data = siteLanguage:base
// park.logo.wrap = <a href="|" title="{$parkTitle}"><img src="{$imgPath}logo.png" alt="{$parkTitle}" /></a>
park.logo.wrap = <a href="|" data-gtm-event="home_logo_click" class="navbar-brand p-0 m-0 h-100 col-xl-2 col-lg-3 col-md-4" target="_self" title="{$parkTitle}"><div class="brand-nav h-100 navbar-image"><img src="{path : {$imgPath}logo.svg}" alt="{$parkTitle}" class="h-100" /></div></a>  
park.logo.insertData = 1 
// park.logo.wrap = <a href="|" class="navbar-brand p-0 m-0" target="_self" title="{$parkTitle}"><div class="brand-nav"><img src="{$imgPath}logo.png" alt="{$parkTitle}" class="img-fluid"/></div></a>


# DYNAMIC PARK META WEBSITE ENTRY NAVIGATION
park.metaWebsiteEntryMenu = RECORDS
park.metaWebsiteEntryMenu {
    tables = tt_content
    source = {$parkMetaWebsiteId}
}

# DYNAMIC CTA BUTTON (MAIN MENU)
park.parkCtaUid = RECORDS
park.parkCtaUid {
    tables = tt_content
    source = {$parkCtaUid}
}

# DYNAMIC PARK WEATHER
park.weatherWidget = RECORDS
park.weatherWidget {
    tables = tt_content
    source = {$weatherWidgetId}
}

# DYNAMIC PARK OPENINGS
park.openingtimesWidget = RECORDS
park.openingtimesWidget {
    tables = tt_content
    source = {$openingtimesWidgetId}
}

# DYNAMIC PARK ALERT BAR
park.alertBar = RECORDS
park.alertBar {
    tables = tt_content
    source = {$alertBarId}
}

# DYNAMIC PARK ALERT BOX
park.alertBox = RECORDS
park.alertBox {
    tables = tt_content
    source = {$alertBoxId}
}

# DYNAMIC SOCIAL MEDIA MENU
park.socialMenu = RECORDS
park.socialMenu {
    tables = tt_content
    source = {$socialMenuId}
}

# DYNAMIC CONTENT OF THE FOOTER
park.footerContent = RECORDS
park.footerContent {
    tables = tt_content
    source = {$footerInformationId}
}

# DYNAMIC CONTENT OF THE Calender
park.calenderCta = RECORDS
park.calenderCta {
    tables = tt_content
    source = {$calenderCtaId}
}

# DYNAMIC newsletterFooterContent MEDIA MENU
park.newsletterFooterContent = RECORDS
park.newsletterFooterContent {
    tables = tt_content
    source = {$newsletterFooterContentId}
}

# DYNAMIC footerSocialContent MEDIA MENU
park.footerSocialContent = RECORDS
park.footerSocialContent {
    tables = tt_content
    source = {$footerSocialContentId}
}


# DYNAMIC COPYRIGHT CONTENT OF THE FOOTER
park.copyrightText = TEXT
park.copyrightText {
    data = date : U
    strftime = %Y
    wrap = &copy;&nbsp;Copyright&nbsp;|&nbsp;{$parkTitle}, all rights reserved.
}

# DYNAMIC SEARCH BOX IN THE HEADER
park.searchBox = USER
park.searchBox {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    vendorName = TYPO3\CMS
    extensionName = IndexedSearch
    pluginName = Pi2
    switchableControllerActions {
        Search {
            1 = form
            2 = search
        }
    }
    view =< plugin.tx_indexedsearch.view
    view {
        templateRootPaths {
            20 = EXT:pits_sp_saint_paul_parc/Resources/Private/Templates/Ext/IndexedSearch/Header/
        }
        partialRootPaths {
            20 = EXT:pits_sp_saint_paul_parc/Resources/Private/Partials/Ext/IndexedSearch/Header/
        }
    }
    settings =< plugin.tx_indexedsearch.settings
    settings.targetPid = {$searchResultsUid}
    settings.displayResultNumber = 0
    settings.numberOfResults = 0
    settings.displayAdvancedSearchLink = 0
}

# DYNAMIC LANGUAGE SWITCHER MENU
// Note: this menu is rendered by fluid directly in the header template file because auf TYPO3 >=10

page.10.templateRootPaths.10 =EXT:pits_sp_saint_paul_parc/Resources/Private/Templates/Page/
plugin.tx_calendarize.view.partialRootPaths.200 = EXT:pits_sp_saint_paul_parc/Resources/Private/Partials/Ext/Calendarize/
