2020-04-25, 04:35 AM
Hi All
I am using Lock - Sell content in hide tags for newpoints Plugin and i have set default price for hidden content. i try to modify lock_wrapper temples to hide prices for closed thread but it dint work for me . for this modification i am using If condition in a template
Original code of lock_wrapper temples
My modified code of lock_wrapper temples
Can Some one help me to correct this code ?
I am using Lock - Sell content in hide tags for newpoints Plugin and i have set default price for hidden content. i try to modify lock_wrapper temples to hide prices for closed thread but it dint work for me . for this modification i am using If condition in a template
Original code of lock_wrapper temples
<div class="hidden-content">
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</div>
My modified code of lock_wrapper temples
<div class="hidden-content">
<if $thread['closed'] != 1 then>
<div class="hidden-content-title"><strong>{$params['title']}</strong></div>
<div class="hidden-content-body">
{$return}
</div>
</if>
</div>
Can Some one help me to correct this code ?