<?php if (MParams::getHtmlDoctype() === 'transitional') { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php } elseif (MParams::getHtmlDoctype() === 'strict') { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="<?php echo MParams::getLanguage(); ?> " /> <meta name="robots" content="all" /> <meta name="description" content="<?php echo MParams::getMetaDescription(); ?> " /> <meta name="keywords" content="<?php echo MParams::getMetaKeywordsAsString(); ?> " /> <link rel="shortcut icon" href="<?php echo Yii::app()->request->baseUrl; ?> /static/images/favicon.ico" type="image/x-icon" /> <?php
/** * Generate css classes for html's tag "body". * <body class="_return_"> * @return string */ public static function getBodytagCssClass() { $c = array(); if (MParams::getHtmlDoctype() === 'transitional') { $c['doctype'] = 'w3-doctype-transitional'; } else { if (MParams::getHtmlDoctype() === 'strict') { $c['doctype'] = 'w3-doctype-strict'; } } if (!self::hasContent() && !self::hasSidebar1() && !self::hasSidebar2()) { ($c['column'] = 'w3-layout-zero-column') && ($c['columnD'] = 'w3-layout'); } else { if (self::hasContent() && !self::hasSidebar1() && !self::hasSidebar2()) { ($c['column'] = 'w3-layout-one-column') && ($c['columnD'] = 'w3-layout-content'); } else { if (!self::hasContent() && self::hasSidebar1() && !self::hasSidebar2()) { ($c['column'] = 'w3-layout-one-column') && ($c['columnD'] = 'w3-layout-sidebar1'); } else { if (!self::hasContent() && !self::hasSidebar1() && self::hasSidebar2()) { ($c['column'] = 'w3-layout-one-column') && ($c['columnD'] = 'w3-layout-sidebar2'); } else { if (self::hasContent() && self::hasSidebar1() && !self::hasSidebar2()) { ($c['column'] = 'w3-layout-two-column') && ($c['columnD'] = 'w3-layout-sidebar1-content'); } else { if (!self::hasContent() && self::hasSidebar1() && self::hasSidebar2()) { ($c['column'] = 'w3-layout-two-column') && ($c['columnD'] = 'w3-layout-sidebar1-sidebar2'); } else { if (self::hasContent() && !self::hasSidebar1() && self::hasSidebar2()) { ($c['column'] = 'w3-layout-two-column') && ($c['columnD'] = 'w3-layout-content-sidebar2'); } else { if (self::hasContent() && self::hasSidebar1() && self::hasSidebar2()) { ($c['column'] = 'w3-layout-three-column') && ($c['columnD'] = 'w3-layout-sidebar1-content-sidebar2'); } } } } } } } } $c['controller'] = 'w3-controller-' . Yii::app()->controller->id; $c['controllerAction'] = $c['controller'] . '-' . Yii::app()->controller->action->id; $c['interface'] = 'w3-interface-' . MParams::getInterface(); return implode(' ', $c); }