We notice when a user suscribe ( to anything, post, category, etc), in this time all work fine, after subscription a button appear to cancel it.
But whe the user return to web ( ie reload page or revisit page ) the subscription status don´t show, only show again the suscribe button, instead of unsubscribe button.
Any idea ?
The code involving subscription :
<div class="eb-help-subscribe">
<i class="fa fa-envelope"></i>
<a href="javascript:void(0);" class="link-subscribe <?php echo $subscription->id ? 'hide' : ''; ?>" data-blog-subscribe data-type="entry" data-id="<?php echo $post->id;?>"><?php echo JText::_('COM_EASYBLOG_SUBSCRIBE_BLOG'); ?></a>
<a href="javascript:void(0);" class="link-subscribe <?php echo $subscription->id ? '' : 'hide'; ?>" data-return="<?php echo $return; ?>" data-blog-unsubscribe data-subscription-id="<?php echo $subscription->id;?>"><?php echo JText::_('COM_EASYBLOG_UNSUBSCRIBE_ENTRY'); ?></a>
</div>
Thanks as always.