芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/fashionmodelquicktrack.com/wp-content/themes/flatsome/inc/shortcodes/ux_stack.php
'', 'class' => '', 'direction' => 'row', 'direction__sm' => null, 'direction__md' => null, 'distribute' => 'start', 'distribute__sm' => null, 'distribute__md' => null, 'align' => 'stretch', 'align__sm' => null, 'align__md' => null, 'gap' => '0', 'gap__sm' => null, 'gap__md' => null, ), $atts, $tag ); $id = 'stack-' . wp_rand(); $classes = array( 'stack' ); if ( ! empty( $atts['class'] ) ) $classes[] = $atts['class']; if ( ! empty( $atts['visibility'] ) ) $classes[] = $atts['visibility']; foreach ( array( '', 'sm', 'md' ) as $value ) { $class_prefix = $value ? "$value:" : ''; $attr_suffix = $value ? "__$value" : ''; if ( $atts[ "direction{$attr_suffix}" ] ) { $classes[] = "{$class_prefix}stack-{$atts["direction{$attr_suffix}"]}"; } if ( $atts[ "distribute{$attr_suffix}" ] ) { $classes[] = "{$class_prefix}justify-{$atts["distribute{$attr_suffix}"]}"; } if ( $atts[ "align{$attr_suffix}" ] ) { $classes[] = "{$class_prefix}items-{$atts["align{$attr_suffix}"]}"; } } ob_start(); ?>
array( 'selector' => '> *', 'property' => '--stack-gap', 'unit' => 'rem', ), ), $atts ); ?>