public function renderLegacyCss()
    {
        $cssFiles = [];
        $cssCodeLines = [];

        foreach ($this->legacyHelper->get('css_files', []) as $cssItem) {
            // List of items can contain empty elements, path to files or code
            if (!empty($cssItem)) {
                if (isset($cssItem[5]) && $this->isFile($cssItem, '.css')) {
                    $cssFiles[] = $cssItem;
                } else {
                    $cssCodeLines[] = $cssItem;
                }
            }
        }

        return $this->environment->render(
            $this->cssTemplate,
            [
                'css_files' => $cssFiles,
                'css_code_lines' => $cssCodeLines,
            ]
        );
    }
public function renderLegacyCss()
    {
        $cssFiles = [];
        $cssCodeLines = [];

        foreach ($this->legacyHelper->get('css_files', []) as $cssItem) {
            // List of items can contain empty elements, path to files or code
            if (!empty($cssItem)) {
                if (isset($cssItem[5]) && $this->isFile($cssItem, '.css')) {
                    $cssFiles[] = $cssItem;
                } else {
                    $cssCodeLines[] = $cssItem;
                }
            }
        }

        return $this->environment->render(
            $this->cssTemplate,
            [
                'css_files' => $cssFiles,
                'css_code_lines' => $cssCodeLines,
            ]
        );
    }
public function renderLegacyCss ( ) { $ cssFiles = [ ] ; $ cssCodeLines = [ ] ; foreach ( $ this -> legacyHelper -> get ( 'css_files' , [ ] ) as $ cssItem ) { // List of items can contain empty elements, path to files or code if ( ! empty ( $ cssItem ) ) { if ( isset ( $ cssItem [ 5 ] ) && $ this -> isFile ( $ cssItem , '.css' ) ) { $ cssFiles [ ] = $ cssItem ; } else { $ cssCodeLines [ ] = $ cssItem ; } } } return $ this -> environment -> render ( $ this -> cssTemplate , [ 'css_files' => $ cssFiles , 'css_code_lines' => $ cssCodeLines , ] ) ; }
Generates script tags to be embedded in the page.

@return string html script and style tags
Generates script tags to be embedded in the page .