Version Description
- Includes a new option in the plugin's settings to allow multiple players to play simultaneously.
Download this release
Release Info
Developer | codepeople |
Plugin | Music Player for WooCommerce |
Version | 1.0.125 |
Comparing to | |
See all releases |
Code changes from version 1.0.122 to 1.0.125
- addons/dokan.addon.php +1 -1
- addons/dokan/player_options.php +17 -17
- addons/wcfm.addon.php +1 -1
- addons/wcv.addon.php +1 -1
- js/public.js +8 -8
- js/public_src.js +3 -1
- languages/music-player-for-woocommerce-en_US.mo +0 -0
- languages/music-player-for-woocommerce-en_US.po +230 -70
- readme.txt +14 -2
- views/global_options.php +54 -42
- views/player_options.php +26 -26
- wcmp.php +7 -4
addons/dokan.addon.php
CHANGED
@@ -22,7 +22,7 @@ if(!class_exists('WCMP_DOKAN_ADDON'))
|
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_dokan_enabled = get_option('wcmp_dokan_enabled', 1);
|
25 |
-
print '<tr><td><input type="checkbox" name="wcmp_dokan_enabled" '.($wcmp_dokan_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the Dokan add-on', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "Dokan Multivendor" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_setting
|
27 |
|
28 |
public function save_general_settings()
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_dokan_enabled = get_option('wcmp_dokan_enabled', 1);
|
25 |
+
print '<tr><td><input aria-label="'.esc_attr(__('Activate the Dokan add-on','music-player-for-woocommerce')).'" type="checkbox" name="wcmp_dokan_enabled" '.($wcmp_dokan_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the Dokan add-on', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "Dokan Multivendor" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_setting
|
27 |
|
28 |
public function save_general_settings()
|
addons/dokan/player_options.php
CHANGED
@@ -178,42 +178,42 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
178 |
<div>
|
179 |
<div class="wcmp-dokan-attr">
|
180 |
<label class="wcmp-dokan-attr-label">
|
181 |
-
<input type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> title="<?php print esc_attr(__('The player is shown only if the product is "downloadable" with at least an audio file between the "Downloadable files", or you have selected your own audio files', 'music-player-for-woocommerce')); ?>" /> <?php _e( 'Include music player', 'music-player-for-woocommerce' ); ?>
|
182 |
</label>
|
183 |
</div>
|
184 |
<div class="wcmp-dokan-attr">
|
185 |
<label for="_wcmp_show_in" class="wcmp-dokan-attr-label"><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></label>
|
186 |
<div>
|
187 |
-
<label><input type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
188 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?></label>
|
189 |
|
190 |
-
<label><input type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
191 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?></label>
|
192 |
|
193 |
-
<label><input type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
194 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?></label>
|
195 |
</div>
|
196 |
</div>
|
197 |
<div class="wcmp-dokan-attr">
|
198 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?>
|
199 |
-
<input type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /></label>
|
200 |
<div><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></div>
|
201 |
</div>
|
202 |
<div class="wcmp-dokan-attr">
|
203 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></label>
|
204 |
<table border="0" width="100%">
|
205 |
<tr>
|
206 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
207 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
208 |
</tr>
|
209 |
|
210 |
<tr>
|
211 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
212 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
213 |
</tr>
|
214 |
|
215 |
<tr>
|
216 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
217 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
218 |
</tr>
|
219 |
</table>
|
@@ -221,22 +221,22 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
221 |
<div class="wcmp-dokan-attr">
|
222 |
<label for="_wcmp_preload" class="wcmp-dokan-attr-label"><?php _e( 'Preload', 'music-player-for-woocommerce' ); ?></label>
|
223 |
<div>
|
224 |
-
<label><input type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label>
|
225 |
-
<label><input type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label>
|
226 |
-
<label><input type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label>
|
227 |
</div>
|
228 |
</div>
|
229 |
<div class="wcmp-dokan-attr">
|
230 |
-
<label><?php _e( 'Play all', 'music-player-for-woocommerce' ); ?> <input type="checkbox" name="_wcmp_play_all" <?php if(!empty($play_all)) echo 'CHECKED'; ?> /></label>
|
231 |
</div>
|
232 |
<div class="wcmp-dokan-attr">
|
233 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></label>
|
234 |
<div>
|
235 |
-
<label><input type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?></label>
|
236 |
-
<label><input type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?></label>
|
237 |
-
<label><input type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?></label>
|
238 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
239 |
-
<label><input type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
240 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
241 |
?> /> <?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?></label>
|
242 |
<div><em><?php _e('(This feature is experimental, and will depend on the theme active on the website.)', 'music-player-for-woocommerce'); ?></em></div>
|
@@ -244,7 +244,7 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
244 |
</div>
|
245 |
</div>
|
246 |
<div class="wcmp-dokan-attr">
|
247 |
-
<label><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?> <input type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> /></label>
|
248 |
</div>
|
249 |
</div>
|
250 |
</div>
|
178 |
<div>
|
179 |
<div class="wcmp-dokan-attr">
|
180 |
<label class="wcmp-dokan-attr-label">
|
181 |
+
<input aria-label="<?php print esc_attr(__('Enable player','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> title="<?php print esc_attr(__('The player is shown only if the product is "downloadable" with at least an audio file between the "Downloadable files", or you have selected your own audio files', 'music-player-for-woocommerce')); ?>" /> <?php _e( 'Include music player', 'music-player-for-woocommerce' ); ?>
|
182 |
</label>
|
183 |
</div>
|
184 |
<div class="wcmp-dokan-attr">
|
185 |
<label for="_wcmp_show_in" class="wcmp-dokan-attr-label"><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></label>
|
186 |
<div>
|
187 |
+
<label><input aria-label="<?php print esc_attr(__('Include on products pages only','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
188 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?></label>
|
189 |
|
190 |
+
<label><input aria-label="<?php print esc_attr(__('Include on multiple-entry pages','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
191 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?></label>
|
192 |
|
193 |
+
<label><input aria-label="<?php print esc_attr(__('Include on products and multiple-entry pages', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
194 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?></label>
|
195 |
</div>
|
196 |
</div>
|
197 |
<div class="wcmp-dokan-attr">
|
198 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?>
|
199 |
+
<input aria-label="<?php print esc_attr(__('Merge in grouped products', 'music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /></label>
|
200 |
<div><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></div>
|
201 |
</div>
|
202 |
<div class="wcmp-dokan-attr">
|
203 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></label>
|
204 |
<table border="0" width="100%">
|
205 |
<tr>
|
206 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 1', 'music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
207 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
208 |
</tr>
|
209 |
|
210 |
<tr>
|
211 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 2', 'music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
212 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
213 |
</tr>
|
214 |
|
215 |
<tr>
|
216 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 3','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
217 |
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
218 |
</tr>
|
219 |
</table>
|
221 |
<div class="wcmp-dokan-attr">
|
222 |
<label for="_wcmp_preload" class="wcmp-dokan-attr-label"><?php _e( 'Preload', 'music-player-for-woocommerce' ); ?></label>
|
223 |
<div>
|
224 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - none', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label>
|
225 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - metadata', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label>
|
226 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - auto', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label>
|
227 |
</div>
|
228 |
</div>
|
229 |
<div class="wcmp-dokan-attr">
|
230 |
+
<label><?php _e( 'Play all', 'music-player-for-woocommerce' ); ?> <input aria-label="<?php print esc_attr(__('Play all', 'music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_play_all" <?php if(!empty($play_all)) echo 'CHECKED'; ?> /></label>
|
231 |
</div>
|
232 |
<div class="wcmp-dokan-attr">
|
233 |
<label class="wcmp-dokan-attr-label"><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></label>
|
234 |
<div>
|
235 |
+
<label><input aria-label="<?php print esc_attr(__('Play/pause button', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?></label>
|
236 |
+
<label><input aria-label="<?php print esc_attr(__('All controls','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?></label>
|
237 |
+
<label><input aria-label="<?php print esc_attr(__('Depending on context','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?></label>
|
238 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
239 |
+
<label><input aria-label="<?php print esc_attr(__('Player on cover','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
240 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
241 |
?> /> <?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?></label>
|
242 |
<div><em><?php _e('(This feature is experimental, and will depend on the theme active on the website.)', 'music-player-for-woocommerce'); ?></em></div>
|
244 |
</div>
|
245 |
</div>
|
246 |
<div class="wcmp-dokan-attr">
|
247 |
+
<label><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?> <input aria-label="<?php print esc_attr(__('Display player title','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> /></label>
|
248 |
</div>
|
249 |
</div>
|
250 |
</div>
|
addons/wcfm.addon.php
CHANGED
@@ -22,7 +22,7 @@ if(!class_exists('WCMP_WCFM_ADDON'))
|
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_wcfm_enabled = get_option('wcmp_wcfm_enabled', 1);
|
25 |
-
print '<tr><td><input type="checkbox" name="wcmp_wcfm_enabled" '.($wcmp_wcfm_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the WCFM add-on', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "WCFM - Marketplace" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_settings
|
27 |
|
28 |
public function save_general_settings()
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_wcfm_enabled = get_option('wcmp_wcfm_enabled', 1);
|
25 |
+
print '<tr><td><input aria-label="'.esc_attr(__('Activate the WCFM add-on','music-player-for-woocommerce')).'" type="checkbox" name="wcmp_wcfm_enabled" '.($wcmp_wcfm_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the WCFM add-on', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "WCFM - Marketplace" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_settings
|
27 |
|
28 |
public function save_general_settings()
|
addons/wcv.addon.php
CHANGED
@@ -22,7 +22,7 @@ if(!class_exists('WCMP_WCVENDORS_ADDON'))
|
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_wcv_enabled = get_option('wcmp_wcv_enabled', 1);
|
25 |
-
print '<tr><td><input type="checkbox" name="wcmp_wcv_enabled" '.($wcmp_wcv_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the WC Vendors add-on (Experimental add-on)', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "WC Vendors" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_settings
|
27 |
|
28 |
public function save_general_settings()
|
22 |
public function general_settings()
|
23 |
{
|
24 |
$wcmp_wcv_enabled = get_option('wcmp_wcv_enabled', 1);
|
25 |
+
print '<tr><td><input aria-label="'.esc_attr(__('Activate the WC Vendors add-on','music-player-for-woocommerce')).'" type="checkbox" name="wcmp_wcv_enabled" '.($wcmp_wcv_enabled ? 'CHECKED' : '').'></td><td width="100%"><b>'.__('Activate the WC Vendors add-on (Experimental add-on)', 'music-player-for-woocommerce').'</b><br><i>'.__('If the "WC Vendors" plugin is installed on the website, check the checkbox to allow vendors to configure their music players.', 'music-player-for-woocommerce').'</i></td></tr>';
|
26 |
} // End general_settings
|
27 |
|
28 |
public function save_general_settings()
|
js/public.js
CHANGED
@@ -2,11 +2,11 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,f,c){a
|
|
2 |
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,c){a!=Array.prototype&&a!=Object.prototype&&(a[f]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
|
3 |
$jscomp.polyfill=function(a,f,c,g){if(f){c=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var h=a[g];h in c||(c[h]={});c=c[h]}a=a[a.length-1];g=c[a];f=f(g);f!=g&&null!=f&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:f})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
4 |
(function(){var a=[],f=0;window.generate_the_wcmp=function(c){function g(d){if(d+1<f){var b=d+1;a[b]instanceof e&&a[b].is("a")?a[b].is(":visible")?a[b].click():g(d+1):e(a[b].container).is(":visible")?a[b].play():g(d+1)}}function h(a){var b=a.data("product"),d=e("img.product-"+b);d.length&&1==e('[data-product="'+b+'"]').length&&(b=d.offset(),a=a.closest("div.wcmp-player"),a.css({position:"absolute","z-index":999999}).offset({left:b.left+(d.width()-a.width())/2,top:b.top+(d.height()-a.height())/2}))}
|
5 |
-
if(!("boolean"!==typeof c&&"undefined"!=typeof wcmp_global_settings&&1*wcmp_global_settings.onload)&&"undefined"===typeof generated_the_wcmp){generated_the_wcmp=!0;var e=jQuery;e(document).on("click",".wcmp-player-container",function(a){a.preventDefault();a.stopPropagation()});e.expr[":"].regex=function(a,b,c){b=c[3].split(",");var d=/^(data|css):/;c=b[0].match(d)?b[0].split(":")[0]:"attr";d=b.shift().replace(d,"");return(new RegExp(b.join("").replace(/^\s+|\s+$/g,""),"ig")).test(e(a)[c](d))};var
|
6 |
-
"undefined"!=typeof wcmp_global_settings?wcmp_global_settings.play_all:!0,k="undefined"!=typeof wcmp_global_settings&&"ios_controls"in wcmp_global_settings&&1*wcmp_global_settings.ios_controls?!0:!1;c=e("audio.wcmp-player:not(.track):not([playernumber])");var
|
7 |
-
"undefined"!=typeof b&&a.closest(".wcmp-player-container").find(".mejs-duration").html(b)};a.addEventListener("timeupdate",function(a){d(a);isNaN(this.currentTime)||isNaN(this.duration)||-1==this.src.indexOf("ms-action=secure")||(4>this.duration-this.currentTime?this.setVolume(this.volume-this.volume/3):("undefined"==typeof this.bkVolume&&(this.bkVolume=this.volume),this.setVolume(this.bkVolume)))});
|
8 |
-
this.src.indexOf("ms-action=secure")&&4<this.duration-this.currentTime&&this.currentTime&&(this.bkVolume=this.volume)});a.addEventListener("ended",function(a){1*
|
9 |
-
console.log(b)}});
|
10 |
-
var c=e("<table></table>");b.length&&!b.closest(".wcmp-first-in-product").length&&(b.closest("tr").addClass("wcmp-first-in-product"),0==b.closest("form").length&&b.closest(".wcmp-player-list").prependTo(a.closest("form")),c.append(a.closest("tr").prepend("<td>"+b.html()+"</td>")),b.html("").append(c))})}};window.wcmp_force_init=function(){delete window.generated_the_wcmp;generate_the_wcmp(!0)};jQuery(generate_the_wcmp);
|
11 |
-
a("[data-lazyloading]").each(function(){var c=a(this);c.attr("preload",c.data("lazyloading"))});if(f.match(/iPad/i)||f.match(/iPhone/i))if("undefined"!=typeof wcmp_global_settings?wcmp_global_settings.play_all:1)a(".wcmp-player .mejs-play button").one("click",function(){if("undefined"==typeof wcmp_preprocessed_players){wcmp_preprocessed_players=!0;var c=a(this);a(".wcmp-player audio").each(function(){this.play();
|
12 |
-
wcmp_force_init()});jQuery(document).on("scroll",wcmp_force_init)})();
|
2 |
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,c){a!=Array.prototype&&a!=Object.prototype&&(a[f]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
|
3 |
$jscomp.polyfill=function(a,f,c,g){if(f){c=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var h=a[g];h in c||(c[h]={});c=c[h]}a=a[a.length-1];g=c[a];f=f(g);f!=g&&null!=f&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:f})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
4 |
(function(){var a=[],f=0;window.generate_the_wcmp=function(c){function g(d){if(d+1<f){var b=d+1;a[b]instanceof e&&a[b].is("a")?a[b].is(":visible")?a[b].click():g(d+1):e(a[b].container).is(":visible")?a[b].play():g(d+1)}}function h(a){var b=a.data("product"),d=e("img.product-"+b);d.length&&1==e('[data-product="'+b+'"]').length&&(b=d.offset(),a=a.closest("div.wcmp-player"),a.css({position:"absolute","z-index":999999}).offset({left:b.left+(d.width()-a.width())/2,top:b.top+(d.height()-a.height())/2}))}
|
5 |
+
if(!("boolean"!==typeof c&&"undefined"!=typeof wcmp_global_settings&&1*wcmp_global_settings.onload)&&"undefined"===typeof generated_the_wcmp){generated_the_wcmp=!0;var e=jQuery;e(document).on("click",".wcmp-player-container",function(a){a.preventDefault();a.stopPropagation()});e.expr[":"].regex=function(a,b,c){b=c[3].split(",");var d=/^(data|css):/;c=b[0].match(d)?b[0].split(":")[0]:"attr";d=b.shift().replace(d,"");return(new RegExp(b.join("").replace(/^\s+|\s+$/g,""),"ig")).test(e(a)[c](d))};var n=
|
6 |
+
"undefined"!=typeof wcmp_global_settings?wcmp_global_settings.play_all:!0,k="undefined"!=typeof wcmp_global_settings?!(1*wcmp_global_settings.play_simultaneously):!0,m="undefined"!=typeof wcmp_global_settings&&"ios_controls"in wcmp_global_settings&&1*wcmp_global_settings.ios_controls?!0:!1;c=e("audio.wcmp-player:not(.track):not([playernumber])");var p=e("audio.wcmp-player.track:not([playernumber])"),l={pauseOtherPlayers:k,iPadUseNativeControls:m,iPhoneUseNativeControls:m,success:function(a,b){e(b).attr("volume")&&
|
7 |
+
a.setVolume(parseFloat(e(b).attr("volume")));var d=function(a){a=e(a.target);var b=a.data("duration");"undefined"!=typeof b&&a.closest(".wcmp-player-container").find(".mejs-duration").html(b)};a.addEventListener("timeupdate",function(a){d(a);isNaN(this.currentTime)||isNaN(this.duration)||-1==this.src.indexOf("ms-action=secure")||(4>this.duration-this.currentTime?this.setVolume(this.volume-this.volume/3):("undefined"==typeof this.bkVolume&&(this.bkVolume=this.volume),this.setVolume(this.bkVolume)))});
|
8 |
+
a.addEventListener("volumechange",function(a){!isNaN(this.currentTime)&&!isNaN(this.duration)&&-1!=this.src.indexOf("ms-action=secure")&&4<this.duration-this.currentTime&&this.currentTime&&(this.bkVolume=this.volume)});a.addEventListener("ended",function(a){1*n&&(a=1*e(this).attr("playernumber"),g(a))});a.addEventListener("loadedmetadata",function(a){d(a)})}};k=".product-type-grouped :regex(name,quantity\\[\\d+\\])";c.each(function(){var d=e(this);d.find("source").attr("src");d.attr("playernumber",
|
9 |
+
f);f++;l.audioVolume="vertical";try{a[f]=new MediaElementPlayer(d[0],l)}catch(b){"console"in window&&console.log(b)}});p.each(function(){var d=e(this);d.find("source").attr("src");d.attr("playernumber",f);f++;l.features=["playpause"];try{a[f]=new MediaElementPlayer(d[0],l)}catch(b){"console"in window&&console.log(b)}h(d);e(window).resize(function(){h(d)})});e(k).length||(k=".product-type-grouped [data-product_id]");e(k).each(function(){var a=e(this),b=a.data("product_id")||a.attr("name").replace(/[^\d]/g,
|
10 |
+
"");b=e(".wcmp-player-list.merge_in_grouped_products .product-"+b+":first .wcmp-player-title");var c=e("<table></table>");b.length&&!b.closest(".wcmp-first-in-product").length&&(b.closest("tr").addClass("wcmp-first-in-product"),0==b.closest("form").length&&b.closest(".wcmp-player-list").prependTo(a.closest("form")),c.append(a.closest("tr").prepend("<td>"+b.html()+"</td>")),b.html("").append(c))})}};window.wcmp_force_init=function(){delete window.generated_the_wcmp;generate_the_wcmp(!0)};jQuery(generate_the_wcmp);
|
11 |
+
jQuery(window).on("load",function(){generate_the_wcmp(!0);var a=jQuery,f=window.navigator.userAgent;a("[data-lazyloading]").each(function(){var c=a(this);c.attr("preload",c.data("lazyloading"))});if(f.match(/iPad/i)||f.match(/iPhone/i))if("undefined"!=typeof wcmp_global_settings?wcmp_global_settings.play_all:1)a(".wcmp-player .mejs-play button").one("click",function(){if("undefined"==typeof wcmp_preprocessed_players){wcmp_preprocessed_players=!0;var c=a(this);a(".wcmp-player audio").each(function(){this.play();
|
12 |
+
this.pause()});setTimeout(function(){c.click()},500)}})}).on("popstate",function(){jQuery("audio[data-product]:not([playernumber])").length&&wcmp_force_init()});jQuery(document).on("scroll",wcmp_force_init)})();
|
js/public_src.js
CHANGED
@@ -65,7 +65,8 @@
|
|
65 |
}
|
66 |
|
67 |
//------------------------ MAIN CODE ------------------------
|
68 |
-
var play_all = (typeof wcmp_global_settings != 'undefined') ? wcmp_global_settings[ 'play_all' ] : true, // Play all songs
|
|
|
69 |
ios_controls = (
|
70 |
typeof wcmp_global_settings != 'undefined' &&
|
71 |
('ios_controls' in wcmp_global_settings) &&
|
@@ -74,6 +75,7 @@
|
|
74 |
s = $('audio.wcmp-player:not(.track):not([playernumber])'),
|
75 |
m = $('audio.wcmp-player.track:not([playernumber])'),
|
76 |
c = {
|
|
|
77 |
iPadUseNativeControls: ios_controls,
|
78 |
iPhoneUseNativeControls: ios_controls,
|
79 |
success: function( media, dom ){
|
65 |
}
|
66 |
|
67 |
//------------------------ MAIN CODE ------------------------
|
68 |
+
var play_all = (typeof wcmp_global_settings != 'undefined') ? wcmp_global_settings[ 'play_all' ] : true, // Play all songs
|
69 |
+
pause_others = (typeof wcmp_global_settings != 'undefined') ? !(wcmp_global_settings['play_simultaneously']*1) : true,
|
70 |
ios_controls = (
|
71 |
typeof wcmp_global_settings != 'undefined' &&
|
72 |
('ios_controls' in wcmp_global_settings) &&
|
75 |
s = $('audio.wcmp-player:not(.track):not([playernumber])'),
|
76 |
m = $('audio.wcmp-player.track:not([playernumber])'),
|
77 |
c = {
|
78 |
+
pauseOtherPlayers: pause_others,
|
79 |
iPadUseNativeControls: ios_controls,
|
80 |
iPhoneUseNativeControls: ios_controls,
|
81 |
success: function( media, dom ){
|
languages/music-player-for-woocommerce-en_US.mo
CHANGED
Binary file
|
languages/music-player-for-woocommerce-en_US.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: music-player-for-woocommerce\n"
|
4 |
-
"POT-Creation-Date: 2020-
|
5 |
-
"PO-Revision-Date: 2020-
|
6 |
"Last-Translator: CodePeople\n"
|
7 |
"Language-Team: CodePeople\n"
|
8 |
"Language: en_US\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 2.4.
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e\n"
|
@@ -126,7 +126,12 @@ msgid ""
|
|
126 |
"modified as <b>dl=1</b>"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: addons/dokan/player_options.php:181 views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
130 |
msgid ""
|
131 |
"The player is shown only if the product is \"downloadable\" with at least an "
|
132 |
"audio file between the \"Downloadable files\", or you have selected your own "
|
@@ -137,92 +142,161 @@ msgstr ""
|
|
137 |
msgid "Include music player"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: addons/dokan/player_options.php:185 views/global_options.php:
|
141 |
#: views/player_options.php:182
|
142 |
msgid "Include in"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: addons/dokan/player_options.php:
|
|
|
|
|
|
|
|
|
146 |
#: views/player_options.php:185
|
147 |
msgid "single-entry pages <i>(Product's page only)</i>"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: addons/dokan/player_options.php:
|
|
|
|
|
|
|
|
|
151 |
#: views/player_options.php:188
|
152 |
msgid ""
|
153 |
"multiple entries pages <i>(Shop pages, archive pages, but not in the "
|
154 |
"product's page)</i>"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: addons/dokan/player_options.php:
|
|
|
|
|
|
|
|
|
158 |
#: views/player_options.php:191
|
159 |
msgid "all pages <i>(with single or multiple-entries)</i>"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: addons/dokan/player_options.php:198
|
163 |
-
#: views/
|
|
|
164 |
msgid "Merge in grouped products"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: addons/dokan/player_options.php:200 views/global_options.php:
|
168 |
#: views/player_options.php:196
|
169 |
msgid ""
|
170 |
"In grouped products, display the \"Add to cart\" buttons and quantity fields "
|
171 |
"in the players rows"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: addons/dokan/player_options.php:203 views/global_options.php:
|
175 |
#: views/player_options.php:199 widgets/playlist_widget.php:75
|
176 |
msgid "Player layout"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: addons/dokan/player_options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
#: views/player_options.php:221 widgets/playlist_widget.php:91
|
181 |
msgid "Preload"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: addons/dokan/player_options.php:
|
185 |
-
#: views/player_options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
msgid "Play all"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: addons/dokan/player_options.php:233 views/global_options.php:
|
190 |
#: views/player_options.php:244
|
191 |
msgid "Player controls"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: addons/dokan/player_options.php:235 views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
195 |
#: views/player_options.php:246
|
196 |
msgid "the play/pause button only"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: addons/dokan/player_options.php:236 views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
200 |
#: views/player_options.php:247
|
201 |
msgid "all controls"
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: addons/dokan/player_options.php:237 views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
205 |
#: views/player_options.php:248
|
206 |
msgid "the play/pause button only, or all controls depending on context"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: addons/dokan/player_options.php:
|
|
|
|
|
|
|
|
|
210 |
#: views/player_options.php:253
|
211 |
msgid "for play/pause button players display them on cover images."
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: addons/dokan/player_options.php:242 views/global_options.php:
|
215 |
#: views/player_options.php:256
|
216 |
msgid ""
|
217 |
"(This feature is experimental, and will depend on the theme active on the "
|
218 |
"website.)"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: addons/dokan/player_options.php:247 views/global_options.php:
|
222 |
#: views/player_options.php:263
|
223 |
msgid "Display the player's title"
|
224 |
msgstr ""
|
225 |
|
|
|
|
|
|
|
|
|
226 |
#: addons/wcfm.addon.php:25
|
227 |
msgid "Activate the WCFM add-on"
|
228 |
msgstr ""
|
@@ -237,6 +311,10 @@ msgstr ""
|
|
237 |
msgid "Music Player"
|
238 |
msgstr ""
|
239 |
|
|
|
|
|
|
|
|
|
240 |
#: addons/wcv.addon.php:25
|
241 |
msgid "Activate the WC Vendors add-on (Experimental add-on)"
|
242 |
msgstr ""
|
@@ -298,11 +376,11 @@ msgstr ""
|
|
298 |
msgid "Insert a playlist with the products players"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: views/global_options.php:
|
302 |
msgid "Music Player for WooCommerce - Global Settings"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: views/global_options.php:
|
306 |
msgid ""
|
307 |
"For reporting any issue or to request a customization, <a href=\"https://"
|
308 |
"wordpress.dwbooster.com/contact-us\" target=\"_blank\">CLICK HERE</a><br />\n"
|
@@ -314,19 +392,23 @@ msgid ""
|
|
314 |
"target=\"_blank\">Public page: Click to visit the WooCommerce Store</a>"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: views/global_options.php:
|
318 |
msgid "Registering of Plugin"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: views/global_options.php:
|
322 |
msgid "Enter the email address of buyer"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
326 |
msgid "Register"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: views/global_options.php:
|
330 |
msgid ""
|
331 |
"<p>The player uses the audio files associated to the product. If you want "
|
332 |
"protecting the audio files for selling, tick the checkbox: <b>\"Protect the "
|
@@ -338,111 +420,124 @@ msgid ""
|
|
338 |
"pay for them.</b></p>"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: views/global_options.php:
|
342 |
msgid "General Settings"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: views/global_options.php:
|
346 |
msgid "Include the players only for registered users"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: views/global_options.php:
|
350 |
msgid "The general settings affect only the PRO version of the plugin"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: views/global_options.php:
|
354 |
#: views/player_options.php:49 views/player_options.php:269
|
355 |
msgid "CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: views/global_options.php:
|
359 |
msgid ""
|
360 |
"For buyers, play the purchased audio files instead the truncated files for "
|
361 |
"demo"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: views/global_options.php:
|
365 |
msgid "Truncate the audio files for demo with ffmpeg"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: views/global_options.php:
|
369 |
msgid "ffmpeg path"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: views/global_options.php:
|
373 |
msgid "Delete the demo files generated previously"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: views/global_options.php:
|
377 |
msgid "Store demo files on Google Drive"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: views/global_options.php:
|
381 |
msgid "Import a JSON Key file"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
385 |
msgid "Troubleshoot Area"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: views/global_options.php:
|
389 |
msgid "On iPads and iPhones, use native controls"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: views/global_options.php:
|
393 |
msgid ""
|
394 |
"tick the checkbox if the players do not work properly on iPads or iPhones"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: views/global_options.php:
|
398 |
msgid "Loading players in the onload event"
|
399 |
msgstr ""
|
400 |
|
401 |
#: views/global_options.php:177
|
|
|
|
|
|
|
|
|
402 |
msgid "tick the checkbox if the players are not being loaded properly"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: views/global_options.php:
|
406 |
msgid "For files whose extensions cannot be determined"
|
407 |
msgstr ""
|
408 |
|
409 |
#: views/global_options.php:186
|
|
|
|
|
|
|
|
|
|
|
410 |
msgid "handle them as mp3 files"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: views/global_options.php:
|
414 |
msgid ""
|
415 |
"For the WooCommerce Gutenberg Blocks, include the main player in the "
|
416 |
"products titles"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: views/global_options.php:
|
420 |
msgid "Includes the main player in front of products titles"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: views/global_options.php:
|
424 |
msgid "WooCommerce hook used to display the players in the shop pages"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: views/global_options.php:
|
428 |
msgid ""
|
429 |
"The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. "
|
430 |
"If the player is not being displayed, enter the hook used by the theme "
|
431 |
"active on your website."
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: views/global_options.php:
|
435 |
msgid "WooCommerce hook used to display the players in the products pages"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: views/global_options.php:
|
439 |
msgid ""
|
440 |
"The plugin uses by default the <b>woocommerce_single_product_summary</b> "
|
441 |
"hook. If the player is not being displayed, enter the hook used by the theme "
|
442 |
"active on your website."
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: views/global_options.php:
|
446 |
msgid ""
|
447 |
"Click on the <a href=\"https://docs.woocommerce.com/wc-apidocs/hook-docs.html"
|
448 |
"\" target=\"_blank\">THIS LINK</a> for the list of available <a href="
|
@@ -450,87 +545,136 @@ msgid ""
|
|
450 |
"style=\"font-weight:bold;font-size:1.3em;\">WooCommerce Hooks</a>"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: views/global_options.php:
|
454 |
msgid "Include music player in all products"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
msgid "Include players in cart"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
msgid "Player volume (from 0 to 1)"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
msgid "The security feature is only available in the PRO version of the plugin"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: views/global_options.php:
|
|
|
470 |
msgid "Protect the file"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: views/global_options.php:
|
|
|
474 |
msgid "Percent of audio used for protected playbacks"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: views/global_options.php:
|
478 |
msgid ""
|
479 |
"To prevent unauthorized copying of audio files, the files will be partially "
|
480 |
"accessible"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: views/global_options.php:
|
484 |
msgid ""
|
485 |
"Text to display beside the player explaining that demos are partial versions "
|
486 |
"of the original files"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: views/global_options.php:
|
|
|
|
|
|
|
|
|
490 |
msgid "Scope"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: views/global_options.php:
|
494 |
msgid ""
|
495 |
"Ticking the checkbox the previous settings are applied to all products, even "
|
496 |
"if they have a player enabled."
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: views/global_options.php:
|
500 |
-
msgid "Apply the previous settings to all products
|
501 |
msgstr ""
|
502 |
|
503 |
#: views/global_options.php:364
|
|
|
|
|
|
|
|
|
504 |
msgid "Analytics"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: views/global_options.php:
|
508 |
msgid ""
|
509 |
"Allows the integration with Google Analytics for registering new events when "
|
510 |
"the songs are played. The event information would include: the URL to the "
|
511 |
"audio file as the event label and the product's id as its value."
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: views/global_options.php:
|
515 |
msgid "Note"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: views/global_options.php:
|
519 |
msgid ""
|
520 |
"If the preload option is configured as Metadata or Auto in the players "
|
521 |
"settings, the event would be registered when the audio file is loaded by the "
|
522 |
"player and not exactly when they are playing."
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: views/global_options.php:
|
526 |
msgid "Tracking Id"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: views/global_options.php:
|
530 |
msgid "Add ons"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: views/global_options.php:
|
534 |
msgid "Save settings"
|
535 |
msgstr ""
|
536 |
|
@@ -556,6 +700,18 @@ msgid ""
|
|
556 |
"least an audio file between the \"Downloadable files\""
|
557 |
msgstr ""
|
558 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
#: views/player_options.php:291
|
560 |
msgid "Select my own demo files"
|
561 |
msgstr ""
|
@@ -568,10 +724,14 @@ msgstr ""
|
|
568 |
msgid "Name"
|
569 |
msgstr ""
|
570 |
|
571 |
-
#: views/player_options.php:300
|
572 |
msgid "File URL"
|
573 |
msgstr ""
|
574 |
|
|
|
|
|
|
|
|
|
575 |
#: views/player_options.php:323
|
576 |
msgid "Add File"
|
577 |
msgstr ""
|
@@ -580,7 +740,7 @@ msgstr ""
|
|
580 |
msgid "Help"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: wcmp.php:
|
584 |
msgid "There are no products that satisfy the block's settings"
|
585 |
msgstr ""
|
586 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: music-player-for-woocommerce\n"
|
4 |
+
"POT-Creation-Date: 2020-12-01 20:39+0100\n"
|
5 |
+
"PO-Revision-Date: 2020-12-01 20:39+0100\n"
|
6 |
"Last-Translator: CodePeople\n"
|
7 |
"Language-Team: CodePeople\n"
|
8 |
"Language: en_US\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 2.4.2\n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e\n"
|
126 |
"modified as <b>dl=1</b>"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: addons/dokan/player_options.php:181 views/global_options.php:225
|
130 |
+
#: views/player_options.php:179
|
131 |
+
msgid "Enable player"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: addons/dokan/player_options.php:181 views/global_options.php:225
|
135 |
msgid ""
|
136 |
"The player is shown only if the product is \"downloadable\" with at least an "
|
137 |
"audio file between the \"Downloadable files\", or you have selected your own "
|
142 |
msgid "Include music player"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: addons/dokan/player_options.php:185 views/global_options.php:228
|
146 |
#: views/player_options.php:182
|
147 |
msgid "Include in"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: addons/dokan/player_options.php:187
|
151 |
+
msgid "Include on products pages only"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: addons/dokan/player_options.php:188 views/global_options.php:231
|
155 |
#: views/player_options.php:185
|
156 |
msgid "single-entry pages <i>(Product's page only)</i>"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: addons/dokan/player_options.php:190 views/player_options.php:187
|
160 |
+
msgid "Include on multiple-entry pages"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: addons/dokan/player_options.php:191 views/global_options.php:234
|
164 |
#: views/player_options.php:188
|
165 |
msgid ""
|
166 |
"multiple entries pages <i>(Shop pages, archive pages, but not in the "
|
167 |
"product's page)</i>"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: addons/dokan/player_options.php:193
|
171 |
+
msgid "Include on products and multiple-entry pages"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: addons/dokan/player_options.php:194 views/global_options.php:237
|
175 |
#: views/player_options.php:191
|
176 |
msgid "all pages <i>(with single or multiple-entries)</i>"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: addons/dokan/player_options.php:198 addons/dokan/player_options.php:199
|
180 |
+
#: views/global_options.php:247 views/global_options.php:248
|
181 |
+
#: views/player_options.php:195 views/player_options.php:196
|
182 |
msgid "Merge in grouped products"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: addons/dokan/player_options.php:200 views/global_options.php:248
|
186 |
#: views/player_options.php:196
|
187 |
msgid ""
|
188 |
"In grouped products, display the \"Add to cart\" buttons and quantity fields "
|
189 |
"in the players rows"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: addons/dokan/player_options.php:203 views/global_options.php:251
|
193 |
#: views/player_options.php:199 widgets/playlist_widget.php:75
|
194 |
msgid "Player layout"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: addons/dokan/player_options.php:206 views/global_options.php:255
|
198 |
+
#: views/global_options.php:256 views/player_options.php:203
|
199 |
+
#: views/player_options.php:204
|
200 |
+
msgid "Skin 1"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: addons/dokan/player_options.php:211 views/global_options.php:261
|
204 |
+
#: views/player_options.php:208 views/player_options.php:209
|
205 |
+
msgid "Skin 2"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: addons/dokan/player_options.php:216 views/global_options.php:265
|
209 |
+
#: views/global_options.php:266 views/player_options.php:213
|
210 |
+
#: views/player_options.php:214
|
211 |
+
msgid "Skin 3"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: addons/dokan/player_options.php:222 views/global_options.php:273
|
215 |
#: views/player_options.php:221 widgets/playlist_widget.php:91
|
216 |
msgid "Preload"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: addons/dokan/player_options.php:224 views/global_options.php:276
|
220 |
+
#: views/player_options.php:224
|
221 |
+
msgid "Preload - none"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#: addons/dokan/player_options.php:225 views/global_options.php:277
|
225 |
+
#: views/player_options.php:225
|
226 |
+
msgid "Preload - metadata"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: addons/dokan/player_options.php:226 views/global_options.php:278
|
230 |
+
#: views/player_options.php:226
|
231 |
+
msgid "Preload - auto"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: addons/dokan/player_options.php:230 views/global_options.php:283
|
235 |
+
#: views/global_options.php:286 views/player_options.php:231
|
236 |
+
#: views/player_options.php:234 widgets/playlist_widget.php:87
|
237 |
msgid "Play all"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: addons/dokan/player_options.php:233 views/global_options.php:307
|
241 |
#: views/player_options.php:244
|
242 |
msgid "Player controls"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: addons/dokan/player_options.php:235 views/global_options.php:309
|
246 |
+
#: views/player_options.php:246
|
247 |
+
msgid "Play/pause button"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: addons/dokan/player_options.php:235 views/global_options.php:309
|
251 |
#: views/player_options.php:246
|
252 |
msgid "the play/pause button only"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: addons/dokan/player_options.php:236 views/global_options.php:310
|
256 |
+
#: views/player_options.php:247
|
257 |
+
msgid "All controls"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#: addons/dokan/player_options.php:236 views/global_options.php:310
|
261 |
#: views/player_options.php:247
|
262 |
msgid "all controls"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: addons/dokan/player_options.php:237 views/global_options.php:311
|
266 |
+
#: views/player_options.php:248
|
267 |
+
msgid "Depending on context"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: addons/dokan/player_options.php:237 views/global_options.php:311
|
271 |
#: views/player_options.php:248
|
272 |
msgid "the play/pause button only, or all controls depending on context"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: addons/dokan/player_options.php:239
|
276 |
+
msgid "Player on cover"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: addons/dokan/player_options.php:241 views/global_options.php:316
|
280 |
#: views/player_options.php:253
|
281 |
msgid "for play/pause button players display them on cover images."
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: addons/dokan/player_options.php:242 views/global_options.php:319
|
285 |
#: views/player_options.php:256
|
286 |
msgid ""
|
287 |
"(This feature is experimental, and will depend on the theme active on the "
|
288 |
"website.)"
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: addons/dokan/player_options.php:247 views/global_options.php:326
|
292 |
#: views/player_options.php:263
|
293 |
msgid "Display the player's title"
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: addons/dokan/player_options.php:247
|
297 |
+
msgid "Display player title"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
#: addons/wcfm.addon.php:25
|
301 |
msgid "Activate the WCFM add-on"
|
302 |
msgstr ""
|
311 |
msgid "Music Player"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: addons/wcv.addon.php:25
|
315 |
+
msgid "Activate the WC Vendors add-on"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
#: addons/wcv.addon.php:25
|
319 |
msgid "Activate the WC Vendors add-on (Experimental add-on)"
|
320 |
msgstr ""
|
376 |
msgid "Insert a playlist with the products players"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: views/global_options.php:37
|
380 |
msgid "Music Player for WooCommerce - Global Settings"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: views/global_options.php:41
|
384 |
msgid ""
|
385 |
"For reporting any issue or to request a customization, <a href=\"https://"
|
386 |
"wordpress.dwbooster.com/contact-us\" target=\"_blank\">CLICK HERE</a><br />\n"
|
392 |
"target=\"_blank\">Public page: Click to visit the WooCommerce Store</a>"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: views/global_options.php:50
|
396 |
msgid "Registering of Plugin"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: views/global_options.php:52
|
400 |
msgid "Enter the email address of buyer"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: views/global_options.php:53
|
404 |
+
msgid "Buyer email"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: views/global_options.php:53
|
408 |
msgid "Register"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: views/global_options.php:65 views/player_options.php:45
|
412 |
msgid ""
|
413 |
"<p>The player uses the audio files associated to the product. If you want "
|
414 |
"protecting the audio files for selling, tick the checkbox: <b>\"Protect the "
|
420 |
"pay for them.</b></p>"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: views/global_options.php:76
|
424 |
msgid "General Settings"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: views/global_options.php:79 views/global_options.php:80
|
428 |
msgid "Include the players only for registered users"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: views/global_options.php:83
|
432 |
msgid "The general settings affect only the PRO version of the plugin"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: views/global_options.php:83 views/global_options.php:332
|
436 |
#: views/player_options.php:49 views/player_options.php:269
|
437 |
msgid "CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: views/global_options.php:86 views/global_options.php:87
|
441 |
msgid ""
|
442 |
"For buyers, play the purchased audio files instead the truncated files for "
|
443 |
"demo"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: views/global_options.php:93 views/global_options.php:94
|
447 |
msgid "Truncate the audio files for demo with ffmpeg"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: views/global_options.php:97 views/global_options.php:98
|
451 |
msgid "ffmpeg path"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: views/global_options.php:104 views/global_options.php:105
|
455 |
msgid "Delete the demo files generated previously"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: views/global_options.php:111 views/global_options.php:112
|
459 |
msgid "Store demo files on Google Drive"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: views/global_options.php:115
|
463 |
msgid "Import a JSON Key file"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: views/global_options.php:117
|
467 |
+
msgid "JSON Key file"
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: views/global_options.php:161
|
471 |
msgid "Troubleshoot Area"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: views/global_options.php:165 views/global_options.php:168
|
475 |
msgid "On iPads and iPhones, use native controls"
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: views/global_options.php:169
|
479 |
msgid ""
|
480 |
"tick the checkbox if the players do not work properly on iPads or iPhones"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: views/global_options.php:174
|
484 |
msgid "Loading players in the onload event"
|
485 |
msgstr ""
|
486 |
|
487 |
#: views/global_options.php:177
|
488 |
+
msgid "Loading placeholder in the onload event"
|
489 |
+
msgstr ""
|
490 |
+
|
491 |
+
#: views/global_options.php:178
|
492 |
msgid "tick the checkbox if the players are not being loaded properly"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: views/global_options.php:183
|
496 |
msgid "For files whose extensions cannot be determined"
|
497 |
msgstr ""
|
498 |
|
499 |
#: views/global_options.php:186
|
500 |
+
msgid ""
|
501 |
+
"For files whose extensions cannot be determined, handle them as mp3 files"
|
502 |
+
msgstr ""
|
503 |
+
|
504 |
+
#: views/global_options.php:187
|
505 |
msgid "handle them as mp3 files"
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: views/global_options.php:192 views/global_options.php:195
|
509 |
msgid ""
|
510 |
"For the WooCommerce Gutenberg Blocks, include the main player in the "
|
511 |
"products titles"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: views/global_options.php:196
|
515 |
msgid "Includes the main player in front of products titles"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: views/global_options.php:201 views/global_options.php:204
|
519 |
msgid "WooCommerce hook used to display the players in the shop pages"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: views/global_options.php:205
|
523 |
msgid ""
|
524 |
"The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. "
|
525 |
"If the player is not being displayed, enter the hook used by the theme "
|
526 |
"active on your website."
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: views/global_options.php:210 views/global_options.php:213
|
530 |
msgid "WooCommerce hook used to display the players in the products pages"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: views/global_options.php:214
|
534 |
msgid ""
|
535 |
"The plugin uses by default the <b>woocommerce_single_product_summary</b> "
|
536 |
"hook. If the player is not being displayed, enter the hook used by the theme "
|
537 |
"active on your website."
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: views/global_options.php:219
|
541 |
msgid ""
|
542 |
"Click on the <a href=\"https://docs.woocommerce.com/wc-apidocs/hook-docs.html"
|
543 |
"\" target=\"_blank\">THIS LINK</a> for the list of available <a href="
|
545 |
"style=\"font-weight:bold;font-size:1.3em;\">WooCommerce Hooks</a>"
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: views/global_options.php:224
|
549 |
msgid "Include music player in all products"
|
550 |
msgstr ""
|
551 |
|
552 |
+
#: views/global_options.php:230
|
553 |
+
msgid "Products pages only"
|
554 |
+
msgstr ""
|
555 |
+
|
556 |
+
#: views/global_options.php:233
|
557 |
+
msgid "Multiple-entry pages"
|
558 |
+
msgstr ""
|
559 |
+
|
560 |
+
#: views/global_options.php:236
|
561 |
+
msgid "Product and multiple-entry pages"
|
562 |
+
msgstr ""
|
563 |
+
|
564 |
+
#: views/global_options.php:241 views/global_options.php:243
|
565 |
msgid "Include players in cart"
|
566 |
msgstr ""
|
567 |
|
568 |
+
#: views/global_options.php:260
|
569 |
+
msgid "skin 2"
|
570 |
+
msgstr ""
|
571 |
+
|
572 |
+
#: views/global_options.php:291 views/global_options.php:294
|
573 |
+
msgid "Allow multiple players to play simultaneously"
|
574 |
+
msgstr ""
|
575 |
+
|
576 |
+
#: views/global_options.php:296
|
577 |
+
msgid ""
|
578 |
+
"By default, only one player would be playing at once. By pressing the play "
|
579 |
+
"button of a player, the other players would stop. By ticking the checkbox, "
|
580 |
+
"multiple players could play simultaneously."
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: views/global_options.php:301 views/player_options.php:238
|
584 |
msgid "Player volume (from 0 to 1)"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: views/global_options.php:303 views/player_options.php:240
|
588 |
+
msgid "Player volume"
|
589 |
+
msgstr ""
|
590 |
+
|
591 |
+
#: views/global_options.php:313 views/player_options.php:250
|
592 |
+
msgid "On cover"
|
593 |
+
msgstr ""
|
594 |
+
|
595 |
+
#: views/global_options.php:328 views/player_options.php:265
|
596 |
+
msgid "Display the player title"
|
597 |
+
msgstr ""
|
598 |
+
|
599 |
+
#: views/global_options.php:332 views/player_options.php:269
|
600 |
msgid "The security feature is only available in the PRO version of the plugin"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: views/global_options.php:335 views/global_options.php:336
|
604 |
+
#: views/player_options.php:272 views/player_options.php:273
|
605 |
msgid "Protect the file"
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: views/global_options.php:339 views/global_options.php:341
|
609 |
+
#: views/player_options.php:276 views/player_options.php:278
|
610 |
msgid "Percent of audio used for protected playbacks"
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: views/global_options.php:342 views/player_options.php:279
|
614 |
msgid ""
|
615 |
"To prevent unauthorized copying of audio files, the files will be partially "
|
616 |
"accessible"
|
617 |
msgstr ""
|
618 |
|
619 |
+
#: views/global_options.php:347
|
620 |
msgid ""
|
621 |
"Text to display beside the player explaining that demos are partial versions "
|
622 |
"of the original files"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: views/global_options.php:349
|
626 |
+
msgid "Explaining that demos are partial versions of the original files"
|
627 |
+
msgstr ""
|
628 |
+
|
629 |
+
#: views/global_options.php:363
|
630 |
msgid "Scope"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: views/global_options.php:364
|
634 |
msgid ""
|
635 |
"Ticking the checkbox the previous settings are applied to all products, even "
|
636 |
"if they have a player enabled."
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: views/global_options.php:364
|
640 |
+
msgid "Apply the previous settings to all products"
|
641 |
msgstr ""
|
642 |
|
643 |
#: views/global_options.php:364
|
644 |
+
msgid "Apply the previous settings to all products pages in the website."
|
645 |
+
msgstr ""
|
646 |
+
|
647 |
+
#: views/global_options.php:376
|
648 |
msgid "Analytics"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: views/global_options.php:380
|
652 |
msgid ""
|
653 |
"Allows the integration with Google Analytics for registering new events when "
|
654 |
"the songs are played. The event information would include: the URL to the "
|
655 |
"audio file as the event label and the product's id as its value."
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: views/global_options.php:381
|
659 |
msgid "Note"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: views/global_options.php:381
|
663 |
msgid ""
|
664 |
"If the preload option is configured as Metadata or Auto in the players "
|
665 |
"settings, the event would be registered when the audio file is loaded by the "
|
666 |
"player and not exactly when they are playing."
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: views/global_options.php:386 views/global_options.php:387
|
670 |
msgid "Tracking Id"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: views/global_options.php:399
|
674 |
msgid "Add ons"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: views/global_options.php:406
|
678 |
msgid "Save settings"
|
679 |
msgstr ""
|
680 |
|
700 |
"least an audio file between the \"Downloadable files\""
|
701 |
msgstr ""
|
702 |
|
703 |
+
#: views/player_options.php:184
|
704 |
+
msgid "Include on products pages"
|
705 |
+
msgstr ""
|
706 |
+
|
707 |
+
#: views/player_options.php:190
|
708 |
+
msgid "Include on product and multiple-entry pages"
|
709 |
+
msgstr ""
|
710 |
+
|
711 |
+
#: views/player_options.php:291
|
712 |
+
msgid "Own demo files"
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
#: views/player_options.php:291
|
716 |
msgid "Select my own demo files"
|
717 |
msgstr ""
|
724 |
msgid "Name"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: views/player_options.php:300 views/player_options.php:310
|
728 |
msgid "File URL"
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: views/player_options.php:307
|
732 |
+
msgid "File name"
|
733 |
+
msgstr ""
|
734 |
+
|
735 |
#: views/player_options.php:323
|
736 |
msgid "Add File"
|
737 |
msgstr ""
|
740 |
msgid "Help"
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: wcmp.php:964
|
744 |
msgid "There are no products that satisfy the block's settings"
|
745 |
msgstr ""
|
746 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
|
|
3 |
Donate link: https://wcmp.dwbooster.com
|
4 |
Tags:WooCommerce,music player,audio,music,song,player,audio player,media player,mp3,m3u,m3u8,wav,oga,ogg,dokan,wcfm
|
5 |
Requires at least: 3.5.0
|
6 |
-
Tested up to: 5.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -200,6 +200,18 @@ Each time save the data of a product, the files for demo are deleted and generat
|
|
200 |
|
201 |
== Changelog ==
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
= 1.0.122 =
|
204 |
|
205 |
* Improves the plugin's support for outdated browsers like Internet Explorer.
|
@@ -721,6 +733,6 @@ Each time save the data of a product, the files for demo are deleted and generat
|
|
721 |
|
722 |
== Upgrade Notice ==
|
723 |
|
724 |
-
= 1.0.
|
725 |
|
726 |
Important note: If you are using the Professional version don't update via the WP dashboard but using your personal update link. Contact us if you need further information: http://wordpress.dwbooster.com/support
|
3 |
Donate link: https://wcmp.dwbooster.com
|
4 |
Tags:WooCommerce,music player,audio,music,song,player,audio player,media player,mp3,m3u,m3u8,wav,oga,ogg,dokan,wcfm
|
5 |
Requires at least: 3.5.0
|
6 |
+
Tested up to: 5.6
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
200 |
|
201 |
== Changelog ==
|
202 |
|
203 |
+
= 1.0.125 =
|
204 |
+
|
205 |
+
* Includes a new option in the plugin's settings to allow multiple players to play simultaneously.
|
206 |
+
|
207 |
+
= 1.0.124 =
|
208 |
+
|
209 |
+
* Removes unnecessary logs.
|
210 |
+
|
211 |
+
= 1.0.123 =
|
212 |
+
|
213 |
+
* Improves the accessibility.
|
214 |
+
|
215 |
= 1.0.122 =
|
216 |
|
217 |
* Improves the plugin's support for outdated browsers like Internet Explorer.
|
733 |
|
734 |
== Upgrade Notice ==
|
735 |
|
736 |
+
= 1.0.124 =
|
737 |
|
738 |
Important note: If you are using the Professional version don't update via the WP dashboard but using your personal update link. Contact us if you need further information: http://wordpress.dwbooster.com/support
|
views/global_options.php
CHANGED
@@ -24,6 +24,7 @@ $preload = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
|
|
24 |
// This option is only for compatibility with versions previous to 1.0.28
|
25 |
$GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( 'preload', 'none' )
|
26 |
);
|
|
|
27 |
$play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
|
28 |
'_wcmp_play_all',
|
29 |
// This option is only for compatibility with versions previous to 1.0.28
|
@@ -46,10 +47,10 @@ _e(
|
|
46 |
</div>
|
47 |
<form method="post">
|
48 |
<div class="postbox">
|
49 |
-
<
|
50 |
<div class="inside">
|
51 |
<label style="color:#DDDDDD;"><?php _e('Enter the email address of buyer', 'music-player-for-woocommerce'); ?>:</label>
|
52 |
-
<br><input type="text" disabled> <input value="<?php esc_attr_e(__('Register', 'music-player-for-woocommerce')); ?>" disabled class="button-primary">
|
53 |
</div>
|
54 |
</div>
|
55 |
</form>
|
@@ -76,44 +77,44 @@ _e(
|
|
76 |
</tr>
|
77 |
<tr>
|
78 |
<td width="30%"><?php _e( 'Include the players only for registered users', 'music-player-for-woocommerce' ); ?></td>
|
79 |
-
<td><input type="checkbox" name="_wcmp_registered_only" <?php print(($registered_only) ? 'CHECKED' : '' ); ?> /></td>
|
80 |
</tr>
|
81 |
<tr>
|
82 |
<td colspan="2" style="color:red;"><?php _e( 'The general settings affect only the PRO version of the plugin', 'music-player-for-woocommerce'); ?>. <a target="_blank" href="https://wcmp.dwbooster.com"><?php _e('CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN', 'music-player-for-woocommerce'); ?></a></td>
|
83 |
</tr>
|
84 |
<tr>
|
85 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'For buyers, play the purchased audio files instead the truncated files for demo', 'music-player-for-woocommerce' ); ?></td>
|
86 |
-
<td><input type="checkbox" DISABLED /></td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
<td colspan="2"><hr /></td>
|
90 |
</tr>
|
91 |
<tr>
|
92 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Truncate the audio files for demo with ffmpeg', 'music-player-for-woocommerce' ); ?></td>
|
93 |
-
<td><input type="checkbox" DISABLED /></td>
|
94 |
</tr>
|
95 |
<tr>
|
96 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'ffmpeg path', 'music-player-for-woocommerce' ); ?></td>
|
97 |
-
<td><input type="text" DISABLED /></td>
|
98 |
</tr>
|
99 |
<tr>
|
100 |
<td colspan="2"><hr /></td>
|
101 |
</tr>
|
102 |
<tr>
|
103 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Delete the demo files generated previously', 'music-player-for-woocommerce' ); ?></td>
|
104 |
-
<td><input type="checkbox" DISABLED /></td>
|
105 |
</tr>
|
106 |
<tr>
|
107 |
<td colspan="2"><hr /></td>
|
108 |
</tr>
|
109 |
<tr>
|
110 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Store demo files on Google Drive', 'music-player-for-woocommerce' ); ?></td>
|
111 |
-
<td><input type="checkbox" disabled /></td>
|
112 |
</tr>
|
113 |
<tr>
|
114 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Import a JSON Key file', 'music-player-for-woocommerce' ); ?></td>
|
115 |
<td>
|
116 |
-
<input type="file" disabled />
|
117 |
<br /><br />
|
118 |
<div style="border:1px solid #E6DB55;margin-bottom:10px;padding:5px;background-color: #FFFFE0;">
|
119 |
<h3>Turn on the Drive API</h3>
|
@@ -164,7 +165,7 @@ _e(
|
|
164 |
<?php _e( 'On iPads and iPhones, use native controls', 'music-player-for-woocommerce' ); ?>
|
165 |
</td>
|
166 |
<td>
|
167 |
-
<input type="checkbox" name="_wcmp_ios_controls" <?php if($ios_controls) print 'CHECKED'; ?>/>
|
168 |
<?php _e( 'tick the checkbox if the players do not work properly on iPads or iPhones', 'music-player-for-woocommerce' ); ?>
|
169 |
</td>
|
170 |
</tr>
|
@@ -173,7 +174,7 @@ _e(
|
|
173 |
<?php _e( 'Loading players in the onload event', 'music-player-for-woocommerce' ); ?>
|
174 |
</td>
|
175 |
<td>
|
176 |
-
<input type="checkbox" name="_wcmp_onload" <?php if($troubleshoot_onload) print 'CHECKED'; ?>/>
|
177 |
<?php _e( 'tick the checkbox if the players are not being loaded properly', 'music-player-for-woocommerce' ); ?>
|
178 |
</td>
|
179 |
</tr>
|
@@ -182,7 +183,7 @@ _e(
|
|
182 |
<?php _e( 'For files whose extensions cannot be determined', 'music-player-for-woocommerce' ); ?>
|
183 |
</td>
|
184 |
<td>
|
185 |
-
<input type="checkbox" name="_wcmp_default_extension" <?php if($troubleshoot_default_extension) print 'CHECKED'; ?>/>
|
186 |
<?php _e( 'handle them as mp3 files', 'music-player-for-woocommerce' ); ?>
|
187 |
</td>
|
188 |
</tr>
|
@@ -191,7 +192,7 @@ _e(
|
|
191 |
<?php _e( 'For the WooCommerce Gutenberg Blocks, include the main player in the products titles', 'music-player-for-woocommerce' ); ?>
|
192 |
</td>
|
193 |
<td>
|
194 |
-
<input type="checkbox" name="_wcmp_force_main_player_in_title" <?php if($force_main_player_in_title) print 'CHECKED'; ?>/>
|
195 |
<?php _e( 'Includes the main player in front of products titles', 'music-player-for-woocommerce' ); ?>
|
196 |
</td>
|
197 |
</tr>
|
@@ -200,7 +201,7 @@ _e(
|
|
200 |
<?php _e( 'WooCommerce hook used to display the players in the shop pages', 'music-player-for-woocommerce' ); ?>
|
201 |
</td>
|
202 |
<td>
|
203 |
-
<input type="text" name="_wcmp_main_player_hook" value="<?php esc_attr_e($include_main_player_hook); ?>" style="width:100%" /><br />
|
204 |
<?php _e( 'The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?>
|
205 |
</td>
|
206 |
</tr>
|
@@ -209,7 +210,7 @@ _e(
|
|
209 |
<?php _e( 'WooCommerce hook used to display the players in the products pages', 'music-player-for-woocommerce' ); ?>
|
210 |
</td>
|
211 |
<td>
|
212 |
-
<input type="text" name="_wcmp_all_players_hook" value="<?php esc_attr_e($include_all_players_hook); ?>" style="width:100%" /><br />
|
213 |
<?php _e( 'The plugin uses by default the <b>woocommerce_single_product_summary</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?>
|
214 |
</td>
|
215 |
</tr>
|
@@ -221,48 +222,48 @@ _e(
|
|
221 |
<table class="widefat wcmp-player-settings" style="border:1px solid #e1e1e1;">
|
222 |
<tr>
|
223 |
<td width="30%"><?php _e( 'Include music player in all products', 'music-player-for-woocommerce' ); ?></td>
|
224 |
-
<td><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('The player is shown only if the product is "downloadable" with at least an audio file between the "Downloadable files", or you have selected your own audio files', 'music-player-for-woocommerce'); ?></span><input type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> /></div></td>
|
225 |
</tr>
|
226 |
<tr>
|
227 |
<td width="30%"><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></td>
|
228 |
<td>
|
229 |
-
<input type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
230 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?><br />
|
231 |
|
232 |
-
<input type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
233 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?><br />
|
234 |
|
235 |
-
<input type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
236 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?>
|
237 |
</td>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<td width="30%"><?php _e( 'Include players in cart', 'music-player-for-woocommerce' ); ?></td>
|
241 |
<td>
|
242 |
-
<input type="checkbox" name="_wcmp_players_in_cart" <?php echo (( $players_in_cart ) ? 'checked' : '' ); ?> />
|
243 |
</td>
|
244 |
</tr>
|
245 |
<tr>
|
246 |
<td width="30%"><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?></td>
|
247 |
-
<td><input type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /><br /><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></td>
|
248 |
</tr>
|
249 |
<tr>
|
250 |
<td valign="top" width="30%"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></td>
|
251 |
<td>
|
252 |
<table>
|
253 |
<tr>
|
254 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
255 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
256 |
</tr>
|
257 |
|
258 |
<tr>
|
259 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
260 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
261 |
</tr>
|
262 |
|
263 |
<tr>
|
264 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
265 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
266 |
</tr>
|
267 |
</table>
|
268 |
</td>
|
@@ -272,9 +273,9 @@ _e(
|
|
272 |
<?php _e( 'Preload', 'music-player-for-woocommerce' ); ?>
|
273 |
</td>
|
274 |
<td>
|
275 |
-
<label><input type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label><br />
|
276 |
-
<label><input type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label><br />
|
277 |
-
<label><input type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label><br />
|
278 |
</td>
|
279 |
</tr>
|
280 |
<tr>
|
@@ -282,23 +283,34 @@ _e(
|
|
282 |
<?php _e( 'Play all', 'music-player-for-woocommerce' ); ?>
|
283 |
</td>
|
284 |
<td>
|
285 |
-
<input type="checkbox" name="_wcmp_play_all" <?php if($play_all) echo 'CHECKED'; ?> />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
</td>
|
287 |
</tr>
|
288 |
<tr>
|
289 |
<td><?php _e( 'Player volume (from 0 to 1)', 'music-player-for-woocommerce' ); ?></td>
|
290 |
<td>
|
291 |
-
<input type="number" name="_wcmp_player_volume" min="0" max="1" step="0.01" value="<?php echo esc_attr($volume); ?>" />
|
292 |
</td>
|
293 |
</tr>
|
294 |
<tr>
|
295 |
<td width="30%"><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></td>
|
296 |
<td>
|
297 |
-
<input type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?><br />
|
298 |
-
<input type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?><br />
|
299 |
-
<input type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?>
|
300 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
301 |
-
<input type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
302 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
303 |
?> />
|
304 |
<?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?>
|
@@ -313,7 +325,7 @@ _e(
|
|
313 |
<tr>
|
314 |
<td width="30%"><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?></td>
|
315 |
<td>
|
316 |
-
<input type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> />
|
317 |
</td>
|
318 |
</tr>
|
319 |
<tr>
|
@@ -321,12 +333,12 @@ _e(
|
|
321 |
</tr>
|
322 |
<tr>
|
323 |
<td style="color:#DDDDDD;" width="30%"><?php _e( 'Protect the file', 'music-player-for-woocommerce' ); ?></td>
|
324 |
-
<td><input type="checkbox" DISABLED /></td>
|
325 |
</tr>
|
326 |
<tr valign="top">
|
327 |
<td style="color:#DDDDDD;" width="30%"><?php _e('Percent of audio used for protected playbacks', 'music-player-for-woocommerce'); ?></td>
|
328 |
<td style="color:#DDDDDD;">
|
329 |
-
<input type="number" DISABLED /> % <br />
|
330 |
<em><?php _e('To prevent unauthorized copying of audio files, the files will be partially accessible', 'music-player-for-woocommerce'); ?></em>
|
331 |
</td>
|
332 |
</tr>
|
@@ -334,7 +346,7 @@ _e(
|
|
334 |
<td style="color:#DDDDDD;" width="30%">
|
335 |
<?php _e('Text to display beside the player explaining that demos are partial versions of the original files', 'music-player-for-woocommerce'); ?>
|
336 |
<td style="color:#DDDDDD;">
|
337 |
-
<textarea style="width:100%;" rows="4" disabled></textarea>
|
338 |
</td>
|
339 |
</tr>
|
340 |
|
@@ -349,7 +361,7 @@ _e(
|
|
349 |
<tr>
|
350 |
<td>
|
351 |
<div><?php _e('Scope', 'music-player-for-woocommerce'); ?></div>
|
352 |
-
<div><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('Ticking the checkbox the previous settings are applied to all products, even if they have a player enabled.', 'music-player-for-woocommerce');?></span><input type="checkbox" name="_wcmp_apply_to_all_players" /></div> <?php _e('Apply the previous settings to all products pages in the website.', 'music-player-for-woocommerce'); ?></div>
|
353 |
</td>
|
354 |
</tr>
|
355 |
</table>
|
@@ -372,7 +384,7 @@ _e(
|
|
372 |
<tr>
|
373 |
<td>
|
374 |
<div><?php _e('Tracking Id', 'music-player-for-woocommerce'); ?></div>
|
375 |
-
<div><input type="text" name="_wcmp_analytics_property" value="<?php print esc_attr($analytics_property); ?>" style="width:100%;" placeholder="UA-XXXXX-Y"></div>
|
376 |
</td>
|
377 |
</tr>
|
378 |
</table>
|
24 |
// This option is only for compatibility with versions previous to 1.0.28
|
25 |
$GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( 'preload', 'none' )
|
26 |
);
|
27 |
+
$play_simultaneously = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_play_simultaneously', 0);
|
28 |
$play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
|
29 |
'_wcmp_play_all',
|
30 |
// This option is only for compatibility with versions previous to 1.0.28
|
47 |
</div>
|
48 |
<form method="post">
|
49 |
<div class="postbox">
|
50 |
+
<h2 class="hndle" style="padding:5px;color:#DDDDDD;"><?php _e('Registering of Plugin', 'music-player-for-woocommerce'); ?></h2>
|
51 |
<div class="inside">
|
52 |
<label style="color:#DDDDDD;"><?php _e('Enter the email address of buyer', 'music-player-for-woocommerce'); ?>:</label>
|
53 |
+
<br><input aria-label="<?php print esc_attr(__('Buyer email','music-player-for-woocommerce')); ?>" type="text" disabled> <input value="<?php esc_attr_e(__('Register', 'music-player-for-woocommerce')); ?>" disabled class="button-primary">
|
54 |
</div>
|
55 |
</div>
|
56 |
</form>
|
77 |
</tr>
|
78 |
<tr>
|
79 |
<td width="30%"><?php _e( 'Include the players only for registered users', 'music-player-for-woocommerce' ); ?></td>
|
80 |
+
<td><input aria-label="<?php print esc_attr(__('Include the players only for registered users','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_registered_only" <?php print(($registered_only) ? 'CHECKED' : '' ); ?> /></td>
|
81 |
</tr>
|
82 |
<tr>
|
83 |
<td colspan="2" style="color:red;"><?php _e( 'The general settings affect only the PRO version of the plugin', 'music-player-for-woocommerce'); ?>. <a target="_blank" href="https://wcmp.dwbooster.com"><?php _e('CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN', 'music-player-for-woocommerce'); ?></a></td>
|
84 |
</tr>
|
85 |
<tr>
|
86 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'For buyers, play the purchased audio files instead the truncated files for demo', 'music-player-for-woocommerce' ); ?></td>
|
87 |
+
<td><input aria-label="<?php print esc_attr(__('For buyers, play the purchased audio files instead the truncated files for demo','music-player-for-woocommerce')); ?>" type="checkbox" DISABLED /></td>
|
88 |
</tr>
|
89 |
<tr>
|
90 |
<td colspan="2"><hr /></td>
|
91 |
</tr>
|
92 |
<tr>
|
93 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Truncate the audio files for demo with ffmpeg', 'music-player-for-woocommerce' ); ?></td>
|
94 |
+
<td><input aria-label="<?php print esc_attr(__('Truncate the audio files for demo with ffmpeg','music-player-for-woocommerce')); ?>" type="checkbox" DISABLED /></td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'ffmpeg path', 'music-player-for-woocommerce' ); ?></td>
|
98 |
+
<td><input aria-label="<?php print esc_attr(__('ffmpeg path','music-player-for-woocommerce')); ?>" type="text" DISABLED /></td>
|
99 |
</tr>
|
100 |
<tr>
|
101 |
<td colspan="2"><hr /></td>
|
102 |
</tr>
|
103 |
<tr>
|
104 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Delete the demo files generated previously', 'music-player-for-woocommerce' ); ?></td>
|
105 |
+
<td><input aria-label="<?php print esc_attr(__('Delete the demo files generated previously','music-player-for-woocommerce')); ?>" type="checkbox" DISABLED /></td>
|
106 |
</tr>
|
107 |
<tr>
|
108 |
<td colspan="2"><hr /></td>
|
109 |
</tr>
|
110 |
<tr>
|
111 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Store demo files on Google Drive', 'music-player-for-woocommerce' ); ?></td>
|
112 |
+
<td><input aria-label="<?php print esc_attr(__('Store demo files on Google Drive','music-player-for-woocommerce')); ?>" type="checkbox" disabled /></td>
|
113 |
</tr>
|
114 |
<tr>
|
115 |
<td width="30%" style="color:#DDDDDD;"><?php _e( 'Import a JSON Key file', 'music-player-for-woocommerce' ); ?></td>
|
116 |
<td>
|
117 |
+
<input aria-label="<?php print esc_attr(__('JSON Key file','music-player-for-woocommerce')); ?>" type="file" disabled />
|
118 |
<br /><br />
|
119 |
<div style="border:1px solid #E6DB55;margin-bottom:10px;padding:5px;background-color: #FFFFE0;">
|
120 |
<h3>Turn on the Drive API</h3>
|
165 |
<?php _e( 'On iPads and iPhones, use native controls', 'music-player-for-woocommerce' ); ?>
|
166 |
</td>
|
167 |
<td>
|
168 |
+
<input aria-label="<?php print esc_attr(__('On iPads and iPhones, use native controls','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_ios_controls" <?php if($ios_controls) print 'CHECKED'; ?>/>
|
169 |
<?php _e( 'tick the checkbox if the players do not work properly on iPads or iPhones', 'music-player-for-woocommerce' ); ?>
|
170 |
</td>
|
171 |
</tr>
|
174 |
<?php _e( 'Loading players in the onload event', 'music-player-for-woocommerce' ); ?>
|
175 |
</td>
|
176 |
<td>
|
177 |
+
<input aria-label="<?php print esc_attr(__('Loading placeholder in the onload event','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_onload" <?php if($troubleshoot_onload) print 'CHECKED'; ?>/>
|
178 |
<?php _e( 'tick the checkbox if the players are not being loaded properly', 'music-player-for-woocommerce' ); ?>
|
179 |
</td>
|
180 |
</tr>
|
183 |
<?php _e( 'For files whose extensions cannot be determined', 'music-player-for-woocommerce' ); ?>
|
184 |
</td>
|
185 |
<td>
|
186 |
+
<input aria-label="<?php print esc_attr(__('For files whose extensions cannot be determined, handle them as mp3 files','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_default_extension" <?php if($troubleshoot_default_extension) print 'CHECKED'; ?>/>
|
187 |
<?php _e( 'handle them as mp3 files', 'music-player-for-woocommerce' ); ?>
|
188 |
</td>
|
189 |
</tr>
|
192 |
<?php _e( 'For the WooCommerce Gutenberg Blocks, include the main player in the products titles', 'music-player-for-woocommerce' ); ?>
|
193 |
</td>
|
194 |
<td>
|
195 |
+
<input aria-label="<?php print esc_attr(__('For the WooCommerce Gutenberg Blocks, include the main player in the products titles','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_force_main_player_in_title" <?php if($force_main_player_in_title) print 'CHECKED'; ?>/>
|
196 |
<?php _e( 'Includes the main player in front of products titles', 'music-player-for-woocommerce' ); ?>
|
197 |
</td>
|
198 |
</tr>
|
201 |
<?php _e( 'WooCommerce hook used to display the players in the shop pages', 'music-player-for-woocommerce' ); ?>
|
202 |
</td>
|
203 |
<td>
|
204 |
+
<input aria-label="<?php print esc_attr(__('WooCommerce hook used to display the players in the shop pages','music-player-for-woocommerce')); ?>" type="text" name="_wcmp_main_player_hook" value="<?php esc_attr_e($include_main_player_hook); ?>" style="width:100%" /><br />
|
205 |
<?php _e( 'The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?>
|
206 |
</td>
|
207 |
</tr>
|
210 |
<?php _e( 'WooCommerce hook used to display the players in the products pages', 'music-player-for-woocommerce' ); ?>
|
211 |
</td>
|
212 |
<td>
|
213 |
+
<input aria-label="<?php print esc_attr(__('WooCommerce hook used to display the players in the products pages','music-player-for-woocommerce')); ?>" type="text" name="_wcmp_all_players_hook" value="<?php esc_attr_e($include_all_players_hook); ?>" style="width:100%" /><br />
|
214 |
<?php _e( 'The plugin uses by default the <b>woocommerce_single_product_summary</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?>
|
215 |
</td>
|
216 |
</tr>
|
222 |
<table class="widefat wcmp-player-settings" style="border:1px solid #e1e1e1;">
|
223 |
<tr>
|
224 |
<td width="30%"><?php _e( 'Include music player in all products', 'music-player-for-woocommerce' ); ?></td>
|
225 |
+
<td><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('The player is shown only if the product is "downloadable" with at least an audio file between the "Downloadable files", or you have selected your own audio files', 'music-player-for-woocommerce'); ?></span><input aria-label="<?php print esc_attr(__('Enable player','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> /></div></td>
|
226 |
</tr>
|
227 |
<tr>
|
228 |
<td width="30%"><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></td>
|
229 |
<td>
|
230 |
+
<input aria-label="<?php print esc_attr(__('Products pages only','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
231 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?><br />
|
232 |
|
233 |
+
<input aria-label="<?php print esc_attr(__('Multiple-entry pages','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
234 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?><br />
|
235 |
|
236 |
+
<input aria-label="<?php print esc_attr(__('Product and multiple-entry pages','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
237 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?>
|
238 |
</td>
|
239 |
</tr>
|
240 |
<tr>
|
241 |
<td width="30%"><?php _e( 'Include players in cart', 'music-player-for-woocommerce' ); ?></td>
|
242 |
<td>
|
243 |
+
<input aria-label="<?php print esc_attr(__('Include players in cart','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_players_in_cart" <?php echo (( $players_in_cart ) ? 'checked' : '' ); ?> />
|
244 |
</td>
|
245 |
</tr>
|
246 |
<tr>
|
247 |
<td width="30%"><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?></td>
|
248 |
+
<td><input aria-label="<?php print esc_attr(__('Merge in grouped products','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /><br /><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></td>
|
249 |
</tr>
|
250 |
<tr>
|
251 |
<td valign="top" width="30%"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></td>
|
252 |
<td>
|
253 |
<table>
|
254 |
<tr>
|
255 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 1','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
256 |
+
<td><img alt="<?php print esc_attr(__('Skin 1','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
257 |
</tr>
|
258 |
|
259 |
<tr>
|
260 |
+
<td><input aria-label="<?php print esc_attr(__('skin 2','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
261 |
+
<td><img alt="<?php print esc_attr(__('Skin 2','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
262 |
</tr>
|
263 |
|
264 |
<tr>
|
265 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 3','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
266 |
+
<td><img alt="<?php print esc_attr(__('Skin 3','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
267 |
</tr>
|
268 |
</table>
|
269 |
</td>
|
273 |
<?php _e( 'Preload', 'music-player-for-woocommerce' ); ?>
|
274 |
</td>
|
275 |
<td>
|
276 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - none','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label><br />
|
277 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - metadata','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label><br />
|
278 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - auto','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label><br />
|
279 |
</td>
|
280 |
</tr>
|
281 |
<tr>
|
283 |
<?php _e( 'Play all', 'music-player-for-woocommerce' ); ?>
|
284 |
</td>
|
285 |
<td>
|
286 |
+
<input aria-label="<?php print esc_attr(__('Play all','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_play_all" <?php if($play_all) echo 'CHECKED'; ?> />
|
287 |
+
</td>
|
288 |
+
</tr>
|
289 |
+
<tr>
|
290 |
+
<td width="30%">
|
291 |
+
<?php _e( 'Allow multiple players to play simultaneously', 'music-player-for-woocommerce' ); ?>
|
292 |
+
</td>
|
293 |
+
<td>
|
294 |
+
<input aria-label="<?php print esc_attr(__('Allow multiple players to play simultaneously', 'music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_play_simultaneously" <?php if($play_simultaneously) echo 'CHECKED'; ?> /><br />
|
295 |
+
<i><?php
|
296 |
+
_e('By default, only one player would be playing at once. By pressing the play button of a player, the other players would stop. By ticking the checkbox, multiple players could play simultaneously.', 'music-player-for-woocommerce');
|
297 |
+
?></i>
|
298 |
</td>
|
299 |
</tr>
|
300 |
<tr>
|
301 |
<td><?php _e( 'Player volume (from 0 to 1)', 'music-player-for-woocommerce' ); ?></td>
|
302 |
<td>
|
303 |
+
<input aria-label="<?php print esc_attr(__('Player volume','music-player-for-woocommerce')); ?>" type="number" name="_wcmp_player_volume" min="0" max="1" step="0.01" value="<?php echo esc_attr($volume); ?>" />
|
304 |
</td>
|
305 |
</tr>
|
306 |
<tr>
|
307 |
<td width="30%"><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></td>
|
308 |
<td>
|
309 |
+
<input aria-label="<?php print esc_attr(__('Play/pause button','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?><br />
|
310 |
+
<input aria-label="<?php print esc_attr(__('All controls','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?><br />
|
311 |
+
<input aria-label="<?php print esc_attr(__('Depending on context','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?>
|
312 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
313 |
+
<input aria-label="<?php print esc_attr(__('On cover', 'music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
314 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
315 |
?> />
|
316 |
<?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?>
|
325 |
<tr>
|
326 |
<td width="30%"><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?></td>
|
327 |
<td>
|
328 |
+
<input aria-label="<?php print esc_attr(__('Display the player title','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> />
|
329 |
</td>
|
330 |
</tr>
|
331 |
<tr>
|
333 |
</tr>
|
334 |
<tr>
|
335 |
<td style="color:#DDDDDD;" width="30%"><?php _e( 'Protect the file', 'music-player-for-woocommerce' ); ?></td>
|
336 |
+
<td><input aria-label="<?php print esc_attr(__('Protect the file', 'music-player-for-woocommerce')); ?>" type="checkbox" DISABLED /></td>
|
337 |
</tr>
|
338 |
<tr valign="top">
|
339 |
<td style="color:#DDDDDD;" width="30%"><?php _e('Percent of audio used for protected playbacks', 'music-player-for-woocommerce'); ?></td>
|
340 |
<td style="color:#DDDDDD;">
|
341 |
+
<input aria-label="<?php print esc_attr(__('Percent of audio used for protected playbacks','music-player-for-woocommerce')); ?>" type="number" DISABLED /> % <br />
|
342 |
<em><?php _e('To prevent unauthorized copying of audio files, the files will be partially accessible', 'music-player-for-woocommerce'); ?></em>
|
343 |
</td>
|
344 |
</tr>
|
346 |
<td style="color:#DDDDDD;" width="30%">
|
347 |
<?php _e('Text to display beside the player explaining that demos are partial versions of the original files', 'music-player-for-woocommerce'); ?>
|
348 |
<td style="color:#DDDDDD;">
|
349 |
+
<textarea aria-label="<?php print esc_attr(__('Explaining that demos are partial versions of the original files','music-player-for-woocommerce')); ?>" style="width:100%;" rows="4" disabled></textarea>
|
350 |
</td>
|
351 |
</tr>
|
352 |
|
361 |
<tr>
|
362 |
<td>
|
363 |
<div><?php _e('Scope', 'music-player-for-woocommerce'); ?></div>
|
364 |
+
<div><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('Ticking the checkbox the previous settings are applied to all products, even if they have a player enabled.', 'music-player-for-woocommerce');?></span><input aria-label="<?php print esc_attr(__('Apply the previous settings to all products','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_apply_to_all_players" /></div> <?php _e('Apply the previous settings to all products pages in the website.', 'music-player-for-woocommerce'); ?></div>
|
365 |
</td>
|
366 |
</tr>
|
367 |
</table>
|
384 |
<tr>
|
385 |
<td>
|
386 |
<div><?php _e('Tracking Id', 'music-player-for-woocommerce'); ?></div>
|
387 |
+
<div><input aria-label="<?php print esc_attr(__('Tracking Id','music-player-for-woocommerce')); ?>" type="text" name="_wcmp_analytics_property" value="<?php print esc_attr($analytics_property); ?>" style="width:100%;" placeholder="UA-XXXXX-Y"></div>
|
388 |
</td>
|
389 |
</tr>
|
390 |
</table>
|
views/player_options.php
CHANGED
@@ -176,42 +176,42 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
176 |
<table class="widefat wcmp-player-settings" style="border:1px solid #e1e1e1;">
|
177 |
<tr>
|
178 |
<td><?php _e( 'Include music player', 'music-player-for-woocommerce' ); ?></td>
|
179 |
-
<td><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('The player is shown only if the product is "downloadable", and there is at least an audio file between the "Downloadable files"', 'music-player-for-woocommerce'); ?></span><input type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> /></div></td>
|
180 |
</tr>
|
181 |
<tr>
|
182 |
<td><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></td>
|
183 |
<td>
|
184 |
-
<input type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
185 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?><br />
|
186 |
|
187 |
-
<input type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
188 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?><br />
|
189 |
|
190 |
-
<input type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
191 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?>
|
192 |
</td>
|
193 |
</tr>
|
194 |
<tr>
|
195 |
<td><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?></td>
|
196 |
-
<td><input type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /><br /><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></td>
|
197 |
</tr>
|
198 |
<tr>
|
199 |
<td valign="top"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></td>
|
200 |
<td>
|
201 |
<table>
|
202 |
<tr>
|
203 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
204 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
205 |
</tr>
|
206 |
|
207 |
<tr>
|
208 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
209 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
210 |
</tr>
|
211 |
|
212 |
<tr>
|
213 |
-
<td><input name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
214 |
-
<td><img src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
215 |
</tr>
|
216 |
</table>
|
217 |
</td>
|
@@ -221,9 +221,9 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
221 |
<?php _e( 'Preload', 'music-player-for-woocommerce' ); ?>
|
222 |
</td>
|
223 |
<td>
|
224 |
-
<label><input type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label><br />
|
225 |
-
<label><input type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label><br />
|
226 |
-
<label><input type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label><br />
|
227 |
</td>
|
228 |
</tr>
|
229 |
<tr>
|
@@ -231,23 +231,23 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
231 |
<?php _e( 'Play all', 'music-player-for-woocommerce' ); ?>
|
232 |
</td>
|
233 |
<td>
|
234 |
-
<input type="checkbox" name="_wcmp_play_all" <?php if(!empty($play_all)) echo 'CHECKED'; ?> />
|
235 |
</td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<td><?php _e( 'Player volume (from 0 to 1)', 'music-player-for-woocommerce' ); ?></td>
|
239 |
<td>
|
240 |
-
<input type="number" name="_wcmp_player_volume" min="0" max="1" step="0.01" value="<?php echo esc_attr($volume); ?>" />
|
241 |
</td>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
<td><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></td>
|
245 |
<td>
|
246 |
-
<input type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?><br />
|
247 |
-
<input type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?><br />
|
248 |
-
<input type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?>
|
249 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
250 |
-
<input type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
251 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
252 |
?> />
|
253 |
<?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?>
|
@@ -262,7 +262,7 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
262 |
<tr>
|
263 |
<td><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?></td>
|
264 |
<td>
|
265 |
-
<input type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> />
|
266 |
</td>
|
267 |
</tr>
|
268 |
<tr>
|
@@ -270,12 +270,12 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
270 |
</tr>
|
271 |
<tr>
|
272 |
<td style="color:#DDDDDD;"><?php _e( 'Protect the file', 'music-player-for-woocommerce' ); ?></td>
|
273 |
-
<td><input type="checkbox" DISABLED /></td>
|
274 |
</tr>
|
275 |
<tr valign="top">
|
276 |
<td style="color:#DDDDDD;"><?php _e('Percent of audio used for protected playbacks', 'music-player-for-woocommerce'); ?></td>
|
277 |
<td style="color:#DDDDDD;">
|
278 |
-
<input type="number" DISABLED /> % <br /><br />
|
279 |
<em><?php _e('To prevent unauthorized copying of audio files, the files will be partially accessible', 'music-player-for-woocommerce'); ?></em>
|
280 |
</td>
|
281 |
</tr>
|
@@ -288,7 +288,7 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
288 |
<td style="color:#DDDDDD;">
|
289 |
<table class="widefat wcmp-player-demos" style="border:1px solid #e1e1e1;">
|
290 |
<tr valign="top">
|
291 |
-
<td style="color:#DDDDDD;"><input type="checkbox" disabled /> <?php _e('Select my own demo files', 'music-player-for-woocommerce'); ?></td>
|
292 |
</tr>
|
293 |
<tr valign="top" class="wcmp-demo-files">
|
294 |
<td>
|
@@ -304,10 +304,10 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
|
|
304 |
<tbody>
|
305 |
<tr>
|
306 |
<td>
|
307 |
-
<input type="text" class="wcmp-file-name" placeholder="<?php _e('File Name', 'music-player-for-woocommerce'); ?>" disabled style="color:#DDDDDD;" />
|
308 |
</td>
|
309 |
<td>
|
310 |
-
<input type="text" class="wcmp-file-url" placeholder="http://" disabled style="color:#DDDDDD;" />
|
311 |
</td>
|
312 |
<td width="1%" style="color:#DDDDDD;">
|
313 |
<a href="javascript:void(0);" class="button wcmp-select-file" style="color:#DDDDDD;"><?php _e('Choose file', 'music-player-for-woocommerce'); ?></a>
|
176 |
<table class="widefat wcmp-player-settings" style="border:1px solid #e1e1e1;">
|
177 |
<tr>
|
178 |
<td><?php _e( 'Include music player', 'music-player-for-woocommerce' ); ?></td>
|
179 |
+
<td><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php _e('The player is shown only if the product is "downloadable", and there is at least an audio file between the "Downloadable files"', 'music-player-for-woocommerce'); ?></span><input aria-label="<?php print esc_attr(__('Enable player','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_enable_player" <?php echo (( $enable_player ) ? 'checked' : '' ); ?> /></div></td>
|
180 |
</tr>
|
181 |
<tr>
|
182 |
<td><?php _e( 'Include in', 'music-player-for-woocommerce' ); ?></td>
|
183 |
<td>
|
184 |
+
<input aria-label="<?php print esc_attr(__('Include on products pages','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="single" <?php echo (( $show_in == 'single' ) ? 'checked' : '' ); ?> />
|
185 |
<?php _e('single-entry pages <i>(Product\'s page only)</i>', 'music-player-for-woocommerce'); ?><br />
|
186 |
|
187 |
+
<input aria-label="<?php print esc_attr(__('Include on multiple-entry pages','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="multiple" <?php echo (( $show_in == 'multiple' ) ? 'checked' : '' ); ?> />
|
188 |
<?php _e('multiple entries pages <i>(Shop pages, archive pages, but not in the product\'s page)</i>', 'music-player-for-woocommerce'); ?><br />
|
189 |
|
190 |
+
<input aria-label="<?php print esc_attr(__('Include on product and multiple-entry pages', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_show_in" value="all" <?php echo (( $show_in == 'all' ) ? 'checked' : '' ); ?> />
|
191 |
<?php _e('all pages <i>(with single or multiple-entries)</i>', 'music-player-for-woocommerce'); ?>
|
192 |
</td>
|
193 |
</tr>
|
194 |
<tr>
|
195 |
<td><?php _e( 'Merge in grouped products', 'music-player-for-woocommerce' ); ?></td>
|
196 |
+
<td><input aria-label="<?php print esc_attr(__('Merge in grouped products','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_merge_in_grouped" <?php echo (( $merge_grouped ) ? 'checked' : '' ); ?> /><br /><em><?php _e( 'In grouped products, display the "Add to cart" buttons and quantity fields in the players rows', 'music-player-for-woocommerce' ); ?></em></td>
|
197 |
</tr>
|
198 |
<tr>
|
199 |
<td valign="top"><?php _e( 'Player layout', 'music-player-for-woocommerce' ); ?></td>
|
200 |
<td>
|
201 |
<table>
|
202 |
<tr>
|
203 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 1','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-classic" <?php echo (($player_style == 'mejs-classic') ? 'checked' : '') ;?> /></td>
|
204 |
+
<td><img alt="<?php print esc_attr(__('Skin 1','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin1.png" /></td>
|
205 |
</tr>
|
206 |
|
207 |
<tr>
|
208 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 2','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-ted" <?php echo (($player_style == 'mejs-ted') ? 'checked' : '') ;?> /></td>
|
209 |
+
<td><img alt="<?php print esc_attr(__('Skin 2','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin2.png" /></td>
|
210 |
</tr>
|
211 |
|
212 |
<tr>
|
213 |
+
<td><input aria-label="<?php print esc_attr(__('Skin 3','music-player-for-woocommerce')); ?>" name="_wcmp_player_layout" type="radio" value="mejs-wmp" <?php echo (($player_style == 'mejs-wmp') ? 'checked' : '') ;?> /></td>
|
214 |
+
<td><img alt="<?php print esc_attr(__('Skin 3','music-player-for-woocommerce')); ?>" src="<?php print esc_url(WCMP_PLUGIN_URL); ?>/views/assets/skin3.png" /></td>
|
215 |
</tr>
|
216 |
</table>
|
217 |
</td>
|
221 |
<?php _e( 'Preload', 'music-player-for-woocommerce' ); ?>
|
222 |
</td>
|
223 |
<td>
|
224 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - none','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="none" <?php if($preload == 'none') echo 'CHECKED'; ?> /> None</label><br />
|
225 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - metadata','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="metadata" <?php if($preload == 'metadata') echo 'CHECKED'; ?> /> Metadata</label><br />
|
226 |
+
<label><input aria-label="<?php print esc_attr(__('Preload - auto','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_preload" value="auto" <?php if($preload == 'auto') echo 'CHECKED'; ?> /> Auto</label><br />
|
227 |
</td>
|
228 |
</tr>
|
229 |
<tr>
|
231 |
<?php _e( 'Play all', 'music-player-for-woocommerce' ); ?>
|
232 |
</td>
|
233 |
<td>
|
234 |
+
<input aria-label="<?php print esc_attr(__('Play all','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_play_all" <?php if(!empty($play_all)) echo 'CHECKED'; ?> />
|
235 |
</td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<td><?php _e( 'Player volume (from 0 to 1)', 'music-player-for-woocommerce' ); ?></td>
|
239 |
<td>
|
240 |
+
<input aria-label="<?php print esc_attr(__('Player volume', 'music-player-for-woocommerce')); ?>" type="number" name="_wcmp_player_volume" min="0" max="1" step="0.01" value="<?php echo esc_attr($volume); ?>" />
|
241 |
</td>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
<td><?php _e( 'Player controls', 'music-player-for-woocommerce' ); ?></td>
|
245 |
<td>
|
246 |
+
<input aria-label="<?php print esc_attr(__('Play/pause button','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="button" <?php echo (( $player_controls == 'button' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only', 'music-player-for-woocommerce' ); ?><br />
|
247 |
+
<input aria-label="<?php print esc_attr(__('All controls', 'music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="all" <?php echo (( $player_controls == 'all' ) ? 'checked' : ''); ?> /> <?php _e( 'all controls', 'music-player-for-woocommerce' ); ?><br />
|
248 |
+
<input aria-label="<?php print esc_attr(__('Depending on context','music-player-for-woocommerce')); ?>" type="radio" name="_wcmp_player_controls" value="default" <?php echo (( $player_controls == 'default' ) ? 'checked' : ''); ?> /> <?php _e( 'the play/pause button only, or all controls depending on context', 'music-player-for-woocommerce' ); ?>
|
249 |
<div class="wcmp-on-cover" style="margin-top:10px;">
|
250 |
+
<input aria-label="<?php print esc_attr(__('On cover','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_on_cover" value="default" <?php
|
251 |
echo ((!empty($on_cover) && ( $player_controls == 'button' || $player_controls == 'default')) ? 'checked' : '');
|
252 |
?> />
|
253 |
<?php _e( 'for play/pause button players display them on cover images.', 'music-player-for-woocommerce' ); ?>
|
262 |
<tr>
|
263 |
<td><?php _e( 'Display the player\'s title', 'music-player-for-woocommerce' ); ?></td>
|
264 |
<td>
|
265 |
+
<input aria-label="<?php print esc_attr(__('Display the player title','music-player-for-woocommerce')); ?>" type="checkbox" name="_wcmp_player_title" <?php echo (( !empty($player_title) ) ? 'checked' : ''); ?> />
|
266 |
</td>
|
267 |
</tr>
|
268 |
<tr>
|
270 |
</tr>
|
271 |
<tr>
|
272 |
<td style="color:#DDDDDD;"><?php _e( 'Protect the file', 'music-player-for-woocommerce' ); ?></td>
|
273 |
+
<td><input aria-label="<?php print esc_attr(__('Protect the file','music-player-for-woocommerce')); ?>" type="checkbox" DISABLED /></td>
|
274 |
</tr>
|
275 |
<tr valign="top">
|
276 |
<td style="color:#DDDDDD;"><?php _e('Percent of audio used for protected playbacks', 'music-player-for-woocommerce'); ?></td>
|
277 |
<td style="color:#DDDDDD;">
|
278 |
+
<input aria-label="<?php print esc_attr(__('Percent of audio used for protected playbacks','music-player-for-woocommerce')); ?>" type="number" DISABLED /> % <br /><br />
|
279 |
<em><?php _e('To prevent unauthorized copying of audio files, the files will be partially accessible', 'music-player-for-woocommerce'); ?></em>
|
280 |
</td>
|
281 |
</tr>
|
288 |
<td style="color:#DDDDDD;">
|
289 |
<table class="widefat wcmp-player-demos" style="border:1px solid #e1e1e1;">
|
290 |
<tr valign="top">
|
291 |
+
<td style="color:#DDDDDD;"><input aria-label="<?php print esc_attr(__('Own demo files','music-player-for-woocommerce')); ?>" type="checkbox" disabled /> <?php _e('Select my own demo files', 'music-player-for-woocommerce'); ?></td>
|
292 |
</tr>
|
293 |
<tr valign="top" class="wcmp-demo-files">
|
294 |
<td>
|
304 |
<tbody>
|
305 |
<tr>
|
306 |
<td>
|
307 |
+
<input aria-label="<?php print esc_attr(__('File name','music-player-for-woocommerce')); ?>" type="text" class="wcmp-file-name" placeholder="<?php _e('File Name', 'music-player-for-woocommerce'); ?>" disabled style="color:#DDDDDD;" />
|
308 |
</td>
|
309 |
<td>
|
310 |
+
<input aria-label="<?php print esc_attr(__('File URL','music-player-for-woocommerce')); ?>" type="text" class="wcmp-file-url" placeholder="http://" disabled style="color:#DDDDDD;" />
|
311 |
</td>
|
312 |
<td width="1%" style="color:#DDDDDD;">
|
313 |
<a href="javascript:void(0);" class="button wcmp-select-file" style="color:#DDDDDD;"><?php _e('Choose file', 'music-player-for-woocommerce'); ?></a>
|
wcmp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Music Player for WooCommerce
|
4 |
Plugin URI: https://wcmp.dwbooster.com
|
5 |
-
Version: 1.0.
|
6 |
Text Domain: music-player-for-woocommerce
|
7 |
Author: CodePeople
|
8 |
Author URI: https://wcmp.dwbooster.com
|
@@ -266,6 +266,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
266 |
$player_title = ( isset( $_REQUEST[ '_wcmp_player_title' ] ) ) ? 1 : 0;
|
267 |
$merge_grouped = ( isset( $_REQUEST[ '_wcmp_merge_in_grouped' ] ) ) ? 1 : 0;
|
268 |
$play_all = (isset($_REQUEST['_wcmp_play_all'])) ? 1 : 0;
|
|
|
269 |
$volume = (isset($_REQUEST['_wcmp_player_volume'])) ? @floatval($_REQUEST['_wcmp_player_volume']) : 1;
|
270 |
$preload = (
|
271 |
isset($_REQUEST['_wcmp_preload']) &&
|
@@ -283,6 +284,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
283 |
'_wcmp_player_title'=> $player_title,
|
284 |
'_wcmp_merge_in_grouped' => $merge_grouped,
|
285 |
'_wcmp_play_all' => $play_all,
|
|
|
286 |
'_wcmp_preload' => $preload,
|
287 |
'_wcmp_on_cover' => $on_cover,
|
288 |
'_wcmp_default_extension' => $troubleshoot_default_extension,
|
@@ -415,7 +417,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
415 |
wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
|
416 |
wp_enqueue_script('jquery');
|
417 |
wp_enqueue_script('wp-mediaelement');
|
418 |
-
wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.
|
419 |
|
420 |
$play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
|
421 |
'_wcmp_play_all',
|
@@ -423,6 +425,8 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
423 |
$GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( 'play_all', 0 )
|
424 |
);
|
425 |
|
|
|
|
|
426 |
if(is_product())
|
427 |
{
|
428 |
global $post;
|
@@ -447,6 +451,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
447 |
'wcmp_global_settings',
|
448 |
array(
|
449 |
'play_all'=>intval($play_all),
|
|
|
450 |
'ios_controls' => $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_ios_controls', false),
|
451 |
'onload' => $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_onload', false)
|
452 |
)
|
@@ -1345,8 +1350,6 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
|
|
1345 |
{
|
1346 |
$cid_parts = explode('.', $_COOKIE['_ga'], 3);
|
1347 |
$cid = $cid_parts[2];
|
1348 |
-
error_log('CID_Pure: '.$_COOKIE['_ga']);
|
1349 |
-
error_log('CID: '.$cid);
|
1350 |
}
|
1351 |
}
|
1352 |
catch(Exception $err)
|
2 |
/*
|
3 |
Plugin Name: Music Player for WooCommerce
|
4 |
Plugin URI: https://wcmp.dwbooster.com
|
5 |
+
Version: 1.0.125
|
6 |
Text Domain: music-player-for-woocommerce
|
7 |
Author: CodePeople
|
8 |
Author URI: https://wcmp.dwbooster.com
|
266 |
$player_title = ( isset( $_REQUEST[ '_wcmp_player_title' ] ) ) ? 1 : 0;
|
267 |
$merge_grouped = ( isset( $_REQUEST[ '_wcmp_merge_in_grouped' ] ) ) ? 1 : 0;
|
268 |
$play_all = (isset($_REQUEST['_wcmp_play_all'])) ? 1 : 0;
|
269 |
+
$play_simultaneously = (isset($_REQUEST['_wcmp_play_simultaneously'])) ? 1 : 0;
|
270 |
$volume = (isset($_REQUEST['_wcmp_player_volume'])) ? @floatval($_REQUEST['_wcmp_player_volume']) : 1;
|
271 |
$preload = (
|
272 |
isset($_REQUEST['_wcmp_preload']) &&
|
284 |
'_wcmp_player_title'=> $player_title,
|
285 |
'_wcmp_merge_in_grouped' => $merge_grouped,
|
286 |
'_wcmp_play_all' => $play_all,
|
287 |
+
'_wcmp_play_simultaneously' => $play_simultaneously,
|
288 |
'_wcmp_preload' => $preload,
|
289 |
'_wcmp_on_cover' => $on_cover,
|
290 |
'_wcmp_default_extension' => $troubleshoot_default_extension,
|
417 |
wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
|
418 |
wp_enqueue_script('jquery');
|
419 |
wp_enqueue_script('wp-mediaelement');
|
420 |
+
wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.125');
|
421 |
|
422 |
$play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
|
423 |
'_wcmp_play_all',
|
425 |
$GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( 'play_all', 0 )
|
426 |
);
|
427 |
|
428 |
+
$play_simultaneously = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_play_simultaneously',0);
|
429 |
+
|
430 |
if(is_product())
|
431 |
{
|
432 |
global $post;
|
451 |
'wcmp_global_settings',
|
452 |
array(
|
453 |
'play_all'=>intval($play_all),
|
454 |
+
'play_simultaneously'=>intval($play_simultaneously),
|
455 |
'ios_controls' => $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_ios_controls', false),
|
456 |
'onload' => $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_onload', false)
|
457 |
)
|
1350 |
{
|
1351 |
$cid_parts = explode('.', $_COOKIE['_ga'], 3);
|
1352 |
$cid = $cid_parts[2];
|
|
|
|
|
1353 |
}
|
1354 |
}
|
1355 |
catch(Exception $err)
|