audioplayer--audiojs.html.twig 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for Audio.js 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 id="{{ settings.id }}" class="audiofield-audiojs-frame">
  17. <div class="audiofield-audiojs">
  18. <audio preload="{% if settings.audio_player_lazyload == 1 %}none{% else %}auto{% endif %}" {% if settings.audio_player_autoplay == 1 %} autoplay="autoplay" {% endif %}></audio>
  19. <div class="play-pauseZ">
  20. <p class="playZ"></p>
  21. <p class="pauseZ"></p>
  22. <p class="loadingZ"></p>
  23. <p class="errorZ"></p>
  24. </div>
  25. <div class="scrubberZ">
  26. <div class="progressZ"></div>
  27. <div class="loadedZ"></div>
  28. </div>
  29. <div class="timeZ">
  30. <em class="playedZ">00:00</em>/<strong class="durationZ">00:00</strong>
  31. </div>
  32. <div class="error-messageZ"></div>
  33. </div>
  34. <ol>
  35. {% for file in files %}
  36. <li><a href="#" data-src="{{ file.url }}">{{ file.description }}</a></li>
  37. {% endfor %}
  38. </ol>
  39. </div>
  40. </div>