Lines Matching defs:tagAttributes

63     public static function processBackgroundAttributes(TagAttributes &$tagAttributes)
69 if ($tagAttributes->hasComponentAttribute(self::BACKGROUNDS)) {
71 $backgrounds = $tagAttributes->getValueAndRemove(self::BACKGROUNDS);
92 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_IMAGE, $backgroundImage);
96 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_COLOR, $backgroundColor);
100 $tagAttributes->addComponentAttributeValueIfNotEmpty(Opacity::OPACITY_ATTRIBUTE, $opacityAttribute);
104 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_POSITION, $backgroundPosition);
108 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_FILL, $backgroundFill);
117 $tagAttributes->addHtmlAfterEnterTag($backgroundHTML);
132 $tagAttributes->addHtmlAfterEnterTag($backgroundHTML);
141 if ($tagAttributes->hasComponentAttribute(self::BACKGROUND_IMAGE)) {
142 $backgroundImageValue = $tagAttributes->getValueAndRemove(self::BACKGROUND_IMAGE);
147 $backgroundImageStyleValue = $tagAttributes->getValueAndRemove(self::BACKGROUND_IMAGE);
156 $backgroundFill = $tagAttributes->getValueAndRemove(self::BACKGROUND_FILL, "cover");
160 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_SIZE, $backgroundFill);
161 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_REPEAT, "no-repeat");
162 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_POSITION, "center center");
172 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_REPEAT, "repeat");
217 if ($tagAttributes->hasComponentAttribute(Opacity::OPACITY_ATTRIBUTE)) {
218 $opacity = $tagAttributes->getValueAndRemove(Opacity::OPACITY_ATTRIBUTE);
231 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_IMAGE, $backgroundImageStyleValue);
241 self::processPatternAttribute($tagAttributes);
246 if ($tagAttributes->hasComponentAttribute(self::BACKGROUND_COLOR)) {
248 $colorValue = $tagAttributes->getValueAndRemove(self::BACKGROUND_COLOR);
260 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_IMAGE, 'linear-gradient(to top,#fff 0,' . ColorRgb::createFromString($mainColorValue)->toCssValue() . ' 100%)');
261 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_COLOR, 'unset!important');
266 $tagAttributes->addStyleDeclarationIfNotSet(self::BACKGROUND_COLOR, $colorValue);
293 * @param TagAttributes $tagAttributes
298 private static function processPatternAttribute(TagAttributes &$tagAttributes)
303 if ($tagAttributes->hasComponentAttribute(self::PATTERN_ATTRIBUTE)) {
315 $patternValue = strtolower($tagAttributes->getValueAndRemove(self::PATTERN_ATTRIBUTE));
339 $tagAttributes->addClassName(self::PATTERN_CSS_CLASS_PREFIX . "-" . $pattern . "-" . $size);
342 if (!$tagAttributes->hasComponentAttribute(self::BACKGROUND_COLOR)) {
344 $tagAttributes->addComponentAttributeValue(self::BACKGROUND_COLOR, "steelblue");
349 if ($tagAttributes->hasComponentAttribute(self::PATTERN_COLOR_ATTRIBUTE)) {
350 $patternColor = $tagAttributes->getValueAndRemove(self::PATTERN_COLOR_ATTRIBUTE);
355 $tagAttributes->addStyleDeclarationIfNotSet(ColorRgb::COLOR, $patternColor);