audioplayer--soundmanager--barui.html.twig 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {#
  2. /**
  3. * @file
  4. * Bar UI 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. * @ingroup themeable
  13. */
  14. #}
  15. <div class="audiofield">
  16. <div class="sm2-bar-ui {% if settings.count > 1 %} playlist-open {% endif %}">
  17. <div class="bd sm2-main-controls">
  18. <div class="sm2-inline-texture"></div>
  19. <div class="sm2-inline-gradient"></div>
  20. <div class="sm2-inline-element sm2-button-element">
  21. <div class="sm2-button-bd">
  22. <a href="#play" class="sm2-inline-button play-pause">Play / pause</a>
  23. </div>
  24. </div>
  25. <div class="sm2-inline-element sm2-inline-status">
  26. <div class="sm2-playlist">
  27. <div class="sm2-playlist-target"><noscript><p>JavaScript is required.</p></noscript></div>
  28. </div>
  29. <div class="sm2-progress">
  30. <div class="sm2-row">
  31. <div class="sm2-inline-time">0:00</div>
  32. <div class="sm2-progress-bd">
  33. <div class="sm2-progress-track">
  34. <div class="sm2-progress-bar"></div>
  35. <div class="sm2-progress-ball"><div class="icon-overlay"></div></div>
  36. </div>
  37. </div>
  38. <div class="sm2-inline-duration">0:00</div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="sm2-inline-element sm2-button-element sm2-volume">
  43. <div class="sm2-button-bd">
  44. <span class="sm2-inline-button sm2-volume-control volume-shade"></span>
  45. <a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a>
  46. </div>
  47. </div>
  48. <div class="sm2-inline-element sm2-button-element sm2-menu">
  49. <div class="sm2-button-bd">
  50. <a href="#menu" class="sm2-inline-button menu">menu</a>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="bd sm2-playlist-drawer sm2-element">
  55. <div class="sm2-playlist-wrapper">
  56. <ul class="sm2-playlist-bd">
  57. {% for file in files %}
  58. <li>
  59. <a href="{{ file.url }}">{{ file.description }}</a>
  60. </li>
  61. {% endfor %}
  62. </ul>
  63. </div>
  64. <div class="sm2-extra-controls">
  65. <div class="bd">
  66. <div class="sm2-inline-element sm2-button-element">
  67. <a href="#prev" title="Previous" class="sm2-inline-button previous">&lt; previous</a>
  68. </div>
  69. <div class="sm2-inline-element sm2-button-element">
  70. <a href="#next" title="Next" class="sm2-inline-button next">&gt; next</a>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>