Skip to content

Commit 3e06c4b

Browse files
authored
ADD: star rating widget. [3]
1 parent 8bc43cc commit 3e06c4b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

layout/_macro/post.swig

+9-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,14 @@
339339
</div>
340340
{% endif %}
341341

342-
{% if not is_index %}
342+
{% if not is_index and (theme.rating.enable) or (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
343+
<div class="post-widgets">
344+
{% if theme.rating.enable %}
345+
<div class="wp_rating">
346+
<div id="wpac-rating"></div>
347+
</div>
348+
{% endif %}
349+
343350
{% if (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
344351
<div class="social-like">
345352
{% if theme.vkontakte_api.enable and theme.vkontakte_api.like %}
@@ -355,6 +362,7 @@
355362
{% endif %}
356363
</div>
357364
{% endif %}
365+
</div>
358366
{% endif %}
359367

360368
{% if not is_index and (post.prev or post.next) %}

0 commit comments

Comments
 (0)