Dodaje na koniec stosu treść css
@param string $style treść skryptu
@param array $params parametry dodatkowe
@param boolean $conditional warunek np. ie6
@return \Mmi\Mvc\ViewHelper\HeadStyle
18842
public function appendStyle($style, array $params = [], $conditional = '')
    {
        return $this->setStyle($style, $params, false, $conditional);
    }
955325
protected static function replacePattern($pattern, $container, $url, $conditional, $remove_conditional)
    {
        if (array_key_exists($pattern, $container)) {
            $replace = (count(self::$parameters[$pattern]) || $conditional) ? '('.$container[$pattern].')' : $container[$pattern];
            if ($conditional) {
                $replace = ($remove_conditional) ? '' : $replace.'?';
                $url = preg_replace('#\{'.$pattern.'\?\}#', $replace, $url);
            } else {
                $url = preg_replace('#\{'.$pattern.'\}#', $replace, $url);
            }
        }
        return $url;
    }
163305
public function appendFile($src, $type = 'text/javascript', array $params = [], $conditional = '')
    {
        return $this->setFile($src, $type, $params, false, $conditional);
    }
1205932
public function parseStyle($style) {
        $groups = $this->formatParser->parseStyle($style);

        foreach ($groups as $group) {
            $type = $group[1];
            $value = $group[2];

            if (array_contains(['color', 'clr', 'fg'], $type)) {
                foreach (explode(',', $value) as $color) {
                    $this->setColor($color);
                }
            }

            if (array_contains(['background', 'bg'], $type)) {
                foreach (explode(',', $value) as $background) {
                    $this->setBackground($background);
                }
            }

            if (array_contains(['format', 'fmt'], $type)) {
                foreach (explode(',', $value) as $format) {
                    $this->addFormat($format);
                }
            }
        }

        return $this;
    }
1106101
public function pop(OutputFormatterStyleInterface $style = null)
    {
        if (empty($this->styles)) {
            return $this->emptyStyle;
        }

        if (null === $style) {
            return array_pop($this->styles);
        }

        foreach (array_reverse($this->styles, true) as $index => $stackedStyle) {
            if ($style->apply('') === $stackedStyle->apply('')) {
                $this->styles = \array_slice($this->styles, 0, $index);

                return $stackedStyle;
            }
        }

        throw new InvalidArgumentException('Incorrectly nested style tag found.');
    }
431315
public static function getStyle($cssStyle, $prefix) {
		if (is_int($cssStyle)) {
			$styles=CssRef::Styles($prefix);
			if ($cssStyle<sizeof($styles)&&$cssStyle>=0) {
				return CssRef::styles($prefix)[$cssStyle];
			} else {
				throw new \Exception("La valeur passée a propriété `Style` ne fait pas partie des valeurs possibles : index '".$cssStyle."' inexistant");
			}
		}
		if (JString::startsWith($cssStyle, "-")===true) {
			$cssStyle=substr($cssStyle, 1);
		}
		if (JString::startsWith($cssStyle, $prefix)===false) {
			$cssStyle=$prefix."-".$cssStyle;
		}
		return $cssStyle;
	}
1214633
public function removeTextStyle(string $style)
    {
        if (!isset(self::$supportedTextStyles[$style])) {
            throw new InvalidArgumentException("Invalid text style \"$style\"");
        }

        if (($index = array_search($style, $this->textStyles)) !== false) {
            unset($this->textStyles[$index]);
        }
    }
927747
public function getConditionalStyles($pCoordinate = 'A1')
    {
        $pCoordinate = strtoupper($pCoordinate);
        if (!isset($this->conditionalStylesCollection[$pCoordinate])) {
            $this->conditionalStylesCollection[$pCoordinate] = array();
        }
        return $this->conditionalStylesCollection[$pCoordinate];
    }
285118
public function appendStyleFile($fileName, array $params = [], $conditional = '')
    {
        return $this->appendStyle($this->_getStyleContent($fileName), $params, $conditional);
    }
627309
public static function __callstatic($name, $params)
    {
        $knownStyles = static::getKnownStyles();
        $styleID     = $knownStyles[$name];

        $style = static::style($styleID);

        // target string is expected to be:
        $targetString = $params[0][0];

        $element = new TextElement($targetString);
        $element->addStyle($style);

        return $element->render();
    }
1026846
private function _returnKeyAndLogUntranslated($key, array $params)
    {
        //debug log
        \Mmi\App\FrontController::getInstance()->getLogger()->debug('Missing translation: ' . \Mmi\App\FrontController::getInstance()->getEnvironment()->requestUri . ' [' . $this->_locale . '] ' . $key);
        //zwrot klucza
        return $key;
    }
532447
public function headScript(array $params = [], $prepend = false, $conditional = '')
    {
        //jeśli brak parametrów - wyjście
        if (empty($params)) {
            return $this;
        }
        //warunek
        $params['conditional'] = $conditional;
        //skrypt już dodany
        if (array_search($params, $this->_data) !== false) {
            return '';
        }
        //wstawienie przed lub po
        $prepend ? array_unshift($this->_data, $params) : array_push($this->_data, $params);
        return '';
    }
640955
public function bootstrapStyle($style)
    {
        $styles = ['default', 'primary', 'info', 'warning', 'danger'];
        foreach ($styles as $sty) {
            $this->removeClass('btn-' . $sty);
        }

        return $this->class(['btn', 'btn-' . $style]);
    }
258466
public function enqueue_style( $handle, $file, $depends = [], $ver = false, $media = 'all', $dir = 'css' ) {
		$path    = $dir . DS . $file;
		$result  = false;
		$_handle = $handle;
		$index   = 0;
		foreach ( $this->get_check_assets_dirs( true ) as $_dir => $_url ) {
			$_dir = rtrim( $_dir, DS . '/' );
			if ( file_exists( $_dir . DS . $path ) && is_file( $_dir . DS . $path ) ) {
				wp_enqueue_style( $handle, $_url . '/' . $dir . '/' . $file, $depends, $ver, $media );

				if ( ! $this->app->is_theme ) {
					return true;
				}
				$result = true;
				$handle = "{$_handle}-{$index}";
				$index ++;
			}
		}

		return $result;
	}
379132
protected function getParsedPattern(NumberFormat $numberFormat, $style)
    {
        $locale = $numberFormat->getLocale();
        if (!isset($this->parsedPatterns[$locale][$style])) {
            $availablePatterns = $this->getAvailablePatterns($numberFormat);
            if (!isset($availablePatterns[$style])) {
                throw new InvalidArgumentException(sprintf('Unrecognized style "%s".', $style));
            }

            $this->parsedPatterns[$locale][$style] = new ParsedPattern($availablePatterns[$style]);
        }

        return $this->parsedPatterns[$locale][$style];
    }
782884
public static function addParagraphStyle($styleName, $styles) {
		if(!array_key_exists($styleName, self::$_styleElements)) {
			$style = new PHPWord_Style_Paragraph();
			foreach($styles as $key => $value) {
				if(substr($key, 0, 1) != '_') {
					$key = '_'.$key;
				}
				$style->setStyleValue($key, $value);
			}
			
			self::$_styleElements[$styleName] = $style;
		}
	}
303294
public function setStyle(string $style): Bootstrap3Button
    {
        if (in_array($style, $this->supported_styles) === true) {
            $this->style = $style;
        } else {
            $this->style = 'default';
        }

        return $this;
    }