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="vud-widget-title">{% trans %}Was this useful?{% endtrans %}</div>
  <div class="vud-widget-vote-action">
    {% 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 yes!{% endtrans %}">
      {% endif %}
          <span class="vote-element vote-yes {{ class_up }}" title="{% trans %}Vote yes!{% endtrans %}">Yes</span>
      {% if show_up_as_link == true %}
        </a>
      {% endif %}
      {% if show_down_as_link == true %}
        <a href="{{ link_down }}" rel="nofollow" class="{{ link_class_down }} use-ajax" title="{% trans %}Vote no!{% endtrans %}">
      {% endif %}
          <span class="vote-element vote-no {{ class_down }}" title="{% trans %}Vote no!{% endtrans %}">No</span>
      {% if show_down_as_link == true %}
        </a>
      {% endif %}
    {% endif %}
  </div>

  <div class="vud-widget-reset-action">
    {% if show_reset == true %}
      <a href="{{ link_reset }}" rel="nofollow" class="{{ link_class_reset }} use-ajax" title="{{ reset_long_text }}">
        <span class="{{ class_reset }}">{{ reset_short_text }}</span>
      </a>
    {% endif %}
  </div>
  <p class="vote-current-score">{{ percent_text }}</p>

</div>

File

widgets/yesno/widget.html.twig
View source
  1. <div class="vud-widget vud-widget-{{ widget_name }}" id="{{ widget_instance_id }}">
  2. <div class="vud-widget-title">{% trans %}Was this useful?{% endtrans %}</div>
  3. <div class="vud-widget-vote-action">
  4. {% if show_links == true %}
  5. {% if show_up_as_link == true %}
  6. <a href="{{ link_up }}" rel="nofollow" class="{{ link_class_up }} use-ajax" title="{% trans %}Vote yes!{% endtrans %}">
  7. {% endif %}
  8. <span class="vote-element vote-yes {{ class_up }}" title="{% trans %}Vote yes!{% endtrans %}">Yes</span>
  9. {% if show_up_as_link == true %}
  10. </a>
  11. {% endif %}
  12. {% if show_down_as_link == true %}
  13. <a href="{{ link_down }}" rel="nofollow" class="{{ link_class_down }} use-ajax" title="{% trans %}Vote no!{% endtrans %}">
  14. {% endif %}
  15. <span class="vote-element vote-no {{ class_down }}" title="{% trans %}Vote no!{% endtrans %}">No</span>
  16. {% if show_down_as_link == true %}
  17. </a>
  18. {% endif %}
  19. {% endif %}
  20. </div>
  21. <div class="vud-widget-reset-action">
  22. {% if show_reset == true %}
  23. <a href="{{ link_reset }}" rel="nofollow" class="{{ link_class_reset }} use-ajax" title="{{ reset_long_text }}">
  24. <span class="{{ class_reset }}">{{ reset_short_text }}</span>
  25. </a>
  26. {% endif %}
  27. </div>
  28. <p class="vote-current-score">{{ percent_text }}</p>
  29. </div>