use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{pager} = sub {$this->replaceOutput([]);$this->out("");if ( $C->{Pager}{enabled} ) {$this->out("	<div id=\"scPager\">\n");if ( $C->{Pager}{posF} ) {$this->out("		<a class=scPagerPrevNext href=\"javascript:scAjaxReviewList($C->{Pager}{posF}-$C->{Pager}{ipp})\">&lt;&lt;&nbsp;</a>\n");}$this->out("");if ( $C->{Pager}{hasPV} ) {$this->out("		<a class=scPagerVol href=\"javascript:scAjaxReviewList($C->{Pager}{posPV})\">...</a>\n");}$this->out("");my $in = $C->{Pager}{Pages};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{p} = -1;for my $f (@$loop) {$C->{ITERATION}{p}++;$C->{p} = $f;$this->out("");if ( $C->{p}{this} ) {$this->out("			<a class=scPagerPageSelected>$C->{p}{numP}</a>\n");} else {$this->out("			<a class=scPagerPage href=\"javascript:scAjaxReviewList($C->{p}{pos})\">$C->{p}{numP}</a>\n");}$this->out("");}$this->out("");if ( $C->{Pager}{hasNV} ) {$this->out("		<a class=scPagerVol href=\"javascript:scAjaxReviewList($C->{Pager}{posNV})\">...</a>\n");}$this->out("");if ( $C->{Pager}{numL} < $C->{Pager}{total} ) {$this->out("		<a class=scPagerPrevNext href=\"javascript:scAjaxReviewList($C->{Pager}{posF}+$C->{Pager}{ipp})\">&nbsp;&gt;&gt;</a>\n");}$this->out("");}$this->out("	</div>\n");return join("",@{ $this->restoreOutput });};$this->out("\n\n<h6 class=\"mb-6 font-weight-bold text-primary\">Customers reviews</h6>\n\n");if ( $C->{INPUT}{just_posted} ) {$this->out("	<p>Review has been accepted.</p>\n");if ( $C->{Settings}{review_moderation} ) {$this->out("		<p>The review will be posted after admin`s approval.</p>\n");}$this->out("");}$this->out("\n");if ( $C->{Reviews} && @{$C->{Reviews}} ) {$this->out("	".&{$C->{pager}}."\n");my $in = $C->{Reviews};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{r} = -1;for my $f (@$loop) {$C->{ITERATION}{r}++;$C->{r} = $f;$this->out("		<div class=\"mb-2\">\n			<p>$C->{r}{ViewPdate}&nbsp;$C->{r}{author_name}</p>\n			<p>$C->{r}{TblMessage}</p>\n		</div>\n");}$this->out("	".&{$C->{pager}}."\n");} else {$this->out("	<p>No customers reviews yet.</p>\n");}$this->out("<a class=\"btn btn-primary\" href=\"javascript:scAjaxReviewPost()\">Post your review</a>\n");}