Skip to content

Commit

Permalink
ADD: star rating widget. [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-nginx authored May 31, 2017
1 parent 8bc43cc commit 3e06c4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion layout/_macro/post.swig
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,14 @@
</div>
{% endif %}

{% if not is_index %}
{% 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) %}
<div class="post-widgets">
{% if theme.rating.enable %}
<div class="wp_rating">
<div id="wpac-rating"></div>
</div>
{% endif %}

{% if (theme.vkontakte_api.enable and theme.vkontakte_api.like) or (theme.facebook_sdk.enable and theme.facebook_sdk.like_button) %}
<div class="social-like">
{% if theme.vkontakte_api.enable and theme.vkontakte_api.like %}
Expand All @@ -355,6 +362,7 @@
{% endif %}
</div>
{% endif %}
</div>
{% endif %}

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

0 comments on commit 3e06c4b

Please sign in to comment.