Sets the CSS classes to be applied to the containing `<ul>` element. Can
be passed a string or an array. If passed a string, separate CSS classes
should be separated with spaces.

@param string|array $cssClasses
@return $this
325060
public function setCssClasses($cssClasses)
    {
        if (is_string($cssClasses)) {
            $cssClasses = explode(' ', $cssClasses);
        }

        if (!is_array($cssClasses)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setCssClasses() only accepts strings or arrays, but '
                . (is_object($cssClasses) ? get_class($cssClasses) : gettype($cssClasses))
                . ' given: ' . print_r($cssClasses, true)
            );
        }

        foreach ($cssClasses as $key => $cssClass) {
            if (!is_string($cssClass)) {
                throw new \InvalidArgumentException(
                    'Breadcrumbs::setCssClasses() was passed an array, but at least one of the values was not a '
                    . 'string: $cssClasses[' . $key . '] = ' . print_r($cssClass, true)
                );
            }
        }

        $this->breadcrumbsCssClasses = array_unique($cssClasses);

        return $this;
    }
914138
protected function removeCss($css)
    {
        $key=array_keys($this->data['css']['internal'],$css);
        if($key){
            array_splice($this->data['css']['internal'],$key[0],1);
        }

        $key=array_keys($this->data['css']['external'],$css);
        if($key){
            array_splice($this->data['css']['external'],$key[0],1);
        }
    }
24450
protected function setCssClass(Attributes $attributes)
    {
        $attributes->addClass('btn');

        if ($this->cssID[1] == '') {
            $attributes->addClass('btn-default');
        } else {
            $attributes->addClass($this->cssID[1]);
        }
    }
448134
public function apply(array &$tokens)
		{
		$r = 0;
		for ($i = 0, $l = count($tokens); $i < $l; $i++)
			{
			if (get_class($tokens[$i]) === "CssCommentToken")
				{
				$tokens[$i] = null;
				$r++;
				}
			}
		return $r;
		}
317032
public function CSSClasses($stopAtClass = 'DataObject')
    {
        $classes = strtolower(parent::CSSClasses($stopAtClass));

        if (!empty($classes) && ($prefix = $this->blockManager->getPrefixDefaultCSSClasses())) {
            $classes = $prefix.str_replace(' ', " {$prefix}", $classes);
        }

        if ($this->blockManager->getUseExtraCSSClasses()) {
            $classes = $this->ExtraCSSClasses ? $classes." $this->ExtraCSSClasses" : $classes;
        }

        return $classes;
    }
1363743
public function TagWithClass($cssclass) {
			if($this->owner->exists()) {
				$url = $this->owner->getURL();
				$title = ($this->owner->Title) ? $this->owner->Title : $this->owner->Filename;
				if($this->owner->Title) {
					$title = Convert::raw2att($this->owner->Title);
				} else {
					if(preg_match("/([^\/]*)\.[a-zA-Z0-9]{1,6}$/", $title, $matches)) {
						$title = Convert::raw2att($matches[1]);
					}
				}
				return "<img src=\"$url\" alt=\"$title\" class=\"$cssclass\" />";
			}
		}
753349
public function setCssFiles(array $cssFiles)
    {
        $this->cssFiles = ArrayUtils::merge($this->cssFiles, $cssFiles);
        return $this;
    }
809196
public function wrapperClass($classes = [])
    {
        $classes = !is_array($classes) ? explode(' ', $classes) : $classes;
        $classes[] = 'wrapper';
        $classes[] = sprintf('template-%s', $this->template);

        if (is_active_sidebar(sprintf('sidebar-%s', $this->template))) {
            $classes[] = 'active-sidebar';
        }

        if (has_nav_menu('main-menu')) {
            $classes[] = 'active-main-menu';
        }

        if (is_active_sidebar('header-widgets')) {
            $classes[] = 'active-header-widgets';
        }

        $i = 0;
        if (is_active_sidebar('footer-one')) $i++;
        if (is_active_sidebar('footer-two')) $i++;
        if (is_active_sidebar('footer-three')) $i++;
        if (is_active_sidebar('footer-four')) $i++;

        switch ($i) {
            case 1:
                $classes[] = 'active-footers-one';
                break;
            case 2:
                $classes[] = 'active-footers-two';
                break;
            case 3:
                $classes[] = 'active-footers-three';
                break;
            case 4:
                $classes[] = 'active-footers-four';
                break;
            default:
                break;
        }

        $classes = apply_filters('novusopress_view_wrapper_classes', $classes);
        $output = sprintf('class="%s"', implode(' ', $classes));

        return apply_filters('novusopress_view_wrapper_class_output', $output);
    }
29832
public function setStyle($cssStyle) {
		return $this->setMemberCtrl($this->style,CssRef::getStyle($cssStyle, "progress-bar"), CssRef::Styles("progress-bar"));
	}
387484
protected function removeElementClasses(string $option, $classes): Breadcrumbs
    {
        if (is_string($classes)) {
            $classes = explode(' ', $classes);
        }
        $this->validateClasses($classes);

        $classes = array_diff(
            $this->getOption($option),
            $classes
        );
        $this->setOption($option, array_unique($classes));

        return $this;
    }
177287
public function setAttachments($attachments)
    {
        $this->removeAttachments();

        if (is_array($attachments)) {
            foreach ($attachments as $attachment) {
                $this->addAttachment($attachment);
            }
        }

        return $this;
    }
397744
public function setParentClasses(array $classNames)
    {
        $this->parentClasses = $classNames;
        if (count($classNames) > 0) {
            $this->rootXmlEntityName = array_pop($classNames);
        }
    }
1250757
public function strip($css)
    {
        /**
         * @var \DOMNode $node
         */
        $query = $this->_document->getQuery();
        foreach ($this->_nodes as $node) {
            foreach ($query->css($css, $node) as $node2) {
                $node2->parentNode->replaceChild(new \DOMText($node2->textContent), $node2);
            }
        }

        return $this;
    }
1069651
public function appendStyle($cssStyle)
    {
        $cssStyle = trim($cssStyle, " \n;");
        $cssStyle && $this->styles[] = $cssStyle;
        return $this;
    }
621029
public function setColumns($columnText, $css = null, $class = null)
    {
        
        $ctr = 0;
        $text = '';
        $colCss = array();
        $dataClass = '';
        $thClass = '';

        foreach($columnText as $values)
        {
            $text .= '<th '.$dataClass.' class="'.$class.'">' . $values . '</th>';
            $ctr++;
        }

        
        $this->_columns .=  $text;
    }
1160282
public function getClassForRoutes(array $routes, $cssClass = 'active')
    {
        $classes = [];

        foreach ($routes as $route) {
            $classes[] = $this->getClassForRoute($route, $cssClass);
        }
        $classes = array_unique($classes);

        return implode(' ', $classes);
    }
1131442
public function apply(array &$tokens)
		{
		for ($i = 0, $l = count($tokens); $i < $l; $i++)
			{
			$current	= get_class($tokens[$i]);
			$next		= isset($tokens[$i+1]) ? get_class($tokens[$i+1]) : false;
			if (($current === "CssRulesetDeclarationToken" && $next === "CssRulesetEndToken") ||
				($current === "CssAtFontFaceDeclarationToken" && $next === "CssAtFontFaceEndToken") || 
				($current === "CssAtPageDeclarationToken" && $next === "CssAtPageEndToken"))
				{
				$tokens[$i]->IsLast = true;
				}
			}
		return 0;
		}