'',
),
$atts
)
);
$class .= ' ' . $el_class;
woodmart_enqueue_inline_style( 'pricing-table' );
ob_start(); ?>
'',
'price_value' => '',
'price_suffix' => 'per month',
'currency' => '',
'features_list' => '',
'label' => '',
'label_color' => 'red',
'link' => '',
'button_label' => '',
'button_type' => 'custom',
'id' => '',
'style' => 'default',
'best_option' => '',
'with_bg_image' => '',
'bg_image' => '',
'css_animation' => 'none',
'el_class' => '',
),
$atts
)
);
$class .= ' ' . $el_class;
$class .= woodmart_get_css_animation( $css_animation );
if ( ! empty( $label ) ) {
$class .= ' price-with-label label-color-' . $label_color;
}
if ( $best_option == 'yes' ) {
$class .= ' price-highlighted';
}
$class .= ' price-style-' . $style;
if ( $with_bg_image == 'yes' && $bg_image ) {
$class .= ' with-bg-image';
$image = woodmart_get_image_src( $bg_image, 'full' );
$bg_style = 'background-image:url(' . esc_url( $image ) . ')';
}
$features_list = str_replace( '
', PHP_EOL, $features_list );
$features_list = str_replace( PHP_EOL . PHP_EOL, PHP_EOL, $features_list );
$features = explode( PHP_EOL, $features_list );
$product = false;
if ( $button_type == 'product' && ! empty( $id ) && function_exists( 'wc_setup_product_data' ) ) {
$product_data = get_post( $id );
$product = is_object( $product_data ) && in_array( $product_data->post_type, array( 'product', 'product_variation' ) ) ? wc_setup_product_data( $product_data ) : false;
}
ob_start();
?>