Lines Matching refs:self

69         if ($tagAttributes->hasComponentAttribute(self::BACKGROUNDS)) {
70 PluginUtility::getSnippetManager()->attachCssInternalStyleSheet(self::CANONICAL);
71 $backgrounds = $tagAttributes->getValueAndRemove(self::BACKGROUNDS);
83 !isset($background[self::PATTERN_ATTRIBUTE])
90 $backgroundImage = $background[self::BACKGROUND_IMAGE] ?? null;
92 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_IMAGE, $backgroundImage);
94 $backgroundColor = $background[self::BACKGROUND_COLOR] ?? null;
96 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_COLOR, $backgroundColor);
102 $backgroundPosition = $background[self::BACKGROUND_POSITION] ?? null;
104 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_POSITION, $backgroundPosition);
106 $backgroundFill = $background[self::BACKGROUND_FILL] ?? null;
108 $tagAttributes->addComponentAttributeValueIfNotEmpty(self::BACKGROUND_FILL, $backgroundFill);
112 $backgroundTagAttribute->addClassName(self::CANONICAL);
128 $backgroundTagAttribute->addClassName(self::CANONICAL);
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");
184 LogUtility::msg("The background `fill` attribute ($backgroundFill) is unknown. If you want to take over the filling via css, set the `fill` value to `css`.", self::CANONICAL);
200 LogUtility::internalError("The fetcher for the background image ($mediaMarkup) returns an error", self::CANONICAL, $e);
205 LogUtility::error("The background image ($mediaMarkup) is not an image but a $mime", self::CANONICAL);
211 LogUtility::msg("Internal Error: The background image value ($backgroundImageValue) is not a string nor an array", LogUtility::LVL_MSG_ERROR, self::CANONICAL);
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);
257 LogUtility::msg("An image and a linear gradient color are exclusive because a linear gradient color creates an image. You can't use the linear color (" . $colorValue . ") and the image (" . $backgroundImageStyleValue . ")", LogUtility::LVL_MSG_WARNING, self::CANONICAL);
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);
303 if ($tagAttributes->hasComponentAttribute(self::PATTERN_ATTRIBUTE)) {
309 self::PATTERN_CSS_SNIPPET_ID,
315 $patternValue = strtolower($tagAttributes->getValueAndRemove(self::PATTERN_ATTRIBUTE));
322 if (!in_array($lastMinusPart, self::PATTERN_CSS_SIZE)) {
335 if (!in_array($pattern, self::PATTERN_NAMES)) {
336 LogUtility::msg("The pattern (" . $pattern . ") is not a known CSS pattern and was ignored.", LogUtility::LVL_MSG_WARNING, self::CANONICAL);
339 $tagAttributes->addClassName(self::PATTERN_CSS_CLASS_PREFIX . "-" . $pattern . "-" . $size);
342 if (!$tagAttributes->hasComponentAttribute(self::BACKGROUND_COLOR)) {
343 LogUtility::msg("The background color was not set for the background with the (" . $pattern . "). It was set to the default color.", LogUtility::LVL_MSG_INFO, self::CANONICAL);
344 $tagAttributes->addComponentAttributeValue(self::BACKGROUND_COLOR, "steelblue");
349 if ($tagAttributes->hasComponentAttribute(self::PATTERN_COLOR_ATTRIBUTE)) {
350 $patternColor = $tagAttributes->getValueAndRemove(self::PATTERN_COLOR_ATTRIBUTE);
352 LogUtility::msg("The pattern color was not set for the background with the (" . $pattern . "). It was set to the default color.", LogUtility::LVL_MSG_INFO, self::CANONICAL);