Version Description
- Fixed the background colour fill on playlist items when displaying stat counts on the frontend.
Download this release
Release Info
Developer | simon.ward |
Plugin | MP3-jPlayer |
Version | 2.7.2 |
Comparing to | |
See all releases |
Code changes from version 2.7.1 to 2.7.2
- css/dark.css +7 -3
- css/light.css +7 -3
- css/text.css +5 -2
- js/mp3-jplayer-2.7.js +7 -3
- main.php +10 -7
- mp3jplayer.php +1 -1
- readme.txt +6 -3
- template-functions.php +2 -2
css/dark.css
CHANGED
@@ -27,7 +27,7 @@ div.innerright { display:none; }
|
|
27 |
div.innertab { left:0px; top:0px; right:0px; bottom:42px; }
|
28 |
|
29 |
/* PLAYLIST */
|
30 |
-
.ul-mjp { margin:0px !important; padding:3px
|
31 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
32 |
.li-mjp:before { content:none !important; }
|
33 |
.a-mjp {
|
@@ -45,7 +45,11 @@ div.innertab { left:0px; top:0px; right:0px; bottom:42px; }
|
|
45 |
padding-top:5px;
|
46 |
font-size:0.7em;
|
47 |
}
|
48 |
-
|
|
|
|
|
|
|
|
|
49 |
/* SCREEN */
|
50 |
div.player-track-title { position:absolute; z-index:125; }
|
51 |
div.player-track-title div { position:relative; }
|
@@ -452,7 +456,7 @@ ul.darken2-mjp {
|
|
452 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
453 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
454 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
455 |
-
li.mjp-li-last { background:none !important; }
|
456 |
|
457 |
|
458 |
/* ===== posbar grads ===== */
|
27 |
div.innertab { left:0px; top:0px; right:0px; bottom:42px; }
|
28 |
|
29 |
/* PLAYLIST */
|
30 |
+
.ul-mjp { margin:0px !important; padding:3px 3px 4px 3px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; }
|
31 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
32 |
.li-mjp:before { content:none !important; }
|
33 |
.a-mjp {
|
45 |
padding-top:5px;
|
46 |
font-size:0.7em;
|
47 |
}
|
48 |
+
|
49 |
+
.mjp_ext_li {
|
50 |
+
padding: 0 10px;
|
51 |
+
}
|
52 |
+
|
53 |
/* SCREEN */
|
54 |
div.player-track-title { position:absolute; z-index:125; }
|
55 |
div.player-track-title div { position:relative; }
|
456 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
457 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
458 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
459 |
+
li.mjp-li-last { background-image:none !important; }
|
460 |
|
461 |
|
462 |
/* ===== posbar grads ===== */
|
css/light.css
CHANGED
@@ -26,7 +26,7 @@ div.innerright { display:none; }
|
|
26 |
div.innertab { left:0px; top:0px; right:0px; bottom:41px; border-bottom:1px solid #f8f8f8; }
|
27 |
|
28 |
/* PLAYLIST */
|
29 |
-
.ul-mjp { margin:0px !important; padding:3px
|
30 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
31 |
.li-mjp:before { content:none !important; }
|
32 |
.a-mjp {
|
@@ -43,7 +43,11 @@ div.innertab { left:0px; top:0px; right:0px; bottom:41px; border-bottom:1px soli
|
|
43 |
padding-top:5px;
|
44 |
font-size:0.7em;
|
45 |
}
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
/* SCREEN */
|
48 |
div.player-track-title { position:absolute; z-index:125; }
|
49 |
div.player-track-title div { position:relative; }
|
@@ -438,7 +442,7 @@ ul.darken2-mjp {
|
|
438 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
439 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
440 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
441 |
-
li.mjp-li-last { background:none !important; }
|
442 |
|
443 |
|
444 |
/* ===== posbar grads ===== */
|
26 |
div.innertab { left:0px; top:0px; right:0px; bottom:41px; border-bottom:1px solid #f8f8f8; }
|
27 |
|
28 |
/* PLAYLIST */
|
29 |
+
.ul-mjp { margin:0px !important; padding:3px 3px 4px 3px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; border-top:1px solid #f0f0f0; }
|
30 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
31 |
.li-mjp:before { content:none !important; }
|
32 |
.a-mjp {
|
43 |
padding-top:5px;
|
44 |
font-size:0.7em;
|
45 |
}
|
46 |
+
|
47 |
+
.mjp_ext_li {
|
48 |
+
padding: 0 10px;
|
49 |
+
}
|
50 |
+
|
51 |
/* SCREEN */
|
52 |
div.player-track-title { position:absolute; z-index:125; }
|
53 |
div.player-track-title div { position:relative; }
|
442 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
443 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
444 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
445 |
+
li.mjp-li-last { background-image:none !important; }
|
446 |
|
447 |
|
448 |
/* ===== posbar grads ===== */
|
css/text.css
CHANGED
@@ -26,7 +26,7 @@ div.innerright { display:none; }
|
|
26 |
div.innertab { left:0px; top:0px; right:0px; bottom:50px; }
|
27 |
|
28 |
/* PLAYLIST */
|
29 |
-
.ul-mjp { margin:0px !important; padding:3px
|
30 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
31 |
.li-mjp:before { content:none !important; }
|
32 |
.a-mjp {
|
@@ -45,6 +45,9 @@ div.innertab { left:0px; top:0px; right:0px; bottom:50px; }
|
|
45 |
font-size:0.7em;
|
46 |
}
|
47 |
|
|
|
|
|
|
|
48 |
|
49 |
/* SCREEN */
|
50 |
div.player-track-title { position:absolute; z-index:120; }
|
@@ -419,7 +422,7 @@ ul.darken2-mjp {
|
|
419 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
420 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
421 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
422 |
-
li.mjp-li-last { background:none !important; }
|
423 |
|
424 |
|
425 |
/* ===== posbar grads ===== */
|
26 |
div.innertab { left:0px; top:0px; right:0px; bottom:50px; }
|
27 |
|
28 |
/* PLAYLIST */
|
29 |
+
.ul-mjp { margin:0px !important; padding:3px 3px 4px 3px !important; list-style-type:none !important; list-style:none !important; list-style-image:none !important; border:0px; }
|
30 |
.li-mjp { margin:0px !important; padding:0px 0px 1px 0px !important; letter-spacing:0px !important; word-spacing:0px !important; margin:0px 1px 0px 1px !important; list-style-type:none !important; clear: both; }
|
31 |
.li-mjp:before { content:none !important; }
|
32 |
.a-mjp {
|
45 |
font-size:0.7em;
|
46 |
}
|
47 |
|
48 |
+
.mjp_ext_li {
|
49 |
+
padding: 0 10px;
|
50 |
+
}
|
51 |
|
52 |
/* SCREEN */
|
53 |
div.player-track-title { position:absolute; z-index:120; }
|
422 |
ul.light-mjp li { background:url('images/t60w.png') repeat-x left bottom; }
|
423 |
ul.med-mjp li { background:url('images/t50l.png') repeat-x left bottom; }
|
424 |
ul.dark-mjp li { background:url('images/t50g.png') repeat-x left bottom; }
|
425 |
+
li.mjp-li-last { background-image:none !important; }
|
426 |
|
427 |
|
428 |
/* ===== posbar grads ===== */
|
js/mp3-jplayer-2.7.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*
|
2 |
MP3-jPlayer
|
3 |
-
Version 2.
|
4 |
http://mp3-jplayer.com
|
5 |
*/
|
6 |
var MP3_JPLAYER = {
|
@@ -87,6 +87,7 @@ var MP3_JPLAYER = {
|
|
87 |
dload: '#download_mp3j_',
|
88 |
plwrap: '#L_mp3j_',
|
89 |
ul: '#UL_mp3j_',
|
|
|
90 |
a: 'mp3j_A_', //No hash!
|
91 |
indiM: '#statusMI_',
|
92 |
toglist: '#playlist-toggle_',
|
@@ -525,10 +526,10 @@ var MP3_JPLAYER = {
|
|
525 |
|
526 |
var liClass = '';
|
527 |
var l = p.list.length;
|
528 |
-
jQuery(this.eID.ul + j).empty();
|
529 |
for (i = 0; i < l; i += 1) {
|
530 |
liClass = ( i === l-1 ) ? ' mjp-li-last' : '';
|
531 |
-
li = '<li class="li-mjp' + liClass + '"><a class="a-mjp" href="#" id="' + this.eID.a + j + '_' + i + '">';
|
532 |
li += p.list[i].name;
|
533 |
if ( this.hasListMeta && p.list[i].artist !== '' ) {
|
534 |
li += '<br><span>' + p.list[i].artist + '</span>';
|
@@ -542,6 +543,7 @@ var MP3_JPLAYER = {
|
|
542 |
this.add_ul_click(j, i);
|
543 |
}
|
544 |
jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
|
|
|
545 |
jQuery(this.eID.toglist + j).click(function () {
|
546 |
that.togglelist(j);
|
547 |
});
|
@@ -845,7 +847,9 @@ var MP3_JPLAYER = {
|
|
845 |
|
846 |
listclass: function ( j, rem, add ) {
|
847 |
jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
|
|
|
848 |
jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
|
|
|
849 |
},
|
850 |
|
851 |
titles: function ( j, track ) {
|
1 |
/*
|
2 |
MP3-jPlayer
|
3 |
+
Version 2.7.2
|
4 |
http://mp3-jplayer.com
|
5 |
*/
|
6 |
var MP3_JPLAYER = {
|
87 |
dload: '#download_mp3j_',
|
88 |
plwrap: '#L_mp3j_',
|
89 |
ul: '#UL_mp3j_',
|
90 |
+
li: 'li_mp3j_', //No hash!
|
91 |
a: 'mp3j_A_', //No hash!
|
92 |
indiM: '#statusMI_',
|
93 |
toglist: '#playlist-toggle_',
|
526 |
|
527 |
var liClass = '';
|
528 |
var l = p.list.length;
|
529 |
+
jQuery(this.eID.ul + j).empty();
|
530 |
for (i = 0; i < l; i += 1) {
|
531 |
liClass = ( i === l-1 ) ? ' mjp-li-last' : '';
|
532 |
+
li = '<li class="li-mjp' + liClass + '" id="' + this.eID.li + j + '_' + i + '"><a class="a-mjp" href="#" id="' + this.eID.a + j + '_' + i + '">';
|
533 |
li += p.list[i].name;
|
534 |
if ( this.hasListMeta && p.list[i].artist !== '' ) {
|
535 |
li += '<br><span>' + p.list[i].artist + '</span>';
|
543 |
this.add_ul_click(j, i);
|
544 |
}
|
545 |
jQuery('#' + this.eID.a + j + '_' + p.tr).addClass('mp3j_A_current');
|
546 |
+
jQuery('#' + this.eID.li + j + '_' + p.tr).addClass('mp3j_LI_current');
|
547 |
jQuery(this.eID.toglist + j).click(function () {
|
548 |
that.togglelist(j);
|
549 |
});
|
847 |
|
848 |
listclass: function ( j, rem, add ) {
|
849 |
jQuery('#'+ this.eID.a + j +'_'+ rem).removeClass('mp3j_A_current');
|
850 |
+
jQuery('#'+ this.eID.li + j +'_'+ rem).removeClass('mp3j_LI_current');
|
851 |
jQuery('#'+ this.eID.a + j +'_'+ add).addClass('mp3j_A_current');
|
852 |
+
jQuery('#'+ this.eID.li + j +'_'+ add).addClass('mp3j_LI_current');
|
853 |
},
|
854 |
|
855 |
titles: function ( j, track ) {
|
main.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
class MP3j_Main {
|
3 |
|
4 |
// --------- Update Me ------------
|
5 |
-
var $version_of_plugin = "2.7.
|
6 |
// --------------------------------
|
7 |
|
8 |
var $S_no = 0;
|
@@ -653,7 +653,7 @@ class MP3j_Main {
|
|
653 |
$js .= $tr['title']. "\", formats: [\"" .$tr['formats'][0] . "\"" . ( ! empty($tr['formats'][1]) ? ", \"".$tr['formats'][1]."\"" : "" ) . "], mp3: \"" .$tr['src_js']. "\", counterpart:\"" . $tr['counterpart_js'] . "\", artist: \"" .$tr['caption']. "\", image: \"" .$tr['image']. "\", imgurl: \"" .$tr['link']. "\"";
|
654 |
|
655 |
//Run extension Callbacks - Additions to track object JS
|
656 |
-
$js =
|
657 |
|
658 |
//Close track object
|
659 |
$js .= " }";
|
@@ -1095,11 +1095,14 @@ class MP3j_Main {
|
|
1095 |
//$CSS .= ".mp3-tint { background-color:" . ( $colours['indicator'] == "tint" ? "#aaa" : $colours['posbar_colour'] ) . "; } \n";
|
1096 |
$CSS .= ".mp3-tint, .Smp3-tint { background-color:" . ( $colours['indicator'] == "tint" ? "#aaa" : $colours['posbar_colour'] ) . "; } \n"; //keep single stuff for the mo
|
1097 |
|
1098 |
-
$CSS .= ".player-track-title
|
1099 |
-
$CSS .= ".a-mjp
|
1100 |
-
$CSS .= ".a-mjp:hover
|
1101 |
-
$CSS .= ".a-mjp.mp3j_A_current
|
1102 |
-
$CSS .= ".
|
|
|
|
|
|
|
1103 |
//text button players
|
1104 |
$CSS .= ".transport-MI div, .transport-MI div:hover, span.textbutton_mp3j { color:" . $colours['list_current_colour'] . "; } \n"; //keep single stuff for the mo
|
1105 |
|
2 |
class MP3j_Main {
|
3 |
|
4 |
// --------- Update Me ------------
|
5 |
+
var $version_of_plugin = "2.7.2";
|
6 |
// --------------------------------
|
7 |
|
8 |
var $S_no = 0;
|
653 |
$js .= $tr['title']. "\", formats: [\"" .$tr['formats'][0] . "\"" . ( ! empty($tr['formats'][1]) ? ", \"".$tr['formats'][1]."\"" : "" ) . "], mp3: \"" .$tr['src_js']. "\", counterpart:\"" . $tr['counterpart_js'] . "\", artist: \"" .$tr['caption']. "\", image: \"" .$tr['image']. "\", imgurl: \"" .$tr['link']. "\"";
|
654 |
|
655 |
//Run extension Callbacks - Additions to track object JS
|
656 |
+
$js = MJPwrite_js_playlist( $js, $tr );
|
657 |
|
658 |
//Close track object
|
659 |
$js .= " }";
|
1095 |
//$CSS .= ".mp3-tint { background-color:" . ( $colours['indicator'] == "tint" ? "#aaa" : $colours['posbar_colour'] ) . "; } \n";
|
1096 |
$CSS .= ".mp3-tint, .Smp3-tint { background-color:" . ( $colours['indicator'] == "tint" ? "#aaa" : $colours['posbar_colour'] ) . "; } \n"; //keep single stuff for the mo
|
1097 |
|
1098 |
+
$CSS .= ".player-track-title { font-size:" . $colours['font_size_1'] . "px; } \n";
|
1099 |
+
$CSS .= ".a-mjp { font-size:" . $colours['font_size_2'] . "px; color:" . $colours['list_text_colour'] . "; } \n";
|
1100 |
+
$CSS .= ".a-mjp:hover { color:" . $colours['list_hover_colour'] . " !important; background:" . $colours['listBGa_hover'] . " !important; } \n";
|
1101 |
+
$CSS .= ".a-mjp.mp3j_A_current { color:" . $colours['list_current_colour'] . " !important; background:" . $colours['listBGa_current'] . " !important; } \n";
|
1102 |
+
$CSS .= ".li-mjp { font-size:" . $colours['font_size_2'] . "px; } \n";
|
1103 |
+
$CSS .= ".li-mjp:hover { background-color:" . $colours['listBGa_hover'] . "; } \n";
|
1104 |
+
$CSS .= ".li-mjp.mp3j_LI_current { background-color:" . $colours['listBGa_current'] . "; } \n";
|
1105 |
+
|
1106 |
//text button players
|
1107 |
$CSS .= ".transport-MI div, .transport-MI div:hover, span.textbutton_mp3j { color:" . $colours['list_current_colour'] . "; } \n"; //keep single stuff for the mo
|
1108 |
|
mp3jplayer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MP3-jPlayer
|
4 |
Plugin URI: http://mp3-jplayer.com
|
5 |
Description: Easy, Flexible Audio for WordPress.
|
6 |
-
Version: 2.7.
|
7 |
Author: Simon Ward
|
8 |
Author URI: http://www.sjward.org
|
9 |
License: GPL2
|
3 |
Plugin Name: MP3-jPlayer
|
4 |
Plugin URI: http://mp3-jplayer.com
|
5 |
Description: Easy, Flexible Audio for WordPress.
|
6 |
+
Version: 2.7.2
|
7 |
Author: Simon Ward
|
8 |
Author URI: http://www.sjward.org
|
9 |
License: GPL2
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: audio, playlist, player, music, audio player, audio playlist, mp3 player,
|
|
7 |
License: GPLv2 or later
|
8 |
Requires at least: 2.9
|
9 |
Tested up to: 4.6
|
10 |
-
Stable tag: 2.7.
|
11 |
|
12 |
Easy, Flexible Audio for WordPress.
|
13 |
|
@@ -119,8 +119,11 @@ Either on the [forum at Wordpress](https://wordpress.org/support/plugin/mp3-jpla
|
|
119 |
|
120 |
== Changelog ==
|
121 |
|
|
|
|
|
|
|
122 |
= 2.7.1 =
|
123 |
-
* Added French translation files. Many thanks to (
|
124 |
|
125 |
= 2.7 =
|
126 |
* Added option to show the players to logged in users only. This is a global option. The setting is at the top of the 'Advanced' tab on the settings page.
|
@@ -142,7 +145,7 @@ Either on the [forum at Wordpress](https://wordpress.org/support/plugin/mp3-jpla
|
|
142 |
* Updated javascript GMT methods with the current standard UTC methods.
|
143 |
|
144 |
= 2.4.1 =
|
145 |
-
* Compatibility update for WordPress 4.3, see
|
146 |
* Fixed the settings page php notices that could occur in some scenarios.
|
147 |
|
148 |
= 2.4 =
|
7 |
License: GPLv2 or later
|
8 |
Requires at least: 2.9
|
9 |
Tested up to: 4.6
|
10 |
+
Stable tag: 2.7.2
|
11 |
|
12 |
Easy, Flexible Audio for WordPress.
|
13 |
|
119 |
|
120 |
== Changelog ==
|
121 |
|
122 |
+
= 2.7.2 =
|
123 |
+
* Fixed the background colour fill on playlist items when displaying stat counts on the frontend.
|
124 |
+
|
125 |
= 2.7.1 =
|
126 |
+
* Added French translation files. Many thanks to [Txia](http://www.lyfoung.com/) for translating.
|
127 |
|
128 |
= 2.7 =
|
129 |
* Added option to show the players to logged in users only. This is a global option. The setting is at the top of the 'Advanced' tab on the settings page.
|
145 |
* Updated javascript GMT methods with the current standard UTC methods.
|
146 |
|
147 |
= 2.4.1 =
|
148 |
+
* Compatibility update for WordPress 4.3, see [this thread](https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/) for more info.
|
149 |
* Fixed the settings page php notices that could occur in some scenarios.
|
150 |
|
151 |
= 2.4 =
|
template-functions.php
CHANGED
@@ -59,8 +59,8 @@ function MJPfront_playlist_player( $atts = array() ) {
|
|
59 |
function MJPfront_popout_player( $atts = array() ) {
|
60 |
return apply_filters( 'MJPfront_popout_player', $atts );
|
61 |
}
|
62 |
-
function
|
63 |
-
return apply_filters( '
|
64 |
}
|
65 |
|
66 |
|
59 |
function MJPfront_popout_player( $atts = array() ) {
|
60 |
return apply_filters( 'MJPfront_popout_player', $atts );
|
61 |
}
|
62 |
+
function MJPwrite_js_playlist( $js = '', $track ) {
|
63 |
+
return apply_filters( 'MJPwrite_js_playlist', $js, $track );
|
64 |
}
|
65 |
|
66 |
|