Commit fdd8199b authored by imac's avatar imac

[Bugfix]Product page : Download button only for logged users

parent 0ffb4cbd
...@@ -41,7 +41,9 @@ do_action('woocommerce_before_add_to_cart_form'); ...@@ -41,7 +41,9 @@ do_action('woocommerce_before_add_to_cart_form');
<ul> <ul>
<li id = "mozaique"><span class="icon mozaique row"></span><span class="desc">Mozaïque</span></li> <li id = "mozaique"><span class="icon mozaique row"></span><span class="desc">Mozaïque</span></li>
<li id = "zoom" data-active="false" ><span class="icon zoom"></span><span class="desc">Zoom</span></li> <li id = "zoom" data-active="false" ><span class="icon zoom"></span><span class="desc">Zoom</span></li>
<li><span class="icon download"></span><span class="desc">Télécharger</span></li> <?php if ( is_user_logged_in() ) { ?>
<li><span class="icon download"></span><span class="desc">Télécharger</span></li>
<?php } ?>
</ul> </ul>
</div> </div>
<div id="slides"> <div id="slides">
......
...@@ -94,7 +94,9 @@ do_action('woocommerce_before_add_to_cart_form'); ...@@ -94,7 +94,9 @@ do_action('woocommerce_before_add_to_cart_form');
<ul> <ul>
<li id = "mozaique"><span class="icon mozaique row"></span><span class="desc">Mozaïque</span></li> <li id = "mozaique"><span class="icon mozaique row"></span><span class="desc">Mozaïque</span></li>
<li id = "zoom" data-active="false" ><span class="icon zoom"></span><span class="desc">Zoom</span></li> <li id = "zoom" data-active="false" ><span class="icon zoom"></span><span class="desc">Zoom</span></li>
<li><span class="icon download"></span><span class="desc">Télécharger</span></li> <?php if ( is_user_logged_in() ) { ?>
<li><span class="icon download"></span><span class="desc">Télécharger</span></li>
<?php } ?>
</ul> </ul>
</div> </div>
<div id="slides"> <div id="slides">
......
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