} } elseif ( 'constrained' ===
$layout_type ) { $content_size =
isset( $layout['contentSize'
] ) ?
$layout['contentSize'
] : '';
$wide_size =
isset( $layout['wideSize'
] ) ?
$layout['wideSize'
] : '';
$justify_content =
isset( $layout['justifyContent'
] ) ?
$layout['justifyContent'
] : 'center';
$all_max_width_value =
$content_size ?
$content_size :
$wide_size;
$wide_max_width_value =
$wide_size ?
$wide_size :
$content_size;
// Make sure there is a single CSS rule, and all tags are stripped for security.
$all_max_width_value =
safecss_filter_attr( explode( ';',
$all_max_width_value )[0
] );
$wide_max_width_value =
safecss_filter_attr( explode( ';',
$wide_max_width_value )[0
] );
$margin_left = 'left' ===
$justify_content ? '0 !important' : 'auto !important';
$margin_right = 'right' ===
$justify_content ? '0 !important' : 'auto !important';
if ( $content_size ||
$wide_size ) { array_push( $layout_styles,
array
( 'selector' => "
$selector > :where(:not(.alignleft):not(.alignright):not(.alignfull))",
'declarations' => array
(