You are here

social-tagging-popup.html.twig in Open Social 10.3.x

{#
/**
 * @social-tagging-popup.html.twig
 * Default theme implementation to present follow taxonomy popup.
 *
 * This template is used when viewing follow tag block.
 *
 *
 * Available variables:
 * - url: Lisk to search page with related entities.
 * - name: Taxonomy term name.
 * - flag: Link to follow/unfollow tag.
 * - followers_count: Countt of users tthat follow that tag.
 * - related_entity_count: Count of related entities.
 *
 * @ingroup themeable
 */
#}
<div class="popup-info">
  <div class="card teaser">
    <div class="teaser__body">
      <div class="teaser__content">
        <div class="teaser__tag">{% trans %}TAG{% endtrans %}</div>

        <h4 class="teaser__title">
          {{ name }}
        </h4>

        <div class="teaser__related-content">
          {% trans %} 1 item {% plural related_entity_count %} @count items{% endtrans %}
          {% if followers_count %}
            |
            <span class="teaser__followers-count">
                      {% trans %} 1 follower {% plural followers_count %} @count followers{% endtrans %}
                      </span>
          {% endif %}
        </div>

        <div class="actions">
          {{ flag }}
          {% if(url) %}
            <a href="{{ url }}" class="btn btn-default">
              {% trans %}See related content{% endtrans %}
            </a>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</div>

File

modules/social_features/social_follow_taxonomy/modules/social_follow_tag/templates/social-tagging-popup.html.twig
View source
  1. {#
  2. /**
  3. * @social-tagging-popup.html.twig
  4. * Default theme implementation to present follow taxonomy popup.
  5. *
  6. * This template is used when viewing follow tag block.
  7. *
  8. *
  9. * Available variables:
  10. * - url: Lisk to search page with related entities.
  11. * - name: Taxonomy term name.
  12. * - flag: Link to follow/unfollow tag.
  13. * - followers_count: Countt of users tthat follow that tag.
  14. * - related_entity_count: Count of related entities.
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <div class="popup-info">
  20. <div class="card teaser">
  21. <div class="teaser__body">
  22. <div class="teaser__content">
  23. <div class="teaser__tag">{% trans %}TAG{% endtrans %}</div>
  24. <h4 class="teaser__title">
  25. {{ name }}
  26. </h4>
  27. <div class="teaser__related-content">
  28. {% trans %} 1 item {% plural related_entity_count %} @count items{% endtrans %}
  29. {% if followers_count %}
  30. |
  31. <span class="teaser__followers-count">
  32. {% trans %} 1 follower {% plural followers_count %} @count followers{% endtrans %}
  33. </span>
  34. {% endif %}
  35. </div>
  36. <div class="actions">
  37. {{ flag }}
  38. {% if(url) %}
  39. <a href="{{ url }}" class="btn btn-default">
  40. {% trans %}See related content{% endtrans %}
  41. </a>
  42. {% endif %}
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>