Skip to content

Commit

Permalink
Add missing import from XML Styles: hideOn...
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Nov 20, 2023
1 parent 00cefc1 commit cae89be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions concrete/src/StyleCustomizer/Inline/StyleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,17 @@ public static function import(SimpleXMLElement $node)
$o->setRotate((string) $node->rotate);
$o->setBoxShadowHorizontal((string) $node->boxShadowHorizontal);
$o->setBoxShadowVertical((string) $node->boxShadowVertical);
$o->setBoxShadowSpread((string) $node->boxShadowSpread);
$o->setBoxShadowBlur((string) $node->boxShadowBlur);
$o->setBoxShadowSpread((string) $node->boxShadowSpread);
$o->setBoxShadowColor((string) $node->boxShadowColor);
$o->setBoxShadowInset((bool) $node->boxShadowInset);
$o->setBoxShadowInset(filter_var((string) $node->boxShadowInset, FILTER_VALIDATE_BOOLEAN));
$o->setCustomClass((string) $node->customClass);
$o->setCustomID((string) $node->customID);
$o->setCustomElementAttribute((string) $node->customElementAttribute);
$o->setHideOnExtraSmallDevice(filter_var((string) $node->hideOnExtraSmallDevice, FILTER_VALIDATE_BOOLEAN));
$o->setHideOnSmallDevice(filter_var((string) $node->hideOnSmallDevice, FILTER_VALIDATE_BOOLEAN));
$o->setHideOnMediumDevice(filter_var((string) $node->hideOnMediumDevice, FILTER_VALIDATE_BOOLEAN));
$o->setHideOnLargeDevice(filter_var((string) $node->hideOnLargeDevice, FILTER_VALIDATE_BOOLEAN));

$o->save();

Expand Down

0 comments on commit cae89be

Please sign in to comment.