Version Description
- Released 08/24/2020
- Fixed a bug in the player settings tab that was messing with episode artwork setting
- Re-added 'Disable Blubrry Stats in Dasboard' option, into Advanced Settings
- Fixed a jQuery bug
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.3.6 |
Comparing to | |
See all releases |
Code changes from version 8.3.5 to 8.3.6
- 3rdparty/colorpicker/js/colorpicker.js +55 -55
- powerpress.php +2 -2
- powerpressadmin-basic.php +18 -21
- powerpressadmin-jquery.php +11 -8
- powerpressadmin-metabox.php +1 -1
- powerpressadmin-player-page.php +21 -20
- powerpressadmin-player.php +2 -0
- powerpressadmin.php +6 -1
- readme.txt +7 -1
3rdparty/colorpicker/js/colorpicker.js
CHANGED
@@ -27,49 +27,49 @@
|
|
27 |
},
|
28 |
fillRGBFields = function (hsb, cal) {
|
29 |
var rgb = HSBToRGB(hsb);
|
30 |
-
|
31 |
.eq(1).val(rgb.r).end()
|
32 |
.eq(2).val(rgb.g).end()
|
33 |
.eq(3).val(rgb.b).end();
|
34 |
},
|
35 |
fillHSBFields = function (hsb, cal) {
|
36 |
-
|
37 |
.eq(4).val(hsb.h).end()
|
38 |
.eq(5).val(hsb.s).end()
|
39 |
.eq(6).val(hsb.b).end();
|
40 |
},
|
41 |
fillHexFields = function (hsb, cal) {
|
42 |
-
|
43 |
.eq(0).val(HSBToHex(hsb)).end();
|
44 |
},
|
45 |
setSelector = function (hsb, cal) {
|
46 |
-
|
47 |
-
|
48 |
left: parseInt(150 * hsb.s/100, 10),
|
49 |
top: parseInt(150 * (100-hsb.b)/100, 10)
|
50 |
});
|
51 |
},
|
52 |
setHue = function (hsb, cal) {
|
53 |
-
|
54 |
},
|
55 |
setCurrentColor = function (hsb, cal) {
|
56 |
-
|
57 |
},
|
58 |
setNewColor = function (hsb, cal) {
|
59 |
-
|
60 |
},
|
61 |
keyDown = function (ev) {
|
62 |
var pressedKey = ev.charCode || ev.keyCode || -1;
|
63 |
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
|
64 |
return false;
|
65 |
}
|
66 |
-
var cal =
|
67 |
if (cal.data('colorpicker').livePreview === true) {
|
68 |
change.apply(this);
|
69 |
}
|
70 |
},
|
71 |
change = function (ev) {
|
72 |
-
var cal =
|
73 |
if (this.parentNode.className.indexOf('_hex') > 0) {
|
74 |
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
|
75 |
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
|
@@ -96,27 +96,27 @@
|
|
96 |
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
|
97 |
},
|
98 |
blur = function (ev) {
|
99 |
-
var cal =
|
100 |
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
101 |
},
|
102 |
focus = function () {
|
103 |
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
|
104 |
-
|
105 |
-
|
106 |
},
|
107 |
downIncrement = function (ev) {
|
108 |
-
var field =
|
109 |
var current = {
|
110 |
-
el:
|
111 |
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
|
112 |
y: ev.pageY,
|
113 |
field: field,
|
114 |
val: parseInt(field.val(), 10),
|
115 |
-
preview:
|
116 |
};
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
},
|
121 |
moveIncrement = function (ev) {
|
122 |
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
|
@@ -128,20 +128,20 @@
|
|
128 |
upIncrement = function (ev) {
|
129 |
change.apply(ev.data.field.get(0), [true]);
|
130 |
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
return false;
|
135 |
},
|
136 |
downHue = function (ev) {
|
137 |
var current = {
|
138 |
-
cal:
|
139 |
-
y:
|
140 |
};
|
141 |
current.preview = current.cal.data('colorpicker').livePreview;
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
},
|
146 |
moveHue = function (ev) {
|
147 |
change.apply(
|
@@ -157,20 +157,20 @@
|
|
157 |
upHue = function (ev) {
|
158 |
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
159 |
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
return false;
|
164 |
},
|
165 |
downSelector = function (ev) {
|
166 |
var current = {
|
167 |
-
cal:
|
168 |
-
pos:
|
169 |
};
|
170 |
current.preview = current.cal.data('colorpicker').livePreview;
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
},
|
175 |
moveSelector = function (ev) {
|
176 |
change.apply(
|
@@ -189,19 +189,19 @@
|
|
189 |
upSelector = function (ev) {
|
190 |
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
191 |
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
return false;
|
196 |
},
|
197 |
enterSubmit = function (ev) {
|
198 |
-
|
199 |
},
|
200 |
leaveSubmit = function (ev) {
|
201 |
-
|
202 |
},
|
203 |
clickSubmit = function (ev) {
|
204 |
-
var cal =
|
205 |
var col = cal.data('colorpicker').color;
|
206 |
cal.data('colorpicker').origColor = col;
|
207 |
setCurrentColor(col, cal.get(0));
|
@@ -210,9 +210,9 @@
|
|
210 |
return false;
|
211 |
},
|
212 |
show = function (ev) {
|
213 |
-
var cal =
|
214 |
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
|
215 |
-
var pos =
|
216 |
var viewPort = getViewport();
|
217 |
var top = pos.top + this.offsetHeight;
|
218 |
var left = pos.left;
|
@@ -226,7 +226,7 @@
|
|
226 |
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
|
227 |
cal.show();
|
228 |
}
|
229 |
-
|
230 |
return false;
|
231 |
},
|
232 |
hide = function (ev) {
|
@@ -235,7 +235,7 @@
|
|
235 |
if (ev.data.cal.data('colorpicker').onHide(ev.data.cal.get(0), hex) != false) {
|
236 |
ev.data.cal.hide();
|
237 |
}
|
238 |
-
|
239 |
}
|
240 |
},
|
241 |
isChildOf = function(parentEl, el, container) {
|
@@ -370,7 +370,7 @@
|
|
370 |
return RGBToHex(HSBToRGB(hsb));
|
371 |
},
|
372 |
restoreOriginal = function () {
|
373 |
-
var cal =
|
374 |
var col = cal.data('colorpicker').origColor;
|
375 |
cal.data('colorpicker').color = col;
|
376 |
fillRGBFields(col, cal.get(0));
|
@@ -393,12 +393,12 @@
|
|
393 |
return this;
|
394 |
}
|
395 |
return this.each(function () {
|
396 |
-
if (
|
397 |
var options = $.extend({}, opt);
|
398 |
options.origColor = opt.color;
|
399 |
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
|
400 |
-
|
401 |
-
var cal =
|
402 |
if (options.flat) {
|
403 |
cal.appendTo(this).show();
|
404 |
} else {
|
@@ -438,22 +438,22 @@
|
|
438 |
display: 'block'
|
439 |
});
|
440 |
} else {
|
441 |
-
|
442 |
}
|
443 |
}
|
444 |
});
|
445 |
},
|
446 |
showPicker: function() {
|
447 |
return this.each( function () {
|
448 |
-
if (
|
449 |
show.apply(this);
|
450 |
}
|
451 |
});
|
452 |
},
|
453 |
hidePicker: function() {
|
454 |
return this.each( function () {
|
455 |
-
if (
|
456 |
-
|
457 |
}
|
458 |
});
|
459 |
},
|
@@ -468,8 +468,8 @@
|
|
468 |
return this;
|
469 |
}
|
470 |
return this.each(function(){
|
471 |
-
if (
|
472 |
-
var cal =
|
473 |
cal.data('colorpicker').color = col;
|
474 |
cal.data('colorpicker').origColor = col;
|
475 |
fillRGBFields(col, cal.get(0));
|
27 |
},
|
28 |
fillRGBFields = function (hsb, cal) {
|
29 |
var rgb = HSBToRGB(hsb);
|
30 |
+
jQuery(cal).data('colorpicker').fields
|
31 |
.eq(1).val(rgb.r).end()
|
32 |
.eq(2).val(rgb.g).end()
|
33 |
.eq(3).val(rgb.b).end();
|
34 |
},
|
35 |
fillHSBFields = function (hsb, cal) {
|
36 |
+
jQuery(cal).data('colorpicker').fields
|
37 |
.eq(4).val(hsb.h).end()
|
38 |
.eq(5).val(hsb.s).end()
|
39 |
.eq(6).val(hsb.b).end();
|
40 |
},
|
41 |
fillHexFields = function (hsb, cal) {
|
42 |
+
jQuery(cal).data('colorpicker').fields
|
43 |
.eq(0).val(HSBToHex(hsb)).end();
|
44 |
},
|
45 |
setSelector = function (hsb, cal) {
|
46 |
+
jQuery(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({h: hsb.h, s: 100, b: 100}));
|
47 |
+
jQuery(cal).data('colorpicker').selectorIndic.css({
|
48 |
left: parseInt(150 * hsb.s/100, 10),
|
49 |
top: parseInt(150 * (100-hsb.b)/100, 10)
|
50 |
});
|
51 |
},
|
52 |
setHue = function (hsb, cal) {
|
53 |
+
jQuery(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h/360, 10));
|
54 |
},
|
55 |
setCurrentColor = function (hsb, cal) {
|
56 |
+
jQuery(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
57 |
},
|
58 |
setNewColor = function (hsb, cal) {
|
59 |
+
jQuery(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
|
60 |
},
|
61 |
keyDown = function (ev) {
|
62 |
var pressedKey = ev.charCode || ev.keyCode || -1;
|
63 |
if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
|
64 |
return false;
|
65 |
}
|
66 |
+
var cal = jQuery(this).parent().parent();
|
67 |
if (cal.data('colorpicker').livePreview === true) {
|
68 |
change.apply(this);
|
69 |
}
|
70 |
},
|
71 |
change = function (ev) {
|
72 |
+
var cal = jQuery(this).parent().parent(), col;
|
73 |
if (this.parentNode.className.indexOf('_hex') > 0) {
|
74 |
cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
|
75 |
} else if (this.parentNode.className.indexOf('_hsb') > 0) {
|
96 |
cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
|
97 |
},
|
98 |
blur = function (ev) {
|
99 |
+
var cal = jQuery(this).parent().parent();
|
100 |
cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
101 |
},
|
102 |
focus = function () {
|
103 |
charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
|
104 |
+
jQuery(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
|
105 |
+
jQuery(this).parent().addClass('colorpicker_focus');
|
106 |
},
|
107 |
downIncrement = function (ev) {
|
108 |
+
var field = jQuery(this).parent().find('input').focus();
|
109 |
var current = {
|
110 |
+
el: jQuery(this).parent().addClass('colorpicker_slider'),
|
111 |
max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
|
112 |
y: ev.pageY,
|
113 |
field: field,
|
114 |
val: parseInt(field.val(), 10),
|
115 |
+
preview: jQuery(this).parent().parent().data('colorpicker').livePreview
|
116 |
};
|
117 |
+
jQuery(document).bind('mouseup', current, upIncrement);
|
118 |
+
jQuery(document).bind('mousemove', current, moveIncrement);
|
119 |
+
jQuery(document).bind('mousedown', current, moveIncrement);
|
120 |
},
|
121 |
moveIncrement = function (ev) {
|
122 |
ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
|
128 |
upIncrement = function (ev) {
|
129 |
change.apply(ev.data.field.get(0), [true]);
|
130 |
ev.data.el.removeClass('colorpicker_slider').find('input').focus();
|
131 |
+
jQuery(document).unbind('mouseup', upIncrement);
|
132 |
+
jQuery(document).unbind('mousemove', moveIncrement);
|
133 |
+
jQuery(document).unbind('mousedown', moveIncrement);
|
134 |
return false;
|
135 |
},
|
136 |
downHue = function (ev) {
|
137 |
var current = {
|
138 |
+
cal: jQuery(this).parent(),
|
139 |
+
y: jQuery(this).offset().top
|
140 |
};
|
141 |
current.preview = current.cal.data('colorpicker').livePreview;
|
142 |
+
jQuery(document).bind('mouseup', current, upHue);
|
143 |
+
jQuery(document).bind('mousemove', current, moveHue);
|
144 |
+
jQuery(document).bind('mousedown', current, moveHue);
|
145 |
},
|
146 |
moveHue = function (ev) {
|
147 |
change.apply(
|
157 |
upHue = function (ev) {
|
158 |
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
159 |
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
160 |
+
jQuery(document).unbind('mouseup', upHue);
|
161 |
+
jQuery(document).unbind('mousemove', moveHue);
|
162 |
+
jQuery(document).unbind('mousedown', moveHue);
|
163 |
return false;
|
164 |
},
|
165 |
downSelector = function (ev) {
|
166 |
var current = {
|
167 |
+
cal: jQuery(this).parent(),
|
168 |
+
pos: jQuery(this).offset()
|
169 |
};
|
170 |
current.preview = current.cal.data('colorpicker').livePreview;
|
171 |
+
jQuery(document).bind('mouseup', current, upSelector);
|
172 |
+
jQuery(document).bind('mousemove', current, moveSelector);
|
173 |
+
jQuery(document).bind('mousedown', current, moveSelector);
|
174 |
},
|
175 |
moveSelector = function (ev) {
|
176 |
change.apply(
|
189 |
upSelector = function (ev) {
|
190 |
fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
191 |
fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
|
192 |
+
jQuery(document).unbind('mouseup', upSelector);
|
193 |
+
jQuery(document).unbind('mousemove', moveSelector);
|
194 |
+
jQuery(document).unbind('mousedown', moveSelector);
|
195 |
return false;
|
196 |
},
|
197 |
enterSubmit = function (ev) {
|
198 |
+
jQuery(this).addClass('colorpicker_focus');
|
199 |
},
|
200 |
leaveSubmit = function (ev) {
|
201 |
+
jQuery(this).removeClass('colorpicker_focus');
|
202 |
},
|
203 |
clickSubmit = function (ev) {
|
204 |
+
var cal = jQuery(this).parent();
|
205 |
var col = cal.data('colorpicker').color;
|
206 |
cal.data('colorpicker').origColor = col;
|
207 |
setCurrentColor(col, cal.get(0));
|
210 |
return false;
|
211 |
},
|
212 |
show = function (ev) {
|
213 |
+
var cal = jQuery('#' + jQuery(this).data('colorpickerId'));
|
214 |
cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
|
215 |
+
var pos = jQuery(this).offset();
|
216 |
var viewPort = getViewport();
|
217 |
var top = pos.top + this.offsetHeight;
|
218 |
var left = pos.left;
|
226 |
if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
|
227 |
cal.show();
|
228 |
}
|
229 |
+
jQuery(document).bind('mousedown', {cal: cal}, hide);
|
230 |
return false;
|
231 |
},
|
232 |
hide = function (ev) {
|
235 |
if (ev.data.cal.data('colorpicker').onHide(ev.data.cal.get(0), hex) != false) {
|
236 |
ev.data.cal.hide();
|
237 |
}
|
238 |
+
jQuery(document).unbind('mousedown', hide);
|
239 |
}
|
240 |
},
|
241 |
isChildOf = function(parentEl, el, container) {
|
370 |
return RGBToHex(HSBToRGB(hsb));
|
371 |
},
|
372 |
restoreOriginal = function () {
|
373 |
+
var cal = jQuery(this).parent();
|
374 |
var col = cal.data('colorpicker').origColor;
|
375 |
cal.data('colorpicker').color = col;
|
376 |
fillRGBFields(col, cal.get(0));
|
393 |
return this;
|
394 |
}
|
395 |
return this.each(function () {
|
396 |
+
if (!jQuery(this).data('colorpickerId')) {
|
397 |
var options = $.extend({}, opt);
|
398 |
options.origColor = opt.color;
|
399 |
var id = 'collorpicker_' + parseInt(Math.random() * 1000);
|
400 |
+
jQuery(this).data('colorpickerId', id);
|
401 |
+
var cal = jQuery(tpl).attr('id', id);
|
402 |
if (options.flat) {
|
403 |
cal.appendTo(this).show();
|
404 |
} else {
|
438 |
display: 'block'
|
439 |
});
|
440 |
} else {
|
441 |
+
jQuery(this).bind(options.eventName, show);
|
442 |
}
|
443 |
}
|
444 |
});
|
445 |
},
|
446 |
showPicker: function() {
|
447 |
return this.each( function () {
|
448 |
+
if (jQuery(this).data('colorpickerId')) {
|
449 |
show.apply(this);
|
450 |
}
|
451 |
});
|
452 |
},
|
453 |
hidePicker: function() {
|
454 |
return this.each( function () {
|
455 |
+
if (jQuery(this).data('colorpickerId')) {
|
456 |
+
jQuery('#' + jQuery(this).data('colorpickerId')).hide();
|
457 |
}
|
458 |
});
|
459 |
},
|
468 |
return this;
|
469 |
}
|
470 |
return this.each(function(){
|
471 |
+
if (jQuery(this).data('colorpickerId')) {
|
472 |
+
var cal = jQuery('#' + jQuery(this).data('colorpickerId'));
|
473 |
cal.data('colorpicker').color = col;
|
474 |
cal.data('colorpicker').origColor = col;
|
475 |
fillRGBFields(col, cal.get(0));
|
powerpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
-
Version: 8.3.
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
@@ -36,7 +36,7 @@ if( !function_exists('add_action') ) {
|
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
-
define('POWERPRESS_VERSION', '8.3.
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
+
Version: 8.3.6
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
+
define('POWERPRESS_VERSION', '8.3.6' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-basic.php
CHANGED
@@ -119,9 +119,9 @@ jQuery(document).ready(function($) {
|
|
119 |
objectChecked = jQuery('#episode_box_feature_in_itunes').prop('checked');
|
120 |
}
|
121 |
if( objectChecked ) {
|
122 |
-
|
123 |
} else {
|
124 |
-
|
125 |
}
|
126 |
});
|
127 |
|
@@ -736,20 +736,7 @@ function powerpressadmin_edit_blubrry_services($General, $action_url = false, $a
|
|
736 |
} // end not signed up for hosting
|
737 |
|
738 |
?>
|
739 |
-
|
740 |
-
<p style="margin-top: 10px;">
|
741 |
-
<input name="DisableStatsInDashboard" type="checkbox" value="1"<?php if( $DisableStatsInDashboard == true ) echo ' checked'; ?> />
|
742 |
-
<?php echo __('Remove Statistics from WordPress Dashboard', 'powerpress'); ?></p>
|
743 |
-
<p>
|
744 |
-
<?php
|
745 |
-
if (!isset($General['network_mode'])) {
|
746 |
-
$General['network_mode'] = 0;
|
747 |
-
}
|
748 |
-
?>
|
749 |
-
<input type="checkbox" id="blubrry_network_mode" value="1" name="General[network_mode]" <?php echo $General['network_mode'] == '1' ? 'checked' : ''; ?> />
|
750 |
-
<label for="blubrry_network_mode"><?php echo __('Network mode (publish to multiple Blubrry Hosting Accounts)', 'powerpress') ?></label>
|
751 |
-
</p>
|
752 |
-
</div>-->
|
753 |
</div>
|
754 |
<?php
|
755 |
}
|
@@ -762,8 +749,12 @@ function powerpressadmin_edit_media_statistics($General)
|
|
762 |
$General['redirect2'] = '';
|
763 |
if( !isset($General['redirect3']) )
|
764 |
$General['redirect3'] = '';
|
765 |
-
|
766 |
-
|
|
|
|
|
|
|
|
|
767 |
if( !empty($General['blubrry_program_keyword']) )
|
768 |
$StatsIntegrationURL = 'http://media.blubrry.com/'.$General['blubrry_program_keyword'].'/';
|
769 |
?>
|
@@ -782,6 +773,12 @@ function powerpressadmin_edit_media_statistics($General)
|
|
782 |
</script>
|
783 |
<div id="blubrry_stats_settings">
|
784 |
<h2><?php echo __('Media Statistics', 'powerpress'); ?></h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
785 |
<div>
|
786 |
<h4><?php echo __('REDIRECT URL', 'powerpress'); ?></h4>
|
787 |
<p class="pp-settings-text-no-margin">
|
@@ -981,12 +978,12 @@ function powerpressadmin_welcome($GeneralSettings, $FeedSettings)
|
|
981 |
<div>
|
982 |
<div class="pp-settings-program-summary">
|
983 |
<div class="prog-sum-head">
|
984 |
-
<h2 class="pp-heading" id="welcome-title"><?php echo $FeedSettings['title']; ?></h2>
|
985 |
<div class="pp-settings-recent-post">
|
986 |
<img id="welcome-preview-image" src="<?php echo $image; ?>" alt="Feed Image" />
|
987 |
<div class="pp-settings-welcome-text">
|
988 |
-
<p class="pp-settings-text-no-margin" style="margin-bottom: 2ch;"><?php echo __('By', 'powerpress'); ?> <?php echo $FeedSettings['itunes_talent_name']; ?></p>
|
989 |
-
<p class="pp-settings-text-no-margin"><?php echo $mostRecentEp['post_data']->post_content; ?></p>
|
990 |
</div>
|
991 |
</div>
|
992 |
<div class="pp-settings-num-episodes">
|
119 |
objectChecked = jQuery('#episode_box_feature_in_itunes').prop('checked');
|
120 |
}
|
121 |
if( objectChecked ) {
|
122 |
+
jQuery("#episode_box_order").attr("disabled", true);
|
123 |
} else {
|
124 |
+
jQuery("#episode_box_order").removeAttr("disabled");
|
125 |
}
|
126 |
});
|
127 |
|
736 |
} // end not signed up for hosting
|
737 |
|
738 |
?>
|
739 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
740 |
</div>
|
741 |
<?php
|
742 |
}
|
749 |
$General['redirect2'] = '';
|
750 |
if( !isset($General['redirect3']) )
|
751 |
$General['redirect3'] = '';
|
752 |
+
|
753 |
+
$DisableStatsInDashboard = false;
|
754 |
+
if( !empty($General['disable_dashboard_stats']) )
|
755 |
+
$DisableStatsInDashboard = true;
|
756 |
+
|
757 |
+
$StatsIntegrationURL = '';
|
758 |
if( !empty($General['blubrry_program_keyword']) )
|
759 |
$StatsIntegrationURL = 'http://media.blubrry.com/'.$General['blubrry_program_keyword'].'/';
|
760 |
?>
|
773 |
</script>
|
774 |
<div id="blubrry_stats_settings">
|
775 |
<h2><?php echo __('Media Statistics', 'powerpress'); ?></h2>
|
776 |
+
<div>
|
777 |
+
<input name="DisableStatsInDashboard" class="pp-settings-checkbox" style="margin-top: 1em;" type="checkbox" value="1"<?php if( $DisableStatsInDashboard == true ) echo ' checked'; ?> />
|
778 |
+
<div class="pp-settings-subsection" style="border-bottom: none; margin-top: 0;">
|
779 |
+
<p class="pp-main"><?php echo __('Remove Statistics from WordPress Dashboard', 'powerpress'); ?></p>
|
780 |
+
</div>
|
781 |
+
</div>
|
782 |
<div>
|
783 |
<h4><?php echo __('REDIRECT URL', 'powerpress'); ?></h4>
|
784 |
<p class="pp-settings-text-no-margin">
|
978 |
<div>
|
979 |
<div class="pp-settings-program-summary">
|
980 |
<div class="prog-sum-head">
|
981 |
+
<h2 class="pp-heading" id="welcome-title"><?php echo isset($FeedSettings['title']) ? $FeedSettings['title'] : ''; ?></h2>
|
982 |
<div class="pp-settings-recent-post">
|
983 |
<img id="welcome-preview-image" src="<?php echo $image; ?>" alt="Feed Image" />
|
984 |
<div class="pp-settings-welcome-text">
|
985 |
+
<p class="pp-settings-text-no-margin" style="margin-bottom: 2ch;"><?php echo __('By', 'powerpress'); ?> <?php echo isset($FeedSettings['itunes_talent_name']) ? $FeedSettings['itunes_talent_name'] : ''; ?></p>
|
986 |
+
<p class="pp-settings-text-no-margin"><?php echo isset($mostRecentEp['post_data']) && isset($mostRecentEp['post_data']->post_content) ? $mostRecentEp['post_data']->post_content : ''; ?></p>
|
987 |
</div>
|
988 |
</div>
|
989 |
<div class="pp-settings-num-episodes">
|
powerpressadmin-jquery.php
CHANGED
@@ -331,12 +331,16 @@ window.onload = function() {
|
|
331 |
function reloadFrame() {
|
332 |
window.location = "<?php echo admin_url('admin.php'); ?>?action=powerpress-jquery-media&blubrryProgramKeyword="+ program.value +"&podcast-feed=<?php echo $FeedSlug; ?>&KeepThis=true&TB_iframe=true&modal=false&remSel=" + remember.checked;
|
333 |
}
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
//-->
|
342 |
</script>
|
@@ -349,8 +353,7 @@ window.onload = function() {
|
|
349 |
<select id="blubrry_program_keyword" name="Settings[blubrry_program_keyword]">
|
350 |
<option value="!selectPodcast"><?php echo __('Select Program', 'powerpress'); ?></option>
|
351 |
<?php
|
352 |
-
|
353 |
-
//ksort($Programs);
|
354 |
foreach ($Programs as $value => $desc)
|
355 |
echo "\t<option value=\"$value\"" . ($blubrryProgramKeyword == $value ? ' selected' : '') . ">$desc</option>\n";
|
356 |
?>
|
331 |
function reloadFrame() {
|
332 |
window.location = "<?php echo admin_url('admin.php'); ?>?action=powerpress-jquery-media&blubrryProgramKeyword="+ program.value +"&podcast-feed=<?php echo $FeedSlug; ?>&KeepThis=true&TB_iframe=true&modal=false&remSel=" + remember.checked;
|
333 |
}
|
334 |
+
if (program) {
|
335 |
+
program.addEventListener('change', function () {
|
336 |
+
reloadFrame();
|
337 |
+
});
|
338 |
+
}
|
339 |
+
if (remember) {
|
340 |
+
remember.addEventListener('change', function () {
|
341 |
+
reloadFrame();
|
342 |
+
});
|
343 |
+
}
|
344 |
}
|
345 |
//-->
|
346 |
</script>
|
353 |
<select id="blubrry_program_keyword" name="Settings[blubrry_program_keyword]">
|
354 |
<option value="!selectPodcast"><?php echo __('Select Program', 'powerpress'); ?></option>
|
355 |
<?php
|
356 |
+
ksort($Programs);
|
|
|
357 |
foreach ($Programs as $value => $desc)
|
358 |
echo "\t<option value=\"$value\"" . ($blubrryProgramKeyword == $value ? ' selected' : '') . ">$desc</option>\n";
|
359 |
?>
|
powerpressadmin-metabox.php
CHANGED
@@ -597,7 +597,7 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage, $GeneralSettin
|
|
597 |
</div>
|
598 |
<div class="ep-box-line-margin"></div>
|
599 |
<?php }
|
600 |
-
if(
|
601 |
<div id="powerpress_thumbnail_container_<?php echo $FeedSlug; ?>" class="pp-section-container">
|
602 |
<div class="powerpress-art-text">
|
603 |
<h4 class="pp-section-title"><?php echo esc_html(__('Thumbnail Image', 'powerpress')); ?></h4>
|
597 |
</div>
|
598 |
<div class="ep-box-line-margin"></div>
|
599 |
<?php }
|
600 |
+
if( isset($GeneralSettings['new_episode_box_cover_image']) && $GeneralSettings['new_episode_box_cover_image'] == 1 ) { ?>
|
601 |
<div id="powerpress_thumbnail_container_<?php echo $FeedSlug; ?>" class="pp-section-container">
|
602 |
<div class="powerpress-art-text">
|
603 |
<h4 class="pp-section-title"><?php echo esc_html(__('Thumbnail Image', 'powerpress')); ?></h4>
|
powerpressadmin-player-page.php
CHANGED
@@ -161,19 +161,19 @@ jQuery(document).ready(function($) {
|
|
161 |
generatePlayerHash();
|
162 |
|
163 |
function generatePlayerHash(){
|
164 |
-
var time =
|
165 |
if(time==='') {
|
166 |
time = '0';
|
167 |
}
|
168 |
-
var darkorlightval =
|
169 |
-
var color1
|
170 |
-
var color2
|
171 |
-
var color3
|
172 |
-
var color4
|
173 |
-
var fontcolor1 =
|
174 |
-
var fontcolor2 =
|
175 |
-
var fontcolor3 =
|
176 |
-
var fontcolor4 =
|
177 |
var addition = '#time-'+time+"&darkOrLight-"+darkorlightval+"&shownotes-"+fontcolor1.substring(1)+"&shownotesBackground-"+color1.substring(1)+
|
178 |
"&download-"+fontcolor2.substring(1)+"&downloadBackground-"+color2.substring(1)+"&subscribe-"+fontcolor3.substring(1)+"&subscribeBackground-"+color3.substring(1)+
|
179 |
"&share-"+fontcolor4.substring(1)+"&shareBackground-"+color4.substring(1);
|
@@ -184,16 +184,16 @@ jQuery(document).ready(function($) {
|
|
184 |
function restoreDefaultColors(){
|
185 |
document.getElementById('player_iframe_div').innerHTML ='<iframe src="//player.blubrry.com?podcast_id=12559710" id="playeriframe" scrolling="no" width="100%" height="138px" frameborder="0"></iframe>';
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
|
196 |
-
|
197 |
}
|
198 |
|
199 |
jQuery('.color-field').wpColorPicker({
|
@@ -655,12 +655,13 @@ table.html5formats tr > td:first-child {
|
|
655 |
|
656 |
<p><input name="General[new_episode_box_itunes_image]" type="hidden" value="0"/><input
|
657 |
name="General[new_episode_box_itunes_image]" type="checkbox"
|
658 |
-
value="1" <?php echo(
|
659 |
</p>
|
660 |
<p><input name="General[bp_episode_image]" type="hidden" value="0"/><input
|
661 |
name="General[bp_episode_image]" type="checkbox"
|
662 |
value="1" <?php echo(!empty($General['bp_episode_image']) ? 'checked' : ''); ?> /> <?php echo __('Use iTunes episode image with player', 'powerpress'); ?>
|
663 |
</p>
|
|
|
664 |
</div>
|
665 |
<input type="hidden" name="action" value="powerpress_bplayer"/>
|
666 |
|
161 |
generatePlayerHash();
|
162 |
|
163 |
function generatePlayerHash(){
|
164 |
+
var time = jQuery("input.time-form").val();
|
165 |
if(time==='') {
|
166 |
time = '0';
|
167 |
}
|
168 |
+
var darkorlightval = jQuery("input[name='BBPlayer[playerstyle]']:checked").val();
|
169 |
+
var color1=jQuery('input[name="BBPlayer[showbg]"]').val();
|
170 |
+
var color2=jQuery('input[name="BBPlayer[downloadbgcolor]"]').val();
|
171 |
+
var color3=jQuery('input[name="BBPlayer[subscribebg]"]').val();
|
172 |
+
var color4=jQuery('input[name="BBPlayer[bgshare]"]').val();
|
173 |
+
var fontcolor1 = jQuery('input[name="BBPlayer[showtext]"]').val();
|
174 |
+
var fontcolor2 = jQuery('input[name="BBPlayer[downloadcolortext]"]').val();
|
175 |
+
var fontcolor3 = jQuery('input[name="BBPlayer[textsubscribe]"]').val();
|
176 |
+
var fontcolor4 = jQuery('input[name="BBPlayer[textshare]"]').val();
|
177 |
var addition = '#time-'+time+"&darkOrLight-"+darkorlightval+"&shownotes-"+fontcolor1.substring(1)+"&shownotesBackground-"+color1.substring(1)+
|
178 |
"&download-"+fontcolor2.substring(1)+"&downloadBackground-"+color2.substring(1)+"&subscribe-"+fontcolor3.substring(1)+"&subscribeBackground-"+color3.substring(1)+
|
179 |
"&share-"+fontcolor4.substring(1)+"&shareBackground-"+color4.substring(1);
|
184 |
function restoreDefaultColors(){
|
185 |
document.getElementById('player_iframe_div').innerHTML ='<iframe src="//player.blubrry.com?podcast_id=12559710" id="playeriframe" scrolling="no" width="100%" height="138px" frameborder="0"></iframe>';
|
186 |
|
187 |
+
jQuery('input[name="BBPlayer[downloadbgcolor]"]').wpColorPicker('color',"#003366");
|
188 |
+
jQuery('input[name="BBPlayer[downloadcolortext]"]').wpColorPicker('color',"#ffffff");
|
189 |
+
jQuery('input[name="BBPlayer[subscribebg]"]').wpColorPicker('color',"#fb8c00");
|
190 |
+
jQuery('input[name="BBPlayer[textsubscribe]"]').wpColorPicker('color',"#ffffff");
|
191 |
+
jQuery('input[name="BBPlayer[bgshare]"]').wpColorPicker('color', "#1976d2");
|
192 |
+
jQuery('input[name="BBPlayer[textshare]"]').wpColorPicker('color',"#ffffff");
|
193 |
+
jQuery('input[name="BBPlayer[showbg]"]').wpColorPicker('color',"#444444");
|
194 |
+
jQuery('input[name="BBPlayer[showtext]"]').wpColorPicker('color',"#ffffff");
|
195 |
|
196 |
+
jQuery("input:radio[name='BBPlayer[playerstyle]'][value='light']").prop('checked', true);
|
197 |
}
|
198 |
|
199 |
jQuery('.color-field').wpColorPicker({
|
655 |
|
656 |
<p><input name="General[new_episode_box_itunes_image]" type="hidden" value="0"/><input
|
657 |
name="General[new_episode_box_itunes_image]" type="checkbox"
|
658 |
+
value="1" <?php echo((empty($General['new_episode_box_itunes_image']) || $General['new_episode_box_itunes_image'] == 1) ? 'checked' : ''); ?> /> <?php echo __('Display field for entering iTunes episode image ', 'powerpress'); ?>
|
659 |
</p>
|
660 |
<p><input name="General[bp_episode_image]" type="hidden" value="0"/><input
|
661 |
name="General[bp_episode_image]" type="checkbox"
|
662 |
value="1" <?php echo(!empty($General['bp_episode_image']) ? 'checked' : ''); ?> /> <?php echo __('Use iTunes episode image with player', 'powerpress'); ?>
|
663 |
</p>
|
664 |
+
<input type="hidden" name="General[powerpress_bplayer_settings]" value="1" />
|
665 |
</div>
|
666 |
<input type="hidden" name="action" value="powerpress_bplayer"/>
|
667 |
|
powerpressadmin-player.php
CHANGED
@@ -33,7 +33,9 @@ function powerpress_admin_players_init()
|
|
33 |
case 'powerpress_bplayer':{ //blubrry player
|
34 |
|
35 |
$SaveSettings = $_POST['BBPlayer'];
|
|
|
36 |
powerpress_save_settings($SaveSettings, 'powerpress_bplayer');
|
|
|
37 |
powerpress_page_message_add_notice( __('Blubrry Player settings saved successfully.', 'powerpress') );
|
38 |
}; break;
|
39 |
}
|
33 |
case 'powerpress_bplayer':{ //blubrry player
|
34 |
|
35 |
$SaveSettings = $_POST['BBPlayer'];
|
36 |
+
$GenSettings = $_POST['General'];
|
37 |
powerpress_save_settings($SaveSettings, 'powerpress_bplayer');
|
38 |
+
powerpress_save_settings($GenSettings, 'powerpress_general');
|
39 |
powerpress_page_message_add_notice( __('Blubrry Player settings saved successfully.', 'powerpress') );
|
40 |
}; break;
|
41 |
}
|
powerpressadmin.php
CHANGED
@@ -1348,7 +1348,6 @@ function powerpress_save_settings($SettingsNew=false, $field = 'powerpress_gener
|
|
1348 |
update_option($field, $SettingsNew);
|
1349 |
return;
|
1350 |
}
|
1351 |
-
|
1352 |
// Save general settings
|
1353 |
if( $SettingsNew )
|
1354 |
{
|
@@ -1442,6 +1441,12 @@ function powerpress_save_settings($SettingsNew=false, $field = 'powerpress_gener
|
|
1442 |
unset($Settings['subscribe_links']);
|
1443 |
if (!isset($SettingsNew['new_window_no_factor']) || empty($SettingsNew['new_window_no_factor']))
|
1444 |
unset($Settings['new_window_no_factor']);
|
|
|
|
|
|
|
|
|
|
|
|
|
1445 |
}
|
1446 |
if( isset($Settings['videojs_css_class']) && empty($Settings['videojs_css_class']) )
|
1447 |
unset($Settings['videojs_css_class']);
|
1348 |
update_option($field, $SettingsNew);
|
1349 |
return;
|
1350 |
}
|
|
|
1351 |
// Save general settings
|
1352 |
if( $SettingsNew )
|
1353 |
{
|
1441 |
unset($Settings['subscribe_links']);
|
1442 |
if (!isset($SettingsNew['new_window_no_factor']) || empty($SettingsNew['new_window_no_factor']))
|
1443 |
unset($Settings['new_window_no_factor']);
|
1444 |
+
} elseif( isset($SettingsNew['powerpress_bplayer_settings'])) {
|
1445 |
+
unset($Settings['powerpress_bplayer_settings']);
|
1446 |
+
if (!isset($SettingsNew['new_episode_box_itunes_image']) || empty($SettingsNew['new_episode_box_itunes_image']))
|
1447 |
+
$Settings['new_episode_box_itunes_image'] = 2;
|
1448 |
+
if (isset($SettingsNew['bp_episode_image']) && empty($SettingsNew['bp_episode_image']))
|
1449 |
+
unset($Settings['bp_episode_image']);
|
1450 |
}
|
1451 |
if( isset($Settings['videojs_css_class']) && empty($Settings['videojs_css_class']) )
|
1452 |
unset($Settings['videojs_css_class']);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: podcasting, podcast, podcaster, powerpress, itunes, apple, apple podcasts,
|
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.5
|
7 |
-
Stable tag: 8.3.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -236,6 +236,12 @@ To install Blubrry PowerPress manually, follow these steps:
|
|
236 |
= Fan of PowerPress and want to show your support? =
|
237 |
If you are a fan of PowerPress, we would greatly appreciate it if you could take a moment and [leave us a review on WordPress.org](https://wordpress.org/support/plugin/powerpress/reviews/?rate=5#new-post). Your support is greatly appreciated!
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
= 8.3.5 =
|
240 |
* Released 08/11/2020
|
241 |
* Small bugfix
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 8.3.6
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
236 |
= Fan of PowerPress and want to show your support? =
|
237 |
If you are a fan of PowerPress, we would greatly appreciate it if you could take a moment and [leave us a review on WordPress.org](https://wordpress.org/support/plugin/powerpress/reviews/?rate=5#new-post). Your support is greatly appreciated!
|
238 |
|
239 |
+
= 8.3.6 =
|
240 |
+
* Released 08/24/2020
|
241 |
+
* Fixed a bug in the player settings tab that was messing with episode artwork setting
|
242 |
+
* Re-added 'Disable Blubrry Stats in Dasboard' option, into Advanced Settings
|
243 |
+
* Fixed a jQuery bug
|
244 |
+
|
245 |
= 8.3.5 =
|
246 |
* Released 08/11/2020
|
247 |
* Small bugfix
|