Soundy Background Music - Version 3.6

Version Description

   -    August 17th, 2016 = * Corrected PHP bug related to choice of Play/Pause Button Corner.

Download this release

Release Info

Developer bducouedic
Plugin Icon 128x128 Soundy Background Music
Version 3.6
Comparing to
See all releases

Code changes from version 3.5 to 3.6

Files changed (3) hide show
  1. readme.txt +4 -1
  2. soundy.php +3 -3
  3. templates/front-end.php +5 -5
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bducouedic
3
  Tags: audio, sound, music, background, soundtrack, background sound, background audio, background music, posts, pages
4
  Requires at least: 3.6
5
  Tested up to: 4.6
6
- Stable tag: 3.5
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
@@ -168,6 +168,9 @@ This happens when the PHP parser version is too old. Soundy needs PHP 5.3 or hig
168
 
169
  = Changelog =
170
 
 
 
 
171
  = 3.5    -    August 8th, 2016 =
172
  * Corrected bug related to strpos PHP function.
173
  * Corrected bug that prevented Media Library buttons to work.
3
  Tags: audio, sound, music, background, soundtrack, background sound, background audio, background music, posts, pages
4
  Requires at least: 3.6
5
  Tested up to: 4.6
6
+ Stable tag: 3.6
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_donate
168
 
169
  = Changelog =
170
 
171
+ = 3.6    -    August 17th, 2016 =
172
+ * Corrected PHP bug related to choice of Play/Pause Button Corner.
173
+
174
  = 3.5    -    August 8th, 2016 =
175
  * Corrected bug related to strpos PHP function.
176
  * Corrected bug that prevented Media Library buttons to work.
soundy.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
- * @version 3.5
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://www.webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
- Version: 3.5
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
@@ -31,7 +31,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
  class WarSoundy
32
  {
33
  public $soundy_type = 'free';
34
- public $soundy_version = '3.5';
35
  public $soundy_free_wp_home_url = 'http://wordpress.org/plugins/soundy-background-music/';
36
  public $sdy_pl_free_wp_home_url = 'http://wordpress.org/plugins/soundy-audio-playlist/';
37
  public $soundy_pro_home_url = 'http://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
+ * @version 3.6
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://www.webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
+ Version: 3.6
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
31
  class WarSoundy
32
  {
33
  public $soundy_type = 'free';
34
+ public $soundy_version = '3.6';
35
  public $soundy_free_wp_home_url = 'http://wordpress.org/plugins/soundy-background-music/';
36
  public $sdy_pl_free_wp_home_url = 'http://wordpress.org/plugins/soundy-audio-playlist/';
37
  public $soundy_pro_home_url = 'http://webartisan.ch/products/soundy-background-music/pro-wordpress-plugin/';
templates/front-end.php CHANGED
@@ -54,7 +54,7 @@ class WarSoundyFrontEnd
54
  $audio_file_url = $this->soundy->get_meta_data( 'war_soundy_audio_file_url' );
55
  $audio_type = $this->soundy->get_meta_data( 'war_soundy_audio_type' );
56
 
57
- $preview = $_GET[ 'war_soundy_preview' ];
58
  if( $preview )
59
  {
60
  $this->preview = $preview;
@@ -186,19 +186,19 @@ class WarSoundyFrontEnd
186
  $button_corner = get_option( 'war_soundy_pp_corner' );
187
  switch( $button_corner )
188
  {
189
- case upper_right:
190
  $dim_x = 'right';
191
  $dim_y = 'top';
192
  break;
193
- case upper_left:
194
  $dim_x = 'left';
195
  $dim_y = 'top';
196
  break;
197
- case bottom_right:
198
  $dim_x = 'right';
199
  $dim_y = 'bottom';
200
  break;
201
- case bottom_left:
202
  $dim_x = 'left';
203
  $dim_y = 'bottom';
204
  break;
54
  $audio_file_url = $this->soundy->get_meta_data( 'war_soundy_audio_file_url' );
55
  $audio_type = $this->soundy->get_meta_data( 'war_soundy_audio_type' );
56
 
57
+ $preview = isset( $_GET[ 'war_soundy_preview' ] ) ? $_GET[ 'war_soundy_preview' ] : false;
58
  if( $preview )
59
  {
60
  $this->preview = $preview;
186
  $button_corner = get_option( 'war_soundy_pp_corner' );
187
  switch( $button_corner )
188
  {
189
+ case 'upper_right':
190
  $dim_x = 'right';
191
  $dim_y = 'top';
192
  break;
193
+ case 'upper_left':
194
  $dim_x = 'left';
195
  $dim_y = 'top';
196
  break;
197
+ case 'bottom_right':
198
  $dim_x = 'right';
199
  $dim_y = 'bottom';
200
  break;
201
+ case 'bottom_left':
202
  $dim_x = 'left';
203
  $dim_y = 'bottom';
204
  break;