Initialises CssMin.

@return void
489399
public static function initialise()
		{
		// Create the class index for autoloading or including
		$paths = array(dirname(__FILE__));
		while (list($i, $path) = each($paths))
			{
			$subDirectorys = glob($path . "*", GLOB_MARK | GLOB_ONLYDIR | GLOB_NOSORT);
			if (is_array($subDirectorys))
				{
				foreach ($subDirectorys as $subDirectory)
					{
					$paths[] = $subDirectory;
					}
				}
			$files = glob($path . "*.php", 0);
			if (is_array($files))
				{
				foreach ($files as $file)
					{
					$class = substr(basename($file), 0, -4);
					self::$classIndex[$class] = $file;
					}
				}
			}
		krsort(self::$classIndex);
		// Only use autoloading if spl_autoload_register() is available and no __autoload() is defined (because 
		// __autoload() breaks if spl_autoload_register() is used. 
		if (function_exists("spl_autoload_register") && !is_callable("__autoload"))
			{
			spl_autoload_register(array(__CLASS__, "autoload"));
			}
		// Otherwise include all class files
		else
			{
			foreach (self::$classIndex as $class => $file)
				{
				if (!class_exists($class))
					{
					require_once($file);
					}
				}
			}
		}
863260
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.reveal.js' : 'foundation.min.js'
        );

        Html::addCssClass($this->htmlOptions, Enum::DIALOG);
        $this->setId(ArrayHelper::removeValue($this->htmlOptions, 'id', $this->getId()));
        $this->registerClientScript();
        parent::init();

        $this->htmlOptions['id'] = $this->getId();

        echo $this->renderToggleButton() . "\n";
        echo \CHtml::openTag('div', $this->htmlOptions) . "\n";
        echo $this->renderHeader() . "\n";
    }
94255
private function initialize(): void
    {
        if (!$this->isBootstrapLayout()) {
            return;
        }

        switch ($this->layout->cols) {
            case '2cll':
                $this->leftClass = $this->layout->bs_leftClass;
                $this->mainClass = $this->layout->bs_mainClass;
                break;

            case '2clr':
                $this->rightClass = $this->layout->bs_rightClass;
                $this->mainClass  = $this->layout->bs_mainClass;
                break;

            case '3cl':
                $this->leftClass  = $this->layout->bs_leftClass;
                $this->rightClass = $this->layout->bs_rightClass;
                $this->mainClass  = $this->layout->bs_mainClass;
                break;

            default:
                $this->useGrid = false;

                return;
        }

        $this->useGrid = true;
    }
337841
public function init() {

		parent::init();

		// Views
		$this->setViewPath( '@cmsgears/module-community/admin/views/group' );

		// Config
		$this->reviews		= true;
		$this->prettyReview	= false;

		// Services
		$this->templateService		= Yii::$app->factory->get( 'templateService' );
		$this->modelContentService	= Yii::$app->factory->get( 'modelContentService' );
	}
66590
public function init()
    {
        $this->assets = array(
            'js' => YII_DEBUG ? 'foundation/foundation.section.js' : 'foundation.min.js'
        );

        Html::addCssClass($this->htmlOptions, Enum::SECTION_CONTAINER);
        Html::addCssClass($this->htmlOptions, $this->style);
        ArrayHelper::addValue('data-section', $this->style, $this->htmlOptions);
        $this->registerClientScript();
        parent::init();
    }
119982
public function init()
    {
        $this->typeTemplate = strtr($this->typeTemplate, array('{class}' => $this->chartCssClass));
        parent::init();
    }
30136
public function init()
    {
        if (!isset($this->containerOptions['class'])) {
            Html::addCssClass($this->containerOptions, ['breadcrumbsContainer' => 'breadcrumbs']);
        }

        if (!isset($this->options['class'])) {
            Html::addCssClass($this->options, ['wrapper' => 'nav-wrapper']);
        }

        if ($this->innerContainerOptions !== false && !isset($this->innerContainerOptions['class'])) {
            Html::addCssClass($this->innerContainerOptions, ['innerContainer' => 'col s12']);
        }
    }
704378
final public function init()
    {
        $this->sourcePath = $this->getSourcePath();
        $this->depends    = [CpAsset::class];

        $this->js  = $this->getScripts();
        $this->css = $this->getStylesheets();

        parent::init();
    }
1355294
public static function init()
    {
        foreach (self::$_registeredThemes as $registeredTheme) {
            $theme = self::_initializeTheme($registeredTheme);
            self::$_themes[$theme->id()] = $theme;
        }

        self::$_initialized = true;
    }
712021
public function Initialize() {
      parent::Initialize();
      $this->ShowOptions = TRUE;
      $this->Menu->HighlightRoute('/discussions');
      $this->AddCssFile('vanilla.css');
		$this->AddJsFile('discussions.js');
			
		// Inform moderator of checked comments in this discussion
		$CheckedDiscussions = Gdn::Session()->GetAttribute('CheckedDiscussions', array());
		if (count($CheckedDiscussions) > 0)
			ModerationController::InformCheckedDiscussions($this);
         
      $this->CountCommentsPerPage = C('Vanilla.Comments.PerPage', 30);
         
		$this->FireEvent('AfterInitialize');
   }
843430
protected function _init() {
        /* ############## APP ############## */

        /* ## LANG ## */
        if ($handle = opendir(APP_RESOURCE_LANG_PATH)) {
            while (false !== ($entry = readdir($handle))) {
                if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {
                    $this->_parseLang(null, str_replace('.xml', '', $entry));
                }
            }

            closedir($handle);
        }

        /* ## TEMPLATE ## */
        $this->config['template']['app'] = APP_RESOURCE_TEMPLATE_PATH;
        /* ## CSS ## */
        $this->config['css']['app'] = WEB_PATH . 'app/' . WEB_CSS_PATH;
        /* ## IMAGE ## */
        $this->config['img']['app'] = WEB_PATH . 'app/' . WEB_IMAGE_PATH;
        /* ## FILE ## */
        $this->config['file']['app'] = WEB_PATH . 'app/' . WEB_FILE_PATH;
        /* ## JS ## */
        $this->config['js']['app'] = WEB_PATH . 'app/' . WEB_JS_PATH;

        /* ############## SRC ############## */

        if ($handleSrc = opendir(SRC_PATH)) {
            while (false !== ($entrySrc = readdir($handleSrc))) {
                if (is_dir(SRC_PATH . $entrySrc) && $entrySrc != '.' && $entrySrc != '..') {
                    /* ## ROUTE ## */
                    $this->_parseRoute($entrySrc);

                    /* ## LANG ## */
                    if ($handle = opendir(SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_LANG_PATH)) {
                        while (false !== ($entry = readdir($handle))) {
                            if (preg_match('#(' . preg_quote('.xml') . ')$#isU', $entry)) {
                                $lang = str_replace('.xml', '', $entry);
                                $this->_parseLang($entrySrc, $lang);
                            }
                        }

                        closedir($handle);
                    }

                    /* ## TEMPLATE ## */
                    $this->config['template']['' . $entrySrc . ''] = SRC_PATH . $entrySrc . '/' . SRC_RESOURCE_TEMPLATE_PATH;
                    /* ## CSS ## */
                    $this->config['css']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_CSS_PATH;
                    /* ## IMAGE ## */
                    $this->config['img']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_IMAGE_PATH;
                    /* ## FILE ## */
                    $this->config['file']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_FILE_PATH;
                    /* ## JS ## */
                    $this->config['js']['' . $entrySrc . ''] = WEB_PATH . $entrySrc . '/' . WEB_JS_PATH;
                    /* ## FIREWALL ## */
                    $this->_parseFirewall($entrySrc);

                    //copy app lang in each other module lang
                    foreach ($this->config['lang'] as $key => $value) {
                        if ($key != 'app') {
                            foreach ($value as $key2 => $value2) {
                                $this->config['lang']['' . $key . '']['' . $key2 . ''] = array_merge($this->config['lang']['app']['' . $key2 . ''], $value2);
                            }
                        }
                    }

                    /* ## ANNOTATIONS ## */
                    $controllers = scandir(SRC_PATH . $entrySrc . '/' . SRC_CONTROLLER_PATH);

                    foreach ($controllers as $controller) {
                        if (strlen($controller) > 2) {
                            $annotation = Annotation::getClass('Src\\' . $entrySrc . '\\Controller\\' . basename($controller, '.php'));
                            $this->_parseAnnotationRoute($entrySrc, $controller, $annotation);
                            $this->_parseAnnotationCron($entrySrc, $controller, $annotation);
                        }
                    }

                    /* ## ENTITIES ## */
                    $entities = scandir(APP_RESOURCE_ENTITY_PATH);

                    foreach ($entities as $entity) {
                        if (strlen($entity) > 2 && strstr($entity, '.')) {
                            Annotation::getClass('\\Gcs\\App\Resource\\Entity\\' . basename($entity, '.php'));
                        }
                    }
                }
            }

            closedir($handleSrc);
        }
        else {
            throw new Exception('The directory ' . SRC_PATH . 'doesn\'t exist');
        }

        if ($this->config['user']['output']['cache']['config']) {
            $this->_cache->setContent($this->config);
            $this->_cache->setCache();
        }
    }
366909
public function initialize()
    {
        parent::initialize();

        //Sets the theme from configuration
        if (getConfig('default.theme')) {
            $this->setTheme(getConfig('default.theme'));
        }

        //Loads helpers
        $this->loadHelper('Html', ['className' => 'MeTools.Html']);
        $this->loadHelper('MeTools.Dropdown');
        $this->loadHelper('MeTools.Form');
        $this->loadHelper('MeTools.Library');
        $this->loadHelper('MeTools.Paginator');
        $this->loadHelper('Assets.Asset');
        $this->loadHelper('Thumber.Thumb');
        $this->loadHelper('WyriHaximus/MinifyHtml.MinifyHtml');
    }
1365265
public function init() {
    parent::init();

    Html::addCssClass($this->options, 'f-dropdown');
    $this->options['data-dropdown-content'] = 1;
    $this->options['tabindex'] = '-1';
    $this->_containerOptions = $this->options;
  }
122868
protected function InitForm()
    {
        $this->logout = $this->LoadElement();
        $this->AddNextUrlField();
        $this->AddCssIDField();
        $this->AddCssClassField();
        $this->AddTemplateField();
        $this->AddSubmit();
    }
613487
public function init()
	{
		$asset = Yii::app()->assetManager->publish(YiiBase::getPathOfAlias('cii.assets.dist'), true, -1, YII_DEBUG);

		// Register CSS and Scripts
		Yii::app()->clientScript->registerScriptFile($asset. (YII_DEBUG ? '/ciimscomments.js' : '/ciimscomments.min.js'), CClientScript::POS_END);
		Yii::app()->clientScript->registerCssFile($asset. (YII_DEBUG ? '/ciimscomments.css' : '/ciimscomments.min.css'));
		
		if ($this->content != false)
			$this->renderCommentBox();
		else
			$this->renderCommentCount();
	}
851012
public function init(){
		// set the htmleditor "content_css" based on the active site
		$htmlEditorConfig = HtmlEditorConfig::get_active();
		$site = Multisites::inst()->getActiveSite();
		if($site && $theme = $site->getSiteTheme()){

			$editorCSS = Config::inst()->get(CMSMain::class, 'multisites_editor_css_dir');
			if (isset($editorCSS[$theme])) {
				$cssFile = THEMES_DIR . "/$theme/" . $editorCSS[$theme] . "/editor.css";
			} else {
				$cssFile = THEMES_DIR . "/$theme/css/editor.css";
			}
			
			if(file_exists(BASE_PATH . '/' . $cssFile)){
				// NOTE: This ensures editor.css is invalided properly when it's updated.
				$cssFile = $cssFile.'?m='.filemtime(BASE_PATH.'/'.$cssFile);
				
				$htmlEditorConfig->setOption('content_css', $cssFile);
				
				if($this->owner->getRequest()->isAjax() && $this->owner instanceof CMSPageEditController){
					// Add editor css path to header so javascript can update ssTinyMceConfig.content_css
					$this->owner->getResponse()->addHeader('X-HTMLEditor_content_css', $cssFile);	
				}
				
			}	
		}
	}
1136765
public function init()
    {
        parent::init();
        Html::removeCssClass($this->options, ['widget' => 'nav']);
        Html::addCssClass($this->options, [
            'navlist' => $this->warpClass
        ]);
    }