Модуль Комментарии v1.26.2a
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

110 lines
4.3 KiB

{if $display_comments==1}
<h3>{#COMMENT_SITE_TITLE#}{if $closed==1 && $smarty.const.UGROUP!=1} <small>{#COMMENT_SITE_CLOSED#}</small>{/if}</h3>
<a href="#end">{#COMMENT_SITE_ADD#}</a>
{if $smarty.const.UGROUP==1}
&nbsp;|&nbsp;
{if $closed==1}
<a id="mod_comment_open" href="javascript:void(0);">{#COMMENT_SITE_OPEN#}</a>
{else}
<a id="mod_comment_close" href="javascript:void(0);">{#COMMENT_SITE_CLOSE#}</a>
{/if}<br />
{/if}
{if $comments[0]}
{include file="$subtpl" subcomments=$comments[0]}
{/if}
<a id="end"></a>
{if $closed==1 && $smarty.const.UGROUP!=1}
<p>{#COMMENT_NEW_CLOSED#}</p>
{elseif $cancomment!=1 && $smarty.const.UGROUP!=1}
<p>{#COMMENT_NEW_FALSE#}</p>
{else}
<div id="mod_comment_new" class="box">
<h3>{#COMMENT_NEW_TITLE#}</h3>
<div class="block" id="forms">
<fieldset>
<form method="post" action="{$ABS_PATH}">
{if $smarty.session.user_group != '2'}
<input name="comment_author_name" type="hidden" id="in_author_name" value="{$smarty.session.user_name|escape|stripslashes}" />
{else}
<p>
<label>{#COMMENT_YOUR_NAME#}</label>
<input name="comment_author_name" type="text" id="in_author_name" value="{$smarty.request.comment_author_name|escape|stripslashes}" />&nbsp;
</p>
{/if}
{if $smarty.session.user_email != ''}
<input name="comment_author_email" type="hidden" id="in_author_email" value="{$smarty.session.user_email|escape|stripslashes}" />
{else}
<input name="comment_author_email" class="span4" placeholder="{#COMMENT_YOUR_EMAIL#}" type="text" id="in_author_email" value="{$smarty.request.comment_author_email|escape|stripslashes}" />
{/if}
<input name="comment_author_website" class="span4" placeholder="{#COMMENT_YOUR_SITE#}" type="text" id="in_author_website" $value="{$smarty.request.comment_author_website|escape|stripslashes}" />
<input name="comment_author_city" class="span4" placeholder="{#COMMENT_YOUR_FROM#}" type="text" id="in_author_city" $value="{$smarty.request.comment_author_city|escape|stripslashes}" />
<textarea class="span8" placeholder="{#COMMENT_YOUR_TEXT#}" rows="8" name="comment_text" id="in_message"></textarea>
<p>
<label>&nbsp;</label>
{#COMMENT_CHARS_LEFT#} - <span class="charsLeft" id="charsLeft_new"></span>
</p>
{if $im}
<p>
<label>{#COMMENT_FORM_CODE#}</label>
<span id="captcha"><img src="{$ABS_PATH}inc/captcha.php" alt="" width="120" height="60" border="0" /></span>
</p>
<p>
<label for="securecode">{#COMMENT_FORM_CODE_ENTER#}</label>
<input name="securecode" type="text" id="securecode" maxlength="10" />
</p>
{/if}
<p>
<input class="confirm btn-small btn-success" value="{#COMMENT_BUTTON_ADD#}" type="submit" />
<input class="btn btn-small" id="buttonReset" type="reset" />
</p>
<input name="module" type="hidden" value="comment" />
<input name="action" type="hidden" value="comment" />
<input name="sub" type="hidden" value="send" />
<input name="doc_id" type="hidden" value="{$smarty.request.id|escape}" />
<input name="parent_id" id="parent_id" type="hidden" value="" />
<input name="page" type="hidden" value="{$page}" />
</form>
</fieldset>
</div>
</div>
{if $page_nav}
<div class="page_navigation_box">{$page_nav}</div>
{/if}
<script type="text/javascript">
var COMMENT_SITE_CLOSE = '{#COMMENT_SITE_CLOSE#}';
var COMMENT_SITE_OPEN = '{#COMMENT_SITE_OPEN#}';
var COMMENT_LOCK_LINK = '{#COMMENT_LOCK_LINK#}';
var COMMENT_EDIT_LINK = '{#COMMENT_EDIT_LINK#}';
var COMMENT_EDIT_TITLE = '{#COMMENT_EDIT_TITLE#}';
var COMMENT_UNLOCK_LINK = '{#COMMENT_UNLOCK_LINK#}';
var COMMENT_ERROR_AUTHOR = '{#COMMENT_ERROR_AUTHOR#}';
var COMMENT_ERROR_EMAIL = '{#COMMENT_ERROR_EMAIL#}';
var COMMENT_ERROR_TEXT = '{#COMMENT_ERROR_TEXT#}';
var COMMENT_ERROR_CAPTCHA = '{#COMMENT_ERROR_CAPTCHA#}';
var COMMENT_BUTTON_EDIT = '{#COMMENT_BUTTON_EDIT#}';
var COMMENT_BUTTON_CANCEL = '{#COMMENT_BUTTON_CANCEL#}';
var COMMENT_CHARS_LEFT = '{#COMMENT_CHARS_LEFT#}';
var COMMENT_DATE_TIME_FORMAT = '{#COMMENT_DATE_TIME_FORMAT#}';
var COMMENT_TEXT_CHANGED = '{#COMMENT_TEXT_CHANGED#}';
var COMMENT_WRONG_CODE = '{#COMMENT_WRONG_CODE#}';
var UGROUP = '{$smarty.const.UGROUP}';
var IS_IM = '{$im}';
var DOC_ID = '{$doc_id}';
var MAX_CHARS = '{$comment_max_chars}';
</script>
<script src="{$ABS_PATH}modules/comment/js/comment.js" type="text/javascript"></script>
{/if}
{/if}