get('contao.routing.scope_matcher')->isFrontendRequest($request))
{
$GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/display-text.min.css|static';
}
$strText = $model->vr_dt_plainText ?: '';
if (!empty($strText) && !preg_match("/^h[1-3]$/",$model->vr_dt_size))
{
$strText = '
vr_dt_size) ? ' class="text-' . strtolower(StringUtil::prepareSlug($model->vr_dt_size)) . '"' : '') . '>' . $strText . '
';
} else {
$strText = '<' . strtolower($model->vr_dt_size) . '>' . $strText . '' . strtolower($model->vr_dt_size) . '>';
}
$template->set('text', $strText);
return $template->getResponse();
}
}