Soundy Background Music - Version 1.2

Version Description

  • Added Audio Volume Control for administrators in Settings > Soundy.
  • Added Audio Volume Control for authors in Edit Page and Edit Post Soundy meta box.
  • Made Admin User Interface more responsive and user friendlier.
Download this release

Release Info

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

Code changes from version 1.1 to 1.2

css/jquery-ui-1.10.4/images/animated-overlay.gif ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_flat_0_aaaaaa_40x100.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_flat_75_ffffff_40x100.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_glass_55_fbf9ee_1x400.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_glass_75_dadada_1x400.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_glass_75_e6e6e6_1x400.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_glass_95_fef1ec_1x400.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-bg_highlight-soft_75_cccccc_1x100.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-icons_222222_256x240.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-icons_2e83ff_256x240.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-icons_454545_256x240.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-icons_888888_256x240.png ADDED
Binary file
css/jquery-ui-1.10.4/images/ui-icons_cd0a0a_256x240.png ADDED
Binary file
css/{jquery-ui-v1.10.4.css → jquery-ui-1.10.4/jquery-ui.css} RENAMED
@@ -1,9 +1,7 @@
1
/*! jQuery UI - v1.10.4 - 2014-01-17
2
* http://jqueryui.com
3
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
4
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
5
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
6
-
7
/* Layout helpers
8
----------------------------------*/
9
.ui-helper-hidden {
@@ -86,6 +84,7 @@
86
width: 100%;
87
height: 100%;
88
}
89
.ui-accordion .ui-accordion-header {
90
display: block;
91
cursor: pointer;
@@ -114,12 +113,14 @@
114
border-top: 0;
115
overflow: auto;
116
}
117
.ui-autocomplete {
118
position: absolute;
119
top: 0;
120
left: 0;
121
cursor: default;
122
}
123
.ui-button {
124
display: inline-block;
125
position: relative;
@@ -224,6 +225,7 @@ button.ui-button::-moz-focus-inner {
224
border: 0;
225
padding: 0;
226
}
227
.ui-datepicker {
228
width: 17em;
229
padding: .2em .2em 0;
@@ -389,6 +391,7 @@ button.ui-button::-moz-focus-inner {
389
border-right-width: 0;
390
border-left-width: 1px;
391
}
392
.ui-dialog {
393
overflow: hidden;
394
position: absolute;
@@ -449,6 +452,7 @@ button.ui-button::-moz-focus-inner {
449
.ui-draggable .ui-dialog-titlebar {
450
cursor: move;
451
}
452
.ui-menu {
453
list-style: none;
454
padding: 2px;
@@ -518,6 +522,7 @@ button.ui-button::-moz-focus-inner {
518
position: static;
519
float: right;
520
}
521
.ui-progressbar {
522
height: 2em;
523
text-align: left;
@@ -536,6 +541,7 @@ button.ui-button::-moz-focus-inner {
536
.ui-progressbar-indeterminate .ui-progressbar-value {
537
background-image: none;
538
}
539
.ui-resizable {
540
position: relative;
541
}
@@ -604,11 +610,13 @@ button.ui-button::-moz-focus-inner {
604
right: -5px;
605
top: -5px;
606
}
607
.ui-selectable-helper {
608
position: absolute;
609
z-index: 100;
610
border: 1px dotted black;
611
}
612
.ui-slider {
613
position: relative;
614
text-align: left;
@@ -672,6 +680,7 @@ button.ui-button::-moz-focus-inner {
672
.ui-slider-vertical .ui-slider-range-max {
673
top: 0;
674
}
675
.ui-spinner {
676
position: relative;
677
display: inline-block;
@@ -727,6 +736,7 @@ button.ui-button::-moz-focus-inner {
727
/* need to fix icons sprite */
728
background-position: -65px -16px;
729
}
730
.ui-tabs {
731
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
732
padding: .2em;
@@ -768,6 +778,7 @@ button.ui-button::-moz-focus-inner {
768
padding: 1em 1.4em;
769
background: none;
770
}
771
.ui-tooltip {
772
padding: 8px;
773
position: absolute;
@@ -783,8 +794,8 @@ body .ui-tooltip {
783
/* Component containers
784
----------------------------------*/
785
.ui-widget {
786
- font-family: Verdana,Arial,sans-serif;
787
- font-size: 1.1em;
788
}
789
.ui-widget .ui-widget {
790
font-size: 1em;
@@ -793,25 +804,25 @@ body .ui-tooltip {
793
.ui-widget select,
794
.ui-widget textarea,
795
.ui-widget button {
796
- font-family: Verdana,Arial,sans-serif;
797
font-size: 1em;
798
}
799
.ui-widget-content {
800
- border: 1px solid #aaaaaa;
801
- background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;
802
- color: #222222;
803
}
804
.ui-widget-content a {
805
- color: #222222;
806
}
807
.ui-widget-header {
808
- border: 1px solid #aaaaaa;
809
- background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;
810
- color: #222222;
811
font-weight: bold;
812
}
813
.ui-widget-header a {
814
- color: #222222;
815
}
816
817
/* Interaction states
@@ -819,15 +830,15 @@ body .ui-tooltip {
819
.ui-state-default,
820
.ui-widget-content .ui-state-default,
821
.ui-widget-header .ui-state-default {
822
- border: 1px solid #d3d3d3;
823
- background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
824
- font-weight: normal;
825
- color: #555555;
826
}
827
.ui-state-default a,
828
.ui-state-default a:link,
829
.ui-state-default a:visited {
830
- color: #555555;
831
text-decoration: none;
832
}
833
.ui-state-hover,
@@ -836,10 +847,10 @@ body .ui-tooltip {
836
.ui-state-focus,
837
.ui-widget-content .ui-state-focus,
838
.ui-widget-header .ui-state-focus {
839
- border: 1px solid #999999;
840
- background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;
841
- font-weight: normal;
842
- color: #212121;
843
}
844
.ui-state-hover a,
845
.ui-state-hover a:hover,
@@ -849,21 +860,21 @@ body .ui-tooltip {
849
.ui-state-focus a:hover,
850
.ui-state-focus a:link,
851
.ui-state-focus a:visited {
852
- color: #212121;
853
text-decoration: none;
854
}
855
.ui-state-active,
856
.ui-widget-content .ui-state-active,
857
.ui-widget-header .ui-state-active {
858
- border: 1px solid #aaaaaa;
859
- background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;
860
- font-weight: normal;
861
- color: #212121;
862
}
863
.ui-state-active a,
864
.ui-state-active a:link,
865
.ui-state-active a:visited {
866
- color: #212121;
867
text-decoration: none;
868
}
869
@@ -872,31 +883,31 @@ body .ui-tooltip {
872
.ui-state-highlight,
873
.ui-widget-content .ui-state-highlight,
874
.ui-widget-header .ui-state-highlight {
875
- border: 1px solid #fcefa1;
876
- background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;
877
- color: #363636;
878
}
879
.ui-state-highlight a,
880
.ui-widget-content .ui-state-highlight a,
881
.ui-widget-header .ui-state-highlight a {
882
- color: #363636;
883
}
884
.ui-state-error,
885
.ui-widget-content .ui-state-error,
886
.ui-widget-header .ui-state-error {
887
- border: 1px solid #cd0a0a;
888
- background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;
889
- color: #cd0a0a;
890
}
891
.ui-state-error a,
892
.ui-widget-content .ui-state-error a,
893
.ui-widget-header .ui-state-error a {
894
- color: #cd0a0a;
895
}
896
.ui-state-error-text,
897
.ui-widget-content .ui-state-error-text,
898
.ui-widget-header .ui-state-error-text {
899
- color: #cd0a0a;
900
}
901
.ui-priority-primary,
902
.ui-widget-content .ui-priority-primary,
@@ -931,27 +942,27 @@ body .ui-tooltip {
931
}
932
.ui-icon,
933
.ui-widget-content .ui-icon {
934
- background-image: url(images/ui-icons_222222_256x240.png);
935
}
936
.ui-widget-header .ui-icon {
937
- background-image: url(images/ui-icons_222222_256x240.png);
938
}
939
.ui-state-default .ui-icon {
940
- background-image: url(images/ui-icons_888888_256x240.png);
941
}
942
.ui-state-hover .ui-icon,
943
.ui-state-focus .ui-icon {
944
- background-image: url(images/ui-icons_454545_256x240.png);
945
}
946
.ui-state-active .ui-icon {
947
- background-image: url(images/ui-icons_454545_256x240.png);
948
}
949
.ui-state-highlight .ui-icon {
950
- background-image: url(images/ui-icons_2e83ff_256x240.png);
951
}
952
.ui-state-error .ui-icon,
953
.ui-state-error-text .ui-icon {
954
- background-image: url(images/ui-icons_cd0a0a_256x240.png);
955
}
956
957
/* positioning */
@@ -1141,38 +1152,38 @@ body .ui-tooltip {
1141
.ui-corner-top,
1142
.ui-corner-left,
1143
.ui-corner-tl {
1144
- border-top-left-radius: 4px;
1145
}
1146
.ui-corner-all,
1147
.ui-corner-top,
1148
.ui-corner-right,
1149
.ui-corner-tr {
1150
- border-top-right-radius: 4px;
1151
}
1152
.ui-corner-all,
1153
.ui-corner-bottom,
1154
.ui-corner-left,
1155
.ui-corner-bl {
1156
- border-bottom-left-radius: 4px;
1157
}
1158
.ui-corner-all,
1159
.ui-corner-bottom,
1160
.ui-corner-right,
1161
.ui-corner-br {
1162
- border-bottom-right-radius: 4px;
1163
}
1164
1165
/* Overlays */
1166
.ui-widget-overlay {
1167
- background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1168
- opacity: .3;
1169
- filter: Alpha(Opacity=30);
1170
}
1171
.ui-widget-shadow {
1172
- margin: -8px 0 0 -8px;
1173
- padding: 8px;
1174
- background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
1175
- opacity: .3;
1176
- filter: Alpha(Opacity=30);
1177
- border-radius: 8px;
1178
- }
1
/*! jQuery UI - v1.10.4 - 2014-01-17
2
* http://jqueryui.com
3
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
4
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
5
/* Layout helpers
6
----------------------------------*/
7
.ui-helper-hidden {
84
width: 100%;
85
height: 100%;
86
}
87
+
88
.ui-accordion .ui-accordion-header {
89
display: block;
90
cursor: pointer;
113
border-top: 0;
114
overflow: auto;
115
}
116
+
117
.ui-autocomplete {
118
position: absolute;
119
top: 0;
120
left: 0;
121
cursor: default;
122
}
123
+
124
.ui-button {
125
display: inline-block;
126
position: relative;
225
border: 0;
226
padding: 0;
227
}
228
+
229
.ui-datepicker {
230
width: 17em;
231
padding: .2em .2em 0;
391
border-right-width: 0;
392
border-left-width: 1px;
393
}
394
+
395
.ui-dialog {
396
overflow: hidden;
397
position: absolute;
452
.ui-draggable .ui-dialog-titlebar {
453
cursor: move;
454
}
455
+
456
.ui-menu {
457
list-style: none;
458
padding: 2px;
522
position: static;
523
float: right;
524
}
525
+
526
.ui-progressbar {
527
height: 2em;
528
text-align: left;
541
.ui-progressbar-indeterminate .ui-progressbar-value {
542
background-image: none;
543
}
544
+
545
.ui-resizable {
546
position: relative;
547
}
610
right: -5px;
611
top: -5px;
612
}
613
+
614
.ui-selectable-helper {
615
position: absolute;
616
z-index: 100;
617
border: 1px dotted black;
618
}
619
+
620
.ui-slider {
621
position: relative;
622
text-align: left;
680
.ui-slider-vertical .ui-slider-range-max {
681
top: 0;
682
}
683
+
684
.ui-spinner {
685
position: relative;
686
display: inline-block;
736
/* need to fix icons sprite */
737
background-position: -65px -16px;
738
}
739
+
740
.ui-tabs {
741
position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
742
padding: .2em;
778
padding: 1em 1.4em;
779
background: none;
780
}
781
+
782
.ui-tooltip {
783
padding: 8px;
784
position: absolute;
794
/* Component containers
795
----------------------------------*/
796
.ui-widget {
797
+ font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
798
+ font-size: 1.1em/*{fsDefault}*/;
799
}
800
.ui-widget .ui-widget {
801
font-size: 1em;
804
.ui-widget select,
805
.ui-widget textarea,
806
.ui-widget button {
807
+ font-family: Verdana,Arial,sans-serif/*{ffDefault}*/;
808
font-size: 1em;
809
}
810
.ui-widget-content {
811
+ border: 1px solid #aaaaaa/*{borderColorContent}*/;
812
+ background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/;
813
+ color: #222222/*{fcContent}*/;
814
}
815
.ui-widget-content a {
816
+ color: #222222/*{fcContent}*/;
817
}
818
.ui-widget-header {
819
+ border: 1px solid #aaaaaa/*{borderColorHeader}*/;
820
+ background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/;
821
+ color: #222222/*{fcHeader}*/;
822
font-weight: bold;
823
}
824
.ui-widget-header a {
825
+ color: #222222/*{fcHeader}*/;
826
}
827
828
/* Interaction states
830
.ui-state-default,
831
.ui-widget-content .ui-state-default,
832
.ui-widget-header .ui-state-default {
833
+ border: 1px solid #d3d3d3/*{borderColorDefault}*/;
834
+ background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/;
835
+ font-weight: normal/*{fwDefault}*/;
836
+ color: #555555/*{fcDefault}*/;
837
}
838
.ui-state-default a,
839
.ui-state-default a:link,
840
.ui-state-default a:visited {
841
+ color: #555555/*{fcDefault}*/;
842
text-decoration: none;
843
}
844
.ui-state-hover,
847
.ui-state-focus,
848
.ui-widget-content .ui-state-focus,
849
.ui-widget-header .ui-state-focus {
850
+ border: 1px solid #999999/*{borderColorHover}*/;
851
+ background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/;
852
+ font-weight: normal/*{fwDefault}*/;
853
+ color: #212121/*{fcHover}*/;
854
}
855
.ui-state-hover a,
856
.ui-state-hover a:hover,
860
.ui-state-focus a:hover,
861
.ui-state-focus a:link,
862
.ui-state-focus a:visited {
863
+ color: #212121/*{fcHover}*/;
864
text-decoration: none;
865
}
866
.ui-state-active,
867
.ui-widget-content .ui-state-active,
868
.ui-widget-header .ui-state-active {
869
+ border: 1px solid #aaaaaa/*{borderColorActive}*/;
870
+ background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/;
871
+ font-weight: normal/*{fwDefault}*/;
872
+ color: #212121/*{fcActive}*/;
873
}
874
.ui-state-active a,
875
.ui-state-active a:link,
876
.ui-state-active a:visited {
877
+ color: #212121/*{fcActive}*/;
878
text-decoration: none;
879
}
880
883
.ui-state-highlight,
884
.ui-widget-content .ui-state-highlight,
885
.ui-widget-header .ui-state-highlight {
886
+ border: 1px solid #fcefa1/*{borderColorHighlight}*/;
887
+ background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/;
888
+ color: #363636/*{fcHighlight}*/;
889
}
890
.ui-state-highlight a,
891
.ui-widget-content .ui-state-highlight a,
892
.ui-widget-header .ui-state-highlight a {
893
+ color: #363636/*{fcHighlight}*/;
894
}
895
.ui-state-error,
896
.ui-widget-content .ui-state-error,
897
.ui-widget-header .ui-state-error {
898
+ border: 1px solid #cd0a0a/*{borderColorError}*/;
899
+ background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/;
900
+ color: #cd0a0a/*{fcError}*/;
901
}
902
.ui-state-error a,
903
.ui-widget-content .ui-state-error a,
904
.ui-widget-header .ui-state-error a {
905
+ color: #cd0a0a/*{fcError}*/;
906
}
907
.ui-state-error-text,
908
.ui-widget-content .ui-state-error-text,
909
.ui-widget-header .ui-state-error-text {
910
+ color: #cd0a0a/*{fcError}*/;
911
}
912
.ui-priority-primary,
913
.ui-widget-content .ui-priority-primary,
942
}
943
.ui-icon,
944
.ui-widget-content .ui-icon {
945
+ background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/;
946
}
947
.ui-widget-header .ui-icon {
948
+ background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/;
949
}
950
.ui-state-default .ui-icon {
951
+ background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/;
952
}
953
.ui-state-hover .ui-icon,
954
.ui-state-focus .ui-icon {
955
+ background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/;
956
}
957
.ui-state-active .ui-icon {
958
+ background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/;
959
}
960
.ui-state-highlight .ui-icon {
961
+ background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/;
962
}
963
.ui-state-error .ui-icon,
964
.ui-state-error-text .ui-icon {
965
+ background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/;
966
}
967
968
/* positioning */
1152
.ui-corner-top,
1153
.ui-corner-left,
1154
.ui-corner-tl {
1155
+ border-top-left-radius: 4px/*{cornerRadius}*/;
1156
}
1157
.ui-corner-all,
1158
.ui-corner-top,
1159
.ui-corner-right,
1160
.ui-corner-tr {
1161
+ border-top-right-radius: 4px/*{cornerRadius}*/;
1162
}
1163
.ui-corner-all,
1164
.ui-corner-bottom,
1165
.ui-corner-left,
1166
.ui-corner-bl {
1167
+ border-bottom-left-radius: 4px/*{cornerRadius}*/;
1168
}
1169
.ui-corner-all,
1170
.ui-corner-bottom,
1171
.ui-corner-right,
1172
.ui-corner-br {
1173
+ border-bottom-right-radius: 4px/*{cornerRadius}*/;
1174
}
1175
1176
/* Overlays */
1177
.ui-widget-overlay {
1178
+ background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/;
1179
+ opacity: .3/*{opacityOverlay}*/;
1180
+ filter: Alpha(Opacity=30)/*{opacityFilterOverlay}*/;
1181
}
1182
.ui-widget-shadow {
1183
+ margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/;
1184
+ padding: 8px/*{thicknessShadow}*/;
1185
+ background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/;
1186
+ opacity: .3/*{opacityShadow}*/;
1187
+ filter: Alpha(Opacity=30)/*{opacityFilterShadow}*/;
1188
+ border-radius: 8px/*{cornerRadiusShadow}*/;
1189
+ }
css/style-back-end.css CHANGED
@@ -1,3 +1,10 @@
1
table.war_soundy th {
2
width: 25% !important;
3
vertical-align: top !important;
@@ -7,7 +14,7 @@ table.war_soundy th {
7
input[type=button].war_soundy {
8
height: 30px !important;
9
line-height: 28px !important;
10
- padding: 0 12px 2px !important;
11
color: #ffffff !important;
12
background-color: #2eaecc !important;
13
border-radius: 3px !important;
@@ -15,11 +22,14 @@ input[type=button].war_soundy {
15
cursor: pointer !important;
16
}
17
18
- audio.war_soundy,
19
- img.war_soundy {
20
margin: 8px 0 0 2px !important;
21
}
22
23
table.war_soundy_no_border,
24
table.war_soundy_no_border th,
25
table.war_soundy_no_border td {
@@ -28,75 +38,26 @@ table.war_soundy_no_border td {
28
padding: 0 !important;
29
}
30
31
32
- @media only screen and (max-width: 480px) {
33
- .war_soundy_url_input {
34
- width: 260px;
35
- }
36
37
- .war_soundy_url_input_metabox {
38
- width: 180px;
39
- }
40
-
41
- .war_soundy_audio_title_input {
42
- width: 300px;
43
- }
44
45
- .war_soundy_audio_title_input_metabox {
46
- width: 220px;
47
- }
48
}
49
50
@media only screen and (min-width: 481px) and (max-width: 768px) {
51
- .war_soundy_url_input {
52
- width: 340px;
53
- }
54
-
55
- .war_soundy_url_input_metabox {
56
- width: 200px;
57
- }
58
-
59
- .war_soundy_audio_title_input {
60
- width: 360px;
61
- }
62
63
- .war_soundy_audio_title_input_metabox {
64
- width: 300px;
65
- }
66
}
67
68
@media only screen and (min-width: 769px) and (max-width: 1024px) {
69
- .war_soundy_url_input {
70
- width: 500px;
71
- }
72
73
- .war_soundy_url_input_metabox {
74
- width: 280px;
75
- }
76
-
77
- .war_soundy_audio_title_input {
78
- width: 600px;
79
- }
80
-
81
- .war_soundy_audio_title_input_metabox {
82
- width: 400px;
83
- }
84
}
85
86
@media only screen and (min-width: 1025px) {
87
- .war_soundy_url_input {
88
- width: 800px;
89
- }
90
-
91
- .war_soundy_url_input_metabox {
92
- width: 600px;
93
- }
94
-
95
- .war_soundy_audio_title_input {
96
- width: 760px;
97
- }
98
99
- .war_soundy_audio_title_input_metabox {
100
- width: 700px;
101
- }
102
}
1
+
2
+ a:active,
3
+ a:focus {
4
+ outline: 0 !important;
5
+ text-decoration: none !important;
6
+ }
7
+
8
table.war_soundy th {
9
width: 25% !important;
10
vertical-align: top !important;
14
input[type=button].war_soundy {
15
height: 30px !important;
16
line-height: 28px !important;
17
+ padding: 0 12px 20px !important;
18
color: #ffffff !important;
19
background-color: #2eaecc !important;
20
border-radius: 3px !important;
22
cursor: pointer !important;
23
}
24
25
+ audio.war_soundy {
26
margin: 8px 0 0 2px !important;
27
}
28
29
+ img.war_soundy {
30
+ margin: 0 0 0 0 !important;
31
+ }
32
+
33
table.war_soundy_no_border,
34
table.war_soundy_no_border th,
35
table.war_soundy_no_border td {
38
padding: 0 !important;
39
}
40
41
+ .war_soundy_txt_input {
42
+ width: 95%;
43
+ }
44
45
+ .war_soundy_audio_volume {
46
+ width: 40px;
47
+ }
48
49
+ @media only screen and (max-width: 480px) {
50
51
}
52
53
@media only screen and (min-width: 481px) and (max-width: 768px) {
54
55
}
56
57
@media only screen and (min-width: 769px) and (max-width: 1024px) {
58
59
}
60
61
@media only screen and (min-width: 1025px) {
62
63
}
js/back-end.js CHANGED
@@ -1,3 +1,162 @@
1
function war_setDefaultButtonURL( button_type, url )
2
{
3
jQuery( '#war_soundy_url_' + button_type ).val( url );
@@ -25,7 +184,30 @@ function war_setDefaultButtonURL( button_type, url )
25
if( event.preventDefault ) event.preventDefault(); else event.returnValue = false;
26
}
27
28
- function war_setDefaultAudioURL( url, title )
29
{
30
var audio_type = war_getAudioTypeFromURL( url );
31
@@ -36,14 +218,16 @@ function war_setDefaultAudioURL( url, title )
36
jQuery( '#war_soundy_audio_player_source' ).attr( 'src', url );
37
jQuery( '#war_soundy_audio_player_source' ).attr( 'type', 'audio/' + audio_type );
38
jQuery( '#war_soundy_audio_player' )[ 0 ].load();
39
40
if( player_was_playing ) jQuery( '#war_soundy_audio_player' )[ 0 ].play();
41
42
alert( 'Audio File URL reset to default.\n' +
43
'Audio Title reset to default.\n' +
44
'You still have to save the changes.' );
45
-
46
- if( event.preventDefault ) event.preventDefault(); else event.returnValue = false;
47
}
48
49
function war_lengthUnitChanged( element )
@@ -119,7 +303,7 @@ function war_audioUrlChanged( element )
119
function war_bindMediaUploader( field_name, button_name, field_type )
120
{
121
jQuery( document ).ready( function()
122
- {
123
jQuery( '#' + button_name ).click( function()
124
{
125
jQuery( '#TB_window' ).html( '' ); // to avoid multiple title bars
@@ -157,10 +341,23 @@ function war_bindMediaUploader( field_name, button_name, field_type )
157
jQuery( '#war_soundy_audio_player_source' ).attr( 'type', 'audio/' + audio_type );
158
jQuery( '#war_soundy_audio_player' )[ 0 ].load();
159
if( player_was_playing ) jQuery( '#war_soundy_audio_player' )[ 0 ].play();
160
}
161
162
jQuery( '#' + field_name ).val( url );
163
tb_remove();
164
}
165
166
return false;
1
+ function war_initTabs()
2
+ {
3
+ jQuery( document ).ready( function( $ )
4
+ {
5
+ if( ! sessionStorage.getItem( 'war_soundy_tab_index' ) )
6
+ sessionStorage.setItem( 'war_soundy_tab_index', 0 );
7
+
8
+ $( '#war_soundy_tabs' ).tabs(
9
+ {
10
+ active: sessionStorage.war_soundy_tab_index,
11
+ activate : function( event, ui )
12
+ {
13
+ // Get future value
14
+ var new_index = ui.newTab.index();
15
+ sessionStorage.setItem( 'war_soundy_tab_index', new_index );
16
+ }
17
+ } );
18
+ } );
19
+ }
20
+
21
+ function war_initSoundTrack( default_url )
22
+ {
23
+ jQuery( document ).ready( function( $ )
24
+ {
25
+ if( $( 'input[name=war_soundy_soundtrack][value=custom]' ).prop( 'checked' ) )
26
+ {
27
+ $( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '#c0e7f0' );
28
+ }
29
+
30
+ $( '#war_soundy_audio_file_url' ).click( function()
31
+ {
32
+ $( 'input[name=war_soundy_soundtrack][value=custom]' ).prop( 'checked', true );
33
+ $( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '#c0e7f0' );
34
+ } );
35
+
36
+ $( '#war_soundy_audio_file_url' ).change( function()
37
+ {
38
+ $( 'input[name=war_soundy_soundtrack][value=custom]' ).prop( 'checked', true );
39
+ $( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '#c0e7f0' );
40
+ } );
41
+
42
+ $( '#war_soundy_soundtrack_default' ).change( function() // called when Default radio button is clicked
43
+ {
44
+ var audio_type = war_getAudioTypeFromURL( default_url );
45
+
46
+ var player_was_playing = ! jQuery( '#war_soundy_audio_player' )[ 0 ].paused;
47
+
48
+ jQuery( '#war_soundy_audio_file_url' ).val( default_url );
49
+ jQuery( '#war_soundy_audio_player_source' ).attr( 'src', default_url );
50
+ jQuery( '#war_soundy_audio_player_source' ).attr( 'type', 'audio/' + audio_type );
51
+ jQuery( '#war_soundy_audio_player' )[ 0 ].load();
52
+
53
+ if( player_was_playing ) jQuery( '#war_soundy_audio_player' )[ 0 ].play();
54
+ $( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '' );
55
+ } );
56
+
57
+ $( '#war_soundy_soundtrack_custom' ).change( function() // called when Custom radio button is clicked
58
+ {
59
+ $( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '#c0e7f0' );
60
+ } );
61
+ } );
62
+ }
63
+
64
+ function war_initAudioVolume( is_meta_box, default_volume )
65
+ {
66
+ jQuery( document ).ready( function( $ )
67
+ {
68
+ var audio_player = $( '#war_soundy_audio_player' ).get( 0 );
69
+ var audio_volume_jquery = $( '#war_soundy_audio_volume' );
70
+ var audio_volume = audio_volume_jquery.val();
71
+ audio_player.volume = audio_volume / 100;
72
+ var audio_volume_slider_jquery = $( '#war_soundy_audio_volume_slider' );
73
+
74
+ audio_volume_slider_jquery.slider(
75
+ {
76
+ min: 0,
77
+ max: 100,
78
+ value: audio_volume,
79
+ range: 'min',
80
+ animate: true,
81
+ slide: function( event, ui )
82
+ {
83
+ audio_player.volume = ui.value / 100;
84
+ audio_volume_jquery.val( ui.value );
85
+ }
86
+ } );
87
+
88
+ audio_volume_jquery.change( function()
89
+ {
90
+ audio_volume_slider_jquery.slider( 'value', this.value );
91
+ audio_player.volume = this.value / 100;
92
+ } );
93
+
94
+ if( is_meta_box )
95
+ {
96
+ if( $( 'input[name=war_soundy_audio_volume_def][value=custom]' ).prop( 'checked' ) )
97
+ {
98
+ audio_volume_jquery.css( 'backgroundColor', '#c0e7f0' );
99
+ }
100
+
101
+ audio_volume_jquery.click( function()
102
+ {
103
+ $('input[name=war_soundy_audio_volume_def][value=custom]').prop( 'checked', true );
104
+ audio_volume_jquery.css( 'backgroundColor', '#c0e7f0' );
105
+ } );
106
+
107
+ var audio_volume_jquery_default = $( '#war_soundy_audio_volume_default' );
108
+ audio_volume_jquery_default.change( function() // called when Default radio button is clicked
109
+ {
110
+ audio_volume_jquery.val( default_volume );
111
+ audio_volume_slider_jquery.slider( 'value', default_volume );
112
+ audio_player.volume = default_volume / 100;
113
+ audio_volume_jquery.css( 'backgroundColor', '' );
114
+ } );
115
+
116
+ audio_volume_slider_jquery.on( "slidestart", function( event, ui )
117
+ {
118
+ $('input[name=war_soundy_audio_volume_def][value=custom]').prop( 'checked', true );
119
+ audio_volume_jquery.css( 'backgroundColor', '#c0e7f0' );
120
+ } );
121
+
122
+ var audio_volume_jquery_custom = $( '#war_soundy_audio_volume_custom' );
123
+ audio_volume_jquery_custom.change( function() // called when Custom radio button is clicked
124
+ {
125
+ audio_volume_jquery.css( 'backgroundColor', '#c0e7f0' );
126
+ audio_volume_slider_jquery.css( 'backgroundColor', '#c0e7f0' );
127
+ } );
128
+ }
129
+ } );
130
+ }
131
+
132
+ function war_initAudioTitle( default_title )
133
+ {
134
+ jQuery( document ).ready( function( $ )
135
+ {
136
+ if( $( 'input[name=war_soundy_audio_title_def][value=custom]' ).prop( 'checked' ) )
137
+ {
138
+ $( '#war_soundy_audio_title' ).css( 'backgroundColor', '#c0e7f0' );
139
+ }
140
+
141
+ $( '#war_soundy_audio_title' ).click( function()
142
+ {
143
+ $( 'input[name=war_soundy_audio_title_def][value=custom]' ).prop( 'checked', true );
144
+ $( '#war_soundy_audio_title' ).css( 'backgroundColor', '#c0e7f0' );
145
+ } );
146
+
147
+ $( '#war_soundy_audio_title_default' ).change( function() // called when Default radio button is clicked
148
+ {
149
+ jQuery( '#war_soundy_audio_title' ).val( default_title );
150
+ $( '#war_soundy_audio_title' ).css( 'backgroundColor', '' );
151
+ } );
152
+
153
+ $( '#war_soundy_audio_title_custom' ).change( function() // called when Custom radio button is clicked
154
+ {
155
+ $( '#war_soundy_audio_title' ).css( 'backgroundColor', '#c0e7f0' );
156
+ } );
157
+ } );
158
+ }
159
+
160
function war_setDefaultButtonURL( button_type, url )
161
{
162
jQuery( '#war_soundy_url_' + button_type ).val( url );
184
if( event.preventDefault ) event.preventDefault(); else event.returnValue = false;
185
}
186
187
+ function war_setDefaultButtons( dimensions, default_dimensions, url_play_button,
188
+ url_play_hover,
189
+ url_pause_button,
190
+ url_pause_hover )
191
+ {
192
+ url_play_button = url_play_button.replace( default_dimensions, dimensions );
193
+ url_play_hover = url_play_hover.replace( default_dimensions, dimensions );
194
+ url_pause_button = url_pause_button.replace( default_dimensions, dimensions );
195
+ url_pause_hover = url_pause_hover.replace( default_dimensions, dimensions );
196
+
197
+ jQuery( '#war_soundy_url_play_button' ).val( url_play_button );
198
+ jQuery( '#war_soundy_url_play_button_img' ).attr( 'src', url_play_button );
199
+
200
+ jQuery( '#war_soundy_url_play_hover' ).val( url_play_hover );
201
+ jQuery( '#war_soundy_url_play_hover_img' ).attr( 'src', url_play_hover );
202
+
203
+ jQuery( '#war_soundy_url_pause_button' ).val( url_pause_button );
204
+ jQuery( '#war_soundy_url_pause_button_img' ).attr( 'src', url_pause_button );
205
+
206
+ jQuery( '#war_soundy_url_pause_hover' ).val( url_pause_hover );
207
+ jQuery( '#war_soundy_url_pause_hover_img' ).attr( 'src', url_pause_hover );
208
+ }
209
+
210
+ function war_setDefaultAudio( url, title, volume )
211
{
212
var audio_type = war_getAudioTypeFromURL( url );
213
218
jQuery( '#war_soundy_audio_player_source' ).attr( 'src', url );
219
jQuery( '#war_soundy_audio_player_source' ).attr( 'type', 'audio/' + audio_type );
220
jQuery( '#war_soundy_audio_player' )[ 0 ].load();
221
+ jQuery( '#war_soundy_audio_player' )[ 0 ].volume = volume / 100;
222
+ jQuery( '#war_soundy_audio_volume' ).val( volume );
223
+ jQuery( '#war_soundy_audio_volume_slider' ).slider( 'value', volume );
224
225
if( player_was_playing ) jQuery( '#war_soundy_audio_player' )[ 0 ].play();
226
227
alert( 'Audio File URL reset to default.\n' +
228
'Audio Title reset to default.\n' +
229
+ 'Audio Volume reset to default.\n' +
230
'You still have to save the changes.' );
231
}
232
233
function war_lengthUnitChanged( element )
303
function war_bindMediaUploader( field_name, button_name, field_type )
304
{
305
jQuery( document ).ready( function()
306
+ {
307
jQuery( '#' + button_name ).click( function()
308
{
309
jQuery( '#TB_window' ).html( '' ); // to avoid multiple title bars
341
jQuery( '#war_soundy_audio_player_source' ).attr( 'type', 'audio/' + audio_type );
342
jQuery( '#war_soundy_audio_player' )[ 0 ].load();
343
if( player_was_playing ) jQuery( '#war_soundy_audio_player' )[ 0 ].play();
344
+
345
+ var title = jQuery( html ).text().trim();
346
+ if( title != '' )
347
+ {
348
+ jQuery( '#war_soundy_audio_title' ).val( title );
349
+ }
350
}
351
352
jQuery( '#' + field_name ).val( url );
353
tb_remove();
354
+ if( jQuery( '#war_soundy_soundtrack_default' ).length ) // war_soundy_soundtrack_default exists if meta box
355
+ {
356
+ jQuery( 'input[name=war_soundy_soundtrack][value=custom]' ).prop( 'checked', true );
357
+ jQuery( '#war_soundy_audio_file_url' ).css( 'backgroundColor', '#c0e7f0' );
358
+ jQuery( 'input[name=war_soundy_audio_title_def][value=custom]' ).prop( 'checked', true );
359
+ jQuery( '#war_soundy_audio_title' ).css( 'backgroundColor', '#c0e7f0' );
360
+ }
361
}
362
363
return false;
js/jquery-ui-1.10.4/jquery-1.10.2.js ADDED
@@ -0,0 +1,9789 @@