
@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/Configuration.typoscript'
@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/Register.typoscript'
@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/BodyTag.typoscript'
@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/Template.typoscript'


# EXT:t3sbootstrap default CSS
# --------------------------------------------------------------------------------------------------------------------------
page {
	includeCSS {
		t3sbootstrap = EXT:t3sbootstrap/Resources/Public/Styles/t3sbootstrap.css
		t3sbootstrap.if.isFalse = {$bootstrap.config.disableDefaultCss}

		t3sbFa = EXT:t3sbootstrap/Resources/Public/Styles/t3sb-fontawseome.css
		t3sbFa.if.isFalse = {$bootstrap.config.disableFaCss}
	}
}


# BOOTSTRAP CSS & JS
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/cdn/customScss") == false && traverse(site("configuration"), "settings/bootstrap/cdn/enable") == false]

	page {
		includeCSSLibs {
			bootstrapCSS = EXT:t3sb_package/Resources/Public/T3SB-CSS/bootstrap.min.css	
		}
	}

	@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/IncludeLocalJs.typoscript'

[END]

# BOOTSTRAP JS
[traverse(site("configuration"), "settings/bootstrap/cdn/customScss") == true && traverse(site("configuration"), "settings/bootstrap/cdn/enable") == false]
	 @import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/IncludeLocalJs.typoscript'
[END]


# Custom SCSS
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/cdn/customScss") == true && traverse(site("configuration"), "settings/bootstrap/cdn/enable") == false]

	page {
		includeCSSLibs {
			bootstrapCustom = uploads/tx_t3sbootstrap/bootstrap-{$bootstrap.config.homepageUid}.scss
			bootstrapCustom.insertData = 1
			bootstrapCustom.forceOnTop = 1
		}
	}

[END]


# External (CDN)
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/cdn/customScss") == false && traverse(site("configuration"), "settings/bootstrap/cdn/enable") == true]
	@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/IncludeExternal.typoscript'
[END]


# google fonts
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/cdn/googlefonts")]
	page {
		includeCSS {
			googleFontCSS = EXT:t3sb_package/Resources/Public/T3SB-CSS/googlefonts.css
		}
	}
[END]


# jQuery
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/disable/jquery") == false]
	@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/jQuery.typoscript'
[END]


# Background Image
# --------------------------------------------------------------------------------------------------------------------------
[{$bootstrap.config.backgroundImageEnable} == 1]
page.cssInline {
	5 = TEXT
	5.value = body {background-repeat:no-repeat;background-position: center center;background-size: cover;background-attachment: fixed}
}
[END]


# DUPE (CDN)
# --------------------------------------------------------------------------------------------------------------------------
[traverse(site("configuration"), "settings/bootstrap/cdn/customScss") == true && traverse(site("configuration"), "settings/bootstrap/cdn/enable") == true]
	@import 'EXT:t3sbootstrap/Configuration/TypoScript/Page/IncludeExternal.typoscript'
[END]

