[-] MO productcomments: prevents guests to add comments when guest comment is disabled in backoffice
This commit is contained in:
@@ -76,11 +76,13 @@ var moderation_active = {$moderation_active};
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||||
<p class="align_center">
|
<p class="align_center">
|
||||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
|
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
|
||||||
</p>
|
</p>
|
||||||
|
{/if}
|
||||||
{else}
|
{else}
|
||||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||||
<p class="align_center">
|
<p class="align_center">
|
||||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
|
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -76,11 +76,13 @@ var moderation_active = {$moderation_active};
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||||
<p class="align_center">
|
<p class="align_center">
|
||||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
|
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Write your review' mod='productcomments'} !</a>
|
||||||
</p>
|
</p>
|
||||||
|
{/if}
|
||||||
{else}
|
{else}
|
||||||
{if ($too_early == false AND ($logged OR $allow_guests))}
|
{if (!$too_early AND ($logged OR $allow_guests))}
|
||||||
<p class="align_center">
|
<p class="align_center">
|
||||||
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
|
<a id="new_comment_tab_btn" class="open-comment-form" href="#new_comment_form">{l s='Be the first to write your review' mod='productcomments'} !</a>
|
||||||
</p>
|
</p>
|
||||||
@@ -141,7 +143,7 @@ var moderation_active = {$moderation_active};
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div id="new_comment_form_footer">
|
<div id="new_comment_form_footer">
|
||||||
<input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}'></input>
|
<input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}' />
|
||||||
<p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p>
|
<p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p>
|
||||||
<p class="fr">
|
<p class="fr">
|
||||||
<button id="submitNewMessage" name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button>
|
<button id="submitNewMessage" name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user