get( 'Version' ) ) ); if ( is_product() ) { wp_enqueue_script( 'billiard_woocommerce_js', get_template_directory_uri() . '/woocommerce-support.js', array( 'jquery' ), apply_filters( 'billiard_version_filter', $billiard->get( 'Version' )), true ); } } } add_action( 'wp_enqueue_scripts', 'billiard_woocommerce_scripts'); /* eccommerce_theme_options filters */ if ( ! function_exists('billiard_woocommerce_theme_options')) { function billiard_woocommerce_theme_options($options) { $options = array(); $options[] = array( 'name' => 'ecommerce_options', 'title' => 'Ecommerce', 'icon' => 'fa fa-shopping-cart', // begin: fields 'fields' => array( array( 'id' => 'shop_heading_image', 'type' => 'image', 'title' => esc_html__('Shop heading Image', 'billiard'), ), array( 'id' => 'shop_heading_title', 'type' => 'text', 'title' => esc_html__('Shop heading title', 'billiard'), ), array( 'id' => 'shop_heading_subtitle', 'type' => 'text', 'title' => esc_html__('Shop heading subtitle', 'billiard'), ), array( 'id' => 'products_per_row', 'type' => 'select', 'title' => esc_html__('Products per row', 'billiard'), 'options' => array( 'col-md-4' => esc_html__('Three columns', 'billiard'), 'col-md-3' => esc_html__('Four columns', 'billiard'), 'col-md-6' => esc_html__('Two columns', 'billiard'), ), 'default' => esc_html__('col-md-4', 'billiard'), ), ), ); return $options; } } add_filter( 'eccommerce_theme_options', 'billiard_woocommerce_theme_options' ); /* add banner to shop page */ if ( ! function_exists('billiard_add_shop_banner')) { function billiard_add_shop_banner( ) { $class_banner = cs_get_option('shop_heading_image') ? 'banner-text-white' : ''; ?>