################
#### CONFIG ####
################
config {

    doctype = html5

    cache_period = 2592000
    sendCacheHeaders = 0
    no_cache = 0
    cache_clearAtMidnight = 0

    uniqueLinkVars = 1
    linkVars = L

    typolinkCheckRootline = 1
    typolinkEnableLinksAcrossDomains = 1

    renderCharset = utf-8
    metaCharset = utf-8

    inlineStyle2TempFile = 1
    admPanel = 0

    intTarget =
    extTarget =

    index_enable = 1
    index_externals = 1
    index_metatags = 0

    sys_language_uid = 0

    language = en
    locale_all = en_US.UTF-8
    htmlTag_langKey = en

    #############
    ## baseURL ##
    #############
    baseURL = {$plugin.tx_hive_cfg_typoscript.settings.auto.protocol}://{$plugin.tx_hive_cfg_typoscript.settings.production.config.baseURL}/

    #######################################################
    ## Compression and Concatenation of CSS and JS Files ##
    #######################################################
    compressJs = {$plugin.tx_hive_cfg_typoscript.settings.production.config.compressJs}
    compressCss = {$plugin.tx_hive_cfg_typoscript.settings.production.config.compressCss}
    concatenateJs = {$plugin.tx_hive_cfg_typoscript.settings.production.config.concatenateJs}
    concatenateCss = {$plugin.tx_hive_cfg_typoscript.settings.production.config.concatenateCss}

    ###################
    ## prefixComment ##
    ###################
    disablePrefixComment = 1

    ##############################################
    ## Changed order of JS Header Libs & Inline ##
    ##############################################
    pageRendererTemplateFile = EXT:hive_cfg_typoscript/Resources/Private/Templates/PageRenderer.html

}

##############
#### PAGE ####
##############
page = PAGE
page {
    typeNum = 0
    adminPanelStyles = 0
    headTag = <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1">
    headerData {
        // Flip ahead browsing for IE10/11
        // http://msdn.microsoft.com/en-us/library/ie/jj883726(v=vs.85).aspx
        10 = HMENU
        10 {
            special = browse
            special {
                items = prev|next
            }
            1 = TMENU
            1.NO {
                allWrap = <link rel="prev" href="|" /> |*| <link rel="next" href="|" />
                doNotLinkIt = 1
                stdWrap {
                    typolink {
                        parameter.data = field:uid
                        useCacheHash = 1
                        returnLast = url
                    }
                }
            }
        }
    }
}

##########################################
## Variable for asynchronus JavaScripts ##
##########################################
[globalVar = LIT:1 > {$plugin.tx_hive_cfg_typoscript.settings.gulp}]
page.footerData.9999999 = TEXT
page.footerData.9999999.value (
<script type="text/javascript">var hive_cfg_typoscript__windowLoad = true;</script>
)
[global]

###################################
## facebook open graph meta tags ##
###################################
#page.headerData.666506 = TEXT
#page.headerData.666506.value = {$plugin.tx_hive_cfg_typoscript.settings.production.meta.ogImage}
#page.headerData.666506.stdWrap {
#  wrap = <meta name="og:image" content="|" />
#  required = 1
#}

### META-SEO does this job ###
# page.headerData.666504 = TEXT
# page.headerData.666504.data = page:title
# page.headerData.666504.stdWrap {
#   wrap = <meta name="og:title" content="|" />
# }


#page.headerData.666509 = TEXT
#page.headerData.666509.data = page:description
#page.headerData.666509.ifEmpty.data = levelfield :-1, description, slide
#page.headerData.666509.stdWrap {
#  wrap = <meta name="og:description" content="|" />
#}


######################
## bMobile && Stage ##
######################
page {
    headerData.3330001 = TEXT
    headerData.3330001.value = <script type="text/javascript">
    headerData.3330002 = TEXT
    headerData.3330002.dataWrap = var hive_cfg_typoscript_bMobile = {$plugin.tx_hive_cfg_typoscript.settings.auto.bMobile};
    headerData.3330003 = TEXT
    headerData.3330003.dataWrap = var hive_cfg_typoscript_sStage = "production";
    headerData.3330004 = TEXT
    headerData.3330004.value = </script>
}

lib.hive_cfg_typoscript_bMobile = TEXT
lib.hive_cfg_typoscript_bMobile.value = {$plugin.tx_hive_cfg_typoscript.settings.auto.bMobile}

###########################
## Fucking iOS Detection ##
###########################
lib.hive_cfg_typoscript_bIOS = TEXT
lib.hive_cfg_typoscript_bIOS.value = {$plugin.tx_hive_cfg_typoscript.settings.auto.bIOS}

#######################
## Windows Detection ##
#######################
lib.hive_cfg_typoscript_bWin = TEXT
lib.hive_cfg_typoscript_bWin = {$plugin.tx_hive_cfg_typoscript.settings.auto.bWin}

##################
## IE Detection ##
##################
lib.hive_cfg_typoscript_sIE = TEXT
lib.hive_cfg_typoscript_sIE = {$plugin.tx_hive_cfg_typoscript.settings.auto.sIE}

#############################
## Additional BODY Classes ##
#############################
page.bodyTag >
page.bodyTagCObject = TEXT
page.bodyTagCObject.field = uid
#page.bodyTagCObject.wrap = <body class="page-| {$plugin.tx_hive_cfg_typoscript.settings.production.classes.body}">
page.bodyTagCObject.noTrimWrap = |<body class="{$plugin.tx_hive_cfg_typoscript.settings.auto.sIE} page-| {$plugin.tx_hive_cfg_typoscript.settings.production.classes.body} bMobile-{$plugin.tx_hive_cfg_typoscript.settings.auto.bMobile} bIOS-{$plugin.tx_hive_cfg_typoscript.settings.auto.bIOS} bWin-{$plugin.tx_hive_cfg_typoscript.settings.auto.bWin} {$plugin.tx_hive_cfg_typoscript.settings.auto.applicationContext}">|

[useragent=*Windows Phone*] || [useragent=*WPDesktop*]
    page.bodyTag >
    page.bodyTagCObject = TEXT
    page.bodyTagCObject.field = uid
    #page.bodyTagCObject.wrap = <body class="ie ie11 page-| {$plugin.tx_hive_cfg_typoscript.settings.production.classes.body}">
    page.bodyTagCObject.noTrimWrap = |<body class="{$plugin.tx_hive_cfg_typoscript.settings.auto.sIE} win phone page-| {$plugin.tx_hive_cfg_typoscript.settings.production.classes.body} bMobile-{$plugin.tx_hive_cfg_typoscript.settings.auto.bMobile} bIOS-{$plugin.tx_hive_cfg_typoscript.settings.auto.bIOS} bWin-{$plugin.tx_hive_cfg_typoscript.settings.auto.bWin} {$plugin.tx_hive_cfg_typoscript.settings.auto.applicationContext}">|
[GLOBAL]