You are here

audioplayer--wavesurfer--playlist.html.twig in AudioField 8

Playlist theme implementation for Wavesurfer 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.

File

templates/audioplayer--wavesurfer--playlist.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Playlist theme implementation for Wavesurfer 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. * @ingroup themeable
  13. */
  14. #}
  15. <div class="audiofield">
  16. <div class="audiofield-wavesurfer playlist" id="wavesurfer_playlist-{{ settings.unique_id }}">
  17. <div class="waveform"></div>
  18. <div class="player-button previous">Previous</div>
  19. <div class="player-button playpause play">Play</div>
  20. <div class="player-button next">Next</div>
  21. <input type="range" class="volume" min="0" max="10" value="{{ settings.audio_player_initial_volume }}">
  22. <label for="wavesurfer_playlist">Playing:</label>
  23. <ol class="playlist">
  24. {% for file in files %}
  25. <li class="track" data-src="{{ file.url }}" data-peakpath="{{ file.peakpath }}">{{ file.description }}</li>
  26. {% endfor %}
  27. </ol>
  28. </div>
  29. </div>