Animation.php
4 years ago
Background.php
1 year ago
BackgroundImage.php
1 year ago
Border.php
2 years ago
BoxShadow.php
4 years ago
ColumnWidth.php
4 years ago
CustomHeight.php
4 years ago
CustomSize.php
4 years ago
Gap.php
4 years ago
Height.php
4 years ago
JustifyContent.php
4 years ago
MaxWidth.php
4 years ago
MultipleImage.php
4 years ago
ObjectCss.php
4 years ago
Opacity.php
4 years ago
Property.php
4 years ago
PropertyBase.php
4 years ago
Size.php
4 years ago
Stroke.php
4 years ago
TBLR.php
4 years ago
TextShadow.php
4 years ago
Transform.php
2 years ago
Transition.php
4 years ago
Typography.php
2 years ago
UnitValuePercentage.php
4 years ago
UnitValuePx.php
4 years ago
ValueProxy.php
4 years ago
Width.php
4 years ago
JustifyContent.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kubio\Core\StyleManager\Props; |
| 4 | |
| 5 | use Kubio\Core\StyleManager\ParserUtils; |
| 6 | |
| 7 | class JustifyContent extends PropertyBase { |
| 8 | public function parse( $value, $options ) { |
| 9 | if ( $value === 'right' ) { |
| 10 | $value = 'flex-end'; |
| 11 | } |
| 12 | |
| 13 | if ( $value === 'left' ) { |
| 14 | $value = 'flex-start'; |
| 15 | } |
| 16 | |
| 17 | $style = array(); |
| 18 | $style = ParserUtils::addValueUnitString( $style, 'justify-content', $value ); |
| 19 | return $style; |
| 20 | } |
| 21 | } |
| 22 | |
| 23 |