'', 'zIndexTablet' => '', 'zIndexMobile' => '', ]; } return [ 'zIndex' => '', ]; } public static function get_attribute( $attributeName, $isResponsive = false ) { return [ $attributeName => [ 'type' => 'object', 'default' => self::get_attribute_default_value( $isResponsive ), ] ]; } public static function get_css( $attribute_value, $property = '', $device = '' ) { $default_attar_value = self::get_attribute_default_value( (bool) $device ); $value = wp_parse_args( $attribute_value, $default_attar_value ); $css = []; if ( $value[ 'zIndex' . $device ] ) { $css[ $property ] = $value[ 'zIndex' . $device ]; } return $css; } }