#set ($macroTime = $themePress.startTimestamp("macros.html")) ## Add the font face reference #macro (embeddedFontFace $font $file $fontStyle $fontWeight $svgCode) @font-face { font-family: "$font"; font-style: $!fontStyle; font-weight: $!fontWeight; src: url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.eot"); src: local("$font"),local("$file"), url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.eot?#iefix") format('embedded-opentype'), url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.woff2") format('woff2'), url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.woff") format('woff'), url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.ttf") format("truetype"), url("$brikitCore.directURL/designs/themes/$brikitCore.urlEncode($brikitThemeName)/fonts/${file}.svg#$svgCode") format("svg"); } #end #macro (containerWidthOptionStyles $width $defaultWidth $usingFrame) #if ($usingFrame && !$width.endsWith("%")) max-width: $width; margin: 0 auto; #elseif ($brikitCore.phone) ## Do nothing -- set elsewhere width: 100%; margin: 0 #elseif ($brikitCore.isSet($width) && $width != "auto") width: $width; margin: 0 auto; #elseif ($brikitCore.isSet($defaultWidth) && $defaultWidth != "auto") width: $defaultWidth; margin: 0 auto; #else width: 100%; margin: 0; #end #end #macro (renderBrikitMenu $aPage) #if ($aPage) #end #end #macro (renderArchitectPage $aPage $divId $divClass $skipIfEmptyPage) #if ($aPage) #set ($contentHtml = $themePress.renderCacheableArchitectPage($aPage, $pageId)) #if (!$skipIfEmptyPage || $brikitCore.isSet($contentHtml))
$contentHtml ## To ensure that the footer's bottom clears floating sections
#end #end #end ## Ask Theme Press to bundle the javascript files for the current context #macro (brikitJavaScriptBundle) #set ($bundle = $themePress.javaScriptBundle("$!pageId", "$!spaceKey", false, $isEditing)) #set ($bundle = $themePress.javaScriptBundle("$!pageId", "$!spaceKey", true, $isEditing)) #end ## Ask Theme Press to bundle the css files for the current context, appropriate to $media ("all" or "print") #macro (brikitCssBundle $media) #set ($bundle = $themePress.cssBundle("$media", "$!pageId", "$!spaceKey")) #set ($standardizedMedia = $media) #if ($media == "edit") #set ($standardizedMedia = "all") #end #end ## Used to fake layer/column/block for plain pages #macro (layerOpen $name $cssId $extraClass $startHidden) #end ## Provide the same layer/column/block structure as if the content-layer/content-column/content-block macros were present #macro (fakeLayerOpen $extraClass $editableLayer $containerWidth $fakeBlockId)
#end ## Provide the same layer/column/block structure as if the content-layer/content-column/content-block macros were present #macro (fakeLayerClose)
#end $themePress.stopTimestamp("macros.html", $macroTime)