Lines Matching refs:attributes

79      * @param TagAttributes $attributes
81 public static function processSkinAttribute(TagAttributes &$attributes)
84 if (!$attributes->hasComponentAttribute(self::SKIN_ATTRIBUTE)) {
87 $skinValue = $attributes->getValueAndRemove(self::SKIN_ATTRIBUTE);
88 if (!$attributes->hasComponentAttribute(TagAttributes::TYPE_KEY)) {
93 $type = $attributes->getValue(TagAttributes::TYPE_KEY);
96 && ($attributes->hasClass("btn-$type")||$attributes->hasClass("alert-$type"))
117 $attributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $color[ColorRgb::COLOR]);
118 $attributes->addStyleDeclarationIfNotSet(BackgroundAttribute::BACKGROUND_COLOR, $color[BackgroundAttribute::BACKGROUND_COLOR]);
119 $attributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, $color[ColorRgb::BORDER_COLOR]);
120 Shadow::addMediumElevation($attributes);
124 $attributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $color[ColorRgb::COLOR]);
125 $attributes->addStyleDeclarationIfNotSet(BackgroundAttribute::BACKGROUND_COLOR, $color[BackgroundAttribute::BACKGROUND_COLOR]);
126 $attributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, $color[ColorRgb::BORDER_COLOR]);
133 $attributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $primaryColor);
134 $attributes->addStyleDeclarationIfNotSet(BackgroundAttribute::BACKGROUND_COLOR, "transparent");
136 if ($attributes->hasStyleDeclaration(ColorRgb::BORDER_COLOR)) {
140 $borderColor = $attributes->getAndRemoveStyleDeclaration(ColorRgb::BORDER_COLOR);
142 $attributes->addStyleDeclarationIfNotSet("border", "1px solid " . $borderColor);
150 $attributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, "$primaryColor!important");
151 $attributes->addStyleDeclarationIfNotSet(BackgroundAttribute::BACKGROUND_COLOR, "transparent");
152 $attributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, "transparent");