Music Player for WooCommerce - Version 1.0.181

Version Description

  • Modifies the general settings.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Music Player for WooCommerce
Version 1.0.181
Comparing to
See all releases

Code changes from version 1.0.180 to 1.0.181

Files changed (3) hide show
  1. readme.txt +5 -1
  2. views/global_options.php +2 -1
  3. wcmp.php +5 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 6.1
7
- Stable tag: 1.0.180
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -226,6 +226,10 @@ Each time save the data of a product, the files for demo are deleted and generat
226
 
227
  == Changelog ==
228
 
 
 
 
 
229
  = 1.0.180 =
230
 
231
  * Improves the plugin feedback.
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: 6.1
7
+ Stable tag: 1.0.181
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
226
 
227
  == Changelog ==
228
 
229
+ = 1.0.181 =
230
+
231
+ * Modifies the general settings.
232
+
233
  = 1.0.180 =
234
 
235
  * Improves the plugin feedback.
views/global_options.php CHANGED
@@ -43,6 +43,7 @@ $analytics_api_secret = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_
43
  $registered_only = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_registered_only', 0 );
44
  $fade_out = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_fade_out', 1 );
45
  $purchased_times_text = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_purchased_times_text', '- purchased %d time(s)' );
 
46
  ?>
47
  <h1><?php esc_html_e( 'Music Player for WooCommerce - Global Settings', 'music-player-for-woocommerce' ); ?></h1>
48
  <div style="border:1px solid #E6DB55;margin-bottom:10px;padding:5px;background-color: #FFFFE0;">
@@ -397,7 +398,7 @@ _e( 'For reporting any issue or to request a customization, <a href="https://wor
397
  <tr>
398
  <td>
399
  <div><?php esc_html_e( 'Scope', 'music-player-for-woocommerce' ); ?></div>
400
- <div><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php esc_html_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 esc_attr_e( 'Apply the previous settings to all products', 'music-player-for-woocommerce' ); ?>" type="checkbox" name="_wcmp_apply_to_all_players" /></div> <?php esc_html_e( 'Apply the previous settings to all products pages in the website.', 'music-player-for-woocommerce' ); ?></div>
401
  </td>
402
  </tr>
403
  </table>
43
  $registered_only = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_registered_only', 0 );
44
  $fade_out = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_fade_out', 1 );
45
  $purchased_times_text = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_purchased_times_text', '- purchased %d time(s)' );
46
+ $apply_to_all_players = $GLOBALS['WooCommerceMusicPlayer']->get_global_attr( '_wcmp_apply_to_all_players', 0 );
47
  ?>
48
  <h1><?php esc_html_e( 'Music Player for WooCommerce - Global Settings', 'music-player-for-woocommerce' ); ?></h1>
49
  <div style="border:1px solid #E6DB55;margin-bottom:10px;padding:5px;background-color: #FFFFE0;">
398
  <tr>
399
  <td>
400
  <div><?php esc_html_e( 'Scope', 'music-player-for-woocommerce' ); ?></div>
401
+ <div><div class="wcmp-tooltip"><span class="wcmp-tooltiptext"><?php esc_html_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 esc_attr_e( 'Apply the previous settings to all products', 'music-player-for-woocommerce' ); ?>" type="checkbox" name="_wcmp_apply_to_all_players" <?php print $apply_to_all_players == 1 ? 'CHECKED' : ''; ?> /></div> <?php esc_html_e( 'Apply the previous settings to all products pages in the website.', 'music-player-for-woocommerce' ); ?></div>
402
  </td>
403
  </tr>
404
  </table>
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.180
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
@@ -30,7 +30,7 @@ define( 'WCMP_DEFAULT_PLAYER_VOLUME', 1 );
30
  define( 'WCMP_DEFAULT_PLAYER_CONTROLS', 'default' );
31
  define( 'WCMP_DEFAULT_PlAYER_TITLE', 1 );
32
  define( 'WCMP_REMOTE_TIMEOUT', 120 );
33
- define( 'WCMP_VERSION', '1.0.180' );
34
 
35
  // Load widgets
36
  require_once 'widgets/playlist_widget.php';
@@ -293,6 +293,8 @@ if ( ! class_exists( 'WooCommerceMusicPlayer' ) ) {
293
  in_array( $_REQUEST['_wcmp_preload'], array( 'none', 'metadata', 'auto' ) )
294
  ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_preload'] ) ) : 'none';
295
 
 
 
296
  $global_settings = array(
297
  '_wcmp_registered_only' => $registered_only,
298
  '_wcmp_fade_out' => $fade_out,
@@ -319,9 +321,9 @@ if ( ! class_exists( 'WooCommerceMusicPlayer' ) ) {
319
  '_wcmp_analytics_integration' => ( isset( $_REQUEST['_wcmp_analytics_integration'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_integration'] ) ) : 'ua',
320
  '_wcmp_analytics_property' => ( isset( $_REQUEST['_wcmp_analytics_property'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_property'] ) ) : '',
321
  '_wcmp_analytics_api_secret' => ( isset( $_REQUEST['_wcmp_analytics_api_secret'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_api_secret'] ) ) : '',
 
322
  );
323
 
324
- $apply_to_all_players = ( isset( $_REQUEST['_wcmp_apply_to_all_players'] ) ) ? 1 : 0;
325
  if ( $apply_to_all_players ) {
326
  $this->_deleteDir( $this->_files_directory_path );
327
 
2
  /*
3
  Plugin Name: Music Player for WooCommerce
4
  Plugin URI: https://wcmp.dwbooster.com
5
+ Version: 1.0.181
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
30
  define( 'WCMP_DEFAULT_PLAYER_CONTROLS', 'default' );
31
  define( 'WCMP_DEFAULT_PlAYER_TITLE', 1 );
32
  define( 'WCMP_REMOTE_TIMEOUT', 120 );
33
+ define( 'WCMP_VERSION', '1.0.181' );
34
 
35
  // Load widgets
36
  require_once 'widgets/playlist_widget.php';
293
  in_array( $_REQUEST['_wcmp_preload'], array( 'none', 'metadata', 'auto' ) )
294
  ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_preload'] ) ) : 'none';
295
 
296
+ $apply_to_all_players = ( isset( $_REQUEST['_wcmp_apply_to_all_players'] ) ) ? 1 : 0;
297
+
298
  $global_settings = array(
299
  '_wcmp_registered_only' => $registered_only,
300
  '_wcmp_fade_out' => $fade_out,
321
  '_wcmp_analytics_integration' => ( isset( $_REQUEST['_wcmp_analytics_integration'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_integration'] ) ) : 'ua',
322
  '_wcmp_analytics_property' => ( isset( $_REQUEST['_wcmp_analytics_property'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_property'] ) ) : '',
323
  '_wcmp_analytics_api_secret' => ( isset( $_REQUEST['_wcmp_analytics_api_secret'] ) ) ? sanitize_text_field( wp_unslash( $_REQUEST['_wcmp_analytics_api_secret'] ) ) : '',
324
+ '_wcmp_apply_to_all_players' => $apply_to_all_players,
325
  );
326
 
 
327
  if ( $apply_to_all_players ) {
328
  $this->_deleteDir( $this->_files_directory_path );
329