Beispiel #1
0
    }
}
// Set GeneratorTag
$this->setGenerator($setGeneratorTag);
// Style sheets
$doc->addStyleDeclaration('.yt-main{width:' . $yt_render->ytmain_width . '; margin:0 auto}');
$doc->addStyleDeclaration('body{font-family:' . $font_name . '}');
if ($googleWebFont != "" && $googleWebFont != " ") {
    $googleWebFontFamily = str_replace("+", " ", $googleWebFont);
    $doc->addStyleSheet('http://fonts.googleapis.com/css?family=' . $googleWebFont . '');
    if (strpos($googleWebFontFamily, ':')) {
        $googleWebFontFamily = substr($googleWebFontFamily, 0, strpos($googleWebFontFamily, ':'));
    }
    $doc->addStyleDeclaration('  ' . $googleWebFontTargets . '{font-family:' . $googleWebFontFamily . ', serif !important}');
}
$doc->addStyleSheet($yt->baseurl() . 'templates/system/css/system.css', 'text/css');
$doc->addStyleSheet($yt->baseurl() . 'templates/system/css/general.css', 'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/base.css', 'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/template.css', 'text/css');
if (isset($yt_render->arr_TH['stylesheet'])) {
    foreach ($yt_render->arr_TH['stylesheet'] as $tagStyle) {
        $doc->addStyleSheet($yt->templateurl() . 'css/' . $tagStyle, 'text/css');
    }
}
//$doc->addStyleSheet($yt->templateurl().'css/css3.php?url='.$yt->templateurl(),'text/css');
$doc->addStyleSheet($yt->templateurl() . 'css/typography.css', 'text/css');
// Add css include from layout file
$arr_style = $yt->getStyleSite();
if (!empty($arr_style)) {
    $doc->addStyleSheet($yt->templateurl() . 'css/color/' . $arr_style['filestyle'] . '.css', 'text/css');
}