Version Description
- Juli 7th, 2016 = * Play/Pause button images dimensions are now displayed in the Play/Pause Button tab of the plugin settings. * Default values are now displayed as comment in the plugin metabox in posts and pages.
Download this release
Release Info
Developer | bducouedic |
Plugin | Soundy Background Music |
Version | 3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3 to 3.4
- .idea/workspace.xml +50 -39
- js/back-end.js +39 -15
- js/front-end.js +138 -123
- readme.txt +5 -1
- soundy.php +26 -12
- templates/front-end.php +1 -1
- templates/meta-box.php +8 -0
.idea/workspace.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
-
<list default="true" id="5bdbdc90-e429-41dd-874c-280889498679" name="Default" comment="" />
|
5 |
<ignored path="3.3.iws" />
|
6 |
<ignored path=".idea/workspace.xml" />
|
7 |
<option name="TRACKING_ENABLED" value="true" />
|
@@ -22,7 +22,19 @@
|
|
22 |
<favorites_list name="3.3" />
|
23 |
</component>
|
24 |
<component name="FileEditorManager">
|
25 |
-
<leaf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</component>
|
27 |
<component name="FindManager">
|
28 |
<FindUsagesManager>
|
@@ -86,21 +98,7 @@
|
|
86 |
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
87 |
</PATH_ELEMENT>
|
88 |
<PATH_ELEMENT>
|
89 |
-
<option name="myItemId" value="3.
|
90 |
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
91 |
-
</PATH_ELEMENT>
|
92 |
-
</PATH>
|
93 |
-
<PATH>
|
94 |
-
<PATH_ELEMENT>
|
95 |
-
<option name="myItemId" value="3.3" />
|
96 |
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
97 |
-
</PATH_ELEMENT>
|
98 |
-
<PATH_ELEMENT>
|
99 |
-
<option name="myItemId" value="3.3" />
|
100 |
-
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
101 |
-
</PATH_ELEMENT>
|
102 |
-
<PATH_ELEMENT>
|
103 |
-
<option name="myItemId" value="templates" />
|
104 |
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
105 |
</PATH_ELEMENT>
|
106 |
</PATH>
|
@@ -114,7 +112,7 @@
|
|
114 |
<property name="options.splitter.details.proportions" value="0.2" />
|
115 |
<property name="options.searchVisible" value="true" />
|
116 |
<property name="WebServerToolWindowFactoryState" value="true" />
|
117 |
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
118 |
</component>
|
119 |
<component name="RunManager">
|
120 |
<list size="0" />
|
@@ -137,6 +135,25 @@
|
|
137 |
<option name="IGNORE_EXTERNALS" value="false" />
|
138 |
<configuration useDefault="false">$USER_HOME$/.subversion</configuration>
|
139 |
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
</component>
|
141 |
<component name="TaskManager">
|
142 |
<task active="true" id="Default" summary="Default task">
|
@@ -148,23 +165,23 @@
|
|
148 |
</component>
|
149 |
<component name="ToolWindowManager">
|
150 |
<frame x="0" y="23" width="1440" height="831" extended-state="6" />
|
151 |
-
<editor active="
|
152 |
<layout>
|
153 |
-
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
154 |
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="
|
155 |
-
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
156 |
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.44384304" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
157 |
-
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
158 |
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
159 |
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
160 |
-
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
161 |
-
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
162 |
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
|
163 |
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
164 |
-
<window_info id="
|
|
|
|
|
|
|
|
|
165 |
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
|
166 |
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
167 |
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
|
168 |
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
169 |
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
170 |
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
@@ -190,28 +207,22 @@
|
|
190 |
<component name="editorHistoryManager">
|
191 |
<entry file="file://$PROJECT_DIR$/../../trunk/readme.txt">
|
192 |
<provider selected="true" editor-type-id="text-editor">
|
193 |
-
<state line="247" column="221" selection-start="19101" selection-end="19101" vertical-scroll-proportion="12.101828" vertical-offset="0" max-vertical-offset="4725"
|
194 |
-
<folding />
|
195 |
-
</state>
|
196 |
</provider>
|
197 |
</entry>
|
198 |
<entry file="file://$PROJECT_DIR$/templates/front-end.php">
|
199 |
<provider selected="true" editor-type-id="text-editor">
|
200 |
-
<state line="129" column="0" selection-start="5360" selection-end="5360" vertical-scroll-proportion="0.35376045" vertical-offset="1808" max-vertical-offset="3840"
|
201 |
-
<folding />
|
202 |
-
</state>
|
203 |
</provider>
|
204 |
</entry>
|
205 |
<entry file="file://$PROJECT_DIR$/readme.txt">
|
206 |
<provider selected="true" editor-type-id="text-editor">
|
207 |
-
<state line="171" column="79" selection-start="0" selection-end="19101" vertical-scroll-proportion="0.4308094" vertical-offset="3120" max-vertical-offset="4725"
|
208 |
-
<folding />
|
209 |
-
</state>
|
210 |
</provider>
|
211 |
</entry>
|
212 |
<entry file="file://$PROJECT_DIR$/soundy.php">
|
213 |
<provider selected="true" editor-type-id="text-editor">
|
214 |
-
<state line="
|
215 |
<folding>
|
216 |
<element signature="e#6#65#0" expanded="true" />
|
217 |
</folding>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<project version="4">
|
3 |
<component name="ChangeListManager">
|
4 |
+
<list default="true" readonly="true" id="5bdbdc90-e429-41dd-874c-280889498679" name="Default" comment="" />
|
5 |
<ignored path="3.3.iws" />
|
6 |
<ignored path=".idea/workspace.xml" />
|
7 |
<option name="TRACKING_ENABLED" value="true" />
|
22 |
<favorites_list name="3.3" />
|
23 |
</component>
|
24 |
<component name="FileEditorManager">
|
25 |
+
<leaf>
|
26 |
+
<file leaf-file-name="soundy.php" pinned="false" current="true" current-in-tab="true">
|
27 |
+
<entry file="file://$PROJECT_DIR$/soundy.php">
|
28 |
+
<provider selected="true" editor-type-id="text-editor">
|
29 |
+
<state line="102" column="22" selection-start="4522" selection-end="4522" vertical-scroll-proportion="0.58780843" vertical-offset="1125" max-vertical-offset="25260">
|
30 |
+
<folding>
|
31 |
+
<element signature="e#6#65#0" expanded="true" />
|
32 |
+
</folding>
|
33 |
+
</state>
|
34 |
+
</provider>
|
35 |
+
</entry>
|
36 |
+
</file>
|
37 |
+
</leaf>
|
38 |
</component>
|
39 |
<component name="FindManager">
|
40 |
<FindUsagesManager>
|
98 |
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
99 |
</PATH_ELEMENT>
|
100 |
<PATH_ELEMENT>
|
101 |
+
<option name="myItemId" value="3.4" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
103 |
</PATH_ELEMENT>
|
104 |
</PATH>
|
112 |
<property name="options.splitter.details.proportions" value="0.2" />
|
113 |
<property name="options.searchVisible" value="true" />
|
114 |
<property name="WebServerToolWindowFactoryState" value="true" />
|
115 |
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
116 |
</component>
|
117 |
<component name="RunManager">
|
118 |
<list size="0" />
|
135 |
<option name="IGNORE_EXTERNALS" value="false" />
|
136 |
<configuration useDefault="false">$USER_HOME$/.subversion</configuration>
|
137 |
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
|
138 |
+
<supportedVersion>125</supportedVersion>
|
139 |
+
</component>
|
140 |
+
<component name="SvnFileUrlMappingImpl">
|
141 |
+
<option name="myMappingRoots">
|
142 |
+
<list>
|
143 |
+
<SvnCopyRootSimple>
|
144 |
+
<option name="myVcsRoot" value="$PROJECT_DIR$" />
|
145 |
+
<option name="myCopyRoot" value="$PROJECT_DIR$" />
|
146 |
+
</SvnCopyRootSimple>
|
147 |
+
</list>
|
148 |
+
</option>
|
149 |
+
<option name="myMoreRealMappingRoots">
|
150 |
+
<list>
|
151 |
+
<SvnCopyRootSimple>
|
152 |
+
<option name="myVcsRoot" value="$PROJECT_DIR$" />
|
153 |
+
<option name="myCopyRoot" value="$PROJECT_DIR$" />
|
154 |
+
</SvnCopyRootSimple>
|
155 |
+
</list>
|
156 |
+
</option>
|
157 |
</component>
|
158 |
<component name="TaskManager">
|
159 |
<task active="true" id="Default" summary="Default task">
|
165 |
</component>
|
166 |
<component name="ToolWindowManager">
|
167 |
<frame x="0" y="23" width="1440" height="831" extended-state="6" />
|
168 |
+
<editor active="true" />
|
169 |
<layout>
|
170 |
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
171 |
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
173 |
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
174 |
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
175 |
+
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
176 |
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24892704" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
177 |
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
178 |
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
179 |
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
180 |
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
181 |
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
182 |
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
183 |
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
184 |
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.44384304" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
185 |
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
186 |
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
187 |
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
207 |
<component name="editorHistoryManager">
|
208 |
<entry file="file://$PROJECT_DIR$/../../trunk/readme.txt">
|
209 |
<provider selected="true" editor-type-id="text-editor">
|
210 |
+
<state line="247" column="221" selection-start="19101" selection-end="19101" vertical-scroll-proportion="12.101828" vertical-offset="0" max-vertical-offset="4725" />
|
|
|
|
|
211 |
</provider>
|
212 |
</entry>
|
213 |
<entry file="file://$PROJECT_DIR$/templates/front-end.php">
|
214 |
<provider selected="true" editor-type-id="text-editor">
|
215 |
+
<state line="129" column="0" selection-start="5360" selection-end="5360" vertical-scroll-proportion="0.35376045" vertical-offset="1808" max-vertical-offset="3840" />
|
|
|
|
|
216 |
</provider>
|
217 |
</entry>
|
218 |
<entry file="file://$PROJECT_DIR$/readme.txt">
|
219 |
<provider selected="true" editor-type-id="text-editor">
|
220 |
+
<state line="171" column="79" selection-start="0" selection-end="19101" vertical-scroll-proportion="0.4308094" vertical-offset="3120" max-vertical-offset="4725" />
|
|
|
|
|
221 |
</provider>
|
222 |
</entry>
|
223 |
<entry file="file://$PROJECT_DIR$/soundy.php">
|
224 |
<provider selected="true" editor-type-id="text-editor">
|
225 |
+
<state line="102" column="22" selection-start="4522" selection-end="4522" vertical-scroll-proportion="0.58780843" vertical-offset="1125" max-vertical-offset="25260">
|
226 |
<folding>
|
227 |
<element signature="e#6#65#0" expanded="true" />
|
228 |
</folding>
|
js/back-end.js
CHANGED
@@ -62,10 +62,10 @@ war_SoundyAdmin.prototype.initSettingsTabs = function( args )
|
|
62 |
} );
|
63 |
|
64 |
_this.bindMediaUploader( 'war_soundy_audio_file_url', 'war_audio_library_button', 'audio' );
|
65 |
-
_this.bindMediaUploader( 'war_soundy_url_play_button', '
|
66 |
-
_this.bindMediaUploader( 'war_soundy_url_play_hover', '
|
67 |
-
_this.bindMediaUploader( 'war_soundy_url_pause_button', '
|
68 |
-
_this.bindMediaUploader( 'war_soundy_url_pause_hover', '
|
69 |
_this.initBuySoundyPro();
|
70 |
_this.initAudioFileURL();
|
71 |
_this.initAudioType();
|
@@ -735,18 +735,42 @@ war_SoundyAdmin.prototype.initPlayPausePosition = function()
|
|
735 |
|
736 |
war_SoundyAdmin.prototype.initButtonImgUrls = function()
|
737 |
{
|
738 |
-
|
739 |
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
750 |
}
|
751 |
|
752 |
war_SoundyAdmin.prototype.getAudioTypeFromURL = function( url )
|
62 |
} );
|
63 |
|
64 |
_this.bindMediaUploader( 'war_soundy_audio_file_url', 'war_audio_library_button', 'audio' );
|
65 |
+
_this.bindMediaUploader( 'war_soundy_url_play_button', 'war_soundy_img_play_button_library_button', 'image' );
|
66 |
+
_this.bindMediaUploader( 'war_soundy_url_play_hover', 'war_soundy_img_play_hover_library_button', 'image' );
|
67 |
+
_this.bindMediaUploader( 'war_soundy_url_pause_button', 'war_soundy_img_pause_button_library_button', 'image' );
|
68 |
+
_this.bindMediaUploader( 'war_soundy_url_pause_hover', 'war_soundy_img_pause_hover_library_button', 'image' );
|
69 |
_this.initBuySoundyPro();
|
70 |
_this.initAudioFileURL();
|
71 |
_this.initAudioType();
|
735 |
|
736 |
war_SoundyAdmin.prototype.initButtonImgUrls = function()
|
737 |
{
|
738 |
+
var _this = this;
|
739 |
|
740 |
+
var types = [ 'play_button', 'play_hover', 'pause_button', 'pause_hover' ];
|
741 |
+
for( var index in types )
|
742 |
+
{
|
743 |
+
var type = types[ index ];
|
744 |
+
|
745 |
+
jQuery( '#war_soundy_url_' + type + '_img' ).load( function()
|
746 |
+
{
|
747 |
+
var width = this.width;
|
748 |
+
var height = this.height;
|
749 |
+
|
750 |
+
var jquery_width = jQuery( '#' + this.id + '_width' );
|
751 |
+
var jquery_height = jQuery( '#' + this.id + '_height' );
|
752 |
+
|
753 |
+
if( width == 0 || height == 0 )
|
754 |
+
{
|
755 |
+
var trig_func = function() { jQuery( '#' + this.id + '_img' ).trigger( 'load' ); };
|
756 |
+
setTimeout( trig_func, 100 );
|
757 |
+
}
|
758 |
+
else
|
759 |
+
{
|
760 |
+
jquery_width.html( width );
|
761 |
+
jquery_height.html( height );
|
762 |
+
}
|
763 |
+
} );
|
764 |
+
|
765 |
+
jQuery( '#war_soundy_url_' + type ).change( function()
|
766 |
+
{
|
767 |
+
var url = this.value;
|
768 |
+
jQuery( '#' + this.id + '_img' ).attr( 'src', url );
|
769 |
+
jQuery( '#' + this.id + '_img' ).trigger( 'load' );
|
770 |
+
} );
|
771 |
+
|
772 |
+
jQuery( '#war_soundy_url_' + type ).trigger( 'change' );
|
773 |
+
}
|
774 |
}
|
775 |
|
776 |
war_SoundyAdmin.prototype.getAudioTypeFromURL = function( url )
|
js/front-end.js
CHANGED
@@ -101,7 +101,17 @@ function war_SoundyFrontEnd( args )
|
|
101 |
}
|
102 |
}
|
103 |
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
} );
|
106 |
}
|
107 |
|
@@ -133,115 +143,117 @@ war_SoundyFrontEnd.prototype.animateVolume = function( audio_player_element, new
|
|
133 |
var interval_id = setInterval( iterateVolume, 400 );
|
134 |
}
|
135 |
|
136 |
-
|
137 |
-
war_SoundyFrontEnd.prototype.initPPButton = function()
|
138 |
{
|
139 |
-
|
140 |
|
141 |
-
if( _this.
|
142 |
{
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
|
|
|
|
|
147 |
{
|
148 |
-
|
149 |
-
jQuery( '.war_soundy_pp_corner' ).hide();
|
150 |
}
|
151 |
-
else
|
152 |
{
|
153 |
-
|
154 |
}
|
155 |
-
}
|
156 |
-
|
|
|
157 |
{
|
158 |
-
|
159 |
-
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
{
|
162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
}
|
|
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
if( _this.audio_player_element.paused )
|
169 |
-
{
|
170 |
-
_this.audio_player_element.play();
|
171 |
-
_this.audio_control.attr( 'src', _this.button_url_pause_hover );
|
172 |
-
}
|
173 |
-
else
|
174 |
-
{
|
175 |
-
_this.audio_player_element.pause();
|
176 |
-
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
177 |
-
}
|
178 |
-
} );
|
179 |
-
|
180 |
-
_this.audio_control.hover(
|
181 |
-
function()
|
182 |
-
{
|
183 |
-
_this.hovering = true;
|
184 |
-
if( _this.audio_player_element.paused )
|
185 |
-
{
|
186 |
-
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
187 |
-
}
|
188 |
-
else
|
189 |
-
{
|
190 |
-
_this.audio_control.attr( 'src', _this.button_url_pause_hover );
|
191 |
-
}
|
192 |
-
},
|
193 |
-
function()
|
194 |
-
{
|
195 |
-
_this.hovering = false;
|
196 |
-
if( _this.audio_player_element.paused )
|
197 |
-
{
|
198 |
-
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
199 |
-
}
|
200 |
-
else
|
201 |
-
{
|
202 |
-
_this.audio_control.attr( 'src', _this.button_url_pause_normal );
|
203 |
-
}
|
204 |
-
}
|
205 |
-
);
|
206 |
-
|
207 |
-
_this.audio_player.bind( 'ended' , function()
|
208 |
-
{
|
209 |
-
if( _this.hovering )
|
210 |
-
{
|
211 |
-
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
212 |
-
}
|
213 |
-
else
|
214 |
-
{
|
215 |
-
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
216 |
-
}
|
217 |
-
} );
|
218 |
|
219 |
-
|
|
|
|
|
220 |
{
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
} );
|
230 |
-
|
231 |
-
if( _this.audio_player_element.autoplay )
|
232 |
-
{
|
233 |
-
if( _this.user_agent_is_IOS )
|
234 |
-
{
|
235 |
-
if( _this.hovering )
|
236 |
-
{
|
237 |
-
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
238 |
-
}
|
239 |
-
else
|
240 |
-
{
|
241 |
-
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
242 |
-
}
|
243 |
-
}
|
244 |
-
}
|
245 |
|
246 |
if( war_soundy_responsive_mode != 'none' )
|
247 |
{
|
@@ -273,27 +285,30 @@ war_SoundyFrontEnd.prototype.initPPButton = function()
|
|
273 |
for( var index in war_soundy_responsive_table_rows )
|
274 |
{
|
275 |
var row = war_soundy_responsive_table_rows[ index ];
|
276 |
-
if( row.
|
277 |
{
|
278 |
if( row.window_width_min != -1 && row.window_width_max != -1 )
|
279 |
{
|
280 |
if( row.window_width_min <= window_width && window_width <= row.window_width_max )
|
281 |
{
|
282 |
-
|
|
|
283 |
}
|
284 |
}
|
285 |
else if( row.window_width_min != -1 )
|
286 |
{
|
287 |
if( row.window_width_min <= window_width )
|
288 |
{
|
289 |
-
|
|
|
290 |
}
|
291 |
}
|
292 |
else if( row.window_width_max != -1 )
|
293 |
{
|
294 |
if( window_width <= row.window_width_max )
|
295 |
{
|
296 |
-
|
|
|
297 |
}
|
298 |
}
|
299 |
}
|
@@ -338,31 +353,31 @@ war_SoundyFrontEnd.prototype.initPPButton = function()
|
|
338 |
{
|
339 |
var scale_factor = ( window_width * 0.7 / war_soundy_responsive_reference_window_width ) + 0.3;
|
340 |
|
341 |
-
|
342 |
-
(
|
343 |
-
|
344 |
-
{
|
345 |
-
var button_size = jQuery( this ).width();
|
346 |
-
var responsive_button_size = Math.round( button_size * scale_factor );
|
347 |
-
jQuery( this ).css( 'width', responsive_button_size );
|
348 |
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
var responsive_offset_x = Math.round( offset_x * scale_factor );
|
357 |
-
var responsive_offset_y = Math.round( offset_y * scale_factor );
|
358 |
-
|
359 |
-
jquery_corner_button.css( prop_x, responsive_offset_x );
|
360 |
-
jquery_corner_button.css( prop_y, responsive_offset_y );
|
361 |
-
}
|
362 |
|
363 |
-
|
364 |
}
|
365 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
366 |
}
|
367 |
}
|
368 |
-
}
|
101 |
}
|
102 |
}
|
103 |
|
104 |
+
_this.initPPButtonAudio();
|
105 |
+
|
106 |
+
_this.audio_control.load( function()
|
107 |
+
{
|
108 |
+
_this.initPPButtonLayout();
|
109 |
+
|
110 |
+
jQuery( window ).resize( function()
|
111 |
+
{
|
112 |
+
_this.initPPButtonLayout();
|
113 |
+
} );
|
114 |
+
} );
|
115 |
} );
|
116 |
}
|
117 |
|
143 |
var interval_id = setInterval( iterateVolume, 400 );
|
144 |
}
|
145 |
|
146 |
+
war_SoundyFrontEnd.prototype.initPPButtonAudio = function()
|
|
|
147 |
{
|
148 |
+
var _this = this;
|
149 |
|
150 |
+
if( _this.audio_player_element.paused )
|
151 |
{
|
152 |
+
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
153 |
+
}
|
154 |
+
else
|
155 |
+
{
|
156 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_normal );
|
157 |
+
}
|
158 |
+
|
159 |
+
_this.audio_control.click(
|
160 |
+
function()
|
161 |
+
{
|
162 |
+
if( _this.audio_player_element.paused )
|
163 |
+
{
|
164 |
+
_this.audio_player_element.play();
|
165 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_hover );
|
166 |
+
}
|
167 |
+
else
|
168 |
+
{
|
169 |
+
_this.audio_player_element.pause();
|
170 |
+
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
171 |
+
}
|
172 |
+
} );
|
173 |
+
|
174 |
+
_this.audio_control.hover(
|
175 |
+
function()
|
176 |
+
{
|
177 |
+
_this.hovering = true;
|
178 |
+
if( _this.audio_player_element.paused )
|
179 |
+
{
|
180 |
+
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
181 |
+
}
|
182 |
+
else
|
183 |
+
{
|
184 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_hover );
|
185 |
+
}
|
186 |
+
},
|
187 |
+
function()
|
188 |
+
{
|
189 |
+
_this.hovering = false;
|
190 |
+
if( _this.audio_player_element.paused )
|
191 |
+
{
|
192 |
+
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
193 |
+
}
|
194 |
+
else
|
195 |
+
{
|
196 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_normal );
|
197 |
+
}
|
198 |
+
}
|
199 |
+
);
|
200 |
|
201 |
+
_this.audio_player.bind( 'ended' , function()
|
202 |
+
{
|
203 |
+
if( _this.hovering )
|
204 |
{
|
205 |
+
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
|
|
206 |
}
|
207 |
+
else
|
208 |
{
|
209 |
+
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
210 |
}
|
211 |
+
} );
|
212 |
+
|
213 |
+
_this.audio_player.bind( 'play' , function()
|
214 |
{
|
215 |
+
if( _this.hovering )
|
216 |
+
{
|
217 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_hover );
|
218 |
+
}
|
219 |
+
else
|
220 |
+
{
|
221 |
+
_this.audio_control.attr( 'src', _this.button_url_pause_normal );
|
222 |
+
}
|
223 |
+
} );
|
224 |
+
|
225 |
+
if( _this.audio_player_element.autoplay )
|
226 |
{
|
227 |
+
if( _this.user_agent_is_IOS )
|
228 |
+
{
|
229 |
+
if( _this.hovering )
|
230 |
+
{
|
231 |
+
_this.audio_control.attr( 'src', _this.button_url_play_hover );
|
232 |
+
}
|
233 |
+
else
|
234 |
+
{
|
235 |
+
_this.audio_control.attr( 'src', _this.button_url_play_normal );
|
236 |
+
}
|
237 |
+
}
|
238 |
}
|
239 |
+
}
|
240 |
|
241 |
+
war_SoundyFrontEnd.prototype.initPPButtonLayout = function()
|
242 |
+
{
|
243 |
+
var _this = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
|
245 |
+
if( ! _this.audio_control.length ) return;
|
246 |
+
|
247 |
+
if( _this.is_audio_control_width_and_height_set == null )
|
248 |
{
|
249 |
+
_this.button_width = _this.audio_control.prop( 'width' );
|
250 |
+
if( _this.button_width == 0 ) return;
|
251 |
+
|
252 |
+
_this.button_height = _this.audio_control.prop( 'height' );
|
253 |
+
_this.button_aspect_ratio = _this.button_height / _this.button_width;
|
254 |
+
|
255 |
+
_this.is_audio_control_width_and_height_set = true;
|
256 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
|
258 |
if( war_soundy_responsive_mode != 'none' )
|
259 |
{
|
285 |
for( var index in war_soundy_responsive_table_rows )
|
286 |
{
|
287 |
var row = war_soundy_responsive_table_rows[ index ];
|
288 |
+
if( row.button_width != -1 )
|
289 |
{
|
290 |
if( row.window_width_min != -1 && row.window_width_max != -1 )
|
291 |
{
|
292 |
if( row.window_width_min <= window_width && window_width <= row.window_width_max )
|
293 |
{
|
294 |
+
_this.audio_control.css( 'width', row.button_width );
|
295 |
+
_this.audio_control.css( 'height', Math.round( row.button_width * _this.button_aspect_ratio ) );
|
296 |
}
|
297 |
}
|
298 |
else if( row.window_width_min != -1 )
|
299 |
{
|
300 |
if( row.window_width_min <= window_width )
|
301 |
{
|
302 |
+
_this.audio_control.css( 'width', row.button_width );
|
303 |
+
_this.audio_control.css( 'height', Math.round( row.button_width * _this.button_aspect_ratio ) );
|
304 |
}
|
305 |
}
|
306 |
else if( row.window_width_max != -1 )
|
307 |
{
|
308 |
if( window_width <= row.window_width_max )
|
309 |
{
|
310 |
+
_this.audio_control.css( 'width', row.button_width );
|
311 |
+
_this.audio_control.css( 'height', Math.round( row.button_width * _this.button_aspect_ratio ) );
|
312 |
}
|
313 |
}
|
314 |
}
|
353 |
{
|
354 |
var scale_factor = ( window_width * 0.7 / war_soundy_responsive_reference_window_width ) + 0.3;
|
355 |
|
356 |
+
var responsive_button_width = Math.round( _this.button_width * scale_factor );
|
357 |
+
_this.audio_control.width( responsive_button_width );
|
358 |
+
_this.audio_control.height( Math.round( responsive_button_width * _this.button_aspect_ratio ) );
|
|
|
|
|
|
|
|
|
359 |
|
360 |
+
var jquery_corner_button = jQuery( '.war_soundy_audio_control.war_soundy_pp_corner' );
|
361 |
+
if( jquery_corner_button.length )
|
362 |
+
{
|
363 |
+
if( _this.is_button_offsets_set == null )
|
364 |
+
{
|
365 |
+
_this.button_offset_x = jquery_corner_button.css( prop_x );
|
366 |
+
_this.button_offset_y = jquery_corner_button.css( prop_y );
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
|
368 |
+
_this.is_button_offsets_set = true;
|
369 |
}
|
370 |
+
|
371 |
+
var offset_x = _this.button_offset_x;
|
372 |
+
offset_x = offset_x.replace( 'px', '' );
|
373 |
+
var offset_y = _this.button_offset_y;
|
374 |
+
offset_y = offset_y.replace( 'px', '' );
|
375 |
+
var responsive_offset_x = Math.round( offset_x * scale_factor );
|
376 |
+
var responsive_offset_y = Math.round( offset_y * scale_factor );
|
377 |
+
|
378 |
+
jquery_corner_button.css( prop_x, responsive_offset_x );
|
379 |
+
jquery_corner_button.css( prop_y, responsive_offset_y );
|
380 |
+
}
|
381 |
}
|
382 |
}
|
383 |
+
}
|
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.5
|
6 |
-
Stable tag: 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
|
@@ -168,6 +168,10 @@ This happens when the PHP parser version is too old. Soundy needs PHP 5.3 or hig
|
|
168 |
|
169 |
= Changelog =
|
170 |
|
|
|
|
|
|
|
|
|
171 |
= 3.3 - June 10th, 2016 =
|
172 |
* Load performance increased by removing link prefetch statement on audio file.
|
173 |
|
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.5
|
6 |
+
Stable tag: 3.4
|
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.4 - Juli 7th, 2016 =
|
172 |
+
* Play/Pause button images dimensions are now displayed in the Play/Pause Button tab of the plugin settings.
|
173 |
+
* Default values are now displayed as comment in the plugin metabox in posts and pages.
|
174 |
+
|
175 |
= 3.3 - June 10th, 2016 =
|
176 |
* Load performance increased by removing link prefetch statement on audio file.
|
177 |
|
soundy.php
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Soundy_Background_Music
|
4 |
-
* @version 3.
|
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.
|
11 |
Author: Bertrand du Couédic
|
12 |
Author URI: http://webartisan.ch/en/about
|
13 |
License: GPL2
|
14 |
|
15 |
-
Copyright
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -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.
|
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/';
|
@@ -808,15 +808,17 @@ class WarSoundy
|
|
808 |
$responsive_mode = get_option( 'war_soundy_responsive_table' );
|
809 |
$responsive_mode = $responsive_mode ? $responsive_mode : 'none';
|
810 |
?>
|
811 |
-
<span class="war_comment">You can define window width ranges with corresponding button width
|
812 |
Button X and Y Offset Fields are used only for Play/Pause button positioned in a corner.<br>
|
813 |
-
Button Width
|
|
|
|
|
814 |
<ul class="war_soundy_responsive_list">
|
815 |
<li class="war_soundy_responsive_list_row_header">
|
816 |
<div class="war_soundy_responsive_comment">Comment</div>
|
817 |
<div class="war_soundy_responsive_list_field">From<br>Window<br>Width</div>
|
818 |
<div class="war_soundy_responsive_list_field">To<br>Window<br>Width</div>
|
819 |
-
<div class="war_soundy_responsive_list_field">Button<br>Width
|
820 |
<div class="war_soundy_responsive_list_field">Button<br>X<br>Offset</div>
|
821 |
<div class="war_soundy_responsive_list_field">Button<br>Y<br>Offset</div>
|
822 |
</li>
|
@@ -1100,13 +1102,17 @@ class WarSoundy
|
|
1100 |
class="war_soundy_txt_input"
|
1101 |
value="<?php echo get_option( "war_soundy_url_$type" ); ?>" />
|
1102 |
<div style="margin-top: 5px;">
|
1103 |
-
<button id="
|
1104 |
type="button"
|
1105 |
value="Media Library"
|
1106 |
class="war_soundy_button_media_library_pp_button" />Media Library</button>
|
1107 |
<img id="war_soundy_url_<?php echo $type; ?>_img"
|
1108 |
src="<?php echo get_option( "war_soundy_url_$type" ); ?>"
|
1109 |
class="war_soundy" >
|
|
|
|
|
|
|
|
|
1110 |
</div>
|
1111 |
<?php
|
1112 |
}
|
@@ -1386,10 +1392,18 @@ class WarSoundy
|
|
1386 |
$autoplay = $this->get_meta_data( 'war_soundy_autoplay', true );
|
1387 |
$loop = $this->get_meta_data( 'war_soundy_loop', true );
|
1388 |
|
1389 |
-
|
1390 |
-
$
|
1391 |
-
|
1392 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1393 |
|
1394 |
if( $audio_volume == 'default' )
|
1395 |
{
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Soundy_Background_Music
|
4 |
+
* @version 3.4
|
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.4
|
11 |
Author: Bertrand du Couédic
|
12 |
Author URI: http://webartisan.ch/en/about
|
13 |
License: GPL2
|
14 |
|
15 |
+
Copyright 2016 Bertrand du Couédic (email: bducouedic@webartisan.ch)
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
31 |
class WarSoundy
|
32 |
{
|
33 |
public $soundy_type = 'free';
|
34 |
+
public $soundy_version = '3.4';
|
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/';
|
808 |
$responsive_mode = get_option( 'war_soundy_responsive_table' );
|
809 |
$responsive_mode = $responsive_mode ? $responsive_mode : 'none';
|
810 |
?>
|
811 |
+
<span class="war_comment">You can define window width ranges with corresponding button width and offsets.<br>
|
812 |
Button X and Y Offset Fields are used only for Play/Pause button positioned in a corner.<br>
|
813 |
+
Button Width Field is used for all Play/Pause buttons.<br>
|
814 |
+
Button height is set according to button aspect ratio.</span>
|
815 |
+
|
816 |
<ul class="war_soundy_responsive_list">
|
817 |
<li class="war_soundy_responsive_list_row_header">
|
818 |
<div class="war_soundy_responsive_comment">Comment</div>
|
819 |
<div class="war_soundy_responsive_list_field">From<br>Window<br>Width</div>
|
820 |
<div class="war_soundy_responsive_list_field">To<br>Window<br>Width</div>
|
821 |
+
<div class="war_soundy_responsive_list_field">Button<br>Width</div>
|
822 |
<div class="war_soundy_responsive_list_field">Button<br>X<br>Offset</div>
|
823 |
<div class="war_soundy_responsive_list_field">Button<br>Y<br>Offset</div>
|
824 |
</li>
|
1102 |
class="war_soundy_txt_input"
|
1103 |
value="<?php echo get_option( "war_soundy_url_$type" ); ?>" />
|
1104 |
<div style="margin-top: 5px;">
|
1105 |
+
<button id="war_soundy_img_<?php echo $type; ?>_library_button"
|
1106 |
type="button"
|
1107 |
value="Media Library"
|
1108 |
class="war_soundy_button_media_library_pp_button" />Media Library</button>
|
1109 |
<img id="war_soundy_url_<?php echo $type; ?>_img"
|
1110 |
src="<?php echo get_option( "war_soundy_url_$type" ); ?>"
|
1111 |
class="war_soundy" >
|
1112 |
+
<span style="padding-left: 0.75em; vertical-align: top;">(
|
1113 |
+
<span id="war_soundy_url_<?php echo $type; ?>_img_width" style="vertical-align: top;"></span> x
|
1114 |
+
<span id="war_soundy_url_<?php echo $type; ?>_img_height" style="vertical-align: top;"></span> px )
|
1115 |
+
</span>
|
1116 |
</div>
|
1117 |
<?php
|
1118 |
}
|
1392 |
$autoplay = $this->get_meta_data( 'war_soundy_autoplay', true );
|
1393 |
$loop = $this->get_meta_data( 'war_soundy_loop', true );
|
1394 |
|
1395 |
+
$default_enable_bg_sound = get_option( 'war_soundy_enable_bg_sound' );
|
1396 |
+
$default_enable_bg_sound = $default_enable_bg_sound == 'yes' ? 'Yes' : 'No';
|
1397 |
+
$default_enable_pp_corner = get_option( 'war_soundy_enable_pp_corner' );
|
1398 |
+
$default_enable_pp_corner = $default_enable_pp_corner == 'yes' ? 'Yes' : 'No';
|
1399 |
+
$default_autoplay = get_option( 'war_soundy_autoplay' );
|
1400 |
+
$default_autoplay = $default_autoplay == 'yes' ? 'Yes' : 'No';
|
1401 |
+
$default_loop = get_option( 'war_soundy_loop' );
|
1402 |
+
$default_loop = $default_loop == 'yes' ? 'Yes' : 'No';
|
1403 |
+
$default_audio_url = get_option( 'war_soundy_audio_file_url' );
|
1404 |
+
$default_audio_type = get_option( 'war_soundy_audio_type' );
|
1405 |
+
$default_audio_volume = get_option( 'war_soundy_audio_volume' );
|
1406 |
+
$default_audio_title = get_option( 'war_soundy_audio_title' );
|
1407 |
|
1408 |
if( $audio_volume == 'default' )
|
1409 |
{
|
templates/front-end.php
CHANGED
@@ -114,7 +114,7 @@ class WarSoundyFrontEnd
|
|
114 |
$responsive_table_rows[] = '{ ' .
|
115 |
'window_width_min: ' . $window_width_min . ',' .
|
116 |
'window_width_max: ' . $window_width_max . ',' .
|
117 |
-
'
|
118 |
'offset_x: ' . $offset_x . ',' .
|
119 |
'offset_y: ' . $offset_y .
|
120 |
'}';
|
114 |
$responsive_table_rows[] = '{ ' .
|
115 |
'window_width_min: ' . $window_width_min . ',' .
|
116 |
'window_width_max: ' . $window_width_max . ',' .
|
117 |
+
'button_width: ' . $button_size . ',' .
|
118 |
'offset_x: ' . $offset_x . ',' .
|
119 |
'offset_y: ' . $offset_y .
|
120 |
'}';
|
templates/meta-box.php
CHANGED
@@ -43,6 +43,8 @@ var war_soundy_admin = new war_SoundyAdmin(
|
|
43 |
name="war_soundy_enable_bg_sound"
|
44 |
value="no" <?php echo ( $enable_bg_sound == 'no' ? 'checked' : '' ); ?>/>
|
45 |
<label for="war_soundy_enable_bg_sound_no" style="margin-right: 1em;">No</label>
|
|
|
|
|
46 |
</td>
|
47 |
</tr>
|
48 |
<tr>
|
@@ -67,6 +69,8 @@ var war_soundy_admin = new war_SoundyAdmin(
|
|
67 |
name="war_soundy_enable_pp_corner"
|
68 |
value="no" <?php echo ( $enable_pp_corner == 'no' ? 'checked' : '' ); ?>/>
|
69 |
<label for="war_soundy_enable_pp_corner_no" style="margin-right: 1em;">No</label>
|
|
|
|
|
70 |
</td>
|
71 |
</tr>
|
72 |
</table>
|
@@ -161,6 +165,8 @@ var war_soundy_admin = new war_SoundyAdmin(
|
|
161 |
name="war_soundy_autoplay"
|
162 |
value="no" <?php echo ( $autoplay == 'no' ? 'checked' : '' ); ?>/>
|
163 |
<label for="war_soundy_autoplay_no" style="margin-right: 1em;">No</label>
|
|
|
|
|
164 |
</td>
|
165 |
</tr>
|
166 |
<tr>
|
@@ -185,6 +191,8 @@ var war_soundy_admin = new war_SoundyAdmin(
|
|
185 |
name="war_soundy_loop"
|
186 |
value="no" <?php echo ( $loop == 'no' ? 'checked' : '' ); ?>/>
|
187 |
<label for="war_soundy_loop_no" style="margin-right: 1em;">No</label>
|
|
|
|
|
188 |
</td>
|
189 |
</tr>
|
190 |
</table>
|
43 |
name="war_soundy_enable_bg_sound"
|
44 |
value="no" <?php echo ( $enable_bg_sound == 'no' ? 'checked' : '' ); ?>/>
|
45 |
<label for="war_soundy_enable_bg_sound_no" style="margin-right: 1em;">No</label>
|
46 |
+
|
47 |
+
<span class="war_comment">Default is <?php echo $default_enable_bg_sound; ?></span>
|
48 |
</td>
|
49 |
</tr>
|
50 |
<tr>
|
69 |
name="war_soundy_enable_pp_corner"
|
70 |
value="no" <?php echo ( $enable_pp_corner == 'no' ? 'checked' : '' ); ?>/>
|
71 |
<label for="war_soundy_enable_pp_corner_no" style="margin-right: 1em;">No</label>
|
72 |
+
|
73 |
+
<span class="war_comment">Default is <?php echo $default_enable_pp_corner; ?></span>
|
74 |
</td>
|
75 |
</tr>
|
76 |
</table>
|
165 |
name="war_soundy_autoplay"
|
166 |
value="no" <?php echo ( $autoplay == 'no' ? 'checked' : '' ); ?>/>
|
167 |
<label for="war_soundy_autoplay_no" style="margin-right: 1em;">No</label>
|
168 |
+
|
169 |
+
<span class="war_comment">Default is <?php echo $default_autoplay; ?></span>
|
170 |
</td>
|
171 |
</tr>
|
172 |
<tr>
|
191 |
name="war_soundy_loop"
|
192 |
value="no" <?php echo ( $loop == 'no' ? 'checked' : '' ); ?>/>
|
193 |
<label for="war_soundy_loop_no" style="margin-right: 1em;">No</label>
|
194 |
+
|
195 |
+
<span class="war_comment">Default is <?php echo $default_loop; ?></span>
|
196 |
</td>
|
197 |
</tr>
|
198 |
</table>
|