<button class="tcm-loader">
	<div style="display: inline-block" class="tcm-dot-loader done">
		<span class="inner1"></span>
		<span class="inner2"></span>
		<span class="inner3"></span>
	</div>
	<p>
		<#= ThriveComments.util.render_label('load_comments') #>
	</p>
</button>
<# if ( comments_rendered > 2 && ! ThriveComments.close_comments ) { #>
<div class="add-comment tcm-background-color-ac">
	<p>
			<span class="add-comment-icon">
				<?php tcmh()->tcm_icon( 'add-comment', 'add-comment-svg' ); ?>
			</span>
		<#= ThriveComments.util.render_label('add_comment') #></#></p>
</div>
<# } #>
<# if ( showPoweredBy ) { #>
<div class="tcm-powered-by">
    <?php
    $affiliate_id = tcah()->tcm_get_option( 'thrive_affiliate_id' );
	$url = $affiliate_id ? 'https://thrivethemes.com/affiliates/ref.php?id=' . $affiliate_id :
		'https://thrivethemes.com/comments/';
    ?>
	<a href="<?php echo $url ?>" title="<?php echo __( 'Powered by Thrive Comments', Thrive_Comments_Constants::T ); ?>" target="_blank">
			<span class="tcm-footer-logo">
				<?php tcmh()->tcm_icon( 'logo-footer', 'logo-footer-svg' ); ?>
			</span>

		<span>
			<?php echo __( 'Powered by ', Thrive_Comments_Constants::T ); ?>
		</span>
		<span>
			<?php echo __( 'Thrive Comments', Thrive_Comments_Constants::T ); ?>
		</span>
	</a>
</div>
<# } #>

<# if ( ! ThriveComments.close_comments && ThriveComments.email_services.length !== 0 ) { #>
	<div class="tcm-align-right">

		<a href="javascript:void(0)" class="tcm-link-unsubscribe" title="<#= ThriveComments.util.render_label('unsubscribe') #>"
		<# if ( - 1 === ThriveComments.util.get_cookie( 'subscribed_posts' ).indexOf( ThriveComments.post.ID ) ) { #> hidden <# } #> >
		<#= ThriveComments.util.render_label('unsubscribe') #></a>

		<a href="javascript:void(0)" class="tcm-link-subscribe" title="<#= ThriveComments.util.render_label('subscribe') #>"
		<# if ( - 1 !== ThriveComments.util.get_cookie( 'subscribed_posts' ).indexOf( ThriveComments.post.ID ) ) { #> hidden <# } #> >
		<#= ThriveComments.util.render_label('subscribe') #></a>

		<div class="tcm-subscribe-form" hidden>
			<div class="tcm-error-message"></div>
			<input class="form-input tcm-subscriber-email" type="text" name="Email" placeholder="<#= ThriveComments.util.render_label('email') #>"/>
			<button class="submit-subscribe-post"><#= ThriveComments.util.render_label('subscribe') #></a></button>
		</div>

        <p class="tcm-already-subscribed" hidden> Already subscribed! </p>

    </div>
<# } #>
<div class="clear"></div>
