@import 'EXT:t3sbootstrap/Configuration/TypoScript/Lib/ContentElement.typoscript'

lib.linkTitle = HMENU
lib.linkTitle {
	special = list
	special.value.current = 1
    1 = TMENU
    1 {
    	NO.doNotLinkIt = 1
	}
}

lib.pageTitle = TEXT
lib.pageTitle.data = leveltitle:-1
lib.pageTitle.stdWrap.required = 1

lib.newsTitle = TEXT
lib.newsTitle.data = register:newsTitle
lib.newsTitle.stdWrap.wrap = <li class="breadcrumb-item active">|</li>
lib.newsTitle.stdWrap.required = 1

# used for subdropdown with 2 columns - Navbar.html
lib.mathCeil = TEXT
lib.mathCeil {
	current = 1
	prioriCalc = 1
	round = 1
	round.roundType = ceil
}


lib.currentDate = TEXT
lib.currentDate {
  data = date : U
  strftime = %A, %e. %B %Y
}

lib.currentDomain = TEXT
lib.currentDomain {
	stdWrap.data = getIndpEnv : TYPO3_REQUEST_HOST
	stdWrap.htmlSpecialChars = 1
}


lib.parseFunc_RTE {
  externalBlocks := addToList(pre)
  externalBlocks.pre.stripNL = 1
  externalBlocks {
    table {
      stdWrap {
        wrap = <div class="table-responsive">|</div>
        HTMLparser {
          tags {
            table {
              fixAttrib {
                class {
                  default = table
                  always = 1
                  list = table, table-bordered, table-striped, table-hover, table-sm
                }
              }
            }
          }
        }
      }
    }
  }
}
