You are here

widget.html.twig in Vote Up/Down 8

<div class="vud-widget vud-widget-{{ widget_name }}" id="{{ widget_instance_id }}">

  <div class="up-score clear-block">
    {% if show_links == true %}
      {% if show_up_as_link == true %}
        <a href="{{ link_up }}" rel="nofollow" class="{{ link_class_up }} use-ajax" title="{% trans %} Vote up! {% endtrans %}">
      {% endif %}
      <div class="vote-thumb {{ class_up }}" title="{% trans %} Vote up! {% endtrans %}"></div>
      <div class="element-invisible">{% trans %} Vote up! {% endtrans %}</div>
      {% if show_up_as_link == true %}
        </a>
      {% endif %}
    {% endif %}
  </div>

  <div class="down-score clear-block">
    {% if show_links == true %}
      {% if show_down_as_link == true %}
        <a href="{{ link_down }}" rel="nofollow" class="{{ link_class_down }} use-ajax" title="{% trans %} Vote down! {% endtrans %}">
      {% endif %}
      <div class="vote-thumb {{ class_down }}" title="{% trans %} Vote down! {% endtrans %}"></div>
      <div class="element-invisible">{% trans %} Vote down! {% endtrans %}</div>
      {% if show_down_as_link == true %}
        </a>
      {% endif %}
    {% endif %}
  </div>

  {% if show_reset == true %}
    <a href="{{ link_reset }}" rel="nofollow" class="{{ link_class_reset }} use-ajax" title="{{ reset_long_text }}">
      <div class="{{ class_reset }}">
        {{ reset_short_text }}
      </div>
    </a>
  {% endif %}
  <p class="vote-current-score">{% trans %}Points{% endtrans %}: <strong>{{ points }}</strong></p>

  {% if class_up == 'up inactive' %}
    <p class="voted-how">{% trans %}You voted &lsquo;up&rsquo;{% endtrans %}</p>
  {% elseif class_down == 'down inactive' %}
    <p class="voted-how">{% trans %}You voted &lsquo;down&rsquo;{% endtrans %}</p>
  {% endif %}

</div>

File

widgets/thumbs/widget.html.twig
View source
  1. <div class="vud-widget vud-widget-{{ widget_name }}" id="{{ widget_instance_id }}">
  2. <div class="up-score clear-block">
  3. {% if show_links == true %}
  4. {% if show_up_as_link == true %}
  5. <a href="{{ link_up }}" rel="nofollow" class="{{ link_class_up }} use-ajax" title="{% trans %} Vote up! {% endtrans %}">
  6. {% endif %}
  7. <div class="vote-thumb {{ class_up }}" title="{% trans %} Vote up! {% endtrans %}"></div>
  8. <div class="element-invisible">{% trans %} Vote up! {% endtrans %}</div>
  9. {% if show_up_as_link == true %}
  10. </a>
  11. {% endif %}
  12. {% endif %}
  13. </div>
  14. <div class="down-score clear-block">
  15. {% if show_links == true %}
  16. {% if show_down_as_link == true %}
  17. <a href="{{ link_down }}" rel="nofollow" class="{{ link_class_down }} use-ajax" title="{% trans %} Vote down! {% endtrans %}">
  18. {% endif %}
  19. <div class="vote-thumb {{ class_down }}" title="{% trans %} Vote down! {% endtrans %}"></div>
  20. <div class="element-invisible">{% trans %} Vote down! {% endtrans %}</div>
  21. {% if show_down_as_link == true %}
  22. </a>
  23. {% endif %}
  24. {% endif %}
  25. </div>
  26. {% if show_reset == true %}
  27. <a href="{{ link_reset }}" rel="nofollow" class="{{ link_class_reset }} use-ajax" title="{{ reset_long_text }}">
  28. <div class="{{ class_reset }}">
  29. {{ reset_short_text }}
  30. </div>
  31. </a>
  32. {% endif %}
  33. <p class="vote-current-score">{% trans %}Points{% endtrans %}: <strong>{{ points }}</strong></p>
  34. {% if class_up == 'up inactive' %}
  35. <p class="voted-how">{% trans %}You voted &lsquo;up&rsquo;{% endtrans %}</p>
  36. {% elseif class_down == 'down inactive' %}
  37. <p class="voted-how">{% trans %}You voted &lsquo;down&rsquo;{% endtrans %}</p>
  38. {% endif %}
  39. </div>