PowerPress Podcasting plugin by Blubrry - Version 8.2.11

Version Description

  • Released 04/29/2020
  • Entry Box Settings are back--this time, find them by clicking the gear in the upper right of the entry box
  • The Permalinks setting has been moved from the Website tab in Settings to the new Entry Box Settings
  • Fixed a bug from 8.2.10 where media couldn't be removed from a post
  • Fixed a bug where "Verify" error messages were not showing up in the right spot
Download this release

Release Info

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

Code changes from version 8.2.10 to 8.2.11

css/episode-box.css CHANGED
@@ -276,6 +276,14 @@ h4[class^="pp-section-title"] {
276
  font-size: 14px;
277
  margin-top: 2ch;
278
  margin-bottom: 0;
 
 
 
 
 
 
 
 
279
  }
280
 
281
  .pp-section-subtitle {
@@ -307,16 +315,24 @@ h3[id^="pp-pp-selected-media-head"] {
307
  margin: 0;
308
  }
309
 
 
 
 
 
 
 
 
 
310
  div[id^="pp-edit-media-button"] {
311
  text-align: center;
312
  }
313
 
314
- div[id^="a-pp-selected-media"], .powerpress_remove_container {
315
  padding: 1em 2em 0 2em;
316
  }
317
 
318
  div[class="powerpress_remove_container"] {
319
- padding: 0 2ch;
320
  }
321
 
322
  div[class^="metamark-preview-"] {
@@ -378,14 +394,17 @@ div[class^="ep-box-line"] {
378
  border-top: 1px solid #EFEFEF;
379
  }
380
 
381
- div[class="ep-box-line-bold"] {
382
  border-top: 2px solid #EFEFEF;
383
  width: 92%;
 
 
 
384
  margin-left: 4%;
385
  margin-right: 4%;
386
  }
387
 
388
- .ep-box-line-margin {
389
  margin: 17px 0 17px 0;
390
  }
391
 
@@ -461,7 +480,7 @@ div[id^="ep-box-filename-container"] {
461
  }
462
 
463
  p[id^="ep-box-filename"] {
464
- color: #6B6C6F;
465
  font-family: Roboto, sans-serif;
466
  font-size: 14px;
467
  letter-spacing: 0.15px;
@@ -469,11 +488,11 @@ p[id^="ep-box-filename"] {
469
  margin: 0 5px 0 5px;
470
  display: inline;
471
  }
472
-
473
  div[id^="pp-warning-messages"] {
474
  margin-left: 3em;
475
  }
476
-
477
  div[id^="pp-connect-account-"], div[id^="pp-cancel-container"] {
478
  display: inline-block;
479
  }
@@ -736,7 +755,7 @@ input[id^="powerpress_feature_"] {
736
  width: 18px;
737
  }
738
 
739
- input[class="ep-box-checkbox"] {
740
  box-sizing: border-box;
741
  height: 16px;
742
  width: 16px;
@@ -745,6 +764,36 @@ input[class="ep-box-checkbox"] {
745
  background: linear-gradient(0deg, #F6F7F9 0%, #FFFFFF 100%);
746
  box-shadow: inset 0 2px 0 0 rgba(255,255,255,0.05), 0 1px 1px 0 rgba(22,29,37,0.05);
747
  margin: 1em 1ch 1em 1ch;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
748
  }
749
 
750
  .pp-section-container {
@@ -1056,7 +1105,7 @@ div[id^="ep-box-min-blubrry-connect-"] {
1056
  }
1057
  .classic-editor div[id^="ep-box-connect-account-button-"], .classic-editor div[id^="change-media-button-"] {
1058
  float: none;
1059
- margin: 1em 0 0 1em;
1060
  }
1061
  }
1062
 
276
  font-size: 14px;
277
  margin-top: 2ch;
278
  margin-bottom: 0;
279
+ font-family: Roboto, sans-serif;
280
+ }
281
+
282
+ .pp-ep-box-settings-text {
283
+ font-size: 12px;
284
+ letter-spacing: 0.35px;
285
+ margin-top: 3ch;
286
+ margin-bottom: 0;
287
  }
288
 
289
  .pp-section-subtitle {
315
  margin: 0;
316
  }
317
 
318
+ .pp-ep-box-settings {
319
+ float: right;
320
+ }
321
+
322
+ .ep-box-settings-icon {
323
+ cursor: pointer;
324
+ }
325
+
326
  div[id^="pp-edit-media-button"] {
327
  text-align: center;
328
  }
329
 
330
+ div[id^="a-pp-selected-media"] {
331
  padding: 1em 2em 0 2em;
332
  }
333
 
334
  div[class="powerpress_remove_container"] {
335
+ padding: 2ch 2ch;
336
  }
337
 
338
  div[class^="metamark-preview-"] {
394
  border-top: 1px solid #EFEFEF;
395
  }
396
 
397
+ div[class="ep-box-line-bold"], div[class="ep-box-line-margin-bold"] {
398
  border-top: 2px solid #EFEFEF;
399
  width: 92%;
400
+ }
401
+
402
+ div[class="ep-box-line-bold"] {
403
  margin-left: 4%;
404
  margin-right: 4%;
405
  }
406
 
407
+ .ep-box-line-margin, .ep-box-line-margin-bold {
408
  margin: 17px 0 17px 0;
409
  }
410
 
480
  }
481
 
482
  p[id^="ep-box-filename"] {
483
+ color: #4b4c4e;
484
  font-family: Roboto, sans-serif;
485
  font-size: 14px;
486
  letter-spacing: 0.15px;
488
  margin: 0 5px 0 5px;
489
  display: inline;
490
  }
491
+ /*
492
  div[id^="pp-warning-messages"] {
493
  margin-left: 3em;
494
  }
495
+ */
496
  div[id^="pp-connect-account-"], div[id^="pp-cancel-container"] {
497
  display: inline-block;
498
  }
755
  width: 18px;
756
  }
757
 
758
+ /*input[class="ep-box-checkbox"] {
759
  box-sizing: border-box;
760
  height: 16px;
761
  width: 16px;
764
  background: linear-gradient(0deg, #F6F7F9 0%, #FFFFFF 100%);
765
  box-shadow: inset 0 2px 0 0 rgba(255,255,255,0.05), 0 1px 1px 0 rgba(22,29,37,0.05);
766
  margin: 1em 1ch 1em 1ch;
767
+ }*/
768
+
769
+ input.ep-box-checkbox {
770
+ border: 2px solid #d4d8e0;
771
+ border-radius: 3px;
772
+ height: 18px;
773
+ width: 18px;
774
+ box-shadow: none;
775
+ margin-right: 1em;
776
+ }
777
+
778
+ input.ep-box-checkbox:checked {
779
+ background-color: #2278cf;
780
+ border-color: #2278cf;
781
+ }
782
+
783
+ input.ep-box-checkbox:checked:disabled {
784
+ background-color: rgba(0,0,0,0.5);
785
+ border-color: rgba(0,0,0,0.2);
786
+ }
787
+
788
+ input.ep-box-checkbox:checked::before {
789
+ content: url('../images/check_white.svg');
790
+ height: 21px;
791
+ width: 21px;
792
+ margin: -3px 0 0 -4px;
793
+ }
794
+
795
+ input.ep-box-checkbox:checked + label.pp-checkbox-label {
796
+ color: #0c74d5;
797
  }
798
 
799
  .pp-section-container {
1105
  }
1106
  .classic-editor div[id^="ep-box-connect-account-button-"], .classic-editor div[id^="change-media-button-"] {
1107
  float: none;
1108
+ margin-top: 1em;
1109
  }
1110
  }
1111
 
css/episode-box.min.css CHANGED
@@ -1 +1 @@
1
- div[class^=pp-tooltip]{position:relative;display:inline-block;background-color:#dadada;color:#fff;padding:1px 6px 1px 6px;border-radius:9px;width:6px;height:16px;text-align:center;font-family:Roboto,serif}div[class^=pp-tooltip] .text-pp-tooltip{position:absolute;visibility:hidden;min-width:300px;background-color:#3e3f42;color:#fff;text-align:center;padding:5px;border-radius:6px;z-index:1;font-family:Roboto,sans-serif;top:-100%}.pp-tooltip-left .text-pp-tooltip{right:1%;margin-right:120%}.pp-tooltip-right .text-pp-tooltip{margin-left:-5px;border-width:5px;left:150%}div[class^=pp-tooltip]:hover .text-pp-tooltip{visibility:visible}div[class^=pp-tooltip] .text-pp-tooltip::after{content:" ";position:absolute;border-width:5px;border-style:solid;top:50%}.pp-tooltip-left .text-pp-tooltip::after{border-color:transparent transparent transparent #3e3f42;right:-3%}.pp-tooltip-right .text-pp-tooltip::after{border-color:transparent #3e3f42 transparent transparent;left:-3%}.pp-tab{font-size:16px;overflow:hidden;border-bottom:1px solid #efefef;border-top:1px solid #efefef;width:100%}.pp-tab button{background-color:inherit;float:left;border:none;outline:0;cursor:pointer;padding:3vh 0;margin:0 3%;transition:.3s;width:19%}.pp-tab button:hover{background-color:#ddd}.pp-tab button.active{border-bottom:3px solid #1a6deb;font-weight:700}.pp-tabcontent{margin:0 14px 14px 14px}.pp-metamarks-row{margin-top:3em;margin-left:1em;position:relative;width:90%;box-shadow:inset 0 0 0 1px #eaedf3;border:1px solid #eaedf3;border-radius:4px}.pp-metamark-delete a{margin:4px 0 0 -2px;cursor:pointer;width:10px;height:10px;text-indent:-9999px;overflow:hidden;top:4px;left:-14px}div[id^=pp-hide-metamark]{padding:2em 2em 0 2em}.pp-metamark-delete,.pp-metamark-preview-pos-{display:inline-block;margin:1em}.pp-metamark-edit,.pp-metamark-preview-type-{margin:1em 0;display:inline-block}.metamark-top-section{border-bottom:1px solid #eaedf3;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px #eaedf3;width:100%}div[class^=metamark-preview-]{font-weight:700}.pp-metamark-delete,.pp-metamark-edit{float:right}select[id^=pp-metamark-type-]{width:100%;height:52px;vertical-align:top}input[id^=pp-metamark-dur-],input[id^=pp-metamark-link-],input[id^=pp-metamark-pos-]{width:100%;height:58px;vertical-align:top}textarea[id^=pp-metamark-val-][class=pp-ep-box-input]{height:72px;width:100%;margin:auto;vertical-align:top;resize:none}div[id^=pp-dur-label]{float:right;width:30%}div[id^=pp-pos-label],div[id^=pp-type-label]{margin-right:4%;width:30%}.powerpress-label-container{display:inline-block;margin-top:2ch;height:70px}div[id^=select-media-file]{vertical-align:top;padding-top:1vh;padding-left:10px;float:right}a[id^=pp-change-media-link],div[id^=save-media]{cursor:pointer}select[id^=powerpress_category_]{max-width:51.6%;width:100%;height:56px}div[id^=pp-category-dropdown-]{margin:1em 1em 0 1em}.pp-ep-box-input.pp-width{width:100%}#powerpress-podcast .inside{margin:0;padding:0}div[id^=apple-podcast-opt]{border-radius:4px;background-color:#f1f4f9;padding:3%;width:90%;margin-bottom:5vh}div[id^=ep-info-not-apple]{margin-bottom:20px}.pp-blue-button{display:inline-block;border-radius:4px;background-color:#0c74d5;color:#fff;font-family:Roboto,sans-serif;font-size:16px;font-weight:500;padding:1ch 2em 1ch 2em;cursor:pointer;text-align:center}.pp-gray-button{background-color:#f5f5f5;box-shadow:0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12),0 1px 3px 0 rgba(0,0,0,.2);color:#000;display:inline-block;border-radius:4px;font-family:Roboto,sans-serif;font-size:14px;font-weight:600;padding:.5ch 1em .5ch 1em;margin-right:1em;cursor:pointer;text-align:center;border:0}h4[class^=pp-section-title]{color:#3e3f42;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;line-height:38px;margin-bottom:0;margin-top:0;float:left;display:inline-block}.pp-section-title-block{width:100%}.pp-ep-box-text{font-size:14px;margin-top:2ch;margin-bottom:0}.pp-section-subtitle{color:#5a5c60;font-family:Roboto,sans-serif;font-size:14px;font-weight:500;line-height:16px}.pp-tabcontent{display:none;border-top:none;padding:40px}.pp-tabcontent.active{display:block}h3[id^=pp-pp-selected-media-head]{color:#263238;font-family:Roboto,sans-serif;font-size:20px;font-weight:700;letter-spacing:-.06px;line-height:24px;margin:0}div[id^=pp-edit-media-button]{text-align:center}.powerpress_remove_container,div[id^=a-pp-selected-media]{padding:1em 2em 0 2em}div[class=powerpress_remove_container]{padding:0 2ch}div[class^=metamark-preview-]{font-weight:700}div[id^=explicit-switch-base]{display:inline-block;padding:5px;background-color:#e6e6e6;width:100%;border-radius:4px}.pp-explicit-option{background-color:#e6e6e6}.explicit-selected{background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.16);border-radius:4px}.explicit-selected,.pp-explicit-option{border-collapse:collapse;font-weight:700;display:inline-block;width:32%;padding-top:1ch;padding-bottom:1ch;text-align:center;font-size:14px;font-family:Roboto,sans-serif;cursor:pointer}div[id^=pp-selected-media-text]{width:100%;display:inline-block}#episode-box-container,.powerpress_podcast_box{padding:10px}div[id^=pp-change-media-file]{vertical-align:top;margin-top:1vh;margin-left:10px;float:right}div[class^=ep-box-line]{box-sizing:border-box;display:inline-block;height:1px;width:100%;border-top:1px solid #efefef}div[class=ep-box-line-bold]{border-top:2px solid #efefef;width:92%;margin-left:4%;margin-right:4%}.ep-box-line-margin{margin:17px 0 17px 0}.pp-shortcode-example{box-sizing:border-box;border:1px solid #e8e8e8;background-color:#f0f0f0;line-height:36px;padding-left:2em;padding-right:2em}.pp-hidden-settings{display:none}div[id^=ep-box-blubrry-connect-]{background-color:#f1f4f9;margin-top:1em;width:98%;padding:1em 1ch}div[id^=ep-box-blubrry-connected-]{margin-left:1em;margin-top:1em;width:98%;padding:1em 1ch}.ep-box-blubrry-icon{display:inline-block;width:2em;vertical-align:top;margin-left:1em;margin-top:1ch}.ep-box-blubrry-info-container{display:inline-block;max-width:calc(100% - 320px)}img[id^=pp-image-preview]{width:16vh;height:16vh;border:3px solid #717171}img[id^=poster-pp-image-preview]{width:32ch;height:18ch;border:3px solid #717171}.powerpress-art-text{width:70%;display:inline-block;vertical-align:top}.powerpress-art-preview{width:28%;display:inline-block}div[id^=ep-box-filename-container]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden;display:inline-block}p[id^=ep-box-filename]{color:#6b6c6f;font-family:Roboto,sans-serif;font-size:14px;letter-spacing:.15px;line-height:56px;margin:0 5px 0 5px;display:inline}div[id^=pp-warning-messages]{margin-left:3em}div[id^=pp-cancel-container],div[id^=pp-connect-account-]{display:inline-block}div[id^=pp-cancel-container-]{float:right;margin-right:2em}div[id^=hidden-media-details-]{padding:1em;margin-top:2em;background-color:#f1f4f9}div[class^=details-]{display:inline-block;font-family:Roboto,sans-serif}.details-specify{width:45%}.details-auto-detect,.details-not-specified{width:25%}div[id^=media-input-]{margin-top:1ch}.pp-media-edit-details{color:#2c65db;font-family:Roboto Medium,sans-serif;font-size:12px;line-height:22px;cursor:pointer;border:none;box-shadow:none;background-color:#f1f4f9;text-decoration:none}button.apple-advanced,button.media-details{color:#2c65db;font-family:Roboto Medium,sans-serif;font-size:12px;line-height:22px;cursor:pointer;border:none;box-shadow:none;background-color:#f5f5f5;font-weight:700}button.media-details{background-color:#fff}.media-details-head{color:#3e3f42;font-weight:700;font-family:Roboto Medium,sans-serif;font-size:14px;line-height:22px;margin:0 1em}input[id^=powerpress_size]{width:50%;text-align:center;height:28px}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:48px;text-align:center;height:34px}div[id^=media-file-details]{width:100%}.pp-detail-section{margin:0 1em 2ch 1em}.details-auto-detect{width:30%}.details-specify{width:43%}.details-not-specified{width:25%}.blubrry-connect-info{margin:0 1ch}h4.blubrry-connect-info{color:#3e3f42;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;line-height:20px}p.blubrry-connect-info{font-size:14px;margin-bottom:0}a[id^=ep-box-connect-account],a[id^=pp-change-media-link]{text-decoration:none;display:inline-block;width:35ch;margin-right:1em}div[id^=change-media-button],div[id^=ep-box-connect-account-button-]{border-radius:4px;border:1px solid #969696;color:#0c74d5;padding:1ch 2em 1ch 2em;margin-right:1em;text-align:center;font-family:Roboto,sans-serif;font-size:14px;font-weight:600}a[id^=ep-box-connect-account],a[id^=pp-change-media-link],div[id^=change-media-button],div[id^=ep-box-connect-account-button-]{float:right}input[class=media-details-radio]{width:22px;height:22px;border:2px solid #b1b1b1}input[class=media-details-radio]:checked{border:2px solid #0c74d5}input[class=media-details-radio]:checked:before{width:12px;height:12px;margin:3px;background-color:#0c74d5}label[class=ep-box-caption]{color:rgba(0,0,0,.6);font-family:Roboto,sans-serif;font-size:12px;letter-spacing:.4px;font-weight:300;margin-left:2em}label[class^=pp-ep-box-label]{position:relative;top:2px;padding:0 2px 0 2px;bottom:10px;background:0 0}label[class^=pp-ep-box-label-under]{position:relative;padding:0 2px 0 2px;bottom:10px;left:10px;top:0;background:0 0}div[class=pp-ep-box-input],input[class=pp-ep-box-input],select[class=pp-ep-box-input],textarea[class=pp-ep-box-input]{border-radius:4px;background-color:#fff;border:1px solid #b1b1b1;font-size:14px;height:56px;width:100%}textarea[id^=powerpress_summary_]{height:130px;resize:none;padding:10px;font-family:Roboto,sans-serif;font-size:14px;line-height:22px;width:100%}textarea[id^=powerpress_embed_]{resize:none}textarea[id^=powerpress_summary_]::-webkit-scrollbar{height:85%}textarea[id^=powerpress_summary_]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px grey;border-radius:4px}textarea[id^=powerpress_summary_]::-webkit-scrollbar-thumb{background:#fff;border-radius:4px;border:grey 1px solid}div[id^=pp-url-input-container-]{width:100%}div[id^=pp-url-input-label-container]{display:inline-block;width:calc(100% - 175px)}div[id^=powerpress_url_],input[id^=powerpress_url_]{width:100%;border-radius:4px;box-sizing:border-box;height:56px}div[id^=powerpress_url_show_]{width:100%;background-color:#f1f4f9;font-size:14px;height:56px;border-radius:0}input[id^=powerpress_image_],input[id^=powerpress_itunes_image_]{width:90%;border-radius:4px;box-sizing:border-box;height:56px}input[id^=powerpress_feature_]{border-radius:2px;border:2px solid #66788a;height:18px;width:18px}input[class=ep-box-checkbox]{box-sizing:border-box;height:16px;width:16px;border:1px solid #d8dce6;border-radius:3px;background:linear-gradient(0deg,#f6f7f9 0,#fff 100%);box-shadow:inset 0 2px 0 0 rgba(255,255,255,.05),0 1px 1px 0 rgba(22,29,37,.05);margin:1em 1ch 1em 1ch}.pp-section-container{display:block;margin-bottom:4ch;width:100%;justify-content:space-between}.apple-opt-section-container{display:block;margin-bottom:2ch;width:100%;justify-content:space-between}div[id^=apple-feature]{margin-top:1vh}div[id^=title-container]{width:50%}div[id^=season-container]{width:30%}input[id^=powerpress_episode_season]:disabled{background-color:#f5f5f5}div[id^=pp-explicit-container]{display:inline-block;width:35%;float:right;max-height:30px;margin-right:1em}div[id^=apple-title-container]{width:55%;margin-right:3ch}div[id^=episode-no-container],div[id^=season-container]{display:inline-block;width:18%;margin-top:3vh}div[id^=season-container]{float:right}div[id^=feature-container]{margin-top:3vh;width:70%}div[id^=type-container]{width:29.5%;vertical-align:top;margin:2ch 0 0 0}div[id^=media-input]{width:100%}div[id^=edit-media-file-]{float:right}div[id^=ep-box-min-blubrry-connect-]{margin-top:1ch}@media (max-width:1152px){.details-not-specified{margin-top:1em;width:100%}.details-auto-detect,.details-specify{width:48%}div[id^=pp-explicit-container]{width:40%}div[id^=feature-container]{width:100%}}@media (max-width:832px){div[class^=details-]{width:100%;margin-top:1em}.pp-detail-section{margin:2ch 1em 2ch 1em}div[id^=pp-explicit-container]{width:98%;margin:1em 0 3em 0;float:left}div[id^=apple-title-container]{width:100%;margin-top:1em}div[id^=episode-no-container]{width:45%}div[id^=season-container]{width:45%}.pp-tabcontent{padding:15px}#wpbody select{height:52px}div[id^=pp-type-label]{width:99%;margin:1em 0 1em 0}div[id^=pp-pos-label]{width:40%;margin-left:0}div[id^=pp-dur-label]{width:40%;margin-right:0}.powerpress-art-preview,.powerpress-art-text{width:100%}div[id^=type-container]{width:50%}input[type=checkbox]:checked:before{font:normal 21px/1 dashicons}.powerpress-art-preview{text-align:center}input[id^=powerpress_image_],input[id^=powerpress_itunes_image_]{width:100%}}@media (max-width:592px){div[id^=ep-box-filename-container]{max-width:70%}.pp-blue-button,.pp-gray-button{display:block;margin:1ch 0 0 0}.explicit-selected,.pp-explicit-option{font-size:12px}.artwork-button{padding:1em 2ch}div[id^=apple-podcast-opt]{padding:6%}div[id^=pp-display-player],div[id^=pp-player-size]{width:100%}div[id^=type-container]{width:100%}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:36px;padding:6px;height:28px}select[id^=powerpress_category] option{width:100%}}@media (max-width:375px){.pp-detail-section{margin:2ch 1em 2ch 0}.media-details{margin-left:0}.explicit-selected,.pp-explicit-option{width:31%}div[id^=pp-dur-label],div[id^=pp-pos-label]{width:100%;margin:1em 0 1em 0}.tab{font-size:12px}a[id^=hide-details-link],a[id^=show-details-link]{font-size:12px}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:28px;padding:2px}}@media (max-width:1456px){.classic-editor .details-not-specified{margin-top:1em;width:100%}.classic-editor .details-auto-detect,.classic-editor .details-specify{width:48%}.classic-editor div[id^=pp-explicit-container]{width:40%}.classic-editor div[id^=feature-container]{width:100%}}@media (max-width:1350px){.classic-editor div[id^=pp-explicit-container]{width:98%;margin:1em 0 3em 0;float:left}}@media (max-width:1256px){.classic-editor div[class^=details-]{width:100%;margin-top:1em;margin-left:1em}}@media (max-width:1132px){.classic-editor div[class^=details-]{width:100%;margin-top:1em}.classic-editor .pp-detail-section{margin:2ch 1em 2ch 1em}.classic-editor div[id^=apple-title-container]{width:100%;margin-top:1em}.classic-editor div[id^=episode-no-container]{width:45%}.classic-editor div[id^=season-container]{width:45%}.classic-editor .pp-tabcontent{padding:15px}.classic-editor #wpbody select{height:52px}.classic-editor div[id^=pp-type-label]{width:99%;margin:1em 0 1em 0}.classic-editor div[id^=pp-pos-label]{width:40%;margin-left:0}.classic-editor div[id^=pp-dur-label]{width:40%;margin-right:0}.classic-editor .powerpress-art-preview,.classic-editor .powerpress-art-text{width:100%}.classic-editor div[id^=type-container]{width:50%}.classic-editor input[type=checkbox]:checked:before{font:normal 21px/1 dashicons}.classic-editor .powerpress-art-preview{text-align:center}.classic-editor input[id^=powerpress_image_],.classic-editor input[id^=powerpress_itunes_image_]{width:100%}}@media (max-width:1050px){.classic-editor .ep-box-blubrry-info-container{max-width:calc(100% - 50px)}.classic-editor a[id^=ep-box-connect-account-],.classic-editor a[id^=pp-change-media-link-]{float:none;width:100%}.classic-editor div[id^=change-media-button-],.classic-editor div[id^=ep-box-connect-account-button-]{float:none;margin:1em 0 0 1em}}@media (max-width:640px){.ep-box-blubrry-info-container{max-width:calc(100% - 50px)}a[id^=ep-box-connect-account-],a[id^=pp-change-media-link-]{float:none;width:100%}div[id^=ep-box-connect-account-button-]{float:none;margin:1em 0 0 1ch}div[id^=change-media-button-]{float:none;margin-top:1em}}@media (max-width:892px){.classic-editor .pp-blue-button,.classic-editor .pp-gray-button{display:block}.classic-editor .explicit-selected,.classic-editor .pp-explicit-option{font-size:12px}.classic-editor .artwork-button{padding:1em 2ch}.classic-editor div[id^=apple-podcast-opt]{padding:6%}.classic-editor div[id^=pp-display-player],.classic-editor div[id^=pp-player-size]{width:100%}.classic-editor div[id^=type-container]{width:100%}.classic-editor input[id^=powerpress_duration_][class=pp-ep-box-input]{width:36px;padding:6px;height:28px}.classic-editor select[id^=powerpress_category] option{width:100%}}
1
+ div[class^=pp-tooltip]{position:relative;display:inline-block;background-color:#dadada;color:#fff;padding:1px 6px 1px 6px;border-radius:9px;width:6px;height:16px;text-align:center;font-family:Roboto,serif}div[class^=pp-tooltip] .text-pp-tooltip{position:absolute;visibility:hidden;min-width:300px;background-color:#3e3f42;color:#fff;text-align:center;padding:5px;border-radius:6px;z-index:1;font-family:Roboto,sans-serif;top:-100%}.pp-tooltip-left .text-pp-tooltip{right:1%;margin-right:120%}.pp-tooltip-right .text-pp-tooltip{margin-left:-5px;border-width:5px;left:150%}div[class^=pp-tooltip]:hover .text-pp-tooltip{visibility:visible}div[class^=pp-tooltip] .text-pp-tooltip::after{content:" ";position:absolute;border-width:5px;border-style:solid;top:50%}.pp-tooltip-left .text-pp-tooltip::after{border-color:transparent transparent transparent #3e3f42;right:-3%}.pp-tooltip-right .text-pp-tooltip::after{border-color:transparent #3e3f42 transparent transparent;left:-3%}.pp-tab{font-size:16px;overflow:hidden;border-bottom:1px solid #efefef;border-top:1px solid #efefef;width:100%}.pp-tab button{background-color:inherit;float:left;border:none;outline:0;cursor:pointer;padding:3vh 0;margin:0 3%;transition:.3s;width:19%}.pp-tab button:hover{background-color:#ddd}.pp-tab button.active{border-bottom:3px solid #1a6deb;font-weight:700}.pp-tabcontent{margin:0 14px 14px 14px}.pp-metamarks-row{margin-top:3em;margin-left:1em;position:relative;width:90%;box-shadow:inset 0 0 0 1px #eaedf3;border:1px solid #eaedf3;border-radius:4px}.pp-metamark-delete a{margin:4px 0 0 -2px;cursor:pointer;width:10px;height:10px;text-indent:-9999px;overflow:hidden;top:4px;left:-14px}div[id^=pp-hide-metamark]{padding:2em 2em 0 2em}.pp-metamark-delete,.pp-metamark-preview-pos-{display:inline-block;margin:1em}.pp-metamark-edit,.pp-metamark-preview-type-{margin:1em 0;display:inline-block}.metamark-top-section{border-bottom:1px solid #eaedf3;border-radius:4px 4px 0 0;box-shadow:inset 0 0 0 1px #eaedf3;width:100%}div[class^=metamark-preview-]{font-weight:700}.pp-metamark-delete,.pp-metamark-edit{float:right}select[id^=pp-metamark-type-]{width:100%;height:52px;vertical-align:top}input[id^=pp-metamark-dur-],input[id^=pp-metamark-link-],input[id^=pp-metamark-pos-]{width:100%;height:58px;vertical-align:top}textarea[id^=pp-metamark-val-][class=pp-ep-box-input]{height:72px;width:100%;margin:auto;vertical-align:top;resize:none}div[id^=pp-dur-label]{float:right;width:30%}div[id^=pp-pos-label],div[id^=pp-type-label]{margin-right:4%;width:30%}.powerpress-label-container{display:inline-block;margin-top:2ch;height:70px}div[id^=select-media-file]{vertical-align:top;padding-top:1vh;padding-left:10px;float:right}a[id^=pp-change-media-link],div[id^=save-media]{cursor:pointer}select[id^=powerpress_category_]{max-width:51.6%;width:100%;height:56px}div[id^=pp-category-dropdown-]{margin:1em 1em 0 1em}.pp-ep-box-input.pp-width{width:100%}#powerpress-podcast .inside{margin:0;padding:0}div[id^=apple-podcast-opt]{border-radius:4px;background-color:#f1f4f9;padding:3%;width:90%;margin-bottom:5vh}div[id^=ep-info-not-apple]{margin-bottom:20px}.pp-blue-button{display:inline-block;border-radius:4px;background-color:#0c74d5;color:#fff;font-family:Roboto,sans-serif;font-size:16px;font-weight:500;padding:1ch 2em 1ch 2em;cursor:pointer;text-align:center}.pp-gray-button{background-color:#f5f5f5;box-shadow:0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12),0 1px 3px 0 rgba(0,0,0,.2);color:#000;display:inline-block;border-radius:4px;font-family:Roboto,sans-serif;font-size:14px;font-weight:600;padding:.5ch 1em .5ch 1em;margin-right:1em;cursor:pointer;text-align:center;border:0}h4[class^=pp-section-title]{color:#3e3f42;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;line-height:38px;margin-bottom:0;margin-top:0;float:left;display:inline-block}.pp-section-title-block{width:100%}.pp-ep-box-text{font-size:14px;margin-top:2ch;margin-bottom:0;font-family:Roboto,sans-serif}.pp-ep-box-settings-text{font-size:12px;letter-spacing:.35px;margin-top:3ch;margin-bottom:0}.pp-section-subtitle{color:#5a5c60;font-family:Roboto,sans-serif;font-size:14px;font-weight:500;line-height:16px}.pp-tabcontent{display:none;border-top:none;padding:40px}.pp-tabcontent.active{display:block}h3[id^=pp-pp-selected-media-head]{color:#263238;font-family:Roboto,sans-serif;font-size:20px;font-weight:700;letter-spacing:-.06px;line-height:24px;margin:0}.pp-ep-box-settings{float:right}.ep-box-settings-icon{cursor:pointer}div[id^=pp-edit-media-button]{text-align:center}div[id^=a-pp-selected-media]{padding:1em 2em 0 2em}div[class=powerpress_remove_container]{padding:2ch 2ch}div[class^=metamark-preview-]{font-weight:700}div[id^=explicit-switch-base]{display:inline-block;padding:5px;background-color:#e6e6e6;width:100%;border-radius:4px}.pp-explicit-option{background-color:#e6e6e6}.explicit-selected{background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.16);border-radius:4px}.explicit-selected,.pp-explicit-option{border-collapse:collapse;font-weight:700;display:inline-block;width:32%;padding-top:1ch;padding-bottom:1ch;text-align:center;font-size:14px;font-family:Roboto,sans-serif;cursor:pointer}div[id^=pp-selected-media-text]{width:100%;display:inline-block}#episode-box-container,.powerpress_podcast_box{padding:10px}div[id^=pp-change-media-file]{vertical-align:top;margin-top:1vh;margin-left:10px;float:right}div[class^=ep-box-line]{box-sizing:border-box;display:inline-block;height:1px;width:100%;border-top:1px solid #efefef}div[class=ep-box-line-bold],div[class=ep-box-line-margin-bold]{border-top:2px solid #efefef;width:92%}div[class=ep-box-line-bold]{margin-left:4%;margin-right:4%}.ep-box-line-margin,.ep-box-line-margin-bold{margin:17px 0 17px 0}.pp-shortcode-example{box-sizing:border-box;border:1px solid #e8e8e8;background-color:#f0f0f0;line-height:36px;padding-left:2em;padding-right:2em}.pp-hidden-settings{display:none}div[id^=ep-box-blubrry-connect-]{background-color:#f1f4f9;margin-top:1em;width:98%;padding:1em 1ch}div[id^=ep-box-blubrry-connected-]{margin-left:1em;margin-top:1em;width:98%;padding:1em 1ch}.ep-box-blubrry-icon{display:inline-block;width:2em;vertical-align:top;margin-left:1em;margin-top:1ch}.ep-box-blubrry-info-container{display:inline-block;max-width:calc(100% - 320px)}img[id^=pp-image-preview]{width:16vh;height:16vh;border:3px solid #717171}img[id^=poster-pp-image-preview]{width:32ch;height:18ch;border:3px solid #717171}.powerpress-art-text{width:70%;display:inline-block;vertical-align:top}.powerpress-art-preview{width:28%;display:inline-block}div[id^=ep-box-filename-container]{text-overflow:ellipsis;white-space:nowrap;max-width:85%;overflow:hidden;display:inline-block}p[id^=ep-box-filename]{color:#4b4c4e;font-family:Roboto,sans-serif;font-size:14px;letter-spacing:.15px;line-height:56px;margin:0 5px 0 5px;display:inline}div[id^=pp-cancel-container],div[id^=pp-connect-account-]{display:inline-block}div[id^=pp-cancel-container-]{float:right;margin-right:2em}div[id^=hidden-media-details-]{padding:1em;margin-top:2em;background-color:#f1f4f9}div[class^=details-]{display:inline-block;font-family:Roboto,sans-serif}.details-specify{width:45%}.details-auto-detect,.details-not-specified{width:25%}div[id^=media-input-]{margin-top:1ch}.pp-media-edit-details{color:#2c65db;font-family:Roboto Medium,sans-serif;font-size:12px;line-height:22px;cursor:pointer;border:none;box-shadow:none;background-color:#f1f4f9;text-decoration:none}button.apple-advanced,button.media-details{color:#2c65db;font-family:Roboto Medium,sans-serif;font-size:12px;line-height:22px;cursor:pointer;border:none;box-shadow:none;background-color:#f5f5f5;font-weight:700}button.media-details{background-color:#fff}.media-details-head{color:#3e3f42;font-weight:700;font-family:Roboto Medium,sans-serif;font-size:14px;line-height:22px;margin:0 1em}input[id^=powerpress_size]{width:50%;text-align:center;height:28px}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:48px;text-align:center;height:34px}div[id^=media-file-details]{width:100%}.pp-detail-section{margin:0 1em 2ch 1em}.details-auto-detect{width:30%}.details-specify{width:43%}.details-not-specified{width:25%}.blubrry-connect-info{margin:0 1ch}h4.blubrry-connect-info{color:#3e3f42;font-family:Roboto,sans-serif;font-size:16px;font-weight:700;line-height:20px}p.blubrry-connect-info{font-size:14px;margin-bottom:0}a[id^=ep-box-connect-account],a[id^=pp-change-media-link]{text-decoration:none;display:inline-block;width:35ch;margin-right:1em}div[id^=change-media-button],div[id^=ep-box-connect-account-button-]{border-radius:4px;border:1px solid #969696;color:#0c74d5;padding:1ch 2em 1ch 2em;margin-right:1em;text-align:center;font-family:Roboto,sans-serif;font-size:14px;font-weight:600}a[id^=ep-box-connect-account],a[id^=pp-change-media-link],div[id^=change-media-button],div[id^=ep-box-connect-account-button-]{float:right}input[class=media-details-radio]{width:22px;height:22px;border:2px solid #b1b1b1}input[class=media-details-radio]:checked{border:2px solid #0c74d5}input[class=media-details-radio]:checked:before{width:12px;height:12px;margin:3px;background-color:#0c74d5}label[class=ep-box-caption]{color:rgba(0,0,0,.6);font-family:Roboto,sans-serif;font-size:12px;letter-spacing:.4px;font-weight:300;margin-left:2em}label[class^=pp-ep-box-label]{position:relative;top:2px;padding:0 2px 0 2px;bottom:10px;background:0 0}label[class^=pp-ep-box-label-under]{position:relative;padding:0 2px 0 2px;bottom:10px;left:10px;top:0;background:0 0}div[class=pp-ep-box-input],input[class=pp-ep-box-input],select[class=pp-ep-box-input],textarea[class=pp-ep-box-input]{border-radius:4px;background-color:#fff;border:1px solid #b1b1b1;font-size:14px;height:56px;width:100%}textarea[id^=powerpress_summary_]{height:130px;resize:none;padding:10px;font-family:Roboto,sans-serif;font-size:14px;line-height:22px;width:100%}textarea[id^=powerpress_embed_]{resize:none}textarea[id^=powerpress_summary_]::-webkit-scrollbar{height:85%}textarea[id^=powerpress_summary_]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px grey;border-radius:4px}textarea[id^=powerpress_summary_]::-webkit-scrollbar-thumb{background:#fff;border-radius:4px;border:grey 1px solid}div[id^=pp-url-input-container-]{width:100%}div[id^=pp-url-input-label-container]{display:inline-block;width:calc(100% - 175px)}div[id^=powerpress_url_],input[id^=powerpress_url_]{width:100%;border-radius:4px;box-sizing:border-box;height:56px}div[id^=powerpress_url_show_]{width:100%;background-color:#f1f4f9;font-size:14px;height:56px;border-radius:0}input[id^=powerpress_image_],input[id^=powerpress_itunes_image_]{width:90%;border-radius:4px;box-sizing:border-box;height:56px}input[id^=powerpress_feature_]{border-radius:2px;border:2px solid #66788a;height:18px;width:18px}input.ep-box-checkbox{border:2px solid #d4d8e0;border-radius:3px;height:18px;width:18px;box-shadow:none;margin-right:1em}input.ep-box-checkbox:checked{background-color:#2278cf;border-color:#2278cf}input.ep-box-checkbox:checked:disabled{background-color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.2)}input.ep-box-checkbox:checked::before{content:url(../images/check_white.svg);height:21px;width:21px;margin:-3px 0 0 -4px}input.ep-box-checkbox:checked+label.pp-checkbox-label{color:#0c74d5}.pp-section-container{display:block;margin-bottom:4ch;width:100%;justify-content:space-between}.apple-opt-section-container{display:block;margin-bottom:2ch;width:100%;justify-content:space-between}div[id^=apple-feature]{margin-top:1vh}div[id^=title-container]{width:50%}div[id^=season-container]{width:30%}input[id^=powerpress_episode_season]:disabled{background-color:#f5f5f5}div[id^=pp-explicit-container]{display:inline-block;width:35%;float:right;max-height:30px;margin-right:1em}div[id^=apple-title-container]{width:55%;margin-right:3ch}div[id^=episode-no-container],div[id^=season-container]{display:inline-block;width:18%;margin-top:3vh}div[id^=season-container]{float:right}div[id^=feature-container]{margin-top:3vh;width:70%}div[id^=type-container]{width:29.5%;vertical-align:top;margin:2ch 0 0 0}div[id^=media-input]{width:100%}div[id^=edit-media-file-]{float:right}div[id^=ep-box-min-blubrry-connect-]{margin-top:1ch}@media (max-width:1152px){.details-not-specified{margin-top:1em;width:100%}.details-auto-detect,.details-specify{width:48%}div[id^=pp-explicit-container]{width:40%}div[id^=feature-container]{width:100%}}@media (max-width:832px){div[class^=details-]{width:100%;margin-top:1em}.pp-detail-section{margin:2ch 1em 2ch 1em}div[id^=pp-explicit-container]{width:98%;margin:1em 0 3em 0;float:left}div[id^=apple-title-container]{width:100%;margin-top:1em}div[id^=episode-no-container]{width:45%}div[id^=season-container]{width:45%}.pp-tabcontent{padding:15px}#wpbody select{height:52px}div[id^=pp-type-label]{width:99%;margin:1em 0 1em 0}div[id^=pp-pos-label]{width:40%;margin-left:0}div[id^=pp-dur-label]{width:40%;margin-right:0}.powerpress-art-preview,.powerpress-art-text{width:100%}div[id^=type-container]{width:50%}input[type=checkbox]:checked:before{font:normal 21px/1 dashicons}.powerpress-art-preview{text-align:center}input[id^=powerpress_image_],input[id^=powerpress_itunes_image_]{width:100%}}@media (max-width:592px){div[id^=ep-box-filename-container]{max-width:70%}.pp-blue-button,.pp-gray-button{display:block;margin:1ch 0 0 0}.explicit-selected,.pp-explicit-option{font-size:12px}.artwork-button{padding:1em 2ch}div[id^=apple-podcast-opt]{padding:6%}div[id^=pp-display-player],div[id^=pp-player-size]{width:100%}div[id^=type-container]{width:100%}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:36px;padding:6px;height:28px}select[id^=powerpress_category] option{width:100%}}@media (max-width:375px){.pp-detail-section{margin:2ch 1em 2ch 0}.media-details{margin-left:0}.explicit-selected,.pp-explicit-option{width:31%}div[id^=pp-dur-label],div[id^=pp-pos-label]{width:100%;margin:1em 0 1em 0}.tab{font-size:12px}a[id^=hide-details-link],a[id^=show-details-link]{font-size:12px}input[id^=powerpress_duration_][class=pp-ep-box-input]{width:28px;padding:2px}}@media (max-width:1456px){.classic-editor .details-not-specified{margin-top:1em;width:100%}.classic-editor .details-auto-detect,.classic-editor .details-specify{width:48%}.classic-editor div[id^=pp-explicit-container]{width:40%}.classic-editor div[id^=feature-container]{width:100%}}@media (max-width:1350px){.classic-editor div[id^=pp-explicit-container]{width:98%;margin:1em 0 3em 0;float:left}}@media (max-width:1256px){.classic-editor div[class^=details-]{width:100%;margin-top:1em;margin-left:1em}}@media (max-width:1132px){.classic-editor div[class^=details-]{width:100%;margin-top:1em}.classic-editor .pp-detail-section{margin:2ch 1em 2ch 1em}.classic-editor div[id^=apple-title-container]{width:100%;margin-top:1em}.classic-editor div[id^=episode-no-container]{width:45%}.classic-editor div[id^=season-container]{width:45%}.classic-editor .pp-tabcontent{padding:15px}.classic-editor #wpbody select{height:52px}.classic-editor div[id^=pp-type-label]{width:99%;margin:1em 0 1em 0}.classic-editor div[id^=pp-pos-label]{width:40%;margin-left:0}.classic-editor div[id^=pp-dur-label]{width:40%;margin-right:0}.classic-editor .powerpress-art-preview,.classic-editor .powerpress-art-text{width:100%}.classic-editor div[id^=type-container]{width:50%}.classic-editor input[type=checkbox]:checked:before{font:normal 21px/1 dashicons}.classic-editor .powerpress-art-preview{text-align:center}.classic-editor input[id^=powerpress_image_],.classic-editor input[id^=powerpress_itunes_image_]{width:100%}}@media (max-width:1050px){.classic-editor .ep-box-blubrry-info-container{max-width:calc(100% - 50px)}.classic-editor a[id^=ep-box-connect-account-],.classic-editor a[id^=pp-change-media-link-]{float:none;width:100%}.classic-editor div[id^=change-media-button-],.classic-editor div[id^=ep-box-connect-account-button-]{float:none;margin-top:1em}}@media (max-width:640px){.ep-box-blubrry-info-container{max-width:calc(100% - 50px)}a[id^=ep-box-connect-account-],a[id^=pp-change-media-link-]{float:none;width:100%}div[id^=ep-box-connect-account-button-]{float:none;margin:1em 0 0 1ch}div[id^=change-media-button-]{float:none;margin-top:1em}}@media (max-width:892px){.classic-editor .pp-blue-button,.classic-editor .pp-gray-button{display:block}.classic-editor .explicit-selected,.classic-editor .pp-explicit-option{font-size:12px}.classic-editor .artwork-button{padding:1em 2ch}.classic-editor div[id^=apple-podcast-opt]{padding:6%}.classic-editor div[id^=pp-display-player],.classic-editor div[id^=pp-player-size]{width:100%}.classic-editor div[id^=type-container]{width:100%}.classic-editor input[id^=powerpress_duration_][class=pp-ep-box-input]{width:36px;padding:6px;height:28px}.classic-editor select[id^=powerpress_category] option{width:100%}}
images/check_white.svg ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="-4 -3 32 32" style="enable-background:new -4 -3 32 32;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ </style>
8
+ <path class="st0" d="M7.6,17.4l-5.7-5.7L0,13.7l7.6,7.6L24,4.9L22.1,3L7.6,17.4z"/>
9
+ </svg>
images/outline_settings_24px.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="18px" height="19px" viewBox="0 0 18 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: sketchtool 63.1 (101010) - https://sketch.com -->
4
+ <title>7ABA59E3-AE51-4896-9691-4D46E7059FC2</title>
5
+ <desc>Created with sketchtool.</desc>
6
+ <defs>
7
+ <path d="M15.8766355,10.1592219 C15.9136455,9.86314262 15.9414029,9.56706329 15.9414029,9.252479 C15.9414029,8.93789472 15.9136455,8.64181539 15.8766355,8.34573606 L17.8289086,6.81907702 C18.0047057,6.68028984 18.0509681,6.43047291 17.9399384,6.22691837 L16.0894426,3.02556063 C16.0061702,2.87752097 15.8488781,2.79424866 15.6823335,2.79424866 C15.6268186,2.79424866 15.5713037,2.80350114 15.5250413,2.8220061 L13.2211741,3.747254 C12.7400452,3.37715484 12.2219063,3.07182303 11.6575051,2.84051105 L11.3059109,0.388604118 C11.2781535,0.166544622 11.0838514,0 10.8525394,0 L7.15154784,0 C6.92023586,0 6.7259338,0.166544622 6.69817637,0.388604118 L6.34658216,2.84051105 C5.78218094,3.07182303 5.26404212,3.38640731 4.78291321,3.747254 L2.47904594,2.8220061 C2.42353107,2.80350114 2.36801619,2.79424866 2.31250132,2.79424866 C2.15520918,2.79424866 1.99791703,2.87752097 1.91464472,3.02556063 L0.064148921,6.22691837 C-0.0561333061,6.43047291 -0.000618432059,6.68028984 0.175178669,6.81907702 L2.12745174,8.34573606 C2.09044182,8.64181539 2.06268439,8.94714719 2.06268439,9.252479 C2.06268439,9.55781081 2.09044182,9.86314262 2.12745174,10.1592219 L0.175178669,11.685881 C-0.000618432059,11.8246682 -0.0468808271,12.0744851 0.064148921,12.2780396 L1.91464472,15.4793974 C1.99791703,15.627437 2.15520918,15.7107093 2.3217538,15.7107093 C2.37726867,15.7107093 2.43278355,15.7014569 2.47904594,15.6829519 L4.78291321,14.757704 C5.26404212,15.1278032 5.78218094,15.433135 6.34658216,15.6644469 L6.69817637,18.1163539 C6.7259338,18.3384134 6.92023586,18.504958 7.15154784,18.504958 L10.8525394,18.504958 C11.0838514,18.504958 11.2781535,18.3384134 11.3059109,18.1163539 L11.6575051,15.6644469 C12.2219063,15.433135 12.7400452,15.1185507 13.2211741,14.757704 L15.5250413,15.6829519 C15.5805562,15.7014569 15.6360711,15.7107093 15.691586,15.7107093 C15.8488781,15.7107093 16.0061702,15.627437 16.0894426,15.4793974 L17.9399384,12.2780396 C18.0509681,12.0744851 18.0047057,11.8246682 17.8289086,11.685881 L15.8766355,10.1592219 Z M14.0446447,8.57704803 C14.0816546,8.86387488 14.0909071,9.05817694 14.0909071,9.252479 C14.0909071,9.44678106 14.0724021,9.6503356 14.0446447,9.92790997 L13.91511,10.9734401 L14.7385806,11.6211136 L15.7378483,12.3983219 L15.0901748,13.5178718 L13.91511,13.0459954 L12.9528522,12.6573913 L12.1201291,13.2865598 C11.7222725,13.5826392 11.3429208,13.8046987 10.9635692,13.9619908 L9.98280641,14.3598474 L9.83476675,15.4053775 L9.64971717,16.6544622 L8.35437011,16.6544622 L8.17857301,15.4053775 L8.03053334,14.3598474 L7.04977057,13.9619908 C6.65191397,13.7954462 6.28181481,13.5826392 5.91171565,13.3050648 L5.06974006,12.6573913 L4.08897729,13.0552479 L2.91391245,13.5271243 L2.26623892,12.4075743 L3.26550666,11.6303661 L4.08897729,10.9826926 L3.95944258,9.93716245 C3.93168514,9.6503356 3.91318019,9.43752858 3.91318019,9.252479 C3.91318019,9.06742942 3.93168514,8.8546224 3.95944258,8.57704803 L4.08897729,7.53151791 L3.26550666,6.88384438 L2.26623892,6.10663614 L2.91391245,4.98708618 L4.08897729,5.45896261 L5.0512351,5.84756673 L5.88395821,5.21839816 C6.28181481,4.92231883 6.66116645,4.70025933 7.04051809,4.54296719 L8.02128086,4.14511059 L8.16932053,3.09958047 L8.35437011,1.8504958 L9.64046469,1.8504958 L9.81626179,3.09958047 L9.96430145,4.14511059 L10.9450642,4.54296719 C11.3429208,4.70951181 11.71302,4.92231883 12.0831191,5.1998932 L12.9250947,5.84756673 L13.9058575,5.44971013 L15.0809223,4.9778337 L15.7285959,6.09738366 L14.7385806,6.88384438 L13.91511,7.53151791 L14.0446447,8.57704803 Z M9.00204364,5.5514874 C6.95724578,5.5514874 5.30105204,7.20768114 5.30105204,9.252479 C5.30105204,11.2972769 6.95724578,12.9534706 9.00204364,12.9534706 C11.0468415,12.9534706 12.7030352,11.2972769 12.7030352,9.252479 C12.7030352,7.20768114 11.0468415,5.5514874 9.00204364,5.5514874 Z M9.00204364,11.1029748 C7.98427095,11.1029748 7.15154784,10.2702517 7.15154784,9.252479 C7.15154784,8.23470631 7.98427095,7.4019832 9.00204364,7.4019832 C10.0198163,7.4019832 10.8525394,8.23470631 10.8525394,9.252479 C10.8525394,10.2702517 10.0198163,11.1029748 9.00204364,11.1029748 Z" id="path-1"></path>
8
+ </defs>
9
+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
+ <g id="New-Episode-Connected" transform="translate(-880.000000, -684.000000)">
11
+ <g id="icons/ic/outline-settings-24px" transform="translate(880.000000, 684.000000)">
12
+ <mask id="mask-2" fill="white">
13
+ <use xlink:href="#path-1"></use>
14
+ </mask>
15
+ <g fill-rule="nonzero"></g>
16
+ <g id="🎨-color" mask="url(#mask-2)" fill="#BDBDBD">
17
+ <g transform="translate(-3.000000, -3.000000)" id="BG">
18
+ <rect x="0" y="0" width="24" height="24"></rect>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </svg>
js/admin.js CHANGED
@@ -36,7 +36,13 @@ function powerpress_openTab(evt, cityName) {
36
  //Set/unset the interval for updating artwork previews
37
  if (cityName == 'artwork-' + feed_slug) {
38
  let el = jQuery("#powerpress_itunes_image_" + feed_slug);
39
- interval = setInterval(function() { powerpress_insertArtIntoPreview(el[0]); }, 1000);
 
 
 
 
 
 
40
  }
41
  if (cityName != 'artwork-' + feed_slug && interval) {
42
  clearInterval(interval);
@@ -183,8 +189,8 @@ function powerpress_changeMediaFile(evt, el) {
183
  //save button for edit media link
184
  function powerpress_cancelMediaEdit(el) {
185
  let feed_slug = el.id.replace("cancel-media-edit-", "");
186
- let player_size = jQuery("#pp-player-size-" + feed_slug);
187
- let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
188
  let display_filename = jQuery("#ep-box-filename-" + feed_slug);
189
  let link = display_filename.val();
190
  let input = jQuery("#pp-url-input-container-" + feed_slug);
@@ -195,13 +201,13 @@ function powerpress_cancelMediaEdit(el) {
195
  let warning = jQuery("#file-change-warning-" + feed_slug);
196
  let blubrry_info = jQuery("#ep-box-blubrry-service-" + feed_slug);
197
  let container = jQuery("#pp-media-blubrry-container-" + feed_slug);
198
- let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
199
- let video = false;
200
  if(verify_interval) {
201
  clearInterval(verify_interval);
202
  verify_interval = false;
203
  }
204
- video_types.forEach(function(element) {
205
  if (link.endsWith(element)) {
206
  player_size.removeAttr("style");
207
  player_size.attr("style", "display: block");
@@ -215,13 +221,12 @@ function powerpress_cancelMediaEdit(el) {
215
  player_size.attr("style", "display: none");
216
  player_size_line.removeAttr("style");
217
  player_size_line.attr("style", "display: none");
218
- }
219
  url_field.val(link);
220
  warning.css('display', 'none');
221
  input.removeAttr("style");
222
  input.attr("style", "display: none");
223
- show_input.removeAttr("style");
224
- show_input.attr("style", "display: inline-block");
225
  edit_media.removeAttr("style");
226
  edit_media.attr("style", "display: inline-block");
227
  buttons.removeAttr("style");
@@ -235,8 +240,8 @@ function powerpress_cancelMediaEdit(el) {
235
  function powerpress_saveMediaFile(el) {
236
  let feed_slug = el.id.replace("save-media-", "");
237
  powerpress_get_media_info(feed_slug);
238
- let player_size = jQuery("#pp-player-size-" + feed_slug);
239
- let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
240
  let link = jQuery("#pp-url-input-label-container-" + feed_slug + " > input").val();
241
  let display_filename = jQuery("#ep-box-filename-" + feed_slug);
242
  let input = jQuery("#pp-url-input-container-" + feed_slug);
@@ -251,7 +256,7 @@ function powerpress_saveMediaFile(el) {
251
  clearInterval(verify_interval);
252
  verify_interval = false;
253
  }
254
- let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
255
  let video = false;
256
  video_types.forEach(function(element) {
257
  if (link.endsWith(element)) {
@@ -267,14 +272,13 @@ function powerpress_saveMediaFile(el) {
267
  player_size.attr("style", "display: none");
268
  player_size_line.removeAttr("style");
269
  player_size_line.attr("style", "display: none");
270
- }
271
  show_input.attr("title", link);
272
  display_filename.html(link);
273
  warning.css('display', 'none');
274
  input.removeAttr("style");
275
  input.attr("style", "display: none");
276
- show_input.removeAttr("style");
277
- show_input.attr("style", "display: inline-block");
278
  edit_media.removeAttr("style");
279
  edit_media.attr("style", "display: inline-block");
280
  buttons.removeAttr("style");
@@ -309,8 +313,7 @@ function powerpress_skipToEpisodeSettings(feed_slug) {
309
  edit_file.attr("style", "display: inline-block");
310
  file_input.removeAttr("style");
311
  file_input.attr("style", "display: none");
312
- file_show.removeAttr("style");
313
- file_show.attr("style", "display: inline-block");
314
  warning.removeAttr("style");
315
  warning.attr("style", "display: none");
316
  blubrry_info.removeAttr("style");
@@ -332,8 +335,8 @@ function powerpress_skipToEpisodeSettings(feed_slug) {
332
  function powerpress_continueToEpisodeSettings(el) {
333
  let feed_slug = el.id.replace("continue-to-episode-settings-", "");
334
  powerpress_get_media_info(feed_slug);
335
- let player_size = jQuery("#pp-player-size-" + feed_slug);
336
- let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
337
  let link = jQuery("#pp-url-input-label-container-" + feed_slug + " > input").val();
338
  let file_input = jQuery("#pp-url-input-container-" + feed_slug);
339
  let file_show = jQuery("#powerpress_url_show_" + feed_slug);
@@ -352,7 +355,7 @@ function powerpress_continueToEpisodeSettings(el) {
352
  clearInterval(verify_interval);
353
  verify_interval = false;
354
  }
355
- let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
356
  let video = false;
357
  video_types.forEach(function(element) {
358
  if (link.endsWith(element)) {
@@ -368,7 +371,7 @@ function powerpress_continueToEpisodeSettings(el) {
368
  player_size.attr("style", "display: none");
369
  player_size_line.removeAttr("style");
370
  player_size_line.attr("style", "display: none");
371
- }
372
  file_show.attr("title", link);
373
  display_filename.html(link);
374
  tab_container.removeAttr("style");
@@ -379,8 +382,7 @@ function powerpress_continueToEpisodeSettings(el) {
379
  edit_file.attr("style", "display: inline-block");
380
  file_input.removeAttr("style");
381
  file_input.attr("style", "display: none");
382
- file_show.removeAttr("style");
383
- file_show.attr("style", "display: inline-block");
384
  warning.removeAttr("style");
385
  warning.attr("style", "display: none");
386
  blubrry_info.removeAttr("style");
@@ -401,6 +403,7 @@ function powerpress_continueToEpisodeSettings(el) {
401
  //keeps art previews up to date
402
  function powerpress_insertArtIntoPreview(el) {
403
  let feed_slug = el.id.replace("powerpress_itunes_image_", "");
 
404
  let art_input = "#powerpress_itunes_image_" + feed_slug;
405
  let poster_input = "#powerpress_image_" + feed_slug;
406
  let episode_artwork = jQuery(art_input);
36
  //Set/unset the interval for updating artwork previews
37
  if (cityName == 'artwork-' + feed_slug) {
38
  let el = jQuery("#powerpress_itunes_image_" + feed_slug);
39
+ let el_a = jQuery("#powerpress_image_" + feed_slug);
40
+ jQuery.merge(el, el_a);
41
+ if (el.length > 0) {
42
+ interval = setInterval(function () {
43
+ powerpress_insertArtIntoPreview(el[0]);
44
+ }, 1000);
45
+ }
46
  }
47
  if (cityName != 'artwork-' + feed_slug && interval) {
48
  clearInterval(interval);
189
  //save button for edit media link
190
  function powerpress_cancelMediaEdit(el) {
191
  let feed_slug = el.id.replace("cancel-media-edit-", "");
192
+ //let player_size = jQuery("#pp-player-size-" + feed_slug);
193
+ //let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
194
  let display_filename = jQuery("#ep-box-filename-" + feed_slug);
195
  let link = display_filename.val();
196
  let input = jQuery("#pp-url-input-container-" + feed_slug);
201
  let warning = jQuery("#file-change-warning-" + feed_slug);
202
  let blubrry_info = jQuery("#ep-box-blubrry-service-" + feed_slug);
203
  let container = jQuery("#pp-media-blubrry-container-" + feed_slug);
204
+ //let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
205
+ //let video = false;
206
  if(verify_interval) {
207
  clearInterval(verify_interval);
208
  verify_interval = false;
209
  }
210
+ /*video_types.forEach(function(element) {
211
  if (link.endsWith(element)) {
212
  player_size.removeAttr("style");
213
  player_size.attr("style", "display: block");
221
  player_size.attr("style", "display: none");
222
  player_size_line.removeAttr("style");
223
  player_size_line.attr("style", "display: none");
224
+ }*/
225
  url_field.val(link);
226
  warning.css('display', 'none');
227
  input.removeAttr("style");
228
  input.attr("style", "display: none");
229
+ show_input.css("display", "inline-block");
 
230
  edit_media.removeAttr("style");
231
  edit_media.attr("style", "display: inline-block");
232
  buttons.removeAttr("style");
240
  function powerpress_saveMediaFile(el) {
241
  let feed_slug = el.id.replace("save-media-", "");
242
  powerpress_get_media_info(feed_slug);
243
+ //let player_size = jQuery("#pp-player-size-" + feed_slug);
244
+ //let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
245
  let link = jQuery("#pp-url-input-label-container-" + feed_slug + " > input").val();
246
  let display_filename = jQuery("#ep-box-filename-" + feed_slug);
247
  let input = jQuery("#pp-url-input-container-" + feed_slug);
256
  clearInterval(verify_interval);
257
  verify_interval = false;
258
  }
259
+ /*let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
260
  let video = false;
261
  video_types.forEach(function(element) {
262
  if (link.endsWith(element)) {
272
  player_size.attr("style", "display: none");
273
  player_size_line.removeAttr("style");
274
  player_size_line.attr("style", "display: none");
275
+ }*/
276
  show_input.attr("title", link);
277
  display_filename.html(link);
278
  warning.css('display', 'none');
279
  input.removeAttr("style");
280
  input.attr("style", "display: none");
281
+ show_input.css("display", "inline-block");
 
282
  edit_media.removeAttr("style");
283
  edit_media.attr("style", "display: inline-block");
284
  buttons.removeAttr("style");
313
  edit_file.attr("style", "display: inline-block");
314
  file_input.removeAttr("style");
315
  file_input.attr("style", "display: none");
316
+ file_show.css("display", "inline-block");
 
317
  warning.removeAttr("style");
318
  warning.attr("style", "display: none");
319
  blubrry_info.removeAttr("style");
335
  function powerpress_continueToEpisodeSettings(el) {
336
  let feed_slug = el.id.replace("continue-to-episode-settings-", "");
337
  powerpress_get_media_info(feed_slug);
338
+ //let player_size = jQuery("#pp-player-size-" + feed_slug);
339
+ //let player_size_line = jQuery("#line-above-player-size-" + feed_slug);
340
  let link = jQuery("#pp-url-input-label-container-" + feed_slug + " > input").val();
341
  let file_input = jQuery("#pp-url-input-container-" + feed_slug);
342
  let file_show = jQuery("#powerpress_url_show_" + feed_slug);
355
  clearInterval(verify_interval);
356
  verify_interval = false;
357
  }
358
+ /*let video_types = [".mp4", ".m4v", ".webm", ".ogg", ".ogv"];
359
  let video = false;
360
  video_types.forEach(function(element) {
361
  if (link.endsWith(element)) {
371
  player_size.attr("style", "display: none");
372
  player_size_line.removeAttr("style");
373
  player_size_line.attr("style", "display: none");
374
+ }*/
375
  file_show.attr("title", link);
376
  display_filename.html(link);
377
  tab_container.removeAttr("style");
382
  edit_file.attr("style", "display: inline-block");
383
  file_input.removeAttr("style");
384
  file_input.attr("style", "display: none");
385
+ file_show.css("display", "inline-block");
 
386
  warning.removeAttr("style");
387
  warning.attr("style", "display: none");
388
  blubrry_info.removeAttr("style");
403
  //keeps art previews up to date
404
  function powerpress_insertArtIntoPreview(el) {
405
  let feed_slug = el.id.replace("powerpress_itunes_image_", "");
406
+ feed_slug = feed_slug.replace("powerpress_image_", "");
407
  let art_input = "#powerpress_itunes_image_" + feed_slug;
408
  let poster_input = "#powerpress_image_" + feed_slug;
409
  let episode_artwork = jQuery(art_input);
powerpress-metamarks.php CHANGED
@@ -9,25 +9,14 @@ function powerpress_metabox_save($post_ID)
9
  foreach( $Episodes as $feed_slug => $Powerpress )
10
  {
11
  $field = '_'.$feed_slug.':metamarks';
 
12
 
13
- if( !empty($Powerpress['remove_podcast']) )
14
- {
15
- delete_post_meta( $post_ID, $field);
16
- }
17
- else if( !empty($Powerpress['change_podcast']) || !empty($Powerpress['new_podcast']) )
18
  {
19
  // No URL specified, then it's not really a podcast to save
20
  if( $Powerpress['url'] == '' )
21
  continue; // go to the next media file
22
 
23
- if (isset($Powerpress['season'])) {
24
- $new = array("current_season" => $Powerpress['season']);
25
- powerpress_save_settings($new, 'powerpress_general');
26
- } else {
27
- $new = array("current_season" => null);
28
- powerpress_save_settings($new, 'powerpress_general');
29
- }
30
-
31
  if( !empty($MetaMarks[ $feed_slug ]) )
32
  {
33
  $MetaMarkData = $MetaMarks[ $feed_slug ];
@@ -120,8 +109,8 @@ function powerpress_metamarks_editrow_html($feed_slug, $next_row, $data = null,
120
  $html .= '<div class="metamark-top-section id="metamark-top-section-' . $feed_slug .'-'. $next_row . '">';
121
  $html .= '<div id="pp-metamark-preview-pos-' . $feed_slug .'-'. $next_row . '" class="pp-metamark-preview-pos-">' . $pos . '</div>';
122
  $html .= '<div id="pp-metamark-preview-type--' . $feed_slug .'-'. $next_row . '" class="pp-metamark-preview-type-">' . $type . '</div>';
123
- $html .= '<div class="pp-metamark-delete"><a href="#" onclick="return powerpress_metamarks_deleterow(\'powerpress_metamarks_row_'. $feed_slug .'_'. $next_row .'\');" title="'. __('Delete', 'powerpress') .'">';
124
- $html .= __('Delete', 'powerpress') . '</a></div><div class="pp-metamark-edit"><a href="#" id="pp-toggle-metamark-'. $next_row . '-' . $feed_slug . '" title="'. __($option, 'powerpress') .'" onclick="powerpress_toggleMetamarksSettings(this)">' . __($option, 'powerpress') . '</a></div>';
125
  $html .= '</div><div id="pp-hide-metamark-' . $feed_slug .'-'. $next_row . '"' . $class . '>';
126
  $html .= '<div class="pp-section-container"><div class="powerpress-label-container" id="pp-type-label' . $feed_slug .'-'. $next_row . '"><label class="pp-ep-box-label" style="width: 100%;" for="pp-metamark-type-'. $feed_slug .'_'. $next_row .'">' . __('Type', 'powerpress') . '</label><select id="pp-metamark-type-'. $feed_slug .'-'. $next_row .'" class="pp-ep-box-input" style="width: 100%;" type="text" title="'. __('Type', 'powerpress') .'" name="MetaMarks['.$feed_slug.']['.$next_row.'][type]">';
127
  $html .= powerpress_print_options( array(''=>'Select Type')+ $MarkTypes, $data['type'], true);
9
  foreach( $Episodes as $feed_slug => $Powerpress )
10
  {
11
  $field = '_'.$feed_slug.':metamarks';
12
+ delete_post_meta( $post_ID, $field);
13
 
14
+ if( !empty($Powerpress['change_podcast']) || !empty($Powerpress['new_podcast']) )
 
 
 
 
15
  {
16
  // No URL specified, then it's not really a podcast to save
17
  if( $Powerpress['url'] == '' )
18
  continue; // go to the next media file
19
 
 
 
 
 
 
 
 
 
20
  if( !empty($MetaMarks[ $feed_slug ]) )
21
  {
22
  $MetaMarkData = $MetaMarks[ $feed_slug ];
109
  $html .= '<div class="metamark-top-section id="metamark-top-section-' . $feed_slug .'-'. $next_row . '">';
110
  $html .= '<div id="pp-metamark-preview-pos-' . $feed_slug .'-'. $next_row . '" class="pp-metamark-preview-pos-">' . $pos . '</div>';
111
  $html .= '<div id="pp-metamark-preview-type--' . $feed_slug .'-'. $next_row . '" class="pp-metamark-preview-type-">' . $type . '</div>';
112
+ $html .= '<div class="pp-metamark-delete"><a href="" onclick="return powerpress_metamarks_deleterow(\'powerpress_metamarks_row_'. $feed_slug .'_'. $next_row .'\');" title="'. __('Delete', 'powerpress') .'">';
113
+ $html .= __('Delete', 'powerpress') . '</a></div><div class="pp-metamark-edit"><a href="" id="pp-toggle-metamark-'. $next_row . '-' . $feed_slug . '" title="'. __($option, 'powerpress') .'" onclick="powerpress_toggleMetamarksSettings(this); return false;">' . __($option, 'powerpress') . '</a></div>';
114
  $html .= '</div><div id="pp-hide-metamark-' . $feed_slug .'-'. $next_row . '"' . $class . '>';
115
  $html .= '<div class="pp-section-container"><div class="powerpress-label-container" id="pp-type-label' . $feed_slug .'-'. $next_row . '"><label class="pp-ep-box-label" style="width: 100%;" for="pp-metamark-type-'. $feed_slug .'_'. $next_row .'">' . __('Type', 'powerpress') . '</label><select id="pp-metamark-type-'. $feed_slug .'-'. $next_row .'" class="pp-ep-box-input" style="width: 100%;" type="text" title="'. __('Type', 'powerpress') .'" name="MetaMarks['.$feed_slug.']['.$next_row.'][type]">';
116
  $html .= powerpress_print_options( array(''=>'Select Type')+ $MarkTypes, $data['type'], true);
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.2.10
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.2.10' );
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.2.11
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.2.11' );
40
 
41
  // Translation support:
42
  if ( !defined('POWERPRESS_ABSPATH') )
powerpressadmin-basic.php CHANGED
@@ -47,14 +47,6 @@ function CheckRedirect(obj)
47
  return true;
48
  }
49
 
50
- function SelectEmbedField(checked)
51
- {
52
- if( checked )
53
- jQuery('#embed_replace_player').removeAttr("disabled");
54
- else
55
- jQuery('#embed_replace_player').attr("disabled","disabled");
56
- }
57
-
58
  jQuery(document).ready(function($) {
59
 
60
 
@@ -750,17 +742,7 @@ function powerpressadmin_appearance($General=false, $Feed = false)
750
  </table>
751
 
752
 
753
- <table class="form-table">
754
- <tr valign="top">
755
- <th scope="row">
756
- <?php echo __('Episode Box Appearance', 'powerpress'); ?></th>
757
- <td>
758
 
759
- <p><label><input type="checkbox" name="General[skip_to_episode_settings]" value="2" <?php if( isset($General['skip_to_episode_settings']) && $General['skip_to_episode_settings'] ) echo 'checked '; ?>/> <?php echo __('Skip Media Verification', 'powerpress'); ?></label></p>
760
- <p><?php echo __('Check this box to display all episode settings before the media is verified. If this setting is selected, you risk losing all your entered data if you try to publish an episode that has no media attached. This setting should only be enabled by very experienced PowerPress users.', 'powerpress'); ?></p>
761
- </td>
762
- </tr>
763
- </table>
764
  </div><!-- end enable_presentation_settings -->
765
  <div id="presentation_settings"<?php if($General['disable_appearance']) echo ' style="display: none;"'; ?>>
766
  <!-- start presentation_settings in advanced mode -->
47
  return true;
48
  }
49
 
 
 
 
 
 
 
 
 
50
  jQuery(document).ready(function($) {
51
 
52
 
742
  </table>
743
 
744
 
 
 
 
 
 
745
 
 
 
 
 
 
746
  </div><!-- end enable_presentation_settings -->
747
  <div id="presentation_settings"<?php if($General['disable_appearance']) echo ' style="display: none;"'; ?>>
748
  <!-- start presentation_settings in advanced mode -->
powerpressadmin-editfeed.php CHANGED
@@ -622,7 +622,7 @@ else
622
  <?php echo __('Show the most recent', 'powerpress'); ?>
623
  </th>
624
  <td>
625
- <p><input type="text" name="Feed[posts_per_rss]" style="width: 50px;" value="<?php echo ( !empty($FeedSettings['posts_per_rss'])? $FeedSettings['posts_per_rss']:''); ?>" maxlength="5" /> <?php echo sprintf(__('episodes / posts per feed (site default: %d, maximum: %d)', 'powerpress'), get_option('posts_per_rss'), 300); ?></p>
626
  <p style="margin-top: 5px; margin-bottom: 0; font-weight: bold;"><?php echo __('Please enable the <i>Feed Episode Maximizer</i> option to optimize your feed for more than 10 episodes.', 'powerpress'); ?></p>
627
  </td>
628
  </tr>
622
  <?php echo __('Show the most recent', 'powerpress'); ?>
623
  </th>
624
  <td>
625
+ <p><input type="text" name="Feed[posts_per_rss]" style="width: 50px;" value="<?php echo ( !empty($FeedSettings['posts_per_rss'])? $FeedSettings['posts_per_rss']:''); ?>" maxlength="5" /> <?php echo sprintf(__('episodes / posts per feed (site default: %d, recommended: %d)', 'powerpress'), get_option('posts_per_rss'), 300); ?></p>
626
  <p style="margin-top: 5px; margin-bottom: 0; font-weight: bold;"><?php echo __('Please enable the <i>Feed Episode Maximizer</i> option to optimize your feed for more than 10 episodes.', 'powerpress'); ?></p>
627
  </td>
628
  </tr>
powerpressadmin-epbox-options.php ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function powerpress_epbox_main_tab($General) {
4
+ ?>
5
+ <script>
6
+ function SelectEmbedField(checked)
7
+ {
8
+ if( checked )
9
+ jQuery('#embed_replace_player').removeAttr("disabled");
10
+ else
11
+ jQuery('#embed_replace_player').attr("disabled","disabled");
12
+ }
13
+ </script>
14
+ <h4 class="pp-section-title-block"><?php echo __('Episode Entry Options', 'powerpress'); ?></h4>
15
+ <br />
16
+ <div class="pp-section-container" style="margin: 2em 0 0 2em;">
17
+
18
+ <input id="episode_box_flag" class="ep-box-checkbox" name="General[new_episode_box_flag]" type="hidden" value="1" />
19
+
20
+
21
+ <p class="pp-ep-box-text"><b><?php echo __('Podcast Entry Box', 'powerpress'); ?></b></p>
22
+
23
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;">
24
+ <?php echo __('Configure your podcast episode entry box with the options that fit your needs.', 'powerpress'); ?>
25
+ </p>
26
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
27
+ <div id="episode_box_mode_adv">
28
+
29
+ <p class="pp-ep-box-settings-text" style="margin-top: 0;"><input class="ep-box-checkbox" name="Null[ignore]" type="checkbox" value="1" checked onclick="return false" onkeydown="return false" disabled /> <?php echo __('Media URL', 'powerpress'); ?>
30
+ (<?php echo __('Specify URL to episode\'s media file', 'powerpress'); ?>)</p>
31
+ <!--
32
+ <p style="margin-top: 3ch;"><input id="episode_box_mode" class="ep-box-checkbox" name="General[new_episode_box_mode]" type="checkbox" value="2" <?php //if( empty($General['new_episode_box_mode']) || $General['new_episode_box_mode'] != 1 ) echo ' checked'; ?> /> <?php //echo __('Media File Size and Duration', 'powerpress'); ?>
33
+ (<?php //echo __('Specify episode\'s media file size and duration', 'powerpress'); ?>)</p>
34
+ -->
35
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch; margin-bottom: 0;"><input id="episode_box_embed" class="ep-box-checkbox" name="General[new_episode_box_embed]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_embed']) || $General['new_episode_box_embed'] == 1 ) echo ' checked'; ?> onclick="SelectEmbedField(this.checked);" /> <?php echo __('Embed Field', 'powerpress'); ?>
36
+ (<?php echo __('Enter embed code from sites such as YouTube', 'powerpress'); ?>)</p>
37
+ <p class="pp-ep-box-settings-text" style="margin-top: 1.5ch; margin-left: 6.5ch; font-size: 85%;"><input id="embed_replace_player" class="ep-box-checkbox" name="General[new_embed_replace_player]" type="checkbox" value="1"<?php if( !isset($General['embed_replace_player']) || $General['embed_replace_player'] == 1 ) echo ' checked'; ?> /> <?php echo __('Replace Player with Embed', 'powerpress'); ?>
38
+ (<?php echo __('Do not display default player if embed present for episode.', 'powerpress'); ?>)</p>
39
+
40
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_player_links_options" class="ep-box-checkbox" name="NULL[new_episode_box_player_links_options]" type="checkbox" value="1" checked disabled /> <?php echo __('Display Player and Links Options', 'powerpress'); ?>
41
+ </p>
42
+ <div id="episode_box_player_links_options_div" style="margin-left: 3em;">
43
+
44
+ <p class="pp-ep-box-settings-text" style="margin-top: 10px; margin-bottom: 5px;"><input id="episode_box_no_player" class="ep-box-checkbox episode_box_no_player_or_links" name="General[new_episode_box_no_player]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_no_player']) || $General['new_episode_box_no_player'] == 1) echo ' checked'; ?> /> <?php echo __('No Player Option', 'powerpress'); ?>
45
+ (<?php echo __('Disable media player on a per episode basis', 'powerpress'); ?>)</p>
46
+
47
+ <p class="pp-ep-box-settings-text" style="margin-top: 10px; margin-bottom: 20px;"><input id="episode_box_no_links" class="ep-box-checkbox episode_box_no_player_or_links" name="General[new_episode_box_no_links]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_no_links']) || $General['new_episode_box_no_links'] == 1 ) echo ' checked'; ?> /> <?php echo __('No Links Option', 'powerpress'); ?>
48
+ (<?php echo __('Disable media links on a per episode basis', 'powerpress'); ?>)</p>
49
+
50
+ </div>
51
+
52
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_cover_image" class="ep-box-checkbox" name="General[new_episode_box_cover_image]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_cover_image']) || $General['new_episode_box_cover_image'] == 1 ) echo ' checked'; ?> /> <?php echo __('Poster Image', 'powerpress'); ?>
53
+ (<?php echo __('Specify URL to poster artwork specific to each episode', 'powerpress'); ?>)</p>
54
+
55
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_player_size" class="ep-box-checkbox" name="General[new_episode_box_player_size]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_player_size']) || $General['new_episode_box_player_size'] == 1 ) echo ' checked'; ?> /> <?php echo __('Player Width and Height', 'powerpress'); ?>
56
+ (<?php echo __('Customize player width and height on a per episode basis', 'powerpress'); ?>)</p>
57
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_subtitle" class="ep-box-checkbox" name="General[new_episode_box_subtitle]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_subtitle']) || $General['new_episode_box_subtitle'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Subtitle Field', 'powerpress'); ?>
58
+ (<?php echo __('Leave unchecked to use the first 250 characters of your blog post', 'powerpress'); ?>)</p>
59
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_summary" class="ep-box-checkbox" name="General[new_episode_box_summary]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_summary']) || $General['new_episode_box_summary'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Summary Field', 'powerpress'); ?>
60
+ (<?php echo __('Leave unchecked to use your blog post', 'powerpress'); ?>)</p>
61
+
62
+
63
+
64
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_author" class="ep-box-checkbox" name="General[new_episode_box_author]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_author']) || $General['new_episode_box_author'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Author Field', 'powerpress'); ?>
65
+ (<?php echo __('Leave unchecked to the post author name', 'powerpress'); ?>)</p>
66
+
67
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><input id="episode_box_explicit" class="ep-box-checkbox" name="General[new_episode_box_explicit]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_explicit']) || $General['new_episode_box_explicit'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Explicit Field', 'powerpress'); ?>
68
+ (<?php echo __('Leave unchecked to use your feed\'s explicit setting', 'powerpress'); ?>)</p>
69
+
70
+
71
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><label><input id="episode_box_itunes_image" class="ep-box-checkbox" name="General[new_episode_box_itunes_image]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_itunes_image']) || $General['new_episode_box_itunes_image'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Episode Image Field', 'powerpress'); ?></label>
72
+ (<?php echo __('Leave unchecked to use the image embedded into your media files.', 'powerpress'); ?>)</p>
73
+
74
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><label><input id="episode_box_order" class="ep-box-checkbox" name="General[new_episode_box_order]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_order']) || $General['new_episode_box_order'] == 1 ) echo ' checked'; ?> <?php if( !isset($General['new_episode_box_feature_in_itunes']) || $General['new_episode_box_feature_in_itunes'] == 1 ) echo ' checked disabled'; ?> /> <?php echo __('Apple Podcast Order', 'powerpress'); ?></label>
75
+ (<?php echo __('Override the default ordering of episodes on the Apple and Google Podcast directories', 'powerpress'); ?>)</p>
76
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('If conflicting values are present the directories will use the default ordering.', 'powerpress'); ?><br />
77
+ <?php echo __('This feature only applies to the default podcast feed and Custom Podcast Channel feeds added by PowerPress.', 'powerpress'); ?></em></p>
78
+
79
+ <p class="pp-ep-box-settings-text"><label><!--<select name="General[ebititle]" class="bpp_input_sm">
80
+ <?php
81
+ $linkoptions = array('false'=>__('Hide Field', 'powerpress'),
82
+ 1=>__('Show Field', 'powerpress') );
83
+
84
+ foreach( $linkoptions as $value => $desc )
85
+ echo "\t<option value=\"$value\"". ( ( ( !empty($General['new_episode_box_itunes_title']) && $General['new_episode_box_itunes_title'] == $value ) || ( !isset($General['new_episode_box_itunes_title']) && $value == 1 ) ) ?' selected':''). ">$desc</option>\n";
86
+
87
+ ?>
88
+ </select>--> <input id="episode_box_itunes_title" class="ep-box-checkbox" name="General[new_episode_box_itunes_title]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_itunes_title']) || $General['new_episode_box_itunes_title'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Episode Title Field', 'powerpress'); ?></label> </p>
89
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('Specify Apple Podcast episode title separate from podcast feed title.', 'powerpress'); ?></em></p>
90
+
91
+
92
+ <p class="pp-ep-box-settings-text"><label><!--<select name="General[ebinst]" class="bpp_input_sm">
93
+ <?php
94
+ $linkoptions = array('false'=>__('Hide Field', 'powerpress'),
95
+ 1=>__('Show Field', 'powerpress') );
96
+
97
+ foreach( $linkoptions as $value => $desc )
98
+ echo "\t<option value=\"$value\"". ( ( ( !empty($General['new_episode_box_itunes_nst']) && $General['new_episode_box_itunes_nst'] == $value ) || ( !isset($General['new_episode_box_itunes_title']) && $value == 1 ) ) ?' selected':''). ">$desc</option>\n";
99
+
100
+ ?>
101
+ </select>--><input id="episode_box_itunes_nst" class="ep-box-checkbox" name="General[new_episode_box_itunes_nst]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_itunes_nst']) || $General['new_episode_box_itunes_nst'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Episode Number, Season and Type Fields', 'powerpress'); ?></label> </p>
102
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('Enter specifics about episode including episode number, season number and type (full, trailer, or bonus).', 'powerpress'); ?></em></p>
103
+
104
+ <p class="pp-ep-box-settings-text" style="margin-top: 3ch;"><label><input id="episode_box_feature_in_itunes" class="ep-box-checkbox" name="General[new_episode_box_feature_in_itunes]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_feature_in_itunes']) || $General['new_episode_box_feature_in_itunes'] == 1 ) echo ' checked'; ?> /> <?php echo __('Feature Episode in Apple and Google Podcasts', 'powerpress'); ?></label>
105
+ (<?php echo __('Display selected episode at top of your show\'s listings', 'powerpress'); ?>)</p>
106
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('All other episodes will be listed following the featured episode.', 'powerpress'); ?></em><br />
107
+ <em><?php echo __('This feature only applies to the default podcast feed and Custom Podcast Channel feeds added by PowerPress.', 'powerpress'); ?></em></p>
108
+
109
+ <!--
110
+ <p style="margin-top: 3ch;"><input id="episode_box_gp_desc" class="ep-box-checkbox" name="General[new_episode_box_gp_desc]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_gp_desc']) || $General['new_episode_box_gp_desc'] == 1 ) echo ' checked'; ?> /> <?php echo __('Google Play Description Field', 'powerpress'); ?>
111
+ (<?php echo __('Leave unchecked to use your blog post', 'powerpress'); ?>)</p>
112
+ <p style="margin-top: 3ch;"><input id="episode_box_gp_explicit" class="ep-box-checkbox" name="General[new_episode_box_gp_explicit]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_gp_explicit']) || $General['new_episode_box_gp_explicit'] == 1 ) echo ' checked'; ?> /> <?php echo __('Google Play Explicit Field', 'powerpress'); ?>
113
+ (<?php echo __('Leave unchecked to use your feed\'s explicit setting', 'powerpress'); ?>)</p>
114
+ -->
115
+ </div>
116
+ </div>
117
+ <script language="javascript"><!--
118
+ SelectEmbedField(<?php echo $General['new_episode_box_embed']; ?>);
119
+ //-->
120
+ </script>
121
+
122
+
123
+ <?php }
124
+
125
+ function powerpress_epbox_permalinks_tab($General) {
126
+ global $wp_rewrite;
127
+ if( $wp_rewrite->permalink_structure ) // Only display if permalinks is enabled in WordPress
128
+ {
129
+ ?>
130
+ <h4 class="pp-section-title-block"><?php echo __('Permalinks', 'powerpress'); ?></h4>
131
+ <br />
132
+ <div class="pp-section-container" style="margin: 2em 0 0 2em;">
133
+ <p class="pp-ep-box-text"><b><?php echo __('Podcast Permalinks', 'powerpress'); ?></b></p>
134
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
135
+
136
+ <select name="General[permalink_feeds_only]" class="pp-ep-box-input" style="width: 60%; height: 42px;">
137
+ <?php
138
+ $options = array(0=>__('Default WordPress Behavior', 'powerpress'), 1=>__('Match Feed Name to Page/Category', 'powerpress') );
139
+ $current_value = (!empty($General['permalink_feeds_only'])?$General['permalink_feeds_only']:0);
140
+
141
+ foreach( $options as $value => $desc )
142
+ echo "\t<option value=\"$value\"". ($current_value==$value?' selected':''). ">$desc</option>\n";
143
+
144
+ ?>
145
+ </select>
146
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;"><?php echo sprintf(__('When configured, %s/podcast/ is matched to page/category named \'podcast\'.', 'powerpress'), get_bloginfo('url') ); ?></p>
147
+
148
+ </div>
149
+ <?php
150
+ }
151
+ ?>
152
+
153
+ <?php }
154
+
155
+ function powerpress_epbox_advanced_tab($General) {
156
+ $DefaultMediaURL = false;
157
+ if( !empty($General['default_url']) )
158
+ $DefaultMediaURL = true;
159
+
160
+ ?>
161
+ <h4 class="pp-section-title-block"><?php echo __('Advanced Options', 'powerpress'); ?></h4>
162
+ <br />
163
+
164
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
165
+ <p class="pp-ep-box-text"><b><?php echo __('Episode Box Appearance', 'powerpress'); ?></b></p>
166
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
167
+
168
+ <p class="pp-ep-box-settings-text" style="margin: 0;"><label><input type="checkbox" class="ep-box-checkbox" name="General[skip_to_episode_settings]" value="2" <?php if( isset($General['skip_to_episode_settings']) && $General['skip_to_episode_settings'] ) echo 'checked '; ?>/> <?php echo __('Skip Media Verification', 'powerpress'); ?></label></p>
169
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('Check this box to display all episode settings before the media is verified. If this setting is selected, you risk losing all your entered data if you try to publish an episode that has no media attached. This setting should only be enabled by very experienced PowerPress users.', 'powerpress'); ?></em></p>
170
+
171
+ </div>
172
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
173
+ <p class="pp-ep-box-text"><b><?php echo __('Block Feed', 'powerpress'); ?></b></p>
174
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
175
+ <div id="advanced_basic_options">
176
+ <p class="pp-ep-box-settings-text" style="margin: 0;"><label><input id="episode_box_block" class="ep-box-checkbox" name="General[new_episode_box_block]" type="checkbox" value="1"<?php if( !isset($General['new_episode_box_block']) || $General['new_episode_box_block'] == 1 ) echo ' checked'; ?> /> <?php echo __('Apple Podcast Block', 'powerpress'); ?> (<?php echo htmlspecialchars('<itunes:block>yes</itunes:block>'); ?>)</label></p>
177
+ <p class="pp-ep-box-settings-text" style="margin: 0 0 0 3em;"><em><?php echo __('Prevent episodes from appearing in Apple Podcast and other diretories that support the iTunes:block tag. Episodes may still appear in other directories and applications.', 'powerpress'); ?></em></p>
178
+ </div>
179
+ </div>
180
+
181
+ <?php if( $DefaultMediaURL || defined('POWERPRESS_DEFAULT_MEDIA_URL') ) { ?>
182
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
183
+ <p class="pp-ep-box-text"><b><?php echo __('Default Media URL', 'powerpress'); ?></b></p>
184
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
185
+ <input type="text" style="width: 60%; height: 42px;" name="General[default_url]" value="<?php echo esc_attr($General['default_url']); ?>" maxlength="255" />
186
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;"><?php echo __('e.g. http://example.com/mediafolder/', 'powerpress'); ?></p>
187
+ <p class="pp-ep-box-settings-text" style="margin-top: 0;"><?php echo __('URL above will prefix entered file names that do not start with \'http://\'. URL above must end with a trailing slash. You may leave blank if you always enter the complete URL to your media when creating podcast episodes.', 'powerpress'); ?>
188
+ </p>
189
+
190
+ </div>
191
+ <?php } ?>
192
+
193
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
194
+ <p class="pp-ep-box-text"><b><?php echo __('File Size Default', 'powerpress'); ?></b></p>
195
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
196
+ <select name="General[set_size]" class="pp-ep-box-input" style="width: 60%; height: 42px;">
197
+ <?php
198
+ $options = array(0=>__('Auto detect file size', 'powerpress'), 1=>__('User specify', 'powerpress') );
199
+
200
+ foreach( $options as $value => $desc )
201
+ echo "\t<option value=\"$value\"". ($General['set_size']==$value?' selected':''). ">$desc</option>\n";
202
+
203
+ ?>
204
+ </select>
205
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;">(<?php echo __('specify default file size option when creating a new episode', 'powerpress'); ?>)</p>
206
+ </div>
207
+
208
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
209
+ <p class="pp-ep-box-text"><b><?php echo __('Duration Default', 'powerpress'); ?></b></p>
210
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
211
+ <select name="General[set_duration]" class="pp-ep-box-input" style="width: 60%; height: 42px;">
212
+ <?php
213
+ $options = array(0=>__('Auto detect duration', 'powerpress'), 1=>__('User specify', 'powerpress'), -1=>__('Not specified (not recommended)', 'powerpress') );
214
+
215
+ foreach( $options as $value => $desc )
216
+ echo "\t<option value=\"$value\"". ($General['set_duration']==$value?' selected':''). ">$desc</option>\n";
217
+
218
+ ?>
219
+ </select>
220
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;">(<?php echo __('specify default duration option when creating a new episode', 'powerpress'); ?>)</p>
221
+ </div>
222
+
223
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
224
+ <p class="pp-ep-box-text"><b><?php echo __('Auto Add Media', 'powerpress'); ?></b></p>
225
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
226
+ <select name="General[auto_enclose]" class="pp-ep-box-input" style="width: 60%; height: 42px;">
227
+ <?php
228
+ $options = array(0=>__('Disabled (default)', 'powerpress'), 1=>__('First media link found in post content', 'powerpress'), 2=>__('Last media link found in post content', 'powerpress') );
229
+
230
+ foreach( $options as $value => $desc )
231
+ echo "\t<option value=\"$value\"". ($General['auto_enclose']==$value?' selected':''). ">$desc</option>\n";
232
+
233
+ ?>
234
+ </select>
235
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;"><?php echo __('When enabled, the first or last media link found in the post content is automatically added as your podcast episode.', 'powerpress'); ?></p>
236
+ <p class="pp-ep-box-settings-text" style="margin-top: 0;"><em><?php echo __('NOTE: Use this feature with caution. Links to media files could unintentionally become podcast episodes.', 'powerpress'); ?></em></p>
237
+ <p class="pp-ep-box-settings-text" style="margin-top: 0;"><em><?php echo __('WARNING: Episodes created with this feature will <u>not</u> include Duration (total play time) information.', 'powerpress'); ?></em></p>
238
+ </div>
239
+
240
+ <div class="pp-section-container" style="margin: 3em 0 0 2em;">
241
+ <p class="pp-ep-box-text"><b><?php echo __('Disable Warnings', 'powerpress'); ?></b></p>
242
+ <div class="ep-box-line-margin-bold" style="width: 100%;"></div>
243
+ <select name="General[hide_warnings]" class="pp-ep-box-input" style="width: 60%; height: 42px;">
244
+ <?php
245
+ $options = array(0=>__('No (default)', 'powerpress'), 1=>__('Yes', 'powerpress') );
246
+ $current_value = (!empty($General['hide_warnings'])?$General['hide_warnings']:0);
247
+ foreach( $options as $value => $desc )
248
+ echo "\t<option value=\"$value\"". ($current_value==$value?' selected':''). ">$desc</option>\n";
249
+
250
+ ?>
251
+ </select>
252
+ <p class="pp-ep-box-settings-text" style="margin-top: 1ch;"><?php echo __('Disable warning messages displayed in episode entry box. Errors are still displayed.', 'powerpress'); ?></p>
253
+ </div>
254
+
255
+ <?php } ?>
powerpressadmin-jquery.php CHANGED
@@ -1035,6 +1035,43 @@ self.parent.tb_remove();
1035
  else
1036
  echo "Error";
1037
  }; break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1038
  }
1039
 
1040
  }
1035
  else
1036
  echo "Error";
1037
  }; break;
1038
+ case 'powerpress-ep-box-options': {
1039
+ if (defined('WP_DEBUG')) {
1040
+ if (WP_DEBUG) {
1041
+ wp_register_style('powerpress-episode-box', powerpress_get_root_url() . 'css/episode-box.css', array(), POWERPRESS_VERSION);
1042
+ } else {
1043
+ wp_register_style('powerpress-episode-box', powerpress_get_root_url() . 'css/episode-box.min.css', array(), POWERPRESS_VERSION);
1044
+ }
1045
+ } else {
1046
+ wp_register_style('powerpress-episode-box', powerpress_get_root_url() . 'css/episode-box.min.css', array(), POWERPRESS_VERSION);
1047
+ }
1048
+ wp_enqueue_style( 'powerpress-episode-box' );
1049
+ wp_enqueue_script('powerpress-admin', powerpress_get_root_url() . 'js/admin.js', array(), POWERPRESS_VERSION );
1050
+
1051
+ powerpress_admin_jquery_header( __('PowerPress Entry Box Settings','powerpress') );
1052
+ require_once(dirname(__FILE__). '/views/ep-box-settings.php');
1053
+ powerpressadmin_edit_entry_options($Settings);
1054
+ powerpress_admin_jquery_footer();
1055
+ }; break;
1056
+ case 'powerpress-ep-box-options-save': {
1057
+ if( !current_user_can(POWERPRESS_CAPABILITY_MANAGE_OPTIONS) )
1058
+ {
1059
+ powerpress_admin_jquery_header('PowerPress Entry Box Settings', 'powerpress');
1060
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to manage options.', 'powerpress') );
1061
+ powerpress_page_message_print();
1062
+ powerpress_admin_jquery_footer();
1063
+ exit;
1064
+ }
1065
+
1066
+ check_admin_referer('powerpress-edit');
1067
+ $Settings = $_POST['General'];
1068
+ powerpress_save_settings($Settings);
1069
+ powerpress_admin_jquery_header('PowerPress Entry Box Settings', 'powerpress');
1070
+ powerpress_page_message_add_notice( __('Settings will be applied on page refresh. If you\'ve already entered information into this post, simply finish the post and the settings will apply when you start your next one.', 'powerpress') );
1071
+ powerpress_page_message_print();
1072
+ powerpress_admin_jquery_footer();
1073
+ exit;
1074
+ }; break;
1075
  }
1076
 
1077
  }
powerpressadmin-metabox.php CHANGED
@@ -34,7 +34,12 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
34
  }
35
  ?>
36
  <div id="a-pp-selected-media-<?php echo $FeedSlug; ?>" <?php echo $padding; ?>>
37
- <h3 id="pp-pp-selected-media-head-<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Media URL', 'powerpress')); ?></h3>
 
 
 
 
 
38
  <div id="pp-media-blubrry-container-<?php echo $FeedSlug; ?>" <?php echo $style_attr; ?>>
39
  <div id="pp-selected-media-text-<?php echo $FeedSlug; ?>">
40
  <div id="media-input-<?php echo $FeedSlug; ?>">
@@ -46,11 +51,11 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
46
  </div>
47
  <div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
48
  <div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
49
- onclick="powerpress_saveMediaFile(this)"><?php echo esc_html(__('VERIFY', 'powerpress')); ?></div>
50
  </div>
51
  <div id="select-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style1 ?>">
52
  <div id="continue-to-episode-settings-<?php echo $FeedSlug; ?>" class="pp-blue-button"
53
- onclick="powerpress_continueToEpisodeSettings(this)"><?php echo esc_html(__('VERIFY', 'powerpress')); ?></div>
54
  </div>
55
  </div>
56
  <div style="<?php echo $style3 ?>" title="<?php echo $EnclosureURL; ?>"
@@ -125,7 +130,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
125
  <div id="file-change-warning-<?php echo $FeedSlug; ?>"
126
  style="background-color: #f5f5f5; box-shadow: none; margin-left: 0; padding-left: 3px; display:none; color: #dc3232;"><?php echo esc_html(__('You must have a media file selected to save.', 'powerpress')); ?></div>
127
  <div id="powerpress_warning_<?php echo $FeedSlug; ?>"
128
- style="background-color: #f5f5f5; box-shadow: none; margin-left: 0; padding-left: 3px; display:none; color: #dc3232;"></div>
129
  <input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>"
130
  name="Powerpress[<?php echo $FeedSlug; ?>][hosting]"
131
  value="<?php echo(!empty($ExtraData['hosting']) ? '1' : '0'); ?>"/>
@@ -144,7 +149,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
144
  <div>
145
  <div id="edit-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style3 ?>">
146
  <button id="pp-edit-media-button-<?php echo $FeedSlug; ?>" class="media-details"
147
- onclick="powerpress_changeMediaFile(event, this)"><?php echo esc_html(__('Edit Media File', 'powerpress')); ?></button>
148
  </div>
149
  <div id="show-hide-media-details-<?php echo $FeedSlug; ?>">
150
  <!--<div class="ep-box-line-bold"></div>-->
@@ -264,7 +269,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
264
  <?php if($EnclosureURL) { ?>
265
  <div class="powerpress_remove_container">
266
  <div class="powerpress_row_content">
267
- <input type="checkbox" class='ep-box-checkbox' name="Powerpress[$FeedSlug][remove_podcast]" id="powerpress_remove_$FeedSlug" value="1" onchange="javascript:document.getElementById('a-pp-selected-media-<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');javascript:document.getElementById('tab-container-<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');" />
268
  <b><?php echo esc_html(__('Remove Episode', 'powerpress')); ?></b><?php echo esc_html(__(' - Podcast episode will be removed from this post upon save', 'powerpress')); ?>
269
  </div>
270
  </div>
@@ -294,6 +299,17 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
294
  if (empty($ExtraData['feed_title'])) {
295
  $ExtraData['feed_title'] = '';
296
  }
 
 
 
 
 
 
 
 
 
 
 
297
 
298
  // episode title
299
  ?>
@@ -326,12 +342,14 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
326
  </div>
327
  <p class="pp-ep-box-text"><?php echo esc_html(__("The episode description is pulled from your WordPress post content, which can be edited above.", 'powerpress')); ?></p>
328
  </div>
 
329
  <div id="apple-podcast-opt-<?php echo $FeedSlug; ?>" class="pp-section-container">
330
  <div class="pp-section-container">
331
  <h4 class="pp-section-title"><?php echo esc_html(__("Apple Podcasts Optimization (optional)", 'powerpress')); ?></h4>
332
  <div class="pp-tooltip-right">i
333
  <span class="text-pp-tooltip"><?php echo esc_html(__('Fill this section out thoroughly to optimize the exposure that your podcast gets on Apple.', 'powerpress')); ?></span>
334
  </div>
 
335
  <div id="pp-explicit-container-<?php echo $FeedSlug; ?>">
336
  <input type="number" style="display: none" id="powerpress_explicit_<?php echo $FeedSlug; ?>"
337
  name="Powerpress[<?php echo $FeedSlug; ?>][explicit]" value="<?php echo $iTunesExplicit ? $iTunesExplicit : 0; ?>">
@@ -351,8 +369,10 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
351
  "><?php echo esc_html(__('EXPLICIT', 'powerpress')); ?></div>
352
  </div>
353
  </div>
 
354
  </div>
355
  <div class="pp-section-container">
 
356
  <div class="powerpress-label-container" id="apple-title-container-<?php echo $FeedSlug; ?>">
357
  <label class="pp-ep-box-label-apple"
358
  for="powerpress_episode_apple_title_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Title', 'powerpress')); ?></label>
@@ -361,6 +381,9 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
361
  name="Powerpress[<?php echo $FeedSlug; ?>][episode_title]"
362
  value="<?php echo esc_attr($ExtraData['episode_title']); ?>" maxlength="255"/>
363
  </div>
 
 
 
364
  <div class="powerpress-label-container" id="episode-no-container-<?php echo $FeedSlug; ?>">
365
  <label class="pp-ep-box-label-apple"
366
  for="powerpress_episode_episode_no_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Episode #', 'powerpress')); ?></label>
@@ -389,6 +412,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
389
  echo " />";
390
  } ?>
391
  </div>
 
392
  </div>
393
  <?php
394
  $iTunesFeatured = get_option('powerpress_itunes_featured');
@@ -402,6 +426,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
402
  var hide_settings = "<?php echo esc_js(__("Hide Settings &#708;", "powerpress")); ?>";
403
  </script>
404
 
 
405
  <div id="show-hide-apple-<?php echo $FeedSlug; ?>">
406
  <div class="ep-box-line-margin" style="border-top: 2px solid #EFEFEF;"></div>
407
  <div id="apple-advanced-container-<?php echo $FeedSlug; ?>">
@@ -409,7 +434,9 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
409
  onclick="powerpress_showHideAppleAdvanced(this); return false;"><?php echo esc_html(__('See More Settings &#709;', 'powerpress')); ?></button>
410
  </div>
411
  </div>
 
412
  <div id="apple-advanced-settings-<?php echo $FeedSlug; ?>" class="pp-hidden-settings">
 
413
  <div class="apple-opt-section-container">
414
  <div id="apple-summary-<?php echo $FeedSlug; ?>" class="powerpress-label-container" style="width: 100%;">
415
  <label class="pp-ep-box-label-apple"
@@ -419,6 +446,8 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
419
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use post content.', 'powerpress')); ?></label>
420
  </div>
421
  </div>
 
 
422
  <div class="apple-opt-section-container">
423
  <div class="powerpress-label-container" style="width: 100%;" id="apple-author-<?php echo $FeedSlug; ?>">
424
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo esc_html(__('Author', 'powerpress')); ?></label>
@@ -426,6 +455,8 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
426
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use default.', 'powerpress')); ?></label>
427
  </div>
428
  </div>
 
 
429
  <div class="apple-opt-section-container">
430
  <div class="powerpress-label-container" style="width: 100%;" id="apple-subtitle-<?php echo $FeedSlug; ?>">
431
  <label class="pp-ep-box-label"
@@ -436,7 +467,10 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
436
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use post excerpt.', 'powerpress')); ?></label>
437
  </div>
438
  </div>
 
439
  <div class="apple-opt-section-container">
 
 
440
  <div class="powerpress-label-container">
441
  <label class="pp-ep-box-label-apple"
442
  for="powerpress_episode_type_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Type', 'powerpress')); ?></label>
@@ -450,7 +484,15 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
450
  ?>
451
  </select>
452
  </div>
453
- <div class="powerpress-label-container" style="float: right;">
 
 
 
 
 
 
 
 
454
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][block]"><?php echo esc_html(__('Block', 'powerpress')); ?></label>
455
  <select class="pp-ep-box-input" id="powerpress_block_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][block]" title="<?php echo esc_attr(__("Apple Podcasts block episode","powerpress")); ?>">
456
  <?php
@@ -462,8 +504,10 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
462
  ?>
463
  </select>
464
  </div>
 
465
  </div>
466
  <div class="apple-opt-section-container">
 
467
  <div class="powerpress-label-container" id="apple-feature-<?php echo $FeedSlug; ?>" style="width: 65%;">
468
  <h4 class="pp-section-title-block" style="width: 100%;"><?php echo esc_html(__("Feature Episode", 'powerpress')); ?></h4>
469
  <?php if ($FeaturedChecked) { ?>
@@ -475,18 +519,26 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $Gener
475
  <span for="powerpress_feature_<?php echo $FeedSlug; ?>"
476
  style="font-size: 14px;"> <?php echo esc_html(__('Episode will appear at the top of your episode list in the Apple Podcast directory.', 'powerpress')); ?></span>
477
  </div>
478
- <div class="powerpress-label-container" id="type-<?php echo $FeedSlug; ?>" style="float: right; width: 30%;">
 
 
 
 
 
 
479
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][order]"><?php echo esc_html(__('Order', 'powerpress')); ?></label>
480
  <input class="pp-ep-box-input" type="number" id="powerpress_order_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Apple Podcasts episode order","powerpress")); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][order]" value="<?php echo esc_attr($iTunesOrder); ?>" />
481
  </div>
 
482
  </div>
483
  </div>
484
  </div>
 
485
  </div>
486
  <?php
487
  }
488
 
489
- function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage)
490
  {
491
  ?>
492
 
@@ -496,16 +548,22 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage)
496
 
497
  //Setting for itunes artwork
498
  if (!isset($ExtraData['itunes_image']) || !$ExtraData['itunes_image']) {
499
- $itunes_image = powerpress_get_root_url() . 'images/pts_cover.jpg';
 
500
  } else {
501
  $itunes_image = $ExtraData['itunes_image'];
 
502
  }
503
  if (!$CoverImage) {
504
  $CoverImage_preview = powerpress_get_root_url() . 'images/pts_cover.jpg';
505
  } else {
506
  $CoverImage_preview = $CoverImage;
507
  }
508
- ?>
 
 
 
 
509
  <div class="pp-section-container">
510
  <div class="powerpress-art-text">
511
  <h4 class="pp-section-title"
@@ -519,7 +577,7 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage)
519
  id="powerpress_itunes_image_<?php echo $FeedSlug; ?>"
520
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
521
  name="Powerpress[<?php echo $FeedSlug; ?>][itunes_image]"
522
- value="<?php echo esc_attr($ExtraData['itunes_image']); ?>"
523
  style="font-size: 90%;" size="250" oninput="powerpress_insertArtIntoPreview(this)"/>
524
  <br/>
525
  <br/>
@@ -532,12 +590,14 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage)
532
  <div class="powerpress-art-preview">
533
  <p class="pp-section-subtitle" style="font-weight: bold;"><?php echo esc_html(__('PREVIEW', 'powerpress')); ?></p>
534
  <img id="pp-image-preview-<?php echo $FeedSlug; ?>"
535
- src="<?php echo esc_attr($itunes_image); ?>" alt="No artwork selected"/>
536
  <p id="pp-image-preview-caption-<?php echo $FeedSlug; ?>" class="pp-section-subtitle"
537
- style="font-weight: bold;margin: 3px;"><?php echo get_filename_from_path(esc_attr($itunes_image)); ?></p>
538
  </div>
539
  </div>
540
  <div class="ep-box-line-margin"></div>
 
 
541
  <div id="powerpress_thumbnail_container_<?php echo $FeedSlug; ?>" class="pp-section-container">
542
  <div class="powerpress-art-text">
543
  <h4 class="pp-section-title"><?php echo esc_html(__('Thumbnail Image', 'powerpress')); ?></h4>
@@ -566,46 +626,48 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage)
566
  <img id="poster-pp-image-preview-<?php echo $FeedSlug; ?>"
567
  src="<?php echo esc_attr($CoverImage_preview); ?>" alt="No thumbnail selected"/>
568
  <p id="poster-pp-image-preview-caption-<?php echo $FeedSlug; ?>" class="pp-section-subtitle"
569
- style="font-weight: bold;margin: 3px;"><?php echo get_filename_from_path(esc_attr($CoverImage)); ?></p>
570
  </div>
571
  </div>
 
572
  </div>
573
 
574
  <?php
575
  }
576
 
577
- function display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height, $Embed)
578
  {
579
  ?>
580
 
581
  <div id="display-<?php echo $FeedSlug; ?>" class="pp-tabcontent">
 
582
  <div id="pp-display-player-<?php echo $FeedSlug; ?>" class="pp-section-container">
583
  <h4 class="pp-section-title-block"><?php echo esc_html(__('Episode Player', 'powerpress')); ?></h4>
584
- <span style="font-size: 14px;">
 
585
  <input id="powerpress_no_player_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Do not display player","powerpress")); ?>"
586
  class="ep-box-checkbox"
587
  name="Powerpress[<?php echo $FeedSlug; ?>][no_player]" value="1"
588
  type="checkbox" <?php echo($NoPlayer == 1 ? 'checked' : ''); ?> />
589
  <?php echo esc_html(__('Do not display player', 'powerpress')); ?>
590
- </span>
591
- <br/>
592
- <span style="font-size: 14px;">
 
593
  <input id="powerpress_no_links_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Do not display media links","powerpress")); ?>"
594
  class="ep-box-checkbox"
595
  name="Powerpress[<?php echo $FeedSlug; ?>][no_links]" value="1"
596
  type="checkbox" <?php echo($NoLinks == 1 ? 'checked' : ''); ?> />
597
  <?php echo esc_html(__('Do not display media links', 'powerpress')); ?>
598
- </span>
 
599
  </div>
600
 
601
- <?php //Setting for audio player size
602
- if ($IsVideo) {
603
- $display = "block";
604
- } else {
605
- $display = "none";
606
- } ?>
607
- <div id="line-above-player-size-<?php echo $FeedSlug; ?>" style="display: <?php echo $display; ?>" class="ep-box-line"></div>
608
- <div id="pp-player-size-<?php echo $FeedSlug; ?>" style="display: <?php echo $display; ?>" class="pp-section-container">
609
  <h4 class="pp-section-title" style="width: 100%;"><?php echo esc_html(__('Video Player Size', 'powerpress')); ?></h4>
610
  <div class="powerpress-label-container">
611
  <input type="text" id="powerpress_episode_player_width_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Player width","powerpress")); ?>"
@@ -621,6 +683,7 @@ function display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height,
621
  </div>
622
  </div>
623
  <div class="ep-box-line"></div>
 
624
  <div id="player-shortcode-<?php echo $FeedSlug; ?>" class="pp-section-container">
625
  <h4 class="pp-section-title-block"><?php echo esc_html(__('Display Player Anywhere on Page', 'powerpress')); ?></h4>
626
  <div style="display:inline-block"><p class="pp-shortcode-example" style="font-weight: bold;">
@@ -630,7 +693,9 @@ function display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height,
630
  target="_blank"><?php echo esc_html(__('Learn more about shortcodes here.', 'powerpress')); ?></a></p>
631
  </div>
632
  <div class="ep-box-line"></div>
633
- <?php //Setting for media embed ?>
 
 
634
  <div class="pp-section-container">
635
  <h4 class="pp-section-title"><?php echo esc_html(__('Media Embed', 'powerpress')); ?></h4>
636
  <div class="pp-tooltip-right">i
@@ -644,11 +709,12 @@ function display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height,
644
  onfocus="this.select();"><?php echo esc_textarea($Embed); ?></textarea>
645
  </div>
646
  </div>
 
647
  </div>
648
  <?php
649
  }
650
 
651
- function notes_tab($FeedSlug, $object)
652
  {
653
  ?>
654
 
34
  }
35
  ?>
36
  <div id="a-pp-selected-media-<?php echo $FeedSlug; ?>" <?php echo $padding; ?>>
37
+ <h3 id="pp-pp-selected-media-head-<?php echo $FeedSlug; ?>">
38
+ <?php echo esc_html(__('Media URL', 'powerpress')); ?>
39
+ <a class="pp-ep-box-settings thickbox" title='Entry Box Settings' href="<?php echo admin_url('admin.php'); ?>?action=powerpress-ep-box-options&amp;KeepThis=true&amp;TB_iframe=true&amp;width=600&amp;height=400&amp;modal=false">
40
+ <img class="ep-box-settings-icon" src="<?php echo powerpress_get_root_url(); ?>images/outline_settings_24px.svg" alt="" />
41
+ </a>
42
+ </h3>
43
  <div id="pp-media-blubrry-container-<?php echo $FeedSlug; ?>" <?php echo $style_attr; ?>>
44
  <div id="pp-selected-media-text-<?php echo $FeedSlug; ?>">
45
  <div id="media-input-<?php echo $FeedSlug; ?>">
51
  </div>
52
  <div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
53
  <div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
54
+ onclick="powerpress_saveMediaFile(this); return false;"><?php echo esc_html(__('VERIFY', 'powerpress')); ?></div>
55
  </div>
56
  <div id="select-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style1 ?>">
57
  <div id="continue-to-episode-settings-<?php echo $FeedSlug; ?>" class="pp-blue-button"
58
+ onclick="powerpress_continueToEpisodeSettings(this); return false;"><?php echo esc_html(__('VERIFY', 'powerpress')); ?></div>
59
  </div>
60
  </div>
61
  <div style="<?php echo $style3 ?>" title="<?php echo $EnclosureURL; ?>"
130
  <div id="file-change-warning-<?php echo $FeedSlug; ?>"
131
  style="background-color: #f5f5f5; box-shadow: none; margin-left: 0; padding-left: 3px; display:none; color: #dc3232;"><?php echo esc_html(__('You must have a media file selected to save.', 'powerpress')); ?></div>
132
  <div id="powerpress_warning_<?php echo $FeedSlug; ?>"
133
+ style="background-color: #f5f5f5; box-shadow: none; margin-left: 0; padding-left: 3px; display:none; color: #dc3232;"><?php echo esc_html(__('Error verifying media file.', 'powerpress')); ?></div>
134
  <input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>"
135
  name="Powerpress[<?php echo $FeedSlug; ?>][hosting]"
136
  value="<?php echo(!empty($ExtraData['hosting']) ? '1' : '0'); ?>"/>
149
  <div>
150
  <div id="edit-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style3 ?>">
151
  <button id="pp-edit-media-button-<?php echo $FeedSlug; ?>" class="media-details"
152
+ onclick="powerpress_changeMediaFile(event, this); return false;"><?php echo esc_html(__('Edit Media File', 'powerpress')); ?></button>
153
  </div>
154
  <div id="show-hide-media-details-<?php echo $FeedSlug; ?>">
155
  <!--<div class="ep-box-line-bold"></div>-->
269
  <?php if($EnclosureURL) { ?>
270
  <div class="powerpress_remove_container">
271
  <div class="powerpress_row_content">
272
+ <input type="checkbox" class='ep-box-checkbox' name="Powerpress[<?php echo $FeedSlug; ?>][remove_podcast]" id="powerpress_remove_<?php echo $FeedSlug; ?>" value="1" onchange="javascript:document.getElementById('a-pp-selected-media-<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');javascript:document.getElementById('tab-container-<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');" />
273
  <b><?php echo esc_html(__('Remove Episode', 'powerpress')); ?></b><?php echo esc_html(__(' - Podcast episode will be removed from this post upon save', 'powerpress')); ?>
274
  </div>
275
  </div>
299
  if (empty($ExtraData['feed_title'])) {
300
  $ExtraData['feed_title'] = '';
301
  }
302
+ if ($GeneralSettings['new_episode_box_subtitle'] == 2 && $GeneralSettings['new_episode_box_summary'] == 2 && $GeneralSettings['new_episode_box_author'] == 2 && $GeneralSettings['new_episode_box_explicit'] == 2 && $GeneralSettings['new_episode_box_order'] == 2 && $GeneralSettings['new_episode_box_itunes_title'] == 2 && $GeneralSettings['new_episode_box_itunes_nst'] == 2 && $GeneralSettings['new_episode_box_feature_in_itunes'] == 2 && $GeneralSettings['new_episode_box_block'] == 2) {
303
+ $AppleOpt = false;
304
+ $AppleExtra = false;
305
+ } else {
306
+ $AppleOpt = true;
307
+ if ($GeneralSettings['new_episode_box_subtitle'] == 2 && $GeneralSettings['new_episode_box_summary'] == 2 && $GeneralSettings['new_episode_box_author'] == 2 && $GeneralSettings['new_episode_box_order'] == 2 && $GeneralSettings['new_episode_box_feature_in_itunes'] == 2 && $GeneralSettings['new_episode_box_block'] == 2) {
308
+ $AppleExtra = false;
309
+ } else {
310
+ $AppleExtra = true;
311
+ }
312
+ }
313
 
314
  // episode title
315
  ?>
342
  </div>
343
  <p class="pp-ep-box-text"><?php echo esc_html(__("The episode description is pulled from your WordPress post content, which can be edited above.", 'powerpress')); ?></p>
344
  </div>
345
+ <?php if($AppleOpt) { ?>
346
  <div id="apple-podcast-opt-<?php echo $FeedSlug; ?>" class="pp-section-container">
347
  <div class="pp-section-container">
348
  <h4 class="pp-section-title"><?php echo esc_html(__("Apple Podcasts Optimization (optional)", 'powerpress')); ?></h4>
349
  <div class="pp-tooltip-right">i
350
  <span class="text-pp-tooltip"><?php echo esc_html(__('Fill this section out thoroughly to optimize the exposure that your podcast gets on Apple.', 'powerpress')); ?></span>
351
  </div>
352
+ <?php if( !isset($GeneralSettings['new_episode_box_explicit']) || $GeneralSettings['new_episode_box_explicit'] == 1 ) { ?>
353
  <div id="pp-explicit-container-<?php echo $FeedSlug; ?>">
354
  <input type="number" style="display: none" id="powerpress_explicit_<?php echo $FeedSlug; ?>"
355
  name="Powerpress[<?php echo $FeedSlug; ?>][explicit]" value="<?php echo $iTunesExplicit ? $iTunesExplicit : 0; ?>">
369
  "><?php echo esc_html(__('EXPLICIT', 'powerpress')); ?></div>
370
  </div>
371
  </div>
372
+ <?php } ?>
373
  </div>
374
  <div class="pp-section-container">
375
+ <?php if(!isset($GeneralSettings['new_episode_box_itunes_title']) || $GeneralSettings['new_episode_box_itunes_title'] == 1) { ?>
376
  <div class="powerpress-label-container" id="apple-title-container-<?php echo $FeedSlug; ?>">
377
  <label class="pp-ep-box-label-apple"
378
  for="powerpress_episode_apple_title_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Title', 'powerpress')); ?></label>
381
  name="Powerpress[<?php echo $FeedSlug; ?>][episode_title]"
382
  value="<?php echo esc_attr($ExtraData['episode_title']); ?>" maxlength="255"/>
383
  </div>
384
+ <?php }
385
+ if (!isset($GeneralSettings['new_episode_box_itunes_nst']) || $GeneralSettings['new_episode_box_itunes_nst'] == 1) {
386
+ ?>
387
  <div class="powerpress-label-container" id="episode-no-container-<?php echo $FeedSlug; ?>">
388
  <label class="pp-ep-box-label-apple"
389
  for="powerpress_episode_episode_no_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Episode #', 'powerpress')); ?></label>
412
  echo " />";
413
  } ?>
414
  </div>
415
+ <?php } ?>
416
  </div>
417
  <?php
418
  $iTunesFeatured = get_option('powerpress_itunes_featured');
426
  var hide_settings = "<?php echo esc_js(__("Hide Settings &#708;", "powerpress")); ?>";
427
  </script>
428
 
429
+ <?php if($AppleExtra) { ?>
430
  <div id="show-hide-apple-<?php echo $FeedSlug; ?>">
431
  <div class="ep-box-line-margin" style="border-top: 2px solid #EFEFEF;"></div>
432
  <div id="apple-advanced-container-<?php echo $FeedSlug; ?>">
434
  onclick="powerpress_showHideAppleAdvanced(this); return false;"><?php echo esc_html(__('See More Settings &#709;', 'powerpress')); ?></button>
435
  </div>
436
  </div>
437
+ <?php } ?>
438
  <div id="apple-advanced-settings-<?php echo $FeedSlug; ?>" class="pp-hidden-settings">
439
+ <?php if( !isset($GeneralSettings['new_episode_box_summary']) || $GeneralSettings['new_episode_box_summary'] == 1 ) { ?>
440
  <div class="apple-opt-section-container">
441
  <div id="apple-summary-<?php echo $FeedSlug; ?>" class="powerpress-label-container" style="width: 100%;">
442
  <label class="pp-ep-box-label-apple"
446
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use post content.', 'powerpress')); ?></label>
447
  </div>
448
  </div>
449
+ <?php }
450
+ if( !isset($GeneralSettings['new_episode_box_author']) || $GeneralSettings['new_episode_box_author'] == 1 ) { ?>
451
  <div class="apple-opt-section-container">
452
  <div class="powerpress-label-container" style="width: 100%;" id="apple-author-<?php echo $FeedSlug; ?>">
453
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo esc_html(__('Author', 'powerpress')); ?></label>
455
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use default.', 'powerpress')); ?></label>
456
  </div>
457
  </div>
458
+ <?php }
459
+ if( !isset($GeneralSettings['new_episode_box_subtitle']) || $GeneralSettings['new_episode_box_subtitle'] == 1 ) { ?>
460
  <div class="apple-opt-section-container">
461
  <div class="powerpress-label-container" style="width: 100%;" id="apple-subtitle-<?php echo $FeedSlug; ?>">
462
  <label class="pp-ep-box-label"
467
  <label class="pp-ep-box-label-under"><?php echo esc_html(__('Leave blank to use post excerpt.', 'powerpress')); ?></label>
468
  </div>
469
  </div>
470
+ <?php } ?>
471
  <div class="apple-opt-section-container">
472
+ <?php if (!isset($GeneralSettings['new_episode_box_itunes_nst']) || $GeneralSettings['new_episode_box_itunes_nst'] == 1) {
473
+ ?>
474
  <div class="powerpress-label-container">
475
  <label class="pp-ep-box-label-apple"
476
  for="powerpress_episode_type_<?php echo $FeedSlug; ?>"><?php echo esc_html(__('Type', 'powerpress')); ?></label>
484
  ?>
485
  </select>
486
  </div>
487
+ <?php
488
+ $float = "right";
489
+ } elseif($GeneralSettings['new_episode_box_feature_in_itunes'] == 2 && $GeneralSettings['new_episode_box_order'] == 2) {
490
+ $float = "none";
491
+ } else {
492
+ $float = "right";
493
+ }
494
+ if (!isset($GeneralSettings['new_episode_box_block']) || $GeneralSettings['new_episode_box_block'] == 1) { ?>
495
+ <div class="powerpress-label-container" style="float: <?php echo $float; ?>">
496
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][block]"><?php echo esc_html(__('Block', 'powerpress')); ?></label>
497
  <select class="pp-ep-box-input" id="powerpress_block_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][block]" title="<?php echo esc_attr(__("Apple Podcasts block episode","powerpress")); ?>">
498
  <?php
504
  ?>
505
  </select>
506
  </div>
507
+ <?php } ?>
508
  </div>
509
  <div class="apple-opt-section-container">
510
+ <?php if( !isset($GeneralSettings['new_episode_box_feature_in_itunes']) || $GeneralSettings['new_episode_box_feature_in_itunes'] == 1 ) { ?>
511
  <div class="powerpress-label-container" id="apple-feature-<?php echo $FeedSlug; ?>" style="width: 65%;">
512
  <h4 class="pp-section-title-block" style="width: 100%;"><?php echo esc_html(__("Feature Episode", 'powerpress')); ?></h4>
513
  <?php if ($FeaturedChecked) { ?>
519
  <span for="powerpress_feature_<?php echo $FeedSlug; ?>"
520
  style="font-size: 14px;"> <?php echo esc_html(__('Episode will appear at the top of your episode list in the Apple Podcast directory.', 'powerpress')); ?></span>
521
  </div>
522
+ <?php
523
+ $float = "right";
524
+ } else {
525
+ $float = "none";
526
+ }
527
+ if( !isset($GeneralSettings['new_episode_box_order']) || $GeneralSettings['new_episode_box_order'] == 1 || !isset($GeneralSettings['new_episode_box_feature_in_itunes']) || $GeneralSettings['new_episode_box_feature_in_itunes'] == 1 ) { ?>
528
+ <div class="powerpress-label-container" id="type-<?php echo $FeedSlug; ?>" style="float: <?php echo $float; ?>; width: 30%;">
529
  <label class="pp-ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][order]"><?php echo esc_html(__('Order', 'powerpress')); ?></label>
530
  <input class="pp-ep-box-input" type="number" id="powerpress_order_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Apple Podcasts episode order","powerpress")); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][order]" value="<?php echo esc_attr($iTunesOrder); ?>" />
531
  </div>
532
+ <?php } ?>
533
  </div>
534
  </div>
535
  </div>
536
+ <?php } ?>
537
  </div>
538
  <?php
539
  }
540
 
541
+ function artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage, $GeneralSettings)
542
  {
543
  ?>
544
 
548
 
549
  //Setting for itunes artwork
550
  if (!isset($ExtraData['itunes_image']) || !$ExtraData['itunes_image']) {
551
+ $itunes_image = '';
552
+ $itunes_image_preview = powerpress_get_root_url() . 'images/pts_cover.jpg';
553
  } else {
554
  $itunes_image = $ExtraData['itunes_image'];
555
+ $itunes_image_preview = $itunes_image;
556
  }
557
  if (!$CoverImage) {
558
  $CoverImage_preview = powerpress_get_root_url() . 'images/pts_cover.jpg';
559
  } else {
560
  $CoverImage_preview = $CoverImage;
561
  }
562
+ if ($GeneralSettings['new_episode_box_itunes_image'] == 2 && $GeneralSettings['new_episode_box_cover_image']) {
563
+ echo "<p class='pp-ep-box-text'>" . __('No artwork settings enabled', 'powerpress') . "</p></div>";
564
+ return;
565
+ }
566
+ if (!isset($GeneralSettings['new_episode_box_itunes_image']) || $GeneralSettings['new_episode_box_itunes_image'] == 1) { ?>
567
  <div class="pp-section-container">
568
  <div class="powerpress-art-text">
569
  <h4 class="pp-section-title"
577
  id="powerpress_itunes_image_<?php echo $FeedSlug; ?>"
578
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
579
  name="Powerpress[<?php echo $FeedSlug; ?>][itunes_image]"
580
+ value="<?php echo esc_attr($itunes_image); ?>"
581
  style="font-size: 90%;" size="250" oninput="powerpress_insertArtIntoPreview(this)"/>
582
  <br/>
583
  <br/>
590
  <div class="powerpress-art-preview">
591
  <p class="pp-section-subtitle" style="font-weight: bold;"><?php echo esc_html(__('PREVIEW', 'powerpress')); ?></p>
592
  <img id="pp-image-preview-<?php echo $FeedSlug; ?>"
593
+ src="<?php echo esc_attr($itunes_image_preview); ?>" alt="No artwork selected"/>
594
  <p id="pp-image-preview-caption-<?php echo $FeedSlug; ?>" class="pp-section-subtitle"
595
+ style="font-weight: bold;margin: 3px;"><?php if ($itunes_image) { echo get_filename_from_path(esc_attr($itunes_image)); } ?></p>
596
  </div>
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>
626
  <img id="poster-pp-image-preview-<?php echo $FeedSlug; ?>"
627
  src="<?php echo esc_attr($CoverImage_preview); ?>" alt="No thumbnail selected"/>
628
  <p id="poster-pp-image-preview-caption-<?php echo $FeedSlug; ?>" class="pp-section-subtitle"
629
+ style="font-weight: bold;margin: 3px;"><?php if ($CoverImage) { echo get_filename_from_path(esc_attr($CoverImage)); } ?></p>
630
  </div>
631
  </div>
632
+ <?php } ?>
633
  </div>
634
 
635
  <?php
636
  }
637
 
638
+ function display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height, $Embed, $GeneralSettings)
639
  {
640
  ?>
641
 
642
  <div id="display-<?php echo $FeedSlug; ?>" class="pp-tabcontent">
643
+ <?php if( ( !isset($GeneralSettings['new_episode_box_no_player']) || $GeneralSettings['new_episode_box_no_player'] == 1) || (!isset($GeneralSettings['new_episode_box_no_links']) || $GeneralSettings['new_episode_box_no_links'] == 1) ) { ?>
644
  <div id="pp-display-player-<?php echo $FeedSlug; ?>" class="pp-section-container">
645
  <h4 class="pp-section-title-block"><?php echo esc_html(__('Episode Player', 'powerpress')); ?></h4>
646
+ <?php if( !isset($GeneralSettings['new_episode_box_no_player']) || $GeneralSettings['new_episode_box_no_player'] == 1) { ?>
647
+ <p style="font-size: 14px;" class="pp-ep-box-text">
648
  <input id="powerpress_no_player_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Do not display player","powerpress")); ?>"
649
  class="ep-box-checkbox"
650
  name="Powerpress[<?php echo $FeedSlug; ?>][no_player]" value="1"
651
  type="checkbox" <?php echo($NoPlayer == 1 ? 'checked' : ''); ?> />
652
  <?php echo esc_html(__('Do not display player', 'powerpress')); ?>
653
+ </p>
654
+ <br/><?php }
655
+ if (!isset($GeneralSettings['new_episode_box_no_links']) || $GeneralSettings['new_episode_box_no_links'] == 1) { ?>
656
+ <p style="font-size: 14px; margin-top: 1ch;" class="pp-ep-box-text">
657
  <input id="powerpress_no_links_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Do not display media links","powerpress")); ?>"
658
  class="ep-box-checkbox"
659
  name="Powerpress[<?php echo $FeedSlug; ?>][no_links]" value="1"
660
  type="checkbox" <?php echo($NoLinks == 1 ? 'checked' : ''); ?> />
661
  <?php echo esc_html(__('Do not display media links', 'powerpress')); ?>
662
+ </p>
663
+ <?php } ?>
664
  </div>
665
 
666
+ <div id="line-above-player-size-<?php echo $FeedSlug; ?>" class="ep-box-line"></div>
667
+ <?php } //Setting for audio player size
668
+
669
+ if (!isset($GeneralSettings['new_episode_box_player_size']) || $GeneralSettings['new_episode_box_player_size'] == 1) { ?>
670
+ <div id="pp-player-size-<?php echo $FeedSlug; ?>" class="pp-section-container">
 
 
 
671
  <h4 class="pp-section-title" style="width: 100%;"><?php echo esc_html(__('Video Player Size', 'powerpress')); ?></h4>
672
  <div class="powerpress-label-container">
673
  <input type="text" id="powerpress_episode_player_width_<?php echo $FeedSlug; ?>" title="<?php echo esc_attr(__("Player width","powerpress")); ?>"
683
  </div>
684
  </div>
685
  <div class="ep-box-line"></div>
686
+ <?php } ?>
687
  <div id="player-shortcode-<?php echo $FeedSlug; ?>" class="pp-section-container">
688
  <h4 class="pp-section-title-block"><?php echo esc_html(__('Display Player Anywhere on Page', 'powerpress')); ?></h4>
689
  <div style="display:inline-block"><p class="pp-shortcode-example" style="font-weight: bold;">
693
  target="_blank"><?php echo esc_html(__('Learn more about shortcodes here.', 'powerpress')); ?></a></p>
694
  </div>
695
  <div class="ep-box-line"></div>
696
+ <?php //Setting for media embed
697
+ if( !isset($GeneralSettings['new_episode_box_embed']) || $GeneralSettings['new_episode_box_embed'] == 1 ) {
698
+ ?>
699
  <div class="pp-section-container">
700
  <h4 class="pp-section-title"><?php echo esc_html(__('Media Embed', 'powerpress')); ?></h4>
701
  <div class="pp-tooltip-right">i
709
  onfocus="this.select();"><?php echo esc_textarea($Embed); ?></textarea>
710
  </div>
711
  </div>
712
+ <?php } ?>
713
  </div>
714
  <?php
715
  }
716
 
717
+ function notes_tab($FeedSlug, $object, $GeneralSettings)
718
  {
719
  ?>
720
 
powerpressadmin.php CHANGED
@@ -519,55 +519,55 @@ function powerpress_admin_init()
519
  $General['disable_dashboard_stats'] = 1;
520
  if( !isset($General['disable_dashboard_news'] ) )
521
  $General['disable_dashboard_news'] = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
522
 
523
- if( !isset($General['episode_box_mode']) ) // Default not set, 1 = no duration/file size, 2 = yes duration/file size (default if not set)
524
- $General['episode_box_mode'] = 1; // 1 = no duration/file size (unchecked)
525
- if( !isset($General['episode_box_embed'] ) )
526
- $General['episode_box_embed'] = 0;
527
- if( !isset($General['embed_replace_player'] ) )
528
- $General['embed_replace_player'] = 0;
529
- if( !isset($General['episode_box_no_player'] ) )
530
- $General['episode_box_no_player'] = 0;
531
- if( !isset($General['episode_box_no_links'] ) )
532
- $General['episode_box_no_links'] = 0;
533
- if( !isset($General['episode_box_no_player_and_links'] ) )
534
- $General['episode_box_no_player_and_links'] = 0;
535
- if( !isset($General['episode_box_cover_image'] ) )
536
- $General['episode_box_cover_image'] = 0;
537
- if( !isset($General['episode_box_player_size'] ) )
538
- $General['episode_box_player_size'] = 0;
539
- if( !isset($General['episode_box_subtitle'] ) )
540
- $General['episode_box_subtitle'] = 0;
541
- if( !isset($General['episode_box_summary'] ) )
542
- $General['episode_box_summary'] = 0;
543
- if( !isset($General['episode_box_gp_desc'] ) )
544
- $General['episode_box_gp_desc'] = 0;
545
- if( !isset($General['episode_box_gp_explicit'] ) )
546
- $General['episode_box_gp_explicit'] = 0;
547
- if( !isset($General['episode_box_author'] ) )
548
- $General['episode_box_author'] = 0;
549
- if( !isset($General['episode_box_explicit'] ) )
550
- $General['episode_box_explicit'] = 0;
551
- if( !isset($General['episode_box_closed_captioned'] ) )
552
- $General['episode_box_closed_captioned'] = 0;
553
- if( !isset($General['episode_box_itunes_image'] ) )
554
- $General['episode_box_itunes_image'] = 0;
555
 
556
- if( !isset($General['episode_box_order'] ) )
557
- $General['episode_box_order'] = 0;
558
-
559
- if( !isset($General['episode_box_feature_in_itunes'] ) )
560
- $General['episode_box_feature_in_itunes'] = 0;
561
  else
562
- $General['episode_box_order'] = 0;
563
 
564
- if( !isset($General['episode_box_block'] ) )
565
- $General['episode_box_block'] = 0;
566
- if( !isset($General['episode_box_gp_block'] ) )
567
- $General['episode_box_gp_block'] = 0;
568
- if( !isset($General['episode_box_gp_explicit'] ) )
569
- $General['episode_box_gp_explicit'] = 0;
570
-
571
  if( !isset($General['allow_feed_comments'] ) )
572
  $General['allow_feed_comments'] = 0;
573
 
@@ -1401,6 +1401,7 @@ function powerpress_save_settings($SettingsNew=false, $field = 'powerpress_gener
1401
  // Save general settings
1402
  if( $SettingsNew )
1403
  {
 
1404
 
1405
  $Settings = get_option($field);
1406
  if( !is_array($Settings) )
@@ -1420,65 +1421,73 @@ function powerpress_save_settings($SettingsNew=false, $field = 'powerpress_gener
1420
  // We can unset settings that are set to their defaults to save database size...
1421
  if( $field == 'powerpress_general' )
1422
  {
1423
- // Switch the settings over to the actual field name (to fix FCGI mode problem with older versions of PHP.
1424
- if( isset($Settings['ebititle']) ) {
1425
- if( $Settings['ebititle'] == 'false')
1426
- $Settings['ebititle'] = 0;
1427
- $Settings['episode_box_itunes_title'] = $Settings['ebititle'];
1428
- unset($Settings['ebititle']);
1429
- }
1430
-
1431
- if( isset($Settings['ebinst']) ) {
1432
- if( $Settings['ebinst'] == 'false')
1433
- $Settings['ebinst'] = 0;
1434
- $Settings['episode_box_itunes_nst'] = $Settings['ebinst'];
1435
- unset($Settings['ebinst']);
1436
- }
1437
-
1438
- if( isset($Settings['episode_box_embed'] ) && $Settings['episode_box_embed'] == 0 )
1439
- unset($Settings['episode_box_embed']);
1440
- if( isset($Settings['embed_replace_player'] ) && $Settings['embed_replace_player'] == 0 )
1441
- unset($Settings['embed_replace_player']);
1442
- if( isset($Settings['episode_box_no_player'] ) && $Settings['episode_box_no_player'] == 0 )
1443
- unset($Settings['episode_box_no_player']);
1444
- if( isset($Settings['episode_box_no_links'] ) && $Settings['episode_box_no_links'] == 0 )
1445
- unset($Settings['episode_box_no_links']);
1446
- if( isset($Settings['episode_box_no_player_and_links'] ) && $Settings['episode_box_no_player_and_links'] == 0 )
1447
- unset($Settings['episode_box_no_player_and_links']);
1448
- if( isset($Settings['episode_box_cover_image'] ) && $Settings['episode_box_cover_image'] == 0 )
1449
- unset($Settings['episode_box_cover_image']);
1450
- if( isset($Settings['episode_box_player_size'] ) && $Settings['episode_box_player_size'] == 0 )
1451
- unset($Settings['episode_box_player_size']);
1452
- if( isset($Settings['episode_box_subtitle'] ) && $Settings['episode_box_subtitle'] == 0 )
1453
- unset($Settings['episode_box_subtitle']);
1454
- if( isset($Settings['episode_box_summary'] ) && $Settings['episode_box_summary'] == 0 )
1455
- unset($Settings['episode_box_summary']);
1456
- if( isset($Settings['episode_box_gp_desc'] ) && $Settings['episode_box_gp_desc'] == 0 )
1457
- unset($Settings['episode_box_gp_desc']);
1458
- if( isset($Settings['episode_box_gp_block'] ) && $Settings['episode_box_gp_block'] == 0 )
1459
- unset($Settings['episode_box_gp_block']);
1460
- if( isset($Settings['episode_box_gp_explicit'] ) && $Settings['episode_box_gp_explicit'] == 0 )
1461
- unset($Settings['episode_box_gp_explicit']);
1462
- if( isset($Settings['episode_box_closed_captioned'] ) && $Settings['episode_box_closed_captioned'] == 0 )
1463
- unset($Settings['episode_box_closed_captioned']);
1464
- if( isset($Settings['episode_box_author'] ) && $Settings['episode_box_author'] == 0 )
1465
- unset($Settings['episode_box_author']);
1466
- if( isset($Settings['episode_box_explicit'] ) && $Settings['episode_box_explicit'] == 0 )
1467
- unset($Settings['episode_box_explicit']);
1468
- if( isset($Settings['episode_box_block'] ) && $Settings['episode_box_block'] == 0 )
1469
- unset($Settings['episode_box_block']);
1470
- if( isset($Settings['episode_box_itunes_image'] ) && $Settings['episode_box_itunes_image'] == 0 )
1471
- unset($Settings['episode_box_itunes_image']);
1472
- if( isset($Settings['episode_box_order'] ) && $Settings['episode_box_order'] == 0 )
1473
- unset($Settings['episode_box_order']);
1474
- if( isset($Settings['episode_box_itunes_title'] ) && $Settings['episode_box_itunes_title'] == 0 )
1475
- unset($Settings['episode_box_itunes_title']);
1476
- if( isset($Settings['episode_box_itunes_nst'] ) && $Settings['episode_box_itunes_nst'] == 0 )
1477
- unset($Settings['episode_box_itunes_nst']);
1478
- if( isset($Settings['episode_box_gp_explicit'] ) && $Settings['episode_box_gp_explicit'] == 0 )
1479
- unset($Settings['episode_box_gp_explicit']);
1480
- if( isset($Settings['episode_box_feature_in_itunes'] ) && $Settings['episode_box_feature_in_itunes'] == 0 )
1481
- unset($Settings['episode_box_feature_in_itunes']);
 
 
 
 
 
 
 
 
1482
  if( isset($Settings['videojs_css_class']) && empty($Settings['videojs_css_class']) )
1483
  unset($Settings['videojs_css_class']);
1484
  if( isset($Settings['cat_casting']) && empty($Settings['cat_casting']) )
@@ -2524,20 +2533,24 @@ function powerpress_check_url(url, DestDiv)
2524
  {
2525
  if( powerpress_check_url.arguments.length > 1 )
2526
  DestDiv = powerpress_check_url.arguments[1];
2527
-
2528
- jQuery( '#'+DestDiv ).addClass("error");
2529
- jQuery( '#'+DestDiv ).removeClass("updated");
2530
-
 
 
 
2531
  var validChars = ':0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/-_.:';
2532
 
2533
  for( var x = 0; x < url.length; x++ )
2534
  {
2535
  if( validChars.indexOf( url.charAt(x) ) == -1 )
2536
  {
2537
- jQuery( '#'+DestDiv ).text('<?php echo esc_js( __('Media URL contains characters that may cause problems for some clients. For maximum compatibility, only use letters, numbers, dash - and underscore _ characters only.', 'powerpress')); ?>');
2538
- jQuery( '#'+DestDiv ).css('display', 'block');
2539
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2540
- //jQuery( '#powerpress_url_show' ).css('background-color', '#eba2a2');
 
2541
  return false;
2542
  }
2543
 
@@ -2545,7 +2558,7 @@ function powerpress_check_url(url, DestDiv)
2545
  validChars = validChars.substring(1); // remove the colon, should no longer appear in URLs
2546
  }
2547
 
2548
- jQuery( '#'+DestDiv ).css('display', 'none');
2549
  return true;
2550
  }
2551
 
@@ -2559,7 +2572,7 @@ function powerpress_get_media_info(FeedSlug)
2559
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'none');
2560
  //jQuery( '#powerpress_warning_'+FeedSlug ).text('');
2561
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'none');
2562
- jQuery( '#powerpress_warning_'+FeedSlug ).addClass("error");
2563
  jQuery( '#powerpress_warning_'+FeedSlug ).removeClass("updated");
2564
 
2565
  var Value = jQuery('#powerpress_url_'+FeedSlug).val();
@@ -2639,7 +2652,7 @@ function powerpress_get_media_info(FeedSlug)
2639
  else
2640
  {
2641
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'inline-block');
2642
- //jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#c1f2b8');
2643
  // setTimeout( function() { jQuery( '#powerpress_success_'+FeedSlug ).fadeOut(1000); }, 10000 );
2644
  <?php
2645
  if( defined('POWERPRESS_AJAX_DEBUG') )
@@ -2666,7 +2679,7 @@ function powerpress_get_media_info(FeedSlug)
2666
  ?>
2667
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
2668
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2669
- //jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#eba2a2');
2670
  }
2671
  },
2672
  error: function(objAJAXRequest, textStatus, errorThrown) {
@@ -2681,7 +2694,7 @@ function powerpress_get_media_info(FeedSlug)
2681
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
2682
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
2683
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2684
- //jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#eba2a2');
2685
 
2686
  if( textStatus == 'timeout' ) {
2687
  jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Operation timed out.', 'powerpress'); ?>' );
519
  $General['disable_dashboard_stats'] = 1;
520
  if( !isset($General['disable_dashboard_news'] ) )
521
  $General['disable_dashboard_news'] = 0;
522
+ /*
523
+ if( !isset($General['new_episode_box_mode']) ) // Default not set, 1 = no duration/file size, 2 = yes duration/file size (default if not set)
524
+ $General['new_episode_box_mode'] = 1; // 1 = no duration/file size (unchecked)
525
+ if( !isset($General['new_episode_box_embed'] ) )
526
+ $General['new_episode_box_embed'] = 1;
527
+ if( !isset($General['new_embed_replace_player'] ) )
528
+ $General['new_embed_replace_player'] = 1;
529
+ if( !isset($General['new_episode_box_no_player'] ) )
530
+ $General['new_episode_box_no_player'] = 1;
531
+ if( !isset($General['new_episode_box_no_links'] ) )
532
+ $General['new_episode_box_no_links'] = 1;
533
+ if( !isset($General['new_episode_box_no_player_and_links'] ) )
534
+ $General['new_episode_box_no_player_and_links'] = 1;
535
+ if( !isset($General['new_episode_box_cover_image'] ) )
536
+ $General['new_episode_box_cover_image'] = 1;
537
+ if( !isset($General['new_episode_box_player_size'] ) )
538
+ $General['new_episode_box_player_size'] = 1;
539
+ if( !isset($General['new_episode_box_subtitle'] ) )
540
+ $General['new_episode_box_subtitle'] = 1;
541
+ if( !isset($General['new_episode_box_summary'] ) )
542
+ $General['new_episode_box_summary'] = 1;
543
+ if( !isset($General['new_episode_box_gp_desc'] ) )
544
+ $General['new_episode_box_gp_desc'] = 1;
545
+ if( !isset($General['new_episode_box_gp_explicit'] ) )
546
+ $General['new_episode_box_gp_explicit'] = 1;
547
+ if( !isset($General['new_episode_box_author'] ) )
548
+ $General['new_episode_box_author'] = 1;
549
+ if( !isset($General['new_episode_box_explicit'] ) )
550
+ $General['new_episode_box_explicit'] = 1;
551
+ if( !isset($General['new_episode_box_closed_captioned'] ) )
552
+ $General['new_episode_box_closed_captioned'] = 1;
553
+ if( !isset($General['new_episode_box_itunes_image'] ) )
554
+ $General['new_episode_box_itunes_image'] = 1;
555
 
556
+ if( !isset($General['new_episode_box_order'] ) )
557
+ $General['new_episode_box_order'] = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
 
559
+ if( !isset($General['new_episode_box_feature_in_itunes'] ) )
560
+ $General['new_episode_box_feature_in_itunes'] = 1;
 
 
 
561
  else
562
+ $General['new_episode_box_order'] = 1;
563
 
564
+ if( !isset($General['new_episode_box_block'] ) )
565
+ $General['new_episode_box_block'] = 1;
566
+ if( !isset($General['new_episode_box_gp_block'] ) )
567
+ $General['new_episode_box_gp_block'] = 1;
568
+ if( !isset($General['new_episode_box_gp_explicit'] ) )
569
+ $General['new_episode_box_gp_explicit'] = 1;
570
+ */
571
  if( !isset($General['allow_feed_comments'] ) )
572
  $General['allow_feed_comments'] = 0;
573
 
1401
  // Save general settings
1402
  if( $SettingsNew )
1403
  {
1404
+
1405
 
1406
  $Settings = get_option($field);
1407
  if( !is_array($Settings) )
1421
  // We can unset settings that are set to their defaults to save database size...
1422
  if( $field == 'powerpress_general' )
1423
  {
1424
+ if( isset($SettingsNew['new_episode_box_flag'])) {
1425
+ /* Switch the settings over to the actual field name (to fix FCGI mode problem with older versions of PHP.
1426
+ if (isset($SettingsNew['ebititle'])) {
1427
+ if ($SettingsNew['ebititle'] == 'false') {
1428
+ $Settings['new_episode_box_itunes_title'] = 2;
1429
+ } else {
1430
+ $Settings['new_episode_box_itunes_title'] = 1;
1431
+ $SettingsNew['new_episode_box_itunes_title'] = 1;
1432
+ }
1433
+ unset($Settings['ebititle']);
1434
+ }
1435
+
1436
+ if (isset($SettingsNew['ebinst'])) {
1437
+ if ($SettingsNew['ebinst'] == 'false') {
1438
+ $Settings['new_episode_box_itunes_nst'] = 2;
1439
+ } else {
1440
+ $Settings['new_episode_box_itunes_nst'] = 1;
1441
+ $SettingsNew['new_episode_box_itunes_nst'] = 1;
1442
+ }
1443
+ unset($Settings['ebinst']);
1444
+ }*/
1445
+
1446
+ if (!isset($SettingsNew['new_episode_box_embed']))
1447
+ $Settings['new_episode_box_embed'] = 2;
1448
+ if (!isset($SettingsNew['new_embed_replace_player']))
1449
+ $Settings['new_embed_replace_player'] = 2;
1450
+ if (!isset($SettingsNew['new_episode_box_no_player']))
1451
+ $Settings['new_episode_box_no_player'] = 2;
1452
+ if (!isset($SettingsNew['new_episode_box_no_links']))
1453
+ $Settings['new_episode_box_no_links'] = 2;
1454
+ if (!isset($SettingsNew['new_episode_box_no_player_and_links']))
1455
+ $Settings['new_episode_box_no_player_and_links'] = 2;
1456
+ if (!isset($SettingsNew['new_episode_box_cover_image']))
1457
+ $Settings['new_episode_box_cover_image'] = 2;
1458
+ if (!isset($SettingsNew['new_episode_box_player_size']))
1459
+ $Settings['new_episode_box_player_size'] = 2;
1460
+ if (!isset($SettingsNew['new_episode_box_subtitle']))
1461
+ $Settings['new_episode_box_subtitle'] = 2;
1462
+ if (!isset($SettingsNew['new_episode_box_summary']))
1463
+ $Settings['new_episode_box_summary'] = 2;
1464
+ /*if( isset($Settings['episode_box_gp_desc'] ) && $Settings['episode_box_gp_desc'] == 0 )
1465
+ unset($Settings['episode_box_gp_desc']);
1466
+ if( isset($Settings['episode_box_gp_block'] ) && $Settings['episode_box_gp_block'] == 0 )
1467
+ unset($Settings['episode_box_gp_block']);
1468
+ if( isset($Settings['episode_box_gp_explicit'] ) && $Settings['episode_box_gp_explicit'] == 0 )
1469
+ unset($Settings['episode_box_gp_explicit']);
1470
+ if( isset($Settings['episode_box_closed_captioned'] ) && $Settings['episode_box_closed_captioned'] == 0 )
1471
+ unset($Settings['episode_box_closed_captioned']); */
1472
+ if (!isset($SettingsNew['new_episode_box_author']))
1473
+ $Settings['new_episode_box_author'] = 2;
1474
+ if (!isset($SettingsNew['new_episode_box_explicit']))
1475
+ $Settings['new_episode_box_explicit'] = 2;
1476
+ if (!isset($SettingsNew['new_episode_box_block']))
1477
+ $Settings['new_episode_box_block'] = 2;
1478
+ if (!isset($SettingsNew['new_episode_box_itunes_image']))
1479
+ $Settings['new_episode_box_itunes_image'] = 2;
1480
+ if (!isset($SettingsNew['new_episode_box_order']))
1481
+ $Settings['new_episode_box_order'] = 2;
1482
+ if (!isset($SettingsNew['new_episode_box_itunes_title']))
1483
+ $Settings['new_episode_box_itunes_title'] = 2;
1484
+ if (!isset($SettingsNew['new_episode_box_itunes_nst']))
1485
+ $Settings['new_episode_box_itunes_nst'] = 2;
1486
+ if (!isset($SettingsNew['new_episode_box_gp_explicit']))
1487
+ $Settings['new_episode_box_gp_explicit'] = 2;
1488
+ if (!isset($SettingsNew['new_episode_box_feature_in_itunes']))
1489
+ $Settings['new_episode_box_feature_in_itunes'] = 2;
1490
+ }
1491
  if( isset($Settings['videojs_css_class']) && empty($Settings['videojs_css_class']) )
1492
  unset($Settings['videojs_css_class']);
1493
  if( isset($Settings['cat_casting']) && empty($Settings['cat_casting']) )
2533
  {
2534
  if( powerpress_check_url.arguments.length > 1 )
2535
  DestDiv = powerpress_check_url.arguments[1];
2536
+
2537
+ let Div = jQuery( '#'+DestDiv );
2538
+ console.log(Div[0]);
2539
+ Div.addClass("pp-error");
2540
+ Div.removeClass("updated");
2541
+
2542
+ let FeedSlug = DestDiv.replace("powerpress_warning_", "");
2543
  var validChars = ':0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/-_.:';
2544
 
2545
  for( var x = 0; x < url.length; x++ )
2546
  {
2547
  if( validChars.indexOf( url.charAt(x) ) == -1 )
2548
  {
2549
+ Div.html('<?php echo esc_js( __('Media URL contains characters that may cause problems for some clients. For maximum compatibility, only use letters, numbers, dash - and underscore _ characters only.', 'powerpress')); ?>');
2550
+ Div.css('display', 'block');
2551
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2552
+ jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#eba2a2');
2553
+ jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color');
2554
  return false;
2555
  }
2556
 
2558
  validChars = validChars.substring(1); // remove the colon, should no longer appear in URLs
2559
  }
2560
 
2561
+ Div.css('display', 'none');
2562
  return true;
2563
  }
2564
 
2572
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'none');
2573
  //jQuery( '#powerpress_warning_'+FeedSlug ).text('');
2574
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'none');
2575
+ jQuery( '#powerpress_warning_'+FeedSlug ).addClass("pp-error");
2576
  jQuery( '#powerpress_warning_'+FeedSlug ).removeClass("updated");
2577
 
2578
  var Value = jQuery('#powerpress_url_'+FeedSlug).val();
2652
  else
2653
  {
2654
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'inline-block');
2655
+ jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#c1f2b8');
2656
  // setTimeout( function() { jQuery( '#powerpress_success_'+FeedSlug ).fadeOut(1000); }, 10000 );
2657
  <?php
2658
  if( defined('POWERPRESS_AJAX_DEBUG') )
2679
  ?>
2680
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
2681
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2682
+ jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#eba2a2');
2683
  }
2684
  },
2685
  error: function(objAJAXRequest, textStatus, errorThrown) {
2694
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
2695
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
2696
  jQuery('#powerpress_fail_'+FeedSlug).css("display", 'inline-block');
2697
+ jQuery( '#powerpress_url_show_'+FeedSlug ).css('background-color', '#eba2a2');
2698
 
2699
  if( textStatus == 'timeout' ) {
2700
  jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Operation timed out.', 'powerpress'); ?>' );
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.4
7
- Stable tag: 8.2.10
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
@@ -236,6 +236,13 @@ 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.2.10 =
240
  * Released 04/23/2020
241
  * Update design for episode box--media URL section and Remove Episode moved
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 5.4
7
+ Stable tag: 8.2.11
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.2.11 =
240
+ * Released 04/29/2020
241
+ * Entry Box Settings are back--this time, find them by clicking the gear in the upper right of the entry box
242
+ * The Permalinks setting has been moved from the Website tab in Settings to the new Entry Box Settings
243
+ * Fixed a bug from 8.2.10 where media couldn't be removed from a post
244
+ * Fixed a bug where "Verify" error messages were not showing up in the right spot
245
+
246
  = 8.2.10 =
247
  * Released 04/23/2020
248
  * Update design for episode box--media URL section and Remove Episode moved
views/ep-box-settings.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function powerpressadmin_edit_entry_options($General)
4
+ {
5
+ //powerpress_admin_ep_settings_enqueue_scripts();
6
+ if( !isset($General['default_url']) )
7
+ $General['default_url'] = '';
8
+ if( !isset($General['episode_box_mode']) )
9
+ $General['episode_box_mode'] = 0; // Default not set, 1 = no duration/file size, 2 = yes duration/file size (default if not set)
10
+ if( !isset($General['episode_box_embed']) )
11
+ $General['episode_box_embed'] = 0;
12
+ if( !isset($General['set_duration']) )
13
+ $General['set_duration'] = 0;
14
+ if( !isset($General['set_size']) )
15
+ $General['set_size'] = 0;
16
+ if( !isset($General['auto_enclose']) )
17
+ $General['auto_enclose'] = 0;
18
+ if( !isset($General['episode_box_player_size']) )
19
+ $General['episode_box_player_size'] = 0;
20
+ if( !isset($General['episode_box_closed_captioned']) )
21
+ $General['episode_box_closed_captioned'] = 0;
22
+ if( !isset($General['episode_box_order']) )
23
+ $General['episode_box_order'] = 0;
24
+ if( !isset($General['episode_box_feature_in_itunes']) )
25
+ $General['episode_box_feature_in_itunes'] = 0;
26
+
27
+ require_once(dirname(__FILE__) . "/../powerpressadmin-epbox-options.php");
28
+ ?>
29
+ <script language="javascript">
30
+ jQuery(document).ready(function() {
31
+ jQuery("body").css("background-color", "white");
32
+ jQuery("body").css("font-family", "Roboto, sans-serif");
33
+ });
34
+ </script>
35
+ <div class="wrap" id="powerpress_settings">
36
+ <form enctype="multipart/form-data" method="POST" action="<?php echo admin_url( 'admin.php'); ?>?action=powerpress-ep-box-options-save"&amp;KeepThis=true&amp;TB_iframe=true&amp;width=600&amp;height=400&amp;modal=false">
37
+ <?php wp_nonce_field('powerpress-edit');
38
+ echo "<div id=\"tab-container-epbox-settings\">";
39
+ echo "<div class=\"pp-tab\" style='border-top: none;'>";
40
+ $titles = array("main" => esc_attr(__("Episode Entry Options", "powerpress")), "permalinks" => esc_attr(__("Permalinks", "powerpress")), "advanced" => esc_attr(__("Advanced Options", "powerpress")));
41
+ echo "<button style='font-size: 80%;width: 25%;' class=\"tablinks active\" id=\"1\" title='{$titles['main']}' onclick=\"powerpress_openTab(event, 'epbox-main')\" >" . esc_html(__($titles['main'], 'powerpress')) . "</button>";
42
+ echo "<button style='font-size: 80%;' class=\"tablinks\" id=\"2\" title='{$titles['permalinks']}' onclick=\"powerpress_openTab(event, 'epbox-permalinks')\">" . esc_html(__($titles['permalinks'], 'powerpress')) . "</button>";
43
+ echo "<button style='font-size: 80%;' class=\"tablinks\" id=\"3\" title='{$titles['advanced']}' onclick=\"powerpress_openTab(event, 'epbox-advanced')\">" . esc_html(__($titles['advanced'], 'powerpress')) . "</button>";
44
+ echo "</div>";
45
+ ?>
46
+ <div id="epbox-main" class="pp-tabcontent active">
47
+ <?php powerpress_epbox_main_tab($General); ?>
48
+ </div>
49
+ <div id="epbox-permalinks" class="pp-tabcontent">
50
+ <?php powerpress_epbox_permalinks_tab($General); ?>
51
+ </div>
52
+ <div id="epbox-advanced" class="pp-tabcontent">
53
+ <?php powerpress_epbox_advanced_tab($General); ?>
54
+ </div>
55
+ </div>
56
+ <p class="submit">
57
+ <input style="margin-left: 30px;" type="submit" name="Submit" id="powerpress_save_button" class="button-primary button-blubrry" value="<?php echo __('Save Changes', 'powerpress') ?>" />
58
+ </p>
59
+ </form>
60
+ <?php
61
+ }
62
+
views/episode-box.php CHANGED
@@ -210,9 +210,9 @@ function powerpress_meta_box($object, $box)
210
  echo "<button class=\"tablinks\" id=\"3$FeedSlug\" title='{$titles['advanced']}' onclick=\"powerpress_openTab(event, 'notes-$FeedSlug')\">" . esc_html(__('Advanced', 'powerpress')) . "</button>";
211
  echo "</div>";
212
  seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $GeneralSettings, $iTunesSubtitle, $iTunesSummary, $iTunesAuthor, $iTunesOrder, $iTunesBlock, $object);
213
- artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage);
214
- display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height, $Embed);
215
- notes_tab($FeedSlug, $object);
216
  echo "</div>";
217
  echo "</div>";
218
  if ($EnclosureURL) {
210
  echo "<button class=\"tablinks\" id=\"3$FeedSlug\" title='{$titles['advanced']}' onclick=\"powerpress_openTab(event, 'notes-$FeedSlug')\">" . esc_html(__('Advanced', 'powerpress')) . "</button>";
211
  echo "</div>";
212
  seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $seo_feed_title, $GeneralSettings, $iTunesSubtitle, $iTunesSummary, $iTunesAuthor, $iTunesOrder, $iTunesBlock, $object);
213
+ artwork_tab($FeedSlug, $ExtraData, $object, $CoverImage, $GeneralSettings);
214
+ display_tab($FeedSlug, $IsVideo, $NoPlayer, $NoLinks, $Width, $Height, $Embed, $GeneralSettings);
215
+ notes_tab($FeedSlug, $object, $GeneralSettings);
216
  echo "</div>";
217
  echo "</div>";
218
  if ($EnclosureURL) {