$options ) : ?>
type;
} else {
$attribute_type = 'select';
}
if ( ! empty( $swatch_options[ $attribute_name ]['type'] ) && defined( 'ALPUS_VARIATION_SWATCH_VERSION' ) ) {
if ( 'default' === $swatch_options[ $attribute_name ]['type'] ) {
$swatch_type = $attribute_type;
} else {
$swatch_type = $swatch_options[ $attribute_name ]['type'];
}
}
$class = '';
$class .= esc_attr( isset( $swatch_type ) ? $swatch_type : $attribute_type ) . '-type';
$class .= ' product-' . esc_attr( $attribute_name ) . '-swatch';
?>
$options,
)
);
}
} elseif ( 'select' !== $attribute_type ) {
do_action(
'alpha_wc_product_listed_attributes',
array(
$attribute_name => $options,
)
);
}
wc_dropdown_variation_attribute_options(
array(
'options' => $options,
'attribute' => $attribute_name,
'product' => $product,
'type' => isset( $swatch_type ) ? $swatch_type : $attribute_type,
)
);
?>
' . esc_html__( 'Clean All', 'alpus' ) . ' ' ) ) : '';
?>