You are here

widget.html.twig in Vote Up/Down 8

<div class="vud-widget vud-widget-upanddown" 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="{{ 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 %}
    <span class="up-current-score">{{ up_points }}</span>
  </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="{{ 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 %}
    <span class="down-current-score">{{ down_points }}</span>
  </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 %}
</div>

File

widgets/upanddown/widget.html.twig
View source
  1. <div class="vud-widget vud-widget-upanddown" 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="{{ 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. <span class="up-current-score">{{ up_points }}</span>
  14. </div>
  15. <div class="down-score clear-block">
  16. {% if show_links == true %}
  17. {% if show_down_as_link == true %}
  18. <a href="{{ link_down }}" rel="nofollow" class="{{ link_class_down }} use-ajax" title="{% trans %}Vote down!{% endtrans %}">
  19. {% endif %}
  20. <div class="{{ class_down }}" title="{% trans %}Vote down!{% endtrans %}"></div>
  21. <div class="element-invisible">{% trans %}Vote down!{% endtrans %}</div>
  22. {% if show_down_as_link == true %}
  23. </a>
  24. {% endif %}
  25. {% endif %}
  26. <span class="down-current-score">{{ down_points }}</span>
  27. </div>
  28. {% if show_reset == true %}
  29. <a href="{{ link_reset }}" rel="nofollow" class="{{ link_class_reset }} use-ajax" title="{{ reset_long_text }}">
  30. <div class="{{ class_reset }}">
  31. {{ reset_short_text }}
  32. </div>
  33. </a>
  34. {% endif %}
  35. </div>