You are here

fontawesomeicons.html.twig in Font Awesome Icons 8.2

Default implementation for Font Awesome icons.

Available variables:

  • icons: a list of Font Awesome icons to be rendered.
  • layers: flag indicating if icons are printing as layers.

File

templates/fontawesomeicons.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default implementation for Font Awesome icons.
  5. *
  6. * Available variables:
  7. * - icons: a list of Font Awesome icons to be rendered.
  8. * - layers: flag indicating if icons are printing as layers.
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. <div class="fontawesome-icons">
  14. {% if layers == '1' %}
  15. <span class="fa-layers fa-fw">{{ icons }}</span>
  16. {% else %}
  17. {{ icons }}
  18. {% endif %}
  19. </div>