Soundy Background Music - Version 2.3

Version Description

  • After having upgraded Soundy to 2.3, please clear the cache of Soundy's admin pages in your browser. The reason is that a few CSS and Javascript files have been modified and these files are typically cached by browsers.
Download this release

Release Info

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

Code changes from version 2.2 to 2.3

css/style-back-end.css CHANGED
@@ -27,6 +27,12 @@ button.war_soundy
27
  vertical-align: middle !important;
28
  }
29
 
 
 
 
 
 
 
30
  button.war_soundy_button_media_library_pp_button
31
  {
32
  height: 30px !important;
@@ -41,6 +47,11 @@ button.war_soundy_button_media_library_pp_button
41
  margin-right: 10px !important;
42
  }
43
 
 
 
 
 
 
44
  a.war_soundy_hit_link
45
  {
46
  color: #ffffff !important;
@@ -82,6 +93,25 @@ table.war_soundy_no_border td
82
  padding: 0 !important;
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  .war_soundy_txt_input
86
  {
87
  width: 95%;
27
  vertical-align: middle !important;
28
  }
29
 
30
+ input[type=button].war_soundy:hover,
31
+ button.war_soundy:hover
32
+ {
33
+ background-color: #1e8cbe !important;
34
+ }
35
+
36
  button.war_soundy_button_media_library_pp_button
37
  {
38
  height: 30px !important;
47
  margin-right: 10px !important;
48
  }
49
 
50
+ button.war_soundy_button_media_library_pp_button:hover
51
+ {
52
+ background-color: #1e8cbe !important;
53
+ }
54
+
55
  a.war_soundy_hit_link
56
  {
57
  color: #ffffff !important;
93
  padding: 0 !important;
94
  }
95
 
96
+ .war_soundy_slider
97
+ {
98
+ width: 300px;
99
+ display: inline-block;
100
+ margin-right: 10px;
101
+ }
102
+
103
+ .war_soundy_slider .ui-slider-handle
104
+ {
105
+ background: #2eaecc !important;
106
+ border-color: #0074a2 !important;
107
+ }
108
+
109
+ .war_soundy_slider .ui-slider-handle:hover
110
+ {
111
+ background: #1e8cbe !important;
112
+ border-color: #0074a2 !important;
113
+ }
114
+
115
  .war_soundy_txt_input
116
  {
117
  width: 95%;
images/spinner.gif ADDED
Binary file
js/back-end.js CHANGED
@@ -30,6 +30,7 @@ war_SoundyAdmin.prototype.initSettingsTabs = function( args )
30
  _this.is_pro = args.is_pro;
31
  _this.is_trial = args.is_trial;
32
  _this.soundy_pro_home_url = args.soundy_pro_home_url;
 
33
 
34
  if( ! sessionStorage.getItem( 'war_soundy_tab_index' ) )
35
  sessionStorage.setItem( 'war_soundy_tab_index', 0 );
@@ -77,6 +78,7 @@ war_SoundyAdmin.prototype.initSettingsTabs = function( args )
77
  _this.initPlayPausePosition();
78
  _this.initLengthUnits();
79
  _this.initImgPreviewInContextPosition();
 
80
  }
81
 
82
  war_SoundyAdmin.prototype.initMetaBox = function( args )
@@ -671,3 +673,17 @@ war_SoundyAdmin.prototype.initPlayPauseImagesToUse = function()
671
  _this.pp_images_to_use = jQuery( 'input[name=war_soundy_pp_images_to_use]:checked' ).val();
672
  } );
673
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  _this.is_pro = args.is_pro;
31
  _this.is_trial = args.is_trial;
32
  _this.soundy_pro_home_url = args.soundy_pro_home_url;
33
+ _this.plugin_url = args.plugin_url;
34
 
35
  if( ! sessionStorage.getItem( 'war_soundy_tab_index' ) )
36
  sessionStorage.setItem( 'war_soundy_tab_index', 0 );
78
  _this.initPlayPausePosition();
79
  _this.initLengthUnits();
80
  _this.initImgPreviewInContextPosition();
81
+ _this.initSubmit();
82
  }
83
 
84
  war_SoundyAdmin.prototype.initMetaBox = function( args )
673
  _this.pp_images_to_use = jQuery( 'input[name=war_soundy_pp_images_to_use]:checked' ).val();
674
  } );
675
  }
676
+
677
+ war_SoundyAdmin.prototype.initSubmit = function()
678
+ {
679
+ var _this = this;
680
+
681
+ var spinner = new Image( 20, 20 );
682
+ spinner.src = _this.plugin_url + '/images/spinner.gif';
683
+
684
+ var jquery_submit = jQuery( '#submit' );
685
+ jquery_submit.click( function()
686
+ {
687
+ jQuery( 'p.submit' ).append( ' &nbsp;&nbsp; <img src="' + spinner.src + '" style="vertical-align: middle;">' );
688
+ } );
689
+ }
readme.txt CHANGED
@@ -3,21 +3,21 @@ 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: 3.9
6
- Stable tag: 2.2
7
  License: GPL2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
- Donate link: http://www.webartisan.ch/en/products/soundy-free/#wa_donate
10
 
11
- Soundy allows a page or post to play a soundtrack while it is displayed.
12
 
13
  == Description ==
14
  = Description =
15
 
16
- The **Soundy** plugin allows a page or post to play a background music while it is displayed.
17
 
18
  Having a home page or any other page playing a background music greatly improves your website visitor's experience. By choosing a music in adequacy with your content, Soundy will help making your visitors immersed in your pages. Pages with a slideshow are excellent candidates for Soundy. But a lot of other page types too.
19
 
20
- A Play/Pause button can be displayed anywhere in the pages and posts. Do you need a Play/Pause button that perfectly fits your website design ? Try [**Soundy PRO**](http://www.webartisan.ch/en/products/soundy-pro/) for free.
21
 
22
  Each page or post can have its own soundtrack. The soundtrack is embedded in the page by means of the HTML 5 audio tag. This way, the plugin is compatible with all modern user devices (smartphones, tablets, laptops and desktops of all vendors).
23
 
@@ -43,7 +43,7 @@ A play and pause button image can be uploaded by the administrator to replace th
43
  = Soundy PRO Version Features =
44
 
45
  * Same features as the free version.
46
- * [**HTML5 Play/Pause Button Designer**](http://www.webartisan.ch/en/products/soundy-pro/) allowing control over:
47
  * &nbsp;&nbsp;&nbsp;&nbsp;Button colors
48
  * &nbsp;&nbsp;&nbsp;&nbsp;Button size
49
  * &nbsp;&nbsp;&nbsp;&nbsp;Button outline
@@ -60,8 +60,8 @@ In Magali Bourquin's Soundy implementation, the background sound is enabled for
60
 
61
  = Docs & Support =
62
 
63
- You can find [Tutorial](http://www.webartisan.ch/en/products/soundy-free/#wa_tutorial), [FAQ](http://www.webartisan.ch/en/products/soundy-free/#wa_FAQ), [Examples](http://www.webartisan.ch/en/products/soundy-free/#wa_examples) and more detailed information about **Soundy** plugin on [WebArtisan.ch](http://www.webartisan.ch/en/products/soundy-free/). If you were unable to find the answer to your question on the FAQ or in any of the documentation, you should check [Soundy's Support Forum](http://wordpress.org/support/plugin/soundy-background-music) on WordPress.org. If you can't locate any topics that pertain to your particular issue, post a new topic for it.
64
- **Soundy** Plugin Home Page: [www.webartisan.ch/en/products/soundy-free](http://www.webartisan.ch/en/products/soundy-free/)
65
 
66
  == Installation ==
67
 
@@ -79,7 +79,7 @@ You can find [Tutorial](http://www.webartisan.ch/en/products/soundy-free/#wa_tut
79
  1. The page will then play the default soundtrack when displayed.
80
 
81
  * To set up plugin defaults, go to Settings > **Soundy** in the admin area and fill out the input fields.
82
- * For help, here is a [tutorial](http://www.webartisan.ch/en/products/soundy-free/#wa_tutorial).
83
  * Happy Soundy Music !
84
 
85
  = Updates =
@@ -121,7 +121,7 @@ If such themes exist, then, YES, by using such a theme you could have a continuo
121
  A Soundy's user is using the [Premium Crea WP theme](http://themeforest.net/item/crea-wp/424783) on his site: http://www.hanstylewedding.com/
122
  While navigating in the bottom menu of this site, the audio stream is not interrupted and remain continuous as the theme doesn't download any new HTML document while navigating in this menu.
123
  Having a continuous uninterrupted audio stream playing while navigating on a WP site with Soundy plugin might be possible with some themes but on most themes, it is impossible.
124
- Here, at [WebArtisan.ch](http://www.webartisan.ch/), we are considering developing a theme which will allow this valuable feature. This will be the Soundy Theme.
125
  If you know of other themes like the Crea WP theme which don't download new HTML documents while navigating on the site, please, let us know !
126
 
127
  = Support Questions =
@@ -138,7 +138,7 @@ To correct the problem, reset the Soundtrack option of the Soundy meta box back
138
  In *Custom* mode a page retains the soundtrack defined when the *Custom* option was selected. In *Default* mode, the page uses the default soundtrack currently defined in the Soundy settings.
139
 
140
  1. **Is it advised to put my audio files on a separate storage cloud ?**
141
- Yes it is, especially if you have a lot of traffic on your website. Putting your audio files on a separate storage cloud will release the load on your website and improve page load response time in your visitor's browsers. There is a lot of Cloud Storage Providers out there like Dropbox, Google Drive, SkyDrive and many others. Your hosting provider might also offer cloud storage.
142
 
143
  1. **On WP front-end, Soundy's Play/Pause button does not respond correctly. What's the problem ?**
144
  Soundy needs jQuery 1.10.2 which is the default jQuery library of the last versions of WordPress. However some themes load their own jQuery library. If this library is not up-to-date, Soundy's Play/Pause button gets into troubles.
@@ -158,6 +158,9 @@ Using WordPress Default jQuery library is actually what Soundy does and this is
158
 
159
  = Changelog =
160
 
 
 
 
161
  = 2.2 &nbsp;&nbsp; - &nbsp;&nbsp; May 4th, 2014 =
162
  * Fixed bug introduced in 2.0: in the admin plugins page, all plugins had a Settings link pointing to Soundy's settings because of a bug in soundy.php. Sorry for the inconvenience.
163
 
@@ -170,7 +173,7 @@ Using WordPress Default jQuery library is actually what Soundy does and this is
170
  * Added Play/Pause Button Preview in Context of any Page or Post in Settings > Soundy > Play/Pause Corner Position Tab.
171
  * Added Swap Button in Settings > Soundy > Play/Pause Button Tab to swap the URLs of the normal and hover images.
172
  * Fixed minor bug in New Page and New Post Soundy metabox.
173
- * [**Soundy PRO**](http://www.webartisan.ch/en/products/soundy-pro/) and its HTML5 **Play/Pause Button Designer** application is now available.
174
 
175
  = 1.2 &nbsp;&nbsp; - &nbsp;&nbsp; March 17th, 2014 =
176
  * Added Audio Volume Control for administrators in Settings > Soundy.
@@ -187,9 +190,12 @@ Using WordPress Default jQuery library is actually what Soundy does and this is
187
 
188
  == Upgrade Notice ==
189
 
 
 
 
190
  = 2.0 =
191
  * **IMPORTANT**: After having upgraded Soundy to 2.0, please clear your browser's cache. The reason is that a few CSS and Javascript files have been modified or deleted and these files are typically cached by browsers.
192
- * [**Soundy PRO**](http://www.webartisan.ch/en/products/soundy-pro/) and its HTML5 **Play/Pause Button Designer** application is now available.
193
 
194
  = 1.2 =
195
  * After having upgraded Soundy to 1.2, please clear the cache of Soundy's admin pages in your browser. The reason is that a few CSS and Javascript files have been modified and these files are typically cached by browsers.
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: 3.9
6
+ Stable tag: 2.3
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
10
 
11
+ Soundy allows any page or post to play a soundtrack while it is displayed.
12
 
13
  == Description ==
14
  = Description =
15
 
16
+ **Soundy Background Music** allows any page or post to play a background music while it is displayed.
17
 
18
  Having a home page or any other page playing a background music greatly improves your website visitor's experience. By choosing a music in adequacy with your content, Soundy will help making your visitors immersed in your pages. Pages with a slideshow are excellent candidates for Soundy. But a lot of other page types too.
19
 
20
+ A Play/Pause button can be displayed anywhere in the pages and posts. Do you need a Play/Pause button that perfectly fits your website design ? Try [**Soundy Background Music PRO**](http://webartisan.ch/en/products/soundy-background-music/pro-wordpress-plugin/) for free.
21
 
22
  Each page or post can have its own soundtrack. The soundtrack is embedded in the page by means of the HTML 5 audio tag. This way, the plugin is compatible with all modern user devices (smartphones, tablets, laptops and desktops of all vendors).
23
 
43
  = Soundy PRO Version Features =
44
 
45
  * Same features as the free version.
46
+ * [**HTML5 Play/Pause Button Designer**](http://www.webartisan.ch/en/products/soundy-background-music/pro-wordpress-plugin/) allowing control over:
47
  * &nbsp;&nbsp;&nbsp;&nbsp;Button colors
48
  * &nbsp;&nbsp;&nbsp;&nbsp;Button size
49
  * &nbsp;&nbsp;&nbsp;&nbsp;Button outline
60
 
61
  = Docs & Support =
62
 
63
+ You can find [Tutorial](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_tutorial), [FAQ](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_FAQ), [Examples](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_examples) and more detailed information about **Soundy** plugin on [WebArtisan.ch](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/). If you were unable to find the answer to your question on the FAQ or in any of the documentation, you should check [Soundy's Support Forum](http://wordpress.org/support/plugin/soundy-background-music) on WordPress.org. If you can't locate any topics that pertain to your particular issue, post a new topic for it.
64
+ **Soundy Background Music** Plugin Home Page: [webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/)
65
 
66
  == Installation ==
67
 
79
  1. The page will then play the default soundtrack when displayed.
80
 
81
  * To set up plugin defaults, go to Settings > **Soundy** in the admin area and fill out the input fields.
82
+ * For help, here is a [tutorial](http://webartisan.ch/en/products/soundy-background-music/free-wordpress-plugin/#wa_tutorial).
83
  * Happy Soundy Music !
84
 
85
  = Updates =
121
  A Soundy's user is using the [Premium Crea WP theme](http://themeforest.net/item/crea-wp/424783) on his site: http://www.hanstylewedding.com/
122
  While navigating in the bottom menu of this site, the audio stream is not interrupted and remain continuous as the theme doesn't download any new HTML document while navigating in this menu.
123
  Having a continuous uninterrupted audio stream playing while navigating on a WP site with Soundy plugin might be possible with some themes but on most themes, it is impossible.
124
+ Here, at [WebArtisan.ch](http://webartisan.ch/), we are considering developing a theme which will allow this valuable feature. This will be the Soundy Theme.
125
  If you know of other themes like the Crea WP theme which don't download new HTML documents while navigating on the site, please, let us know !
126
 
127
  = Support Questions =
138
  In *Custom* mode a page retains the soundtrack defined when the *Custom* option was selected. In *Default* mode, the page uses the default soundtrack currently defined in the Soundy settings.
139
 
140
  1. **Is it advised to put my audio files on a separate storage cloud ?**
141
+ Yes it is, especially if you have a lot of traffic on your website. Putting your audio files on a separate storage cloud will release the load on your website and improve page load response time in your visitor's browsers. There is a lot of Cloud Storage Providers out there. Hereis a list of such providers: [Audio Hostings - free audio hosting sites](http://www.audiohostings.com/). Your hosting provider might also offer cloud storage.
142
 
143
  1. **On WP front-end, Soundy's Play/Pause button does not respond correctly. What's the problem ?**
144
  Soundy needs jQuery 1.10.2 which is the default jQuery library of the last versions of WordPress. However some themes load their own jQuery library. If this library is not up-to-date, Soundy's Play/Pause button gets into troubles.
158
 
159
  = Changelog =
160
 
161
+ = 2.3 &nbsp;&nbsp; - &nbsp;&nbsp; May 11th, 2014 =
162
+ * Made admin user interface a little bit more attractive. No functionality change.
163
+
164
  = 2.2 &nbsp;&nbsp; - &nbsp;&nbsp; May 4th, 2014 =
165
  * Fixed bug introduced in 2.0: in the admin plugins page, all plugins had a Settings link pointing to Soundy's settings because of a bug in soundy.php. Sorry for the inconvenience.
166
 
173
  * Added Play/Pause Button Preview in Context of any Page or Post in Settings > Soundy > Play/Pause Corner Position Tab.
174
  * Added Swap Button in Settings > Soundy > Play/Pause Button Tab to swap the URLs of the normal and hover images.
175
  * Fixed minor bug in New Page and New Post Soundy metabox.
176
+ * [**Soundy Background Music PRO**](http://webartisan.ch/en/products/soundy-background-music/pro-wordpress-plugin/) and its HTML5 **Play/Pause Button Designer** application is now available.
177
 
178
  = 1.2 &nbsp;&nbsp; - &nbsp;&nbsp; March 17th, 2014 =
179
  * Added Audio Volume Control for administrators in Settings > Soundy.
190
 
191
  == Upgrade Notice ==
192
 
193
+ = 2.3 =
194
+ * After having upgraded Soundy to 2.3, please clear the cache of Soundy's admin pages in your browser. The reason is that a few CSS and Javascript files have been modified and these files are typically cached by browsers.
195
+
196
  = 2.0 =
197
  * **IMPORTANT**: After having upgraded Soundy to 2.0, please clear your browser's cache. The reason is that a few CSS and Javascript files have been modified or deleted and these files are typically cached by browsers.
198
+ * [**Soundy Background Music PRO**](http://webartisan.ch/en/products/soundy-background-music/pro-wordpress-plugin/) and its HTML5 **Play/Pause Button Designer** application is now available.
199
 
200
  = 1.2 =
201
  * After having upgraded Soundy to 1.2, please clear the cache of Soundy's admin pages in your browser. The reason is that a few CSS and Javascript files have been modified and these files are typically cached by browsers.
soundy.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
- * @version 2.2
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://webartisan.ch/en/products/soundy-free/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
- Version: 2.2
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
@@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
 
31
  class WarSoundy
32
  {
33
- private $soundy_version = '2.2';
34
  private $soundy_type = 'free';
35
  private $soundy_subtype = '';
36
  private $soundy_free_home_wp_url = 'http://wordpress.org/plugins/soundy-background-music/';
@@ -40,7 +40,7 @@ class WarSoundy
40
  private $enable_bg_sound = 'no';
41
  private $audio_url = '/audio/valse.mp3';
42
  private $audio_volume = '80';
43
- private $audio_title = 'Valse - Anonymous (1870)';
44
  private $autoplay = 'yes';
45
  private $loop = 'yes';
46
  private $pp_images_to_use = 'default';
@@ -752,7 +752,8 @@ class WarSoundy
752
  public function add_settings_field_audio_volume( $args )
753
  {
754
  ?>
755
- <div id="war_soundy_audio_volume_slider" style="width: 300px; display: inline-block; margin-right: 10px;"></div>
 
756
  <input type="text"
757
  class="war_soundy_audio_volume"
758
  value="<?php echo get_option( 'war_soundy_audio_volume' ); ?>"
1
  <?php
2
  /**
3
  * @package Soundy_Background_Music
4
+ * @version 2.3
5
  */
6
  /*
7
  Plugin Name: Soundy Background Music
8
  Plugin URI: http://webartisan.ch/en/products/soundy-free/
9
  Description: This plugin allows administrators and authors to set a background sound on any post or page.
10
+ Version: 2.3
11
  Author: Bertrand du Couédic
12
  Author URI: http://webartisan.ch/en/about
13
  License: GPL2
30
 
31
  class WarSoundy
32
  {
33
+ private $soundy_version = '2.3';
34
  private $soundy_type = 'free';
35
  private $soundy_subtype = '';
36
  private $soundy_free_home_wp_url = 'http://wordpress.org/plugins/soundy-background-music/';
40
  private $enable_bg_sound = 'no';
41
  private $audio_url = '/audio/valse.mp3';
42
  private $audio_volume = '80';
43
+ private $audio_title = 'Waltz - Anonymous (1870) - played by Jean-Maurice Mourat';
44
  private $autoplay = 'yes';
45
  private $loop = 'yes';
46
  private $pp_images_to_use = 'default';
752
  public function add_settings_field_audio_volume( $args )
753
  {
754
  ?>
755
+ <div id="war_soundy_audio_volume_slider"
756
+ class="war_soundy_slider"></div>
757
  <input type="text"
758
  class="war_soundy_audio_volume"
759
  value="<?php echo get_option( 'war_soundy_audio_volume' ); ?>"
templates/meta-box.php CHANGED
@@ -59,7 +59,8 @@ var war_soundy_admin = new war_SoundyAdmin(
59
  value="custom" <?php echo ( $audio_volume_is_default ? '' : 'checked' ); ?>/>
60
  <label for="war_soundy_audio_volume_custom" style="margin-right: 1em;">Custom</label>
61
  </div>
62
- <div id="war_soundy_audio_volume_slider" style="width: 300px; display: inline-block; margin: 0 10px 0 0;"></div>
 
63
  <input type="text"
64
  class="war_soundy_audio_volume"
65
  value="<?php echo $audio_volume; ?>"
59
  value="custom" <?php echo ( $audio_volume_is_default ? '' : 'checked' ); ?>/>
60
  <label for="war_soundy_audio_volume_custom" style="margin-right: 1em;">Custom</label>
61
  </div>
62
+ <div id="war_soundy_audio_volume_slider"
63
+ class="war_soundy_slider"></div>
64
  <input type="text"
65
  class="war_soundy_audio_volume"
66
  value="<?php echo $audio_volume; ?>"
templates/settings.php CHANGED
@@ -28,6 +28,7 @@
28
  default_audio_volume: '<?php echo $this->audio_volume; ?>',
29
  is_pro: <?php echo $is_pro; ?>,
30
  is_trial: <?php echo $is_trial; ?>,
 
31
  soundy_pro_home_url: '<?php echo $this->soundy_pro_home_url; ?>'
32
  } );
33
  </script>
28
  default_audio_volume: '<?php echo $this->audio_volume; ?>',
29
  is_pro: <?php echo $is_pro; ?>,
30
  is_trial: <?php echo $is_trial; ?>,
31
+ plugin_url: '<?php echo $this->plugin_url; ?>',
32
  soundy_pro_home_url: '<?php echo $this->soundy_pro_home_url; ?>'
33
  } );
34
  </script>