added audioplayer contrib module

This commit is contained in:
Bachir Soussi Chiadmi
2017-11-25 16:05:32 +01:00
parent ff23c45e43
commit 0942e9a212
174 changed files with 21682 additions and 0 deletions
@@ -0,0 +1,13 @@
{#
/**
* @file
* Default theme implementation for AudioField audioplayer download links.
*
* Available variables:
* - links: theme_item_list render array containing the download links for
* an audiofield entity.
*
* @ingroup themeable
*/
#}
{{ links }}
@@ -0,0 +1,40 @@
{#
/**
* @file
* Default theme implementation for Audio.js 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
<div id="{{ settings.id }}" class="audiofield-audiojs-frame">
<div class="audiofield-audiojs">
<audio preload="auto" {% if settings.audio_player_autoplay == 1 %} autoplay="autoplay" {% endif %}></audio>
<div class="play-pauseZ">
<p class="playZ"></p>
<p class="pauseZ"></p>
<p class="loadingZ"></p>
<p class="errorZ"></p>
</div>
<div class="scrubberZ">
<div class="progressZ"></div>
<div class="loadedZ"></div>
</div>
<div class="timeZ">
<em class="playedZ">00:00</em>/<strong class="durationZ">00:00</strong>
</div>
<div class="error-messageZ"></div>
</div>
<ol>
{% for file in files %}
<li><a href="#" data-src="{{ file.url }}">{{ file.description }}</a></li>
{% endfor %}
</ol>
</div>
</div>
@@ -0,0 +1,65 @@
{#
/**
* @file
* Multiple file theme implementation for jPlayer 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
<div id="jp_container_{{ settings.id }}" class="jp-video jp-video-270p" role="application" aria-label="media player">
<div class="jp-type-playlist">
<div id="jquery_jplayer_{{ settings.id }}" class="jp-jplayer"></div>
<div class="jp-gui">
<div class="jp-interface">
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
<div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
<div class="jp-controls-holder">
<div class="jp-controls">
<button class="jp-previous" role="button" tabindex="0">previous</button>
<button class="jp-play" role="button" tabindex="0">play</button>
<button class="jp-next" role="button" tabindex="0">next</button>
<button class="jp-stop" role="button" tabindex="0">stop</button>
</div>
<div class="jp-volume-controls">
<button class="jp-mute" role="button" tabindex="0">mute</button>
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
</div>
<div class="jp-toggles">
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
<button class="jp-shuffle" role="button" tabindex="0">shuffle</button>
<button class="jp-full-screen" role="button" tabindex="0">full screen</button>
</div>
</div>
<div class="jp-details">
<div class="jp-title" aria-label="title">&nbsp;</div>
</div>
</div>
</div>
<div class="jp-playlist">
<ul>
<!-- The method Playlist.displayPlaylist() uses this unordered list -->
<li>&nbsp;</li>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http:// get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</div>
@@ -0,0 +1,53 @@
{#
/**
* @file
* Single file default theme implementation for jPlayer 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
<div id="jquery_jplayer_{{ settings.id }}" class="jp-jplayer"></div>
<div id="jp_container_{{ settings.id }}" class="jp-audio" role="application" aria-label="media player">
<div class="jp-type-single">
<div class="jp-gui jp-interface">
<div class="jp-controls">
<button class="jp-play" role="button" tabindex="0">play</button>
<button class="jp-stop" role="button" tabindex="0">stop</button>
</div>
<div class="jp-progress">
<div class="jp-seek-bar">
<div class="jp-play-bar"></div>
</div>
</div>
<div class="jp-volume-controls">
<button class="jp-mute" role="button" tabindex="0">mute</button>
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
<div class="jp-volume-bar">
<div class="jp-volume-bar-value"></div>
</div>
</div>
<div class="jp-time-holder">
<div class="jp-current-time" role="timer" aria-label="time">&nbsp;</div>
<div class="jp-duration" role="timer" aria-label="duration">&nbsp;</div>
<div class="jp-toggles">
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
</div>
</div>
</div>
<div class="jp-details">
<div class="jp-title" aria-label="title">&nbsp;</div>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http:// get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</div>
@@ -0,0 +1,41 @@
{#
/**
* @file
* Default theme implementation for jPlayer 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% if settings.audio_player_jplayer_theme == 'audiofield.jplayer.theme_jplayer_circle' %}
{% for file in files %}
<div id="jquery_jplayer_{{ file.id }}" class="cp-jplayer"></div>
<div class="cp-circle-frame">
<div id="cp_container_{{ file.id }}" class="cp-container">
<div class="cp-buffer-holder">
<div class="cp-buffer-1"></div>
<div class="cp-buffer-2"></div>
</div>
<div class="cp-progress-holder">
<div class="cp-progress-1"></div>
<div class="cp-progress-2"></div>
</div>
<div class="cp-circle-control"></div>
<ul class="cp-controls">
<li><a class="cp-play" tabindex="1">play</a></li>
<li><a class="cp-pause" style="display:none;" tabindex="1">pause</a></li>
</ul>
</div>
<label for="cp_container_{{ file.id }}">{{ file.description }}</label>
</div>
{% endfor %}
{% endif %}
</div>
@@ -0,0 +1,37 @@
{#
/**
* @file
* Circle theme implementation for jPlayer 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div id="jquery_jplayer_{{ file.id }}" class="cp-jplayer"></div>
<div class="cp-circle-frame">
<div id="cp_container_{{ file.id }}" class="cp-container">
<div class="cp-buffer-holder">
<div class="cp-buffer-1"></div>
<div class="cp-buffer-2"></div>
</div>
<div class="cp-progress-holder">
<div class="cp-progress-1"></div>
<div class="cp-progress-2"></div>
</div>
<div class="cp-circle-control"></div>
<ul class="cp-controls">
<li><a class="cp-play" tabindex="1">play</a></li>
<li><a class="cp-pause" style="display:none;" tabindex="1">pause</a></li>
</ul>
</div>
<label for="cp_container_{{ file.id }}">{{ file.description }}</label>
</div>
{% endfor %}
</div>
@@ -0,0 +1,25 @@
{#
/**
* @file
* Default theme implementation for Media Element 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div class="mediaelementaudio_frame">
<audio id="mediaelement_player_{{ file.id }}" {% if settings.audio_player_autoplay == 1 %} autoplay="autoplay" {% endif %} controls>
<source src="{{ file.url }}">
Your browser does not support the audio element.
</audio>
</div>
<label for="mediaelement_player_{{ file.id }}">{{ file.description }}</label>
{% endfor %}
</div>
@@ -0,0 +1,23 @@
{#
/**
* @file
* Default theme implementation for Projekktor 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<audio id="{{ file.id }}" class="audiofield-{{ plugin_id }} {{ plugin_id }}" controls>
<source src="{{ file.url }}" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<label>{{ file.description }}</label>
{% endfor %}
</div>
@@ -0,0 +1,76 @@
{#
/**
* @file
* Bar UI 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
<div class="sm2-bar-ui {% if settings.count > 1 %} playlist-open {% endif %}">
<div class="bd sm2-main-controls">
<div class="sm2-inline-texture"></div>
<div class="sm2-inline-gradient"></div>
<div class="sm2-inline-element sm2-button-element">
<div class="sm2-button-bd">
<a href="#play" class="sm2-inline-button play-pause">Play / pause</a>
</div>
</div>
<div class="sm2-inline-element sm2-inline-status">
<div class="sm2-playlist">
<div class="sm2-playlist-target"><noscript><p>JavaScript is required.</p></noscript></div>
</div>
<div class="sm2-progress">
<div class="sm2-row">
<div class="sm2-inline-time">0:00</div>
<div class="sm2-progress-bd">
<div class="sm2-progress-track">
<div class="sm2-progress-bar"></div>
<div class="sm2-progress-ball"><div class="icon-overlay"></div></div>
</div>
</div>
<div class="sm2-inline-duration">0:00</div>
</div>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-volume">
<div class="sm2-button-bd">
<span class="sm2-inline-button sm2-volume-control volume-shade"></span>
<a href="#volume" class="sm2-inline-button sm2-volume-control">volume</a>
</div>
</div>
<div class="sm2-inline-element sm2-button-element sm2-menu">
<div class="sm2-button-bd">
<a href="#menu" class="sm2-inline-button menu">menu</a>
</div>
</div>
</div>
<div class="bd sm2-playlist-drawer sm2-element">
<div class="sm2-playlist-wrapper">
<ul class="sm2-playlist-bd">
{% for file in files %}
<li>
<a href="{{ file.url }}">{{ file.description }}</a>
</li>
{% endfor %}
</ul>
</div>
<div class="sm2-extra-controls">
<div class="bd">
<div class="sm2-inline-element sm2-button-element">
<a href="#prev" title="Previous" class="sm2-inline-button previous">&lt; previous</a>
</div>
<div class="sm2-inline-element sm2-button-element">
<a href="#next" title="Next" class="sm2-inline-button next">&gt; next</a>
</div>
</div>
</div>
</div>
</div>
</div>
@@ -0,0 +1,23 @@
{#
/**
* @file
* Inline player 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<ul class="graphic">
<li>
<a href="{{ file.url }}">{{ file.description }}</a>
</li>
</ul>
{% endfor %}
</div>
@@ -0,0 +1,21 @@
{#
/**
* @file
* Player 360 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div class="ui360">
<a href="{{ file.url }} ">{{ file.description }}</a>
</div>
{% endfor %}
</div>
@@ -0,0 +1,24 @@
{#
/**
* @file
* 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 template_preprocess_audioplayer__soundmanager()
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div class="soundmanageraudio_frame">
<a href="{{ file.url }}" class="sm2_button">{{ file.description }}</a>
<label>{{ file.description }}</label>
</div>
{% endfor %}
</div>
@@ -0,0 +1,29 @@
{#
/**
* @file
* 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
<div class="audiofield-wavesurfer playlist" id="wavesurfer_playlist">
<div class="waveform"></div>
<div class="player-button previous">Previous</div>
<div class="player-button playpause play">Play</div>
<div class="player-button next">Next</div>
<input type="range" class="volume" min="0" max="10" value="{{ settings.audio_player_initial_volume }}">
<label>Playing:</label>
<ol class="playlist">
{% for file in files %}
<li class="track" data-src="{{ file.url }}">{{ file.description }}</li>
{% endfor %}
</ol>
</div>
</div>
@@ -0,0 +1,24 @@
{#
/**
* @file
* Default 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div class="audiofield-wavesurfer" id="wavesurfer_{{ file.id }}">
<div class="waveform"></div>
<div class="player-button playpause play">Play</div>
<input type="range" class="volume" min="0" max="10" value="{{ settings.audio_player_initial_volume}}">
<label>{{ file.description }}</label>
</div>
{% endfor %}
</div>
@@ -0,0 +1,21 @@
{#
/**
* @file
* Default theme implementation for Wordpress 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<div class="wordpressaudio_frame">
<div class="wordpressaudioplayer" id="wordpressaudioplayer_{{ file.id }}">{{ file.description }}</div>
</div>
{% endfor %}
</div>
@@ -0,0 +1,23 @@
{#
/**
* @file
* Default implementation for Audiofield audio players.
*
* 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.
*
* @ingroup themeable
*/
#}
<div class="audiofield">
{% for file in files %}
<audio controls {% if settings.audio_player_autoplay == 1 %} autoplay {% endif %}>
<source src="{{ file.url }}" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<label>{{ file.description }}</label>
{% endfor %}
</div>