/** * Shows product gallery * * @param type $atts * @return string */ function ic_product_gallery($atts) { $args = shortcode_atts(array('product' => get_the_ID()), $atts); return get_product_gallery($args['product']); }
/** * Shows product gallery on product page * * @param int $product_id * @param array $single_options * @return string */ function show_product_gallery($product_id, $single_options) { if ($single_options['enable_product_gallery'] == 1) { echo get_product_gallery($product_id, $single_options); } else { return; } }