You are here

audioplayer--soundmanager.html.twig in AudioField 8

Default theme implementation for SoundManager audio player.

Available variables:

  • plugin_id: the name of the plugin being used for templating.
  • plugin_theme: the name of the specific plugin theme, if it exists.
  • files: array of render info for each file.
  • settings: array of settings for thie player.

See also

template_preprocess_audioplayer__soundmanager()

File

templates/audioplayer--soundmanager.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for SoundManager audio player.
  5. *
  6. * Available variables:
  7. * - plugin_id: the name of the plugin being used for templating.
  8. * - plugin_theme: the name of the specific plugin theme, if it exists.
  9. * - files: array of render info for each file.
  10. * - settings: array of settings for thie player.
  11. *
  12. * @see template_preprocess_audioplayer__soundmanager()
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. <div class="audiofield">
  18. {% for file in files %}
  19. <div id="audiofield-audio-player-{{ file.id }}" class="soundmanageraudio_frame">
  20. <a href="{{ file.url }}" class="sm2_button">{{ file.description }}</a>
  21. <label for="audiofield-audio-player-{{ file.id }}">{{ file.description }}</label>
  22. </div>
  23. {% endfor %}
  24. </div>