Files
wyczarujprezent.pl/themes/EZE-249/modules/jxblogcomment/views/templates/hook/comments-loop.tpl
2024-10-28 22:14:22 +01:00

45 lines
1.5 KiB
Smarty

{*
* 2017-2019 Zemez
*
* JX Blog Comment
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade the module to newer
* versions in the future.
*
* @author Zemez (Alexander Grosul)
* @copyright 2017-2019 Zemez
* @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0)
*}
<section id="blog-comments" data-post-id="{$post.id_jxblog_post}" class="my-6">
<h3 class="h3 products-section-title text-center">{l s='Post comments' mod='jxblogcomment'}</h3>
{if $isLogged}
{hook h='displayGDPRConsent' mod='psgdpr' id_module=$id_module}
{/if}
<div class="blog-comments-block">
{if $readingDisabled}
{if !$isLogged}
<p class="alert alert-warning" role="alert">{l s='Only authorized members can read comments' mod='jxblogcomment'}</p>
{/if}
{else}
{if $commentingDisabled}
{if $isLogged}
<p class="alert alert-warning" role="alert">{l s='Commenting is disabled in current moment' mod='jxblogcomment'}</p>
{else}
<p class="alert alert-warning" role="alert">{l s='Only authorized members can post comments' mod='jxblogcomment'}</p>
{/if}
{/if}
<div id="blog-comments-container"></div>
{/if}
</div>
</section>