forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct-additional-info.tpl
More file actions
23 lines (22 loc) · 1.06 KB
/
product-additional-info.tpl
File metadata and controls
23 lines (22 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
{if $nb_comments != 0 || $post_allowed == 1}
{if $nb_comments > 0}
<div class="product-comments-additional-info">
<a href="#product-comments-list-header"
aria-label="{l s='Rated %average_grade% out of 5 stars. Go to reviews section' sprintf=['%average_grade%' => {$average_grade|round:1}] d='Modules.Productcomments.Shop'}">
{include file='module:productcomments/views/templates/hook/average-grade-stars.tpl' grade=$average_grade showGradeAverage=true}
</a>
</div>
{else}
{if $post_allowed}
<div class="product-comments-additional-info">
<button class="btn btn-outline-primary post-product-comment" id="product-additional-info-review-button" type="button" data-bs-toggle="modal" data-bs-target="#post-product-comment-modal" data-ps-ref="product-post-review-button">
{l s='Write your review' d='Modules.Productcomments.Shop'}
</button>
</div>
{/if}
{/if}
{/if}