/** * This is where the system is being initialized from. */ public function init() { // Yii initialization is a must parent::init(); // universal storage $this->var = new MVariable(); // call our initialization class W3Init::controller(); // set user preferences (interface, language, and so on) if (!Yii::app()->user->isGuest) { if (isset(Yii::app()->user->interface) && !empty(Yii::app()->user->interface)) { // set user preferred interface W3::setInterface(Yii::app()->user->interface); } if (isset(Yii::app()->user->language) && !empty(Yii::app()->user->language)) { // set user preferred language W3::setLanguage(Yii::app()->user->language); } } // parameters were loaded before language was set, now they need to be translated MParams::i18n(); }
" /> <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 W3Init::jsCss(); /*MLayout::setWrapInGridCssClass(false); if(!MLayout::getWrapInGridCssClass()): Yii::app()->getClientScript()->registerCss('enlargeSidebar',".container_16 .grid_4 {width: 240px;}"); endif;*/ ?> <title><?php echo $this->pageTitle; ?> </title> </head> <body class="<?php echo MLayout::getBodytagCssClass(); ?> ">