Commit cd1ab84c authored by imac's avatar imac

[Bugfix]Add download link

parent 30ff71ea
......@@ -88,7 +88,9 @@ do_action('woocommerce_before_add_to_cart_form');
<article class = "row" data-color = "<?php echo get_post_thumbnail_id($ID) ?>">
<a href="<?php echo get_the_post_thumbnail_url($ID, 'full') ?>"></a>
<?php if ( is_user_logged_in() ) { ?>
<a class = "download-btn" href="<?php echo get_the_post_thumbnail_url($ID, 'full') ?>" download></a>
<?php } ?>
<figure>
<img src="<?php echo get_the_post_thumbnail_url($ID, 'medium') ?>" alt="" title="">
</figure>
......
......@@ -147,7 +147,9 @@ do_action('woocommerce_before_add_to_cart_form');
<?php foreach ($var_colors as $key => $value) : ?>
<article class = "row" data-color = "<?php echo $value; ?>">
<a href="<?php echo get_the_post_thumbnail_url($key, 'full') ?>"></a>
<?php if ( is_user_logged_in() ) { ?>
<a class = "download-btn" href="<?php echo get_the_post_thumbnail_url($key, 'full') ?>" download></a>
<?php } ?>
<figure>
<img src="<?php echo get_the_post_thumbnail_url($key, 'medium') ?>" alt="" title="">
</figure>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment