Created
October 15, 2014 06:55
-
-
Save ShurikAg/546ec455e5edc8edd723 to your computer and use it in GitHub Desktop.
wp-content/themes/oxygen/woocommerce/content-product.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$post = $post_cloned; | |
unset($post_cloned); | |
// if($product_images) | |
// { | |
foreach($product_images as $attachment_id): | |
$image_link = wp_get_attachment_url( $attachment_id ); | |
if( ! $image_link) | |
continue; | |
$product_images_urls[] = $image_link; | |
$product_images_urls_ids[$image_link] = $attachment_id; | |
endforeach; | |
if($product_images_urls) | |
$classes[] = 'has-gallery'; | |
// } | |
# end: modified by Arlind Nushi | |
?> | |
<div <?php post_class( $classes ); ?>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment