Kronolith_Calendar::css PHP Метод

css() публичный Метод

Returns the CSS color definition for this calendar.
public css ( boolean $with_attribute = true ) : string
$with_attribute boolean Whether to wrap the colors inside a "style" attribute.
Результат string A CSS string with color definitions.
    public function css($with_attribute = true)
    {
        $css = 'background-color:' . $this->background() . ';color:' . $this->foreground();
        if ($with_attribute) {
            $css = ' style="' . $css . '"';
        }
        return $css;
    }