<!-- comments tab | responsive 42 -->

<div class="content-padding">
	<div id="comments_dom">
		{include file=$smarty.const.RL_PLUGINS|cat:$smarty.const.RL_DS|cat:'comment'|cat:$smarty.const.RL_DS|cat:'comment_dom.tpl'}
	</div>

	{if $isLogin || !$config.comments_login_post}
		{include file='blocks'|cat:$smarty.const.RL_DS|cat:'fieldset_header.tpl' name=$lang.comment_add_comment}
		
		<form name="add_comment" action="" method="post">
			<div class="submit-cell">
				<div class="name">{$lang.comment_author} <span class="red">*</span></div>
				<div class="field">
					<input type="text" id="comment_author" maxlength="30" size="25" class="wauto" value="{if $isLogin}{$isLogin}{else}{$smarty.post.author}{/if}" />
				</div>
			</div>

			<div class="submit-cell">
				<div class="name">{$lang.comment_title} <span class="red">*</span></div>
				<div class="field">
					<input type="text" id="comment_title" maxlength="60" size="40" class="wauto" value="{$smarty.post.title}" />
				</div>
			</div>

			{if $config.comments_rating_module}
				<div class="submit-cell">
					<div class="name">{$lang.comment_rating}</div>
					<div class="field inline-fields">
						{assign var='replace' value=`$smarty.ldelim`stars`$smarty.rdelim`}
						{section name='stars' start=1 loop=$config.comments_stars_number+1}<span title="{$lang.comment_set|replace:$replace:$smarty.section.stars.iteration}" id="comment_star_{$smarty.section.stars.iteration}" class="comment_star"></span>{/section}
					</div>
				</div>
			{/if}

			<div class="submit-cell">
				<div class="name">{$lang.message} <span class="red">*</span></div>
				<div class="field">
					<textarea class="text" id="comment_message" rows="5" cols="">{$smarty.post.message}</textarea>
				</div>
			</div>

			{if $config.security_img_comment_captcha}
				<div class="submit-cell">
					<div class="name">{$lang.security_code} <span class="red">*</span></div>
					<div class="field">
						{include file='captcha.tpl' no_caption=true captcha_id='comment'}
					</div>
				</div>
			{/if}

			<div class="submit-cell buttons">
				<div class="name"></div>
				<div class="field"><input type="submit" value="{$lang.comment_add_comment}" /></div>
			</div>
		</form>

		{include file='blocks'|cat:$smarty.const.RL_DS|cat:'fieldset_footer.tpl'}
	{else}
		<div class="text-notice">{$lang.comment_login_to_post}</div>

		{include file='menus'|cat:$smarty.const.RL_DS|cat:'account_menu.tpl'}
	{/if}
</div>

<!-- comments tab end | responsive 42 -->