PowerPress Podcasting plugin by Blubrry - Version 8.1

Version Description

  • Eliminated Simple Mode
  • Replaced Simple Mode with a Getting Started section which shows up the first time someone opens PowerPress
  • Getting Started includes feed info settings, feed import, and media migration
  • Getting Started can also be revisited at any time
  • Added trim call for ajax returns in case website is sending extra new lines due to a theme or plugin
  • Now using the latest media detection library (getid3) in WordPress
Download this release

Release Info

Developer benbeecroft
Plugin Icon 128x128 PowerPress Podcasting plugin by Blubrry
Version 8.1
Comparing to
See all releases

Code changes from version 8.0.3 to 8.1

.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ *.bak
class.powerpress_onboarding.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class PowerpressOnboarding
3
+ {
4
+ function __construct()
5
+ {
6
+ wp_enqueue_style('powerpress_onboarding_styles',plugin_dir_url( __FILE__ ) . 'css/onboarding.css' );
7
+ }
8
+
9
+ public function router($GET) {
10
+ if(empty($GET['step'])) {
11
+ include 'views/onboarding/start.php';
12
+ }
13
+ else {
14
+ switch ($GET['step']) {
15
+ case 'nohost':
16
+ include 'views/onboarding/nohost.php';
17
+ break;
18
+ case 'blubrrySignin':
19
+ include 'views/onboarding/blubrry_signin.php';
20
+ break;
21
+ case 'showBasics':
22
+ include 'views/onboarding/show_basics.php';
23
+ break;
24
+ case 'createEpisode':
25
+ include 'views/onboarding/createepisode.php';
26
+ break;
27
+ case 'wantStats':
28
+ include 'views/onboarding/want_stats.php';
29
+ break;
30
+ default:
31
+ include 'views/onboarding/start.php';
32
+ break;
33
+ }
34
+ }
35
+ }
36
+ }
css/admin.css CHANGED
@@ -443,10 +443,12 @@ a.pp-expand-section:visited {
443
  .pp-expand-section:before {
444
  content: ' \25C4'; /* &#9668; */
445
  content: '+';
 
446
  }
447
  .pp-expand-section-expanded:before {
448
  content: ' \25BC';
449
  content: '-';
 
450
  }
451
  .bbplayer_settings .form-table th{
452
  padding-bottom: 0;
443
  .pp-expand-section:before {
444
  content: ' \25C4'; /* &#9668; */
445
  content: '+';
446
+ line-height: 20px;
447
  }
448
  .pp-expand-section-expanded:before {
449
  content: ' \25BC';
450
  content: '-';
451
+ line-height: 16px;
452
  }
453
  .bbplayer_settings .form-table th{
454
  padding-bottom: 0;
css/onboarding.css ADDED
@@ -0,0 +1,757 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body,
2
+ input,
3
+ select,
4
+ textarea,
5
+ body * {
6
+ font-family: 'Roboto', sans-serif;
7
+ box-sizing: border-box;
8
+ }
9
+ body::after, body::before,
10
+ input::after,
11
+ input::before,
12
+ select::after,
13
+ select::before,
14
+ textarea::after,
15
+ textarea::before,
16
+ body *::after,
17
+ body *::before {
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ body {
22
+ background-image: -webkit-linear-gradient(top, #f2f2f2, #e6e6e6);
23
+ }
24
+
25
+ /* Container */
26
+
27
+ .pp_container {
28
+ position: relative;
29
+ max-width: 80rem;
30
+ margin: 2rem auto;
31
+ background: #fff;
32
+ width: 100%;
33
+ padding: 3rem 5rem;
34
+ border-radius: 4px;
35
+ }
36
+ .pp_container::before {
37
+ content: '';
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ bottom: 0;
43
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
44
+ -webkit-transform: scale(0.98);
45
+ transform: scale(0.98);
46
+ -webkit-transition: -webkit-transform 0.28s ease-in-out;
47
+ transition: -webkit-transform 0.28s ease-in-out;
48
+ transition: transform 0.28s ease-in-out;
49
+ transition: transform 0.28s ease-in-out, -webkit-transform 0.28s ease-in-out;
50
+ z-index: -1;
51
+ }
52
+ .pp_container:hover::before {
53
+ -webkit-transform: scale(1);
54
+ transform: scale(1);
55
+ }
56
+
57
+ .pp_button-container {
58
+ text-align: center;
59
+ }
60
+
61
+
62
+ .pp_flex-grid {
63
+ display: flex;
64
+ }
65
+
66
+ .pp_flex-grid .pp_col {
67
+ flex: 1;
68
+ margin: 0 25px;
69
+ }
70
+
71
+ .pp_flex-grid-thirds {
72
+ display: flex;
73
+ justify-content: space-between;
74
+ }
75
+
76
+ .pp_flex-grid-thirds .pp_col {
77
+ width: 32%;
78
+ }
79
+
80
+ @media (max-width: 400px) {
81
+ .pp_.flex-grid,
82
+ .pp_.flex-grid-thirds {
83
+ display: block;
84
+ .pp_col {
85
+ width: 100%;
86
+ margin: 0 0 10px 0;
87
+ }
88
+ }
89
+ }
90
+
91
+
92
+
93
+
94
+ * {
95
+ box-sizing: border-box;
96
+ }
97
+ .pp_.flex-grid {
98
+ margin: 0 0 20px 0;
99
+ }
100
+ .pp_.col {
101
+ background: salmon;
102
+ padding: 20px;
103
+ }
104
+
105
+
106
+ h1, h2, h3, h4, h5, h6 {
107
+ font-weight: 500;
108
+ line-height: 1.5;
109
+ margin: 0 0 .5rem 0;
110
+ color: #333;
111
+ }
112
+
113
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
114
+ color: inherit;
115
+ text-decoration: none;
116
+ }
117
+
118
+ h2 {
119
+ font-size: 1.5rem;
120
+ }
121
+
122
+ h3 {
123
+ font-size: 1.35rem;
124
+ }
125
+
126
+ h4 {
127
+ font-size: 1.15rem;
128
+ }
129
+
130
+ h5 {
131
+ font-size: 0.9rem;
132
+ }
133
+
134
+ h6 {
135
+ font-size: 0.7rem;
136
+ }
137
+
138
+ .pp_small {
139
+ font-size: 10px;
140
+ color: #888888;
141
+ }
142
+
143
+ hr {
144
+ border: 0;
145
+ border-bottom: solid 1px;
146
+ margin: 2rem 0;
147
+ }
148
+
149
+ hr.major {
150
+ margin: 3rem 0;
151
+ }
152
+
153
+ .pp_align-left {
154
+ text-align: left;
155
+ }
156
+
157
+ .pp_align-center {
158
+ text-align: center;
159
+ }
160
+
161
+ .pp_align-right {
162
+ text-align: right;
163
+ }
164
+
165
+ input, select, textarea {
166
+ color: #555;
167
+ }
168
+
169
+ a {
170
+ color: #8a4680;
171
+ }
172
+
173
+ strong, b {
174
+ color: #555;
175
+ }
176
+
177
+ blockquote {
178
+ border-left-color: rgba(144, 144, 144, 0.25);
179
+ }
180
+
181
+ code {
182
+ background: rgba(144, 144, 144, 0.075);
183
+ border-color: rgba(144, 144, 144, 0.25);
184
+ }
185
+
186
+ hr {
187
+ border-bottom-color: rgba(144, 144, 144, 0.25);
188
+ }
189
+
190
+ /* Box */
191
+
192
+
193
+ .pp_leftline {
194
+ border-left: 3px solid #efefef;
195
+ padding-left: 15px;
196
+
197
+ }
198
+
199
+ .pp_box {
200
+ height: 100%;
201
+ margin-bottom: 2rem;
202
+ background: #FFF;
203
+ padding: 3rem;
204
+ border: 1px solid rgba(144, 144, 144, 0.25);
205
+ }
206
+
207
+ .pp_box header h2 {
208
+ margin-bottom: 2rem;
209
+ }
210
+
211
+ .pp_box header p {
212
+ text-transform: uppercase;
213
+ font-size: .75rem;
214
+ font-weight: 300;
215
+ margin: 0 0 .25rem 0;
216
+ padding: 0 0 .75rem 0;
217
+ letter-spacing: .25rem;
218
+ }
219
+
220
+ .pp_box header p:after {
221
+ content: '';
222
+ position: absolute;
223
+ margin: auto;
224
+ right: 0;
225
+ bottom: 0;
226
+ left: 0;
227
+ width: 50%;
228
+ height: 1px;
229
+ background-color: rgba(0, 0, 0, 0.125);
230
+ }
231
+
232
+
233
+ .pp_box > :last-child,
234
+ .pp_box > :last-child > :last-child,
235
+ .pp_box > :last-child > :last-child > :last-child {
236
+ margin-bottom: 0;
237
+ }
238
+
239
+ .pp_box.alt {
240
+ border: 0;
241
+ border-radius: 0;
242
+ padding: 0;
243
+ }
244
+
245
+ @media screen and (max-width: 736px) {
246
+
247
+ .pp_box .pp_content {
248
+ padding: 2rem;
249
+ }
250
+
251
+ }
252
+
253
+
254
+
255
+
256
+
257
+ #wpcontent {
258
+ background-image: -webkit-linear-gradient(top, #f2f2f2, #e6e6e6);
259
+ }
260
+
261
+ fieldset {
262
+ margin: 0 0 3rem;
263
+ }
264
+
265
+ select {
266
+ width: 100%;
267
+ }
268
+
269
+ .pp_input-field {
270
+ position: relative;
271
+ width: 25%;
272
+ }
273
+ .pp_input-field-thirds {
274
+ position: relative;
275
+ width: 100%;
276
+ }
277
+
278
+ input[type="text"], input[type="password"] {
279
+ width: 100%;
280
+ padding-left: 0.75rem;
281
+ transition: all .15s ease;
282
+ }
283
+
284
+ .pp_outlined {
285
+ height: 38px;
286
+ box-shadow: inset 0 0 0 1px #b2b2b2;
287
+ border-radius: 4px;
288
+ background: transparent;
289
+ }
290
+
291
+
292
+ .pp_outlined:focus {
293
+ outline: none;
294
+ box-shadow: inset 0 0 0 2px #ffb300;
295
+ }
296
+
297
+ .pp_outlined + label {
298
+ background: #ffffff;
299
+ top: .8rem;
300
+ position: absolute;
301
+ left: 0.75rem;
302
+ color: grey;
303
+ transition: all .15s ease;
304
+ padding: 0px;
305
+ font-size: 12px;
306
+ pointer-events: none;
307
+ }
308
+
309
+ .pp_outlined:focus + label, .pp_outlined:valid + label {
310
+ color: black;
311
+ transform: scale(.8) translateY(-24px) translateX(-9px);
312
+ padding: 0 3px;
313
+ }
314
+
315
+ .pp_form-radio,
316
+ .pp_form-group {
317
+ position: relative;
318
+ margin-top: 1.25rem;
319
+ margin-bottom: 2.25rem;
320
+ }
321
+
322
+ .pp_form-inline > .pp_form-group,
323
+ .pp_form-inline > .pp_btn {
324
+ display: inline-block;
325
+ margin-bottom: 0;
326
+ }
327
+
328
+ .pp_form-help {
329
+ margin-top: 0.125rem;
330
+ margin-left: 0.125rem;
331
+ color: #b3b3b3;
332
+ font-size: 0.8rem;
333
+ }
334
+ .pp_checkbox .pp_form-help, .pp_form-radio .pp_form-help, .pp_form-group .pp_form-help {
335
+ position: absolute;
336
+ width: 100%;
337
+ }
338
+ .pp_checkbox .pp_form-help {
339
+ position: relative;
340
+ margin-bottom: 1rem;
341
+ }
342
+ .pp_form-radio .pp_form-help {
343
+ padding-top: 0.25rem;
344
+ margin-top: -1rem;
345
+ }
346
+
347
+
348
+
349
+ .pp_checkbox label,
350
+ .pp_form-radio label {
351
+ position: relative;
352
+ cursor: pointer;
353
+ padding-left: 2rem;
354
+ text-align: left;
355
+ color: #333;
356
+ display: block;
357
+ }
358
+ .pp_checkbox input,
359
+ .pp_form-radio input {
360
+ width: auto;
361
+ opacity: 0.00000001;
362
+ position: absolute;
363
+ left: 0;
364
+ }
365
+
366
+ .pp_radio {
367
+ margin-bottom: 1rem;
368
+ }
369
+ .pp_radio .pp_helper {
370
+ position: absolute;
371
+ top: -0.25rem;
372
+ left: -0.25rem;
373
+ cursor: pointer;
374
+ display: block;
375
+ font-size: 1rem;
376
+ -webkit-user-select: none;
377
+ -moz-user-select: none;
378
+ -ms-user-select: none;
379
+ user-select: none;
380
+ color: #999;
381
+ }
382
+ .pp_radio .pp_helper::before, .pp_radio .pp_helper::after {
383
+ content: '';
384
+ position: absolute;
385
+ left: 0;
386
+ top: 0;
387
+ margin: 0.25rem;
388
+ width: 1rem;
389
+ height: 1rem;
390
+ -webkit-transition: -webkit-transform 0.28s ease;
391
+ transition: -webkit-transform 0.28s ease;
392
+ transition: transform 0.28s ease;
393
+ transition: transform 0.28s ease, -webkit-transform 0.28s ease;
394
+ border-radius: 50%;
395
+ border: 0.125rem solid currentColor;
396
+ }
397
+ .pp_radio .pp_helper::after {
398
+ -webkit-transform: scale(0);
399
+ transform: scale(0);
400
+ background-color: #337ab7;
401
+ border-color: #337ab7;
402
+ }
403
+ .pp_radio label:hover .pp_helper {
404
+ color: #337ab7;
405
+ }
406
+ .pp_radio input:checked ~ .pp_helper::after {
407
+ -webkit-transform: scale(0.5);
408
+ transform: scale(0.5);
409
+ }
410
+ .pp_radio input:checked ~ .pp_helper::before {
411
+ color: #337ab7;
412
+ }
413
+
414
+ .pp_checkbox {
415
+ margin-bottom: 1rem;
416
+ }
417
+ .pp_checkbox .pp_helper {
418
+ color: #999;
419
+ position: absolute;
420
+ top: 0;
421
+ left: 0;
422
+ width: 1rem;
423
+ height: 1rem;
424
+ z-index: 0;
425
+ border: 0.125rem solid currentColor;
426
+ border-radius: 0.0625rem;
427
+ -webkit-transition: border-color 0.28s ease;
428
+ transition: border-color 0.28s ease;
429
+ }
430
+ .pp_checkbox .pp_helper::before, .pp_checkbox .pp_helper::after {
431
+ position: absolute;
432
+ height: 0;
433
+ width: 0.2rem;
434
+ background-color: #337ab7;
435
+ display: block;
436
+ -webkit-transform-origin: left top;
437
+ transform-origin: left top;
438
+ border-radius: 0.25rem;
439
+ content: '';
440
+ -webkit-transition: opacity 0.28s ease, height 0s linear 0.28s;
441
+ transition: opacity 0.28s ease, height 0s linear 0.28s;
442
+ opacity: 0;
443
+ }
444
+ .pp_checkbox .pp_helper::before {
445
+ top: 0.65rem;
446
+ left: 0.38rem;
447
+ -webkit-transform: rotate(-135deg);
448
+ transform: rotate(-135deg);
449
+ box-shadow: 0 0 0 0.0625rem #fff;
450
+ }
451
+ .pp_checkbox .helper::after {
452
+ top: 0.3rem;
453
+ left: 0;
454
+ -webkit-transform: rotate(-45deg);
455
+ transform: rotate(-45deg);
456
+ }
457
+ .pp_checkbox label:hover .pp_helper {
458
+ color: #337ab7;
459
+ }
460
+ .pp_checkbox input:checked ~ .pp_helper {
461
+ color: #337ab7;
462
+ }
463
+ .pp_checkbox input:checked ~ .pp_helper::after, .pp_checkbox input:checked ~ .pp_helper::before {
464
+ opacity: 1;
465
+ -webkit-transition: height 0.28s ease;
466
+ transition: height 0.28s ease;
467
+ }
468
+ .pp_checkbox input:checked ~ .pp_helper::after {
469
+ height: 0.5rem;
470
+ }
471
+ .pp_checkbox input:checked ~ .pp_helper::before {
472
+ height: 1.2rem;
473
+ -webkit-transition-delay: 0.28s;
474
+ transition-delay: 0.28s;
475
+ }
476
+
477
+ .pp_radio + .pp_radio,
478
+ .pp_checkbox + .pp_checkbox {
479
+ margin-top: 1rem;
480
+ }
481
+
482
+ .pp_has-error .pp_legend.pp_legend, .pp_has-error.pp_form-group .pp_control-label.pp_control-label {
483
+ color: #d9534f;
484
+ }
485
+ .pp_has-error.pp_form-group .pp_form-help,
486
+ .pp_has-error.pp_form-group .pp_helper, .pp_has-error.pp_checkbox .pp_form-help,
487
+ .pp_has-error.pp_checkbox .pp_helper, .pp_has-error.pp_radio .pp_form-help,
488
+ .pp_has-error.pp_radio .pp_helper, .pp_has-error.pp_form-radio .pp_form-help,
489
+ .pp_has-error.pp_form-radio .pp_helper {
490
+ color: #d9534f;
491
+ }
492
+ .pp_has-error .pp_bar::before {
493
+ background: #d9534f;
494
+ left: 0;
495
+ width: 100%;
496
+ }
497
+
498
+ .pp_button {
499
+ position: relative;
500
+ background: currentColor;
501
+ border: 1px solid currentColor;
502
+ font-size: 1.1rem;
503
+ color: #1976D2;
504
+ margin: 0;
505
+ padding: 0.75rem 3rem;
506
+ cursor: pointer;
507
+ -webkit-transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
508
+ transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
509
+ overflow: hidden;
510
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
511
+ }
512
+
513
+ .pp_button span {
514
+ color: #fff;
515
+ position: relative;
516
+ z-index: 1;
517
+ }
518
+
519
+ .pp_button::before {
520
+ content: '';
521
+ position: absolute;
522
+ background: #003B75;
523
+ border: 50vh solid #1d4567;
524
+ width: 30vh;
525
+ height: 30vh;
526
+ border-radius: 50%;
527
+ display: block;
528
+ top: 50%;
529
+ left: 50%;
530
+ z-index: 0;
531
+ opacity: 1;
532
+ -webkit-transform: translate(-50%, -50%) scale(0);
533
+ transform: translate(-50%, -50%) scale(0);
534
+ }
535
+ .pp_button:hover {
536
+ color: #003B75;
537
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
538
+ }
539
+ .pp_button:active::before, .pp_button:focus::before {
540
+ -webkit-transition: opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
541
+ transition: opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
542
+ transition: transform 1.12s ease, opacity 0.28s ease 0.364s;
543
+ transition: transform 1.12s ease, opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
544
+ -webkit-transform: translate(-50%, -50%) scale(1);
545
+ transform: translate(-50%, -50%) scale(1);
546
+ opacity: 0;
547
+ }
548
+ .pp_button:focus {
549
+ outline: none;
550
+ }
551
+
552
+ .pp_button_alt {
553
+ position: relative;
554
+ background: #ffffff;
555
+ border: 1px solid #c4c4c4;
556
+ font-size: 1.1rem;
557
+ color: #333;
558
+ margin: 0;
559
+ padding: 0.75rem 3rem;
560
+ cursor: pointer;
561
+ -webkit-transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
562
+ transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
563
+ overflow: hidden;
564
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
565
+ }
566
+
567
+ .pp_button_alt span {
568
+ color: #333;
569
+ position: relative;
570
+ z-index: 1;
571
+ }
572
+
573
+
574
+
575
+ .pp_button_alt::before {
576
+ content: '';
577
+ position: absolute;
578
+ background: #efefef;
579
+ width: 30vh;
580
+ height: 30vh;
581
+ border-radius: 50%;
582
+ display: block;
583
+ top: 50%;
584
+ left: 50%;
585
+ z-index: 0;
586
+ opacity: 1;
587
+ -webkit-transform: translate(-50%, -50%) scale(0);
588
+ transform: translate(-50%, -50%) scale(0);
589
+ }
590
+ .pp_button_alt:hover {
591
+ color: #efefef;
592
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
593
+ }
594
+ .pp_button_alt:active::before, .pp_button_alt:focus::before {
595
+ -webkit-transition: opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
596
+ transition: opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
597
+ transition: transform 1.12s ease, opacity 0.28s ease 0.364s;
598
+ transition: transform 1.12s ease, opacity 0.28s ease 0.364s, -webkit-transform 1.12s ease;
599
+ -webkit-transform: translate(-50%, -50%) scale(1);
600
+ transform: translate(-50%, -50%) scale(1);
601
+ opacity: 0;
602
+ }
603
+ .pp_button_alt:focus {
604
+ outline: none;
605
+ }
606
+
607
+ /* Image */
608
+
609
+ .pp_image {
610
+ height: 50%;
611
+ }
612
+
613
+ .pp_image.pp_fit {
614
+ margin: 0 auto;
615
+ width: 100%;
616
+ }
617
+
618
+ #blubrry-logo-onboarding {
619
+ height: 1.5rem;
620
+ margin: 0 0 0.5ch 1rem;
621
+ vertical-align: bottom;
622
+ }
623
+
624
+ .pp_content {
625
+ height: 50%;
626
+ }
627
+
628
+ .btn-caption-container {
629
+ height: 50%;
630
+ }
631
+
632
+ .pp_image img {
633
+ width: 50%;
634
+ margin: 0 auto;
635
+ }
636
+ .pp_image.center > img {
637
+ display: block;
638
+ margin-left: auto;
639
+ margin-right: auto;
640
+ }
641
+ .pp_button.show_button {
642
+ min-width: 240px;
643
+ margin-top: 15px;
644
+ }
645
+ .pp_input-field-login {
646
+ position: relative;
647
+ }
648
+ .pp_file_upload {
649
+ opacity: 0;
650
+ left: 0;
651
+ top: 0;
652
+ z-index: 999;
653
+ height:50px;
654
+ }
655
+ .pp_file_upload::-webkit-file-upload-button {
656
+ height:50px;
657
+ }
658
+ .image_center {
659
+ display: block;
660
+ margin-left: auto;
661
+ margin-right: auto;
662
+ width: 40%;
663
+ }
664
+
665
+ .image_wrapper {
666
+ width: 100%;
667
+ height: auto;
668
+ }
669
+
670
+ #upload-artwork-button {
671
+ float: right;
672
+ width: auto;
673
+ min-height: 40px;
674
+ margin: 1em 0 0 1em;
675
+ }
676
+ #filepath {
677
+ float: left;
678
+ width: 100%;
679
+ margin: 3ch 0 2em 0;
680
+ }
681
+ #artwork-spec {
682
+ margin-top: 6em;
683
+ }
684
+ #filePath {
685
+ width: 100%;
686
+ }
687
+ .pp_input-field-login, button[name="signin"] {
688
+ width: 40%;
689
+ }
690
+ p, h5.pp_align-center {
691
+ font-size: 16px;
692
+ }
693
+ p.pp-smaller-text {
694
+ font-size: 13px;
695
+ }
696
+
697
+ .wrap div.error {
698
+ border-right-width: 0;
699
+ border-top-width: 0;
700
+ border-bottom-width: 0;
701
+ border-left-width: 3px;
702
+ color: #dc3232;
703
+ box-shadow: none;
704
+ margin-bottom: 0;
705
+ }
706
+
707
+ @media (max-width: 1095px) {
708
+ #showbasics_artwork {
709
+ display: block;
710
+ }
711
+ #artwork-spec {
712
+ margin-top: 0;
713
+ }
714
+ #upload-artwork-button {
715
+ width: 95%;
716
+ text-align: center;
717
+ margin-bottom: 1em;
718
+ margin-left: 0;
719
+ float: left;
720
+ }
721
+ .pp_input-field-login, button[name="signin"] {
722
+ width: 50%;
723
+ }
724
+ }
725
+
726
+ @media (max-width: 736px) {
727
+ .pp_flex-grid {
728
+ display: block;
729
+ }
730
+ .pp_container {
731
+ padding: 3rem 1rem;
732
+ }
733
+ .bpp_input_med {
734
+ width: 100%;
735
+ }
736
+ #showbasics_artwork_upload {
737
+ margin: 0;
738
+ }
739
+ .pp_button_alt, .pp_button {
740
+ padding: 0.75rem;
741
+ }
742
+ }
743
+
744
+ @media (max-width: 610px) {
745
+ #filePath {
746
+ width: 100%;
747
+ }
748
+ }
749
+
750
+ @media (max-width: 475px) {
751
+ .pp_box {
752
+ padding: 1rem;
753
+ }
754
+ .pp_input-field-login, button[name="signin"] {
755
+ width: 90%;
756
+ }
757
+ }
images/blubrry_icon.png ADDED
Binary file
images/onboarding/blubrry.png ADDED
Binary file
images/onboarding/blubrrysignin.png ADDED
Binary file
images/onboarding/cancel.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg id="baseline-error-24px" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 41.836 41.836">
2
+ <path id="Path_101" data-name="Path 101" d="M0,0H41.836V41.836H0Z" fill="none"/>
3
+ <path id="Path_102" data-name="Path 102" d="M19.432,2A17.432,17.432,0,1,0,36.863,19.432,17.438,17.438,0,0,0,19.432,2Zm1.743,26.148H17.689V24.661h3.486Zm0-6.973H17.689V10.716h3.486Z" transform="translate(1.486 1.486)" fill="#e51c23"/>
4
+ </svg>
images/onboarding/checkmark.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg id="baseline-check_circle-24px" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 41 41">
2
+ <path id="Path_99" data-name="Path 99" d="M0,0H41V41H0Z" fill="none"/>
3
+ <path id="Path_100" data-name="Path 100" d="M19.083,2A17.083,17.083,0,1,0,36.167,19.083,17.09,17.09,0,0,0,19.083,2ZM15.667,27.625,7.125,19.083l2.409-2.409,6.133,6.116L28.633,9.824l2.409,2.426Z" transform="translate(1.417 1.417)" fill="#4caf50"/>
4
+ </svg>
images/onboarding/free_tools.png ADDED
Binary file
images/onboarding/mic.png ADDED
Binary file
images/onboarding/no_start.png ADDED
Binary file
images/onboarding/nohost.png ADDED
Binary file
images/onboarding/otherhost.png ADDED
Binary file
images/onboarding/planning.png ADDED
Binary file
images/onboarding/rss.png ADDED
Binary file
images/onboarding/self_host.png ADDED
Binary file
images/onboarding/signinblubrry.png ADDED
Binary file
images/onboarding/signupblubrry.png ADDED
Binary file
images/onboarding/yes_start.png ADDED
Binary file
mp3info.class.php CHANGED
@@ -779,7 +779,9 @@
779
  define('GETID3_TEMP_DIR', $temp_dir);
780
  }
781
 
782
- if( defined('POWERPRESS_GETID3_LIBRARY') && is_file(POWERPRESS_GETID3_LIBRARY) )
 
 
783
  require_once(POWERPRESS_GETID3_LIBRARY);
784
  else if( defined('POWERPRESS_ABSPATH') )
785
  require_once(POWERPRESS_ABSPATH.'/getid3/getid3.php');
779
  define('GETID3_TEMP_DIR', $temp_dir);
780
  }
781
 
782
+ if( !empty($GLOBALS['wp_version']) && version_compare($GLOBALS['wp_version'], 5.2, '>' ) && file_exists(ABSPATH . WPINC . '/ID3/getid3.php') )
783
+ require_once( ABSPATH . WPINC . '/ID3/getid3.php' );
784
+ else if( defined('POWERPRESS_GETID3_LIBRARY') && is_file(POWERPRESS_GETID3_LIBRARY) )
785
  require_once(POWERPRESS_GETID3_LIBRARY);
786
  else if( defined('POWERPRESS_ABSPATH') )
787
  require_once(POWERPRESS_ABSPATH.'/getid3/getid3.php');
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.0.3
7
  Author: Blubrry
8
  Author URI: https://blubrry.com/
9
  Requires at least: 3.6
@@ -35,7 +35,7 @@ if( !function_exists('add_action') ) {
35
  }
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
- define('POWERPRESS_VERSION', '8.0.3' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
@@ -596,7 +596,7 @@ function powerpress_rss2_head()
596
  echo 'Blubrry PowerPress Podcasting plugin for WordPress (https://www.blubrry.com/powerpress/) -->'.PHP_EOL;
597
 
598
  // Websub!
599
- if(!empty($General['websub_enabled']) && $General['websub_enabled'] == 1) {
600
  echo "\t<atom:link rel=\"hub\" href=\"https://pubsubhubbub.appspot.com/\" />" . PHP_EOL;
601
  }
602
 
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.1
7
  Author: Blubrry
8
  Author URI: https://blubrry.com/
9
  Requires at least: 3.6
35
  }
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
+ define('POWERPRESS_VERSION', '8.1' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
596
  echo 'Blubrry PowerPress Podcasting plugin for WordPress (https://www.blubrry.com/powerpress/) -->'.PHP_EOL;
597
 
598
  // Websub!
599
+ if(!(defined('POWERPRESS_DISABLE_WEBSUB') && POWERPRESS_DISABLE_WEBSUB )) {
600
  echo "\t<atom:link rel=\"hub\" href=\"https://pubsubhubbub.appspot.com/\" />" . PHP_EOL;
601
  }
602
 
powerpressadmin-basic.php CHANGED
@@ -7,8 +7,6 @@ function powerpress_admin_basic()
7
 
8
  $General = powerpress_get_settings('powerpress_general');
9
  $General = powerpress_default_settings($General, 'basic');
10
- if( !isset($General['advanced_mode_2']) )
11
- $General['advanced_mode_2'] = true;
12
 
13
  $FeedSettings = powerpress_get_settings('powerpress_feed');
14
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
@@ -58,12 +56,7 @@ function SelectEmbedField(checked)
58
  }
59
 
60
  jQuery(document).ready(function($) {
61
-
62
- jQuery('#powerpress_advanced_mode_button').click( function(event) {
63
- event.preventDefault();
64
- jQuery('#powerpress_advanced_mode').val('0');
65
- jQuery(this).closest("form").submit();
66
- });
67
 
68
  jQuery('#episode_box_player_links_options').change(function () {
69
 
@@ -133,15 +126,11 @@ jQuery(document).ready(function($) {
133
 
134
  <input type="hidden" name="action" value="powerpress-save-settings" />
135
 
136
-
137
- <input type="hidden" id="powerpress_advanced_mode" name="General[advanced_mode_2]" value="1" />
138
  <input type="hidden" id="save_tab_pos" name="tab" value="<?php echo (empty($_POST['tab'])?0: intval($_POST['tab']) ); ?>" />
139
 
140
  <div id="powerpress_admin_header">
141
  <h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
142
- <span class="powerpress-mode"><?php echo __('Advanced Mode', 'powerpress'); ?>
143
- &nbsp; <a href="<?php echo admin_url("admin.php?page=". urlencode(powerpress_admin_get_page()) ."&amp;mode=simple"); ?>" id="powerpress_advanced_mode_button" class="button-primary button-blubrry"><?php echo __('Switch to Simple Mode', 'powerpress'); ?></a>
144
- </span>
145
  </div>
146
 
147
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
@@ -1041,6 +1030,11 @@ function powerpressadmin_edit_blubrry_services($General, $action_url = false, $a
1041
  <input name="DisableStatsInDashboard" type="checkbox" value="1"<?php if( $DisableStatsInDashboard == true ) echo ' checked'; ?> />
1042
  <?php echo __('Remove Statistics from WordPress Dashboard', 'powerpress'); ?></p>
1043
  <p>
 
 
 
 
 
1044
  <input type="checkbox" id="blubrry_network_mode" value="1" name="General[network_mode]" <?php echo $General['network_mode'] == '1' ? 'checked' : ''; ?> />
1045
  <label for="blubrry_network_mode"><?php echo __('Network mode (publish to multiple Blubrry Hosting Accounts)', 'powerpress') ?></label>
1046
  </p>
@@ -1169,8 +1163,7 @@ function powerpressadmin_appearance($General=false, $Feed = false)
1169
 
1170
  ?>
1171
 
1172
- <!-- start advanced features -->
1173
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1174
  <h3><?php echo __('Website Settings', 'powerpress'); ?></h3>
1175
  <div id="enable_presentation_settings">
1176
  <table class="form-table">
@@ -1196,8 +1189,7 @@ function powerpressadmin_appearance($General=false, $Feed = false)
1196
  </div><!-- end enable_presentation_settings -->
1197
  <div id="presentation_settings"<?php if($General['disable_appearance']) echo ' style="display: none;"'; ?>>
1198
  <!-- start presentation_settings in advanced mode -->
1199
- <!-- end advanced features -->
1200
- <?php } ?>
1201
 
1202
  <h3><?php echo __('Blog Posts and Pages', 'powerpress'); ?></h3>
1203
 
@@ -1231,8 +1223,7 @@ function powerpressadmin_appearance($General=false, $Feed = false)
1231
  </tr>
1232
  </table>
1233
 
1234
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1235
- <!-- start advanced features -->
1236
  <table class="form-table">
1237
  <tr valign="top">
1238
  <th scope="row">
@@ -1331,8 +1322,7 @@ function powerpressadmin_appearance($General=false, $Feed = false)
1331
  </table>
1332
 
1333
  <?php powerpressadmin_settings_tab_appearance($General, $Feed, false); ?>
1334
- <!-- end advanced features -->
1335
- <?php } ?>
1336
 
1337
 
1338
  <table class="form-table">
@@ -1357,17 +1347,13 @@ foreach( $linkoptions as $value => $desc )
1357
  <p style="margin-top: 5px;">
1358
  <?php echo __('Use this option if you are having problems with the players not appearing on some or all of your pages.', 'powerpress'); ?>
1359
  </p>
1360
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1361
  <p style="margin-top: 20px; margin-bottom:0;">
1362
  <?php echo __('If the above option fixes the player issues, then you most likely have a conflicting theme or plugin activated. You can verify your theme is not causing the problem by testing your site using the latest default WordPress theme (twentyfourteen). For plugins, disable them one by one until the player re-appears, which indicates the last plugin deactivated caused the conflict.', 'powerpress'); ?>
1363
  </p>
1364
- <?php } ?>
1365
  </td>
1366
  </tr>
1367
  </table>
1368
 
1369
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1370
- <!-- start advanced features -->
1371
  <div id="new_window_settings" style="display: <?php echo ( $General['player_function']==1 || $General['player_function']==3 ?'block':'none'); ?>">
1372
  <h3><?php echo __('Play in New Window Settings', 'powerpress'); ?></h3>
1373
  <table class="form-table">
@@ -1409,8 +1395,7 @@ foreach( $linkoptions as $value => $desc )
1409
 
1410
  </div><!-- end presentation_settings in advanced mode -->
1411
  <!-- end presentation settings -->
1412
- <!-- end advanced features -->
1413
- <?php } ?>
1414
  <?php
1415
  } // End powerpress_admin_appearance()
1416
 
@@ -1554,11 +1539,7 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
1554
  </p>
1555
  <div style="display:none" id="itunes_image_upload">
1556
  <label for="itunes_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" id="itunes_image_file" name="itunes_image_file" /><br />
1557
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1558
  <div style="margin-left: 85px;"><label class="powerpress-normal-font"><input name="itunes_image_checkbox_as_rss" type="checkbox" value="1" onchange="powerpress_show_field('rss_image_upload_container', !this.checked)" /> <?php echo __('Also use as RSS image', 'powerpress'); ?></label></div>
1559
- <?php } else { ?>
1560
- <input type="hidden" name="itunes_image_checkbox_as_rss" value="1" />
1561
- <?php } ?>
1562
  </div>
1563
  <?php } ?>
1564
  </td>
@@ -1566,7 +1547,6 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
1566
  </table>
1567
 
1568
 
1569
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1570
  <table class="form-table">
1571
  <tr valign="top">
1572
  <th scope="row">
@@ -1609,7 +1589,7 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
1609
  </tr>
1610
  </table>
1611
  <?php
1612
- }
1613
  }
1614
 
1615
 
7
 
8
  $General = powerpress_get_settings('powerpress_general');
9
  $General = powerpress_default_settings($General, 'basic');
 
 
10
 
11
  $FeedSettings = powerpress_get_settings('powerpress_feed');
12
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
56
  }
57
 
58
  jQuery(document).ready(function($) {
59
+
 
 
 
 
 
60
 
61
  jQuery('#episode_box_player_links_options').change(function () {
62
 
126
 
127
  <input type="hidden" name="action" value="powerpress-save-settings" />
128
 
 
 
129
  <input type="hidden" id="save_tab_pos" name="tab" value="<?php echo (empty($_POST['tab'])?0: intval($_POST['tab']) ); ?>" />
130
 
131
  <div id="powerpress_admin_header">
132
  <h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
133
+
 
 
134
  </div>
135
 
136
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
1030
  <input name="DisableStatsInDashboard" type="checkbox" value="1"<?php if( $DisableStatsInDashboard == true ) echo ' checked'; ?> />
1031
  <?php echo __('Remove Statistics from WordPress Dashboard', 'powerpress'); ?></p>
1032
  <p>
1033
+ <?php
1034
+ if (!isset($General['network_mode'])) {
1035
+ $General['network_mode'] = 0;
1036
+ }
1037
+ ?>
1038
  <input type="checkbox" id="blubrry_network_mode" value="1" name="General[network_mode]" <?php echo $General['network_mode'] == '1' ? 'checked' : ''; ?> />
1039
  <label for="blubrry_network_mode"><?php echo __('Network mode (publish to multiple Blubrry Hosting Accounts)', 'powerpress') ?></label>
1040
  </p>
1163
 
1164
  ?>
1165
 
1166
+
 
1167
  <h3><?php echo __('Website Settings', 'powerpress'); ?></h3>
1168
  <div id="enable_presentation_settings">
1169
  <table class="form-table">
1189
  </div><!-- end enable_presentation_settings -->
1190
  <div id="presentation_settings"<?php if($General['disable_appearance']) echo ' style="display: none;"'; ?>>
1191
  <!-- start presentation_settings in advanced mode -->
1192
+
 
1193
 
1194
  <h3><?php echo __('Blog Posts and Pages', 'powerpress'); ?></h3>
1195
 
1223
  </tr>
1224
  </table>
1225
 
1226
+
 
1227
  <table class="form-table">
1228
  <tr valign="top">
1229
  <th scope="row">
1322
  </table>
1323
 
1324
  <?php powerpressadmin_settings_tab_appearance($General, $Feed, false); ?>
1325
+
 
1326
 
1327
 
1328
  <table class="form-table">
1347
  <p style="margin-top: 5px;">
1348
  <?php echo __('Use this option if you are having problems with the players not appearing on some or all of your pages.', 'powerpress'); ?>
1349
  </p>
 
1350
  <p style="margin-top: 20px; margin-bottom:0;">
1351
  <?php echo __('If the above option fixes the player issues, then you most likely have a conflicting theme or plugin activated. You can verify your theme is not causing the problem by testing your site using the latest default WordPress theme (twentyfourteen). For plugins, disable them one by one until the player re-appears, which indicates the last plugin deactivated caused the conflict.', 'powerpress'); ?>
1352
  </p>
 
1353
  </td>
1354
  </tr>
1355
  </table>
1356
 
 
 
1357
  <div id="new_window_settings" style="display: <?php echo ( $General['player_function']==1 || $General['player_function']==3 ?'block':'none'); ?>">
1358
  <h3><?php echo __('Play in New Window Settings', 'powerpress'); ?></h3>
1359
  <table class="form-table">
1395
 
1396
  </div><!-- end presentation_settings in advanced mode -->
1397
  <!-- end presentation settings -->
1398
+
 
1399
  <?php
1400
  } // End powerpress_admin_appearance()
1401
 
1539
  </p>
1540
  <div style="display:none" id="itunes_image_upload">
1541
  <label for="itunes_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" id="itunes_image_file" name="itunes_image_file" /><br />
 
1542
  <div style="margin-left: 85px;"><label class="powerpress-normal-font"><input name="itunes_image_checkbox_as_rss" type="checkbox" value="1" onchange="powerpress_show_field('rss_image_upload_container', !this.checked)" /> <?php echo __('Also use as RSS image', 'powerpress'); ?></label></div>
 
 
 
1543
  </div>
1544
  <?php } ?>
1545
  </td>
1547
  </table>
1548
 
1549
 
 
1550
  <table class="form-table">
1551
  <tr valign="top">
1552
  <th scope="row">
1589
  </tr>
1590
  </table>
1591
  <?php
1592
+
1593
  }
1594
 
1595
 
powerpressadmin-editfeed.php CHANGED
@@ -277,10 +277,8 @@ function powerpress_admin_editfeed($type='', $type_value = '', $feed_slug = fals
277
  <div id="feed_tab_feed" class="powerpress_tab">
278
  <?php
279
  powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttribs );
280
- if( !empty($General['advanced_mode_2']) ) {
281
- powerpressadmin_edit_funding($FeedSettings, $feed_slug);
282
- powerpressadmin_edit_tv($FeedSettings, $feed_slug);
283
- }
284
  ?>
285
  </div>
286
 
@@ -374,16 +372,16 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
374
 
375
  <?php echo __('Enhance Feeds', 'powerpress'); ?></th>
376
  <td>
377
- <ul>
378
- <li><p><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> <?php echo __('Enhance All Feeds', 'powerpress'); ?></label> (<?php echo __('Recommended', 'powerpress'); ?>)</p>
379
- <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Adds podcasting support to all feeds', 'powerpress'); ?></p>
380
- </li>
381
- <li><p><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> <?php echo __('Enhance Main Feed Only', 'powerpress'); ?></label></p>
382
- <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Adds podcasting support to your main feed only', 'powerpress'); ?></p></li>
383
- <li><p><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> <?php echo __('Do Not Enhance Feeds', 'powerpress'); ?></label></p>
384
- <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Feed Settings below will only apply to your podcast channel feeds', 'powerpress'); ?></p></li>
385
- </ul>
386
- </td>
387
  </tr>
388
  <tr valign="top">
389
  <th scope="row">
@@ -441,7 +439,7 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
441
  <th scope="row">
442
  <?php echo __('WebSub', 'powerpress'); ?> <?php echo powerpressadmin_new(); ?></th>
443
  <td>
444
- <p style="margin-top: 10px;"><label><input type="checkbox" name="General[websub_enabled]" value="1" <?php if( !empty($General['websub_enabled']) && $General['websub_enabled'] == 1 ) echo 'checked '; ?>/> <?php echo __('Enable WebSub', 'powerpress'); ?></label></p>
445
  <p><?php echo __('Notifies web subscription hub to push notifications to subscribers. Currently supported by the Blubrry Podcast Directory and Google Podcasts.', 'powerpress'); ?></p>
446
  </td>
447
  </tr>
@@ -572,8 +570,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
572
  </td>
573
  </tr>
574
 
575
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
576
- <!-- start advanced features -->
577
  <tr valign="top">
578
  <th scope="row">
579
  <?php echo __('Feed Description', 'powerpress'); ?>
@@ -703,8 +700,6 @@ if( isset($Languages[ $rss_language ]) )
703
  </td>
704
  </tr>
705
 
706
- <!-- end advanced features -->
707
- <?php } ?>
708
  </table>
709
 
710
  <!-- Location and frequency information -->
@@ -714,8 +709,7 @@ if( isset($Languages[ $rss_language ]) )
714
  if( !isset($FeedSettings['frequency']) )
715
  $FeedSettings['frequency'] = '';
716
  ?>
717
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
718
- <!-- start advanced features -->
719
  <h3><?php echo __('Basic Show Information', 'powerpress'); ?></h3>
720
  <div id="rawvoice_basic_options">
721
  <table class="form-table">
@@ -735,9 +729,8 @@ if( isset($Languages[ $rss_language ]) )
735
  </tr>
736
  </table>
737
  </div>
738
- <!-- end advanced features -->
739
  <?php
740
- }
741
  }
742
 
743
 
@@ -878,10 +871,7 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $FeedAttribs
878
  </td>
879
  </tr>
880
 
881
- <?php
882
- if( !empty($General['advanced_mode_2']) )
883
- {
884
- ?>
885
  <tr valign="top">
886
  <th scope="row">
887
 
@@ -913,7 +903,6 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $FeedAttribs
913
  </tr>
914
  <?php
915
  } // End iTunes keywords
916
- } // end advanced mode
917
  ?>
918
 
919
  <tr valign="top">
@@ -1144,8 +1133,7 @@ foreach( $explicit as $value=> $desc )
1144
  </p>
1145
  </td>
1146
  </tr>
1147
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1148
- <!-- start advanced features -->
1149
  <tr valign="top">
1150
  <th scope="row">
1151
  <?php echo __('iTunes Author Name', 'powerpress'); ?>
@@ -1161,8 +1149,7 @@ foreach( $explicit as $value=> $desc )
1161
  <?php } ?>
1162
  </td>
1163
  </tr>
1164
- <!-- end advanced features -->
1165
- <?php } ?>
1166
 
1167
  <tr valign="top">
1168
  <th scope="row">
@@ -1201,8 +1188,7 @@ foreach( $types as $value=> $desc )
1201
 
1202
  </table>
1203
 
1204
- <?php if( !empty($General['advanced_mode_2']) ) { ?>
1205
- <!-- start advanced features -->
1206
  <table class="form-table">
1207
  <tr valign="top">
1208
  <th scope="row" >
@@ -1362,8 +1348,7 @@ foreach( $types as $value=> $desc )
1362
  </table>
1363
  </div>
1364
  </fieldset>
1365
- <!-- end advanced features -->
1366
- <?php } // end other advanced options ?>
1367
  <?php
1368
  }
1369
 
277
  <div id="feed_tab_feed" class="powerpress_tab">
278
  <?php
279
  powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttribs );
280
+ powerpressadmin_edit_funding($FeedSettings, $feed_slug);
281
+ powerpressadmin_edit_tv($FeedSettings, $feed_slug);
 
 
282
  ?>
283
  </div>
284
 
372
 
373
  <?php echo __('Enhance Feeds', 'powerpress'); ?></th>
374
  <td>
375
+ <ul>
376
+ <li><p><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> <?php echo __('Enhance All Feeds', 'powerpress'); ?></label> (<?php echo __('Recommended', 'powerpress'); ?>)</p>
377
+ <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Adds podcasting support to all feeds', 'powerpress'); ?></p>
378
+ </li>
379
+ <li><p><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> <?php echo __('Enhance Main Feed Only', 'powerpress'); ?></label></p>
380
+ <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Adds podcasting support to your main feed only', 'powerpress'); ?></p></li>
381
+ <li><p><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> <?php echo __('Do Not Enhance Feeds', 'powerpress'); ?></label></p>
382
+ <p style="font-size: 100%; margin: 0 0 0 30px;"><?php echo __('Feed Settings below will only apply to your podcast channel feeds', 'powerpress'); ?></p></li>
383
+ </ul>
384
+ </td>
385
  </tr>
386
  <tr valign="top">
387
  <th scope="row">
439
  <th scope="row">
440
  <?php echo __('WebSub', 'powerpress'); ?> <?php echo powerpressadmin_new(); ?></th>
441
  <td>
442
+ <p style="margin-top: 10px;"><label><input type="checkbox" value="1" disabled <?php if(!(defined('POWERPRESS_DISABLE_WEBSUB') && POWERPRESS_DISABLE_WEBSUB )) echo 'checked '; ?>/> <?php echo __('Enable WebSub', 'powerpress'); ?></label></p>
443
  <p><?php echo __('Notifies web subscription hub to push notifications to subscribers. Currently supported by the Blubrry Podcast Directory and Google Podcasts.', 'powerpress'); ?></p>
444
  </td>
445
  </tr>
570
  </td>
571
  </tr>
572
 
573
+
 
574
  <tr valign="top">
575
  <th scope="row">
576
  <?php echo __('Feed Description', 'powerpress'); ?>
700
  </td>
701
  </tr>
702
 
 
 
703
  </table>
704
 
705
  <!-- Location and frequency information -->
709
  if( !isset($FeedSettings['frequency']) )
710
  $FeedSettings['frequency'] = '';
711
  ?>
712
+
 
713
  <h3><?php echo __('Basic Show Information', 'powerpress'); ?></h3>
714
  <div id="rawvoice_basic_options">
715
  <table class="form-table">
729
  </tr>
730
  </table>
731
  </div>
 
732
  <?php
733
+
734
  }
735
 
736
 
871
  </td>
872
  </tr>
873
 
874
+
 
 
 
875
  <tr valign="top">
876
  <th scope="row">
877
 
903
  </tr>
904
  <?php
905
  } // End iTunes keywords
 
906
  ?>
907
 
908
  <tr valign="top">
1133
  </p>
1134
  </td>
1135
  </tr>
1136
+
 
1137
  <tr valign="top">
1138
  <th scope="row">
1139
  <?php echo __('iTunes Author Name', 'powerpress'); ?>
1149
  <?php } ?>
1150
  </td>
1151
  </tr>
1152
+
 
1153
 
1154
  <tr valign="top">
1155
  <th scope="row">
1188
 
1189
  </table>
1190
 
1191
+
 
1192
  <table class="form-table">
1193
  <tr valign="top">
1194
  <th scope="row" >
1348
  </table>
1349
  </div>
1350
  </fieldset>
1351
+
 
1352
  <?php
1353
  }
1354
 
powerpressadmin-jquery.php CHANGED
@@ -593,8 +593,7 @@ window.onload = function() {
593
  {
594
  $Programs = array();
595
  $ProgramHosting = array();
596
-
597
- // Anytime we change the password we need to test it...
598
  $auth = base64_encode( $SaveSettings['blubrry_username'] . ':' . $Password );
599
  $json_data = false;
600
  $api_url_array = powerpress_get_api_array();
@@ -609,7 +608,8 @@ window.onload = function() {
609
  if( $json_data != false )
610
  break;
611
  }
612
-
 
613
  if( $json_data )
614
  {
615
  $results = powerpress_json_decode($json_data);
@@ -648,7 +648,7 @@ window.onload = function() {
648
  if( count($Programs) > 0 )
649
  {
650
  $SaveSettings['blubrry_auth'] = $auth;
651
-
652
  if( !empty($SaveSettings['blubrry_program_keyword']) )
653
  {
654
  powerpress_add_blubrry_redirect($SaveSettings['blubrry_program_keyword']);
593
  {
594
  $Programs = array();
595
  $ProgramHosting = array();
596
+ // Anytime we change the password we need to test it...
 
597
  $auth = base64_encode( $SaveSettings['blubrry_username'] . ':' . $Password );
598
  $json_data = false;
599
  $api_url_array = powerpress_get_api_array();
608
  if( $json_data != false )
609
  break;
610
  }
611
+
612
+
613
  if( $json_data )
614
  {
615
  $results = powerpress_json_decode($json_data);
648
  if( count($Programs) > 0 )
649
  {
650
  $SaveSettings['blubrry_auth'] = $auth;
651
+
652
  if( !empty($SaveSettings['blubrry_program_keyword']) )
653
  {
654
  powerpress_add_blubrry_redirect($SaveSettings['blubrry_program_keyword']);
powerpressadmin-ping-sites.php CHANGED
@@ -20,37 +20,11 @@
20
  {
21
  powerpress_page_message_add_notice( __('No update services selected to add.', 'powerpress') );
22
  }
23
- if(!empty($_POST['PowerPressWebsub']['enable']) && $_POST['PowerPressWebsub']['enable'] == '1') {
24
- powerpress_save_settings(array('websub_enabled' => 1), 'powerpress_general');
25
- }
26
- else {
27
- powerpress_save_settings(array('websub_enabled' => 0), 'powerpress_general');
28
- }
29
- if( !empty($_POST['PowerPressWebsub']['feed']) ) {
30
- require_once( 'class.powerpresswebsub.php' );
31
- $Websub = new PowerPressWebSub();
32
- $success = false;
33
- try {
34
- $success = $Websub->publish($_POST['PowerPressWebsub']['feed']);
35
- } catch (Exception $e) {
36
- powerpress_page_message_add_error( $e->getMessage() );
37
- }
38
- if( $success ) {
39
- powerpress_page_message_add_notice( __('Google PubSubHubbub test successful.', 'powerpress') );
40
- }
41
- }
42
  }
43
 
44
  function powerpress_admin_ping_sites()
45
  {
46
  $ping_sites = get_option('ping_sites');
47
- $GeneralSettings = powerpress_get_settings('powerpress_general');
48
- if(!empty($GeneralSettings['websub_enabled']) && $GeneralSettings['websub_enabled'] == 1) {
49
- $websub_enabled = true;
50
- }
51
- else {
52
- $websub_enabled = false;
53
- }
54
  $BlogSites = array('http://rpc.pingomatic.com/'=> __('Ping-o-Matic!', 'powerpress'),
55
  'http://blogsearch.google.com/ping/RPC2'=> __('Google Blog Search', 'powerpress'),
56
  'http://rssrpc.weblogs.com/RPC2'=> __('WebLogs', 'powerpress') );
@@ -66,7 +40,7 @@
66
 
67
  <table class="form-table">
68
  <tr valign="top">
69
- <th scope="row"><?php echo __('Update Blog Searvices', 'powerpress'); ?></th>
70
  <td>
71
  <p><?php echo __('Select the blog service you would like to notify.', 'powerpress'); ?></p>
72
  <?php
@@ -90,7 +64,7 @@
90
  </tr>
91
 
92
  <tr valign="top">
93
- <th scope="row"><?php echo __('Update Podcast Searvices', 'powerpress'); ?></th>
94
  <td>
95
  <p><?php echo __('Select the podcasting service you would like to notify.', 'powerpress'); ?></p>
96
  <?php
@@ -112,18 +86,6 @@
112
  ?>
113
  </td>
114
  </tr>
115
- <tr valign="top">
116
- <th scope="row"><?php echo __('Websub', 'powerpress'); ?></th>
117
- <td>
118
- <p><?php echo __('Websub allows you to notify podcast directories such as Google Podcasts immediately when you post a new episode', 'powerpress'); ?></p>
119
- <p><input name="PowerPressWebsub[enable]" id="PowerPressWebsub[enable]" type="checkbox" value="1" <?php echo $websub_enabled ? 'checked' : '' ?> /><label for="PowerPressWebsub[enable]">Enable? </label></p>
120
- <p><?php echo __('You can also update the hub manually below. This is useful for testing purposes.', 'powerpress'); ?></p>
121
- <p><label for="PowerPressWebsub[feed]">Feed URL: <input name="PowerPressWebsub[feed]" type="text" /></label><input type="submit" name="testWebsub" class="button-primary button-blubrry" value="Send Test"></p>
122
- <?php
123
-
124
- ?>
125
- </td>
126
- </tr>
127
 
128
  </table>
129
  <p>
20
  {
21
  powerpress_page_message_add_notice( __('No update services selected to add.', 'powerpress') );
22
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  }
24
 
25
  function powerpress_admin_ping_sites()
26
  {
27
  $ping_sites = get_option('ping_sites');
 
 
 
 
 
 
 
28
  $BlogSites = array('http://rpc.pingomatic.com/'=> __('Ping-o-Matic!', 'powerpress'),
29
  'http://blogsearch.google.com/ping/RPC2'=> __('Google Blog Search', 'powerpress'),
30
  'http://rssrpc.weblogs.com/RPC2'=> __('WebLogs', 'powerpress') );
40
 
41
  <table class="form-table">
42
  <tr valign="top">
43
+ <th scope="row"><?php echo __('Update Blog Services', 'powerpress'); ?></th>
44
  <td>
45
  <p><?php echo __('Select the blog service you would like to notify.', 'powerpress'); ?></p>
46
  <?php
64
  </tr>
65
 
66
  <tr valign="top">
67
+ <th scope="row"><?php echo __('Update Podcast Services', 'powerpress'); ?></th>
68
  <td>
69
  <p><?php echo __('Select the podcasting service you would like to notify.', 'powerpress'); ?></p>
70
  <?php
86
  ?>
87
  </td>
88
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
89
 
90
  </table>
91
  <p>
powerpressadmin-rss-import.php CHANGED
@@ -30,8 +30,10 @@ class PowerPress_RSS_Podcast_Import extends WP_Importer {
30
  var $m_item_migrate_count = 0;
31
  var $m_step = 0;
32
  var $m_errors = array();
33
-
34
- function migrateCount() {
 
 
35
  return $this->m_item_migrate_count;
36
  }
37
 
@@ -54,69 +56,73 @@ class PowerPress_RSS_Podcast_Import extends WP_Importer {
54
  function addError($msg) {
55
  $this->m_errors[] = $msg;
56
  }
57
-
58
 
59
  function header() {
60
- echo '<div class="wrap" style="padding-left: 5%">';
61
-
 
 
 
 
 
 
 
 
 
 
 
 
62
  if( !empty($_GET['import']) )
63
  {
64
  switch($_GET['import'] )
65
  {
66
- case 'powerpress-soundcloud-rss-podcast': echo '<h2>'.__('Import Podcast from SoundCloud', 'powerpress').'</h2>'; break;
67
- case 'powerpress-libsyn-rss-podcast': echo '<h2>'.__('Import Podcast from LibSyn', 'powerpress').'</h2>'; break;
68
- case 'powerpress-podbean-rss-podcast': echo '<h2>'.__('Import Podcast from PodBean', 'powerpress').'</h2>'; break;
69
- case 'powerpress-squarespace-rss-podcast': echo '<h2>'.__('Import Podcast from Squarespace', 'powerpress').'</h2>'; break;
70
- case 'powerpress-anchor-rss-podcast': echo '<h2>'.__('Import Podcast from Anchor.fm', 'powerpress').'</h2>'; break;
71
- case 'powerpress-rss-podcast':
72
- default: echo '<h2>'.__('Import Podcast RSS Feed', 'powerpress').'</h2>'; break;
73
  }
74
  }
75
  else
76
  {
77
- echo '<h2>'.__('Podcast RSS Import', 'powerpress').'</h2>';
78
  }
79
- }
80
-
81
- function footer() {
82
- echo '</div>';
83
- }
84
-
85
- function greet() {
86
- $General = powerpress_get_settings('powerpress_general');
87
  ?>
88
- <div class="wrap">
89
-
90
- <p><?php echo __('The following tool will import your podcast episodes to this website.', 'powerpress'); ?></p>
91
-
92
  <form enctype="multipart/form-data" action="" method="post" name="import-podcast-feed">
93
  <?php wp_nonce_field('import-powerpress-rss') ?>
94
-
95
- <div style="width: 70%; margin: auto; height: 8em;">
96
  <input type="hidden" name="step" value="1" />
97
  <input type="hidden" name="import" value="<?php echo( !empty($_REQUEST['import']) ? htmlspecialchars($_REQUEST['import']) : ''); ?>" />
98
  <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo wp_max_upload_size(); ?>" />
99
- <div style="width: 48%;" class="alignleft">
100
- <h3><label for="podcast_feed_url"><?php _e('Podcast Feed URL:', 'powerpress'); ?></label></h3>
101
- <?php
102
- $placeholder = 'https://example.com/feed.xml';
103
- switch($_GET['import']) {
104
- case 'powerpress-soundcloud-rss-podcast': $placeholder = 'http://feeds.soundcloud.com/users/soundcloud:users:00000000/sounds.rss'; break;
105
- case 'powerpress-libsyn-rss-podcast': $placeholder = 'http://yourshow.libsyn.com/rss'; break;
106
- case 'powerpress-podbean-rss-podcast': $placeholder = 'http://yourshow.podbean.com/feed/'; break;
107
- case 'powerpress-squarespace-rss-podcast': $placeholder = 'http://example.com/podcast/?format=rss'; break;
108
- case 'powerpress-anchor-rss-podcast': $placeholder = 'https://anchor.fm/s/xxxxxx/podcast/rss'; break;
109
- }
110
- ?>
111
- <input type="text" name="podcast_feed_url" id="podcast_feed_url" size="50" class="code" style="width: 90%;" placeholder="<?php echo esc_attr($placeholder); ?>" />
 
 
112
  </div>
113
-
114
- <div style="width: 48%;" class="alignleft">
115
  <h3><label for="podcast_feed_file"><?php _e('Or choose from your local disk:', 'powerpress'); ?></label></h3>
116
  <input id="podcast_feed_file" name="podcast_feed_file" type="file" />
117
  </div>
118
 
119
  </div>
 
120
  <!--
121
  <p><?php echo sprintf(__('Importing your feed does not migrate your media files. Please use the %s tool to migrate your media once your feed is imported.', 'powerpress'), '<strong><a href="'.admin_url('admin.php?page=powerpress/powerpressadmin_migrate.php') .'">'. __('Migrate Media', 'powerpress') .'</a></strong>'); ?></p>
122
  -->
@@ -132,20 +138,35 @@ class PowerPress_RSS_Podcast_Import extends WP_Importer {
132
  }
133
 
134
  </style>
135
- <div class="submit">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
  <div class="ppi-option">
138
  <h3><?php echo __('Import Podcast To', 'powerpress'); ?></h3>
139
  </div>
140
- <div style="">
141
  <div class="ppi-option">
142
  <label><input type="radio" name="import_to" id="import_to_default" value="default" checked /> <?php echo __('Default podcast feed', 'powerpress'); ?></label><br />
143
  <div class="import-to" id="import-to-default" style="display: none;">
144
  <div style="margin: 10px 0 10px 24px;">
145
- <label><input type="checkbox" name="import_overwrite_program_info" value="1"> <?php echo __('Import program information', 'powerpress'); ?></label>
146
  </div>
147
  <div style="margin: 10px 0 10px 24px;">
148
- <label><input type="checkbox" name="import_itunes_image" value="1"> <?php echo __('Import iTunes artwork', 'powerpress'); ?></label>
149
  </div>
150
  </div>
151
  </div>
@@ -290,7 +311,10 @@ if( !empty($PowerPressTaxonomies) ) { // If taxonomy podcasting feeds exist..
290
  } // End if taxonomy podcasting enabled
291
  ?>
292
  </div>
293
- <div class="ppi-option">
 
 
 
294
  <h3><?php echo __('Blubrry Podcast Media Hosting', 'powerpress'); ?></h3>
295
  <?php
296
  if( empty($General['blubrry_hosting']) || $General['blubrry_hosting'] === 'false' ) {
@@ -307,7 +331,6 @@ if( !empty($PowerPressTaxonomies) ) { // If taxonomy podcasting feeds exist..
307
  <?php
308
  }
309
  ?>
310
- </div>
311
  <link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>css/admin.css" type="text/css" media="screen" />
312
  <script language="javascript"><!--
313
 
@@ -369,10 +392,18 @@ jQuery(document).ready( function() {
369
  <input type="text" name="import_item_limit" id="import_item_limit" class="small-text" value="" /> (<?php echo __('leave blank for no limit', 'powerpress'); ?>)
370
  </div>
371
  </div>
372
- <?php submit_button( __('Import Podcast', 'powerpress' ), 'button-blubrry'); ?>
 
373
  </div>
 
 
 
 
 
 
374
  </form>
375
  </div>
 
376
  <script>
377
  jQuery(document).ready( function() {
378
 
@@ -583,7 +614,7 @@ jQuery(document).ready( function() {
583
  if( preg_match_all('|<itunes:category.*text="(.*?)"|is', $channel, $matches) ) {
584
  $pos = 1;
585
  $itunes_categories = $matches[1];
586
- $Categories = powerpress_itunes_categories();
587
  $Categories = array_map('strtolower', $Categories);
588
  $cats_by_title = array_flip( $Categories );
589
 
@@ -624,7 +655,7 @@ jQuery(document).ready( function() {
624
  foreach( $FinalCats as $field_no => $cat_id ) {
625
  if( empty( $cat_id) )
626
  continue;
627
- $field = sprintf('itunes_cat_%d', $field_no);
628
 
629
  if( $overwrite || empty($Feed[ $field ]) ) {
630
  $NewSettings[ $field ] = $cat_id;
@@ -733,7 +764,7 @@ jQuery(document).ready( function() {
733
  $this->m_item_skipped_count++;
734
  return false;
735
  }
736
-
737
  echo ' - ';
738
  }
739
  if( !empty($enclosure_data[1]) ) {
@@ -761,7 +792,9 @@ jQuery(document).ready( function() {
761
  }
762
  $media_url = $enclosure['url'];
763
  }
764
-
 
 
765
  $post_date_gmt = false;
766
  if( preg_match('|<pubdate>(.*?)</pubdate>|is', $post, $matches) ) {
767
  $post_date_gmt = strtotime($matches[1]);
@@ -789,7 +822,11 @@ jQuery(document).ready( function() {
789
 
790
  if( !empty($exists) )
791
  {
792
- echo sprintf(__('<i>%s</i> already imported.', 'powerpress'), htmlspecialchars($post_title) );
 
 
 
 
793
  $this->m_item_skipped_count++;
794
  return false;
795
  }
@@ -841,28 +878,24 @@ jQuery(document).ready( function() {
841
  $this->m_item_inserted_count++;
842
 
843
  $post_id = $this->_import_post_to_db($post_to_save, $feed_slug);
844
- if( empty($post_id) ) {
845
- echo '<span style="color: red; font-weight: bold;">';
846
- echo sprintf(__('<i>%s</i> import failed.', 'powerpress'), htmlspecialchars($post_title) );
847
- echo '</span>';
848
- return false;
849
- }
850
-
851
- if ( is_wp_error( $post_id ) ) {
852
-
853
- echo '<span style="color: red; font-weight: bold;">';
854
- echo sprintf(__('<i>%s</i> import failed: ' , 'powerpress'), htmlspecialchars($post_title) );
855
- echo '</span>';
856
  return false;
857
  }
858
-
859
- echo '<span style="color: green; font-weight: bold;">';
860
- echo sprintf(__('<i>%s</i> imported.', 'powerpress'), htmlspecialchars($post_title) );
861
- echo '</span>';
 
 
862
 
863
  // Display a link to the blog post
864
- echo ' <a href="'. get_permalink($post_id) .'" target="_blank"><i class="wp-menu-image dashicons-before dashicons-admin-links"></i></a>';
865
-
866
  // Category strict
867
  if( !empty($category_strict) )
868
  {
@@ -929,7 +962,8 @@ jQuery(document).ready( function() {
929
 
930
  $item_count = substr_count( $this->m_content, '<item>');
931
  $item_count += substr_count( $this->m_content, '<ITEM>');
932
-
 
933
  echo '<h3>Diagnostic information</h3>';
934
  echo '<ul>';
935
  if( !empty($ttid) )
@@ -946,21 +980,107 @@ jQuery(document).ready( function() {
946
  echo sprintf( '<li>Category: %s</li>', $category);
947
 
948
  echo sprintf( '<li>Remove query string: %s</li>', ( !empty($remove_query_string)?'true':'false') );
949
-