PowerPress Podcasting plugin by Blubrry - Version 8.2.1

Version Description

  • Released 2/11/2020
  • Fixed editor detection--now styling/responsiveness will accommodate for classic editor
  • Fixed a bug where the .js file wasn't getting loaded for everyone
  • Fixed a bug that would reload the page when a "View More"-type link was clicked
Download this release

Release Info

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

Code changes from version 8.2 to 8.2.1

css/episode-box.css CHANGED
@@ -132,7 +132,7 @@ div[class^="pp-tooltip"] .text-pp-tooltip::after {
132
 
133
  div[id^="select-media-file"] {
134
  vertical-align: top;
135
- padding-top: 1vh;
136
  }
137
 
138
  a[id^="pp-change-media-link"], div[id^="save-media"] {
@@ -394,7 +394,7 @@ div[id^="pp-selected-media-text"] {
394
 
395
  div[id^="pp-change-media-file"] {
396
  vertical-align: top;
397
- margin-top: 2em;
398
  }
399
 
400
  div[class^="ep-box-line"] {
@@ -482,7 +482,7 @@ div[id^="media-details-container"] {
482
  margin-bottom: 2ch;
483
  }
484
 
485
- a.media-details, button.apple-advanced {
486
  color: #0c74d5;
487
  font-family: Roboto, sans-serif;
488
  font-size: 14px;
@@ -735,7 +735,7 @@ div[id^="explicit-container"] {
735
  }
736
 
737
  div[id^="apple-title-container"] {
738
- width: 58%;
739
  margin-right: 3ch;
740
  }
741
 
@@ -951,6 +951,13 @@ div[id^="media-input"] {
951
  }
952
  }
953
 
 
 
 
 
 
 
 
954
  /* Responsiveness for second option in media details (all 3 stack), explicit switch, and episode and season no */
955
  @media (max-width: 1132px) {
956
  .classic-editor div[class^="details-"] {
132
 
133
  div[id^="select-media-file"] {
134
  vertical-align: top;
135
+ padding-top: 2vh;
136
  }
137
 
138
  a[id^="pp-change-media-link"], div[id^="save-media"] {
394
 
395
  div[id^="pp-change-media-file"] {
396
  vertical-align: top;
397
+ margin-top: 3em;
398
  }
399
 
400
  div[class^="ep-box-line"] {
482
  margin-bottom: 2ch;
483
  }
484
 
485
+ button.media-details, button.apple-advanced {
486
  color: #0c74d5;
487
  font-family: Roboto, sans-serif;
488
  font-size: 14px;
735
  }
736
 
737
  div[id^="apple-title-container"] {
738
+ width: 55%;
739
  margin-right: 3ch;
740
  }
741
 
951
  }
952
  }
953
 
954
+ @media (max-width: 1350px) {
955
+ .classic-editor div[id^="explicit-container-"] {
956
+ width: 98%;
957
+ margin-top: 10px;
958
+ }
959
+ }
960
+
961
  /* Responsiveness for second option in media details (all 3 stack), explicit switch, and episode and season no */
962
  @media (max-width: 1132px) {
963
  .classic-editor div[class^="details-"] {
js/admin.js CHANGED
@@ -1,11 +1,11 @@
1
- function verifyMedia(el) {
2
  let feed_slug = el.id.replace("verify-button-", "");
3
  powerpress_get_media_info(feed_slug);
4
  }
5
 
6
  var interval = false;
7
 
8
- function openTab(evt, cityName) {
9
  // Declare all variables
10
  var i, tabcontent, tablinks;
11
 
@@ -31,7 +31,7 @@ function openTab(evt, cityName) {
31
  //Set/unset the interval for updating artwork previews
32
  if (cityName == 'artwork-' + feed_slug && !interval) {
33
  let el = jQuery("#powerpress_itunes_image_" + feed_slug);
34
- interval = setInterval(function() { insertArtIntoPreview(el[0]); }, 1000);
35
  }
36
  if (cityName != 'artwork-' + feed_slug && interval) {
37
  clearInterval(interval);
@@ -40,14 +40,14 @@ function openTab(evt, cityName) {
40
  }
41
 
42
  //Sets the hidden current_season input to equal the season input
43
- function setCurrentSeason(el) {
44
  let feed_slug = el.id.replace("powerpress_episode_season_", "");
45
  let season = jQuery("#powerpress_episode_season_" + feed_slug).val();
46
  jQuery("#most-recent-season").attr('value', season);
47
  }
48
 
49
  //Controls the three-way explicit setting switch
50
- function changeExplicitSwitch(el) {
51
  let id = el.id;
52
  let feed_slug = id.replace("not-set", "");
53
  feed_slug = feed_slug.replace("clean", "");
@@ -86,7 +86,7 @@ function changeExplicitSwitch(el) {
86
  }
87
  }
88
 
89
- function toggleMetamarksSettings(el) {
90
  var feed_slug;
91
  let row_num_array = el.id.split("-");
92
  let row_num = row_num_array[2];
@@ -115,7 +115,7 @@ function toggleMetamarksSettings(el) {
115
  }
116
  }
117
 
118
- function showHideMediaDetails(el) {
119
  let feed_slug = el.id.replace("show-details-link-", "");
120
  //feed_slug = feed_slug.replace("hide-details-link-", "");
121
  let show_det = jQuery("#show-details-link-" + feed_slug);
@@ -128,7 +128,7 @@ function showHideMediaDetails(el) {
128
  div.toggleClass('pp-hidden-settings');
129
  }
130
 
131
- function showHideAppleAdvanced(el) {
132
  let feed_slug;
133
  let show_det;
134
  let new_id;
@@ -150,7 +150,7 @@ function showHideAppleAdvanced(el) {
150
  div.toggleClass('pp-hidden-settings');
151
  }
152
 
153
- function changeMediaFile(el) {
154
  let feed_slug = el.id.replace("pp-edit-media-button-", "");
155
  let input = jQuery("#pp-url-input-container-" + feed_slug);
156
  input.removeAttr("style");
@@ -171,7 +171,7 @@ function changeMediaFile(el) {
171
  }
172
 
173
  //save button for edit media link
174
- function saveMediaFile(el) {
175
  let feed_slug = el.id.replace("save-media-", "");
176
  powerpress_get_media_info(feed_slug);
177
  let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
@@ -210,7 +210,7 @@ function saveMediaFile(el) {
210
  }
211
 
212
  //Continue button for adding media to a post
213
- function continueToEpisodeSettings(el) {
214
  let feed_slug = el.id.replace("continue-to-episode-settings-", "");
215
  powerpress_get_media_info(feed_slug);
216
  let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
@@ -228,6 +228,7 @@ function continueToEpisodeSettings(el) {
228
  let container = jQuery("#a-pp-selected-media-" + feed_slug);
229
  let details = jQuery("#media-file-details-" + feed_slug);
230
  if (link.length > 0) {
 
231
  if (link.includes("/")) {
232
  link_parts = link.split("/");
233
  } else {
@@ -261,7 +262,7 @@ function continueToEpisodeSettings(el) {
261
  }
262
 
263
  //keeps art previews up to date
264
- function insertArtIntoPreview(el) {
265
  let feed_slug = el.id.replace("powerpress_itunes_image_", "");
266
  let art_input = "#powerpress_itunes_image_" + feed_slug;
267
  let poster_input = "#powerpress_image_" + feed_slug;
1
+ function powerpress_verifyMedia(el) {
2
  let feed_slug = el.id.replace("verify-button-", "");
3
  powerpress_get_media_info(feed_slug);
4
  }
5
 
6
  var interval = false;
7
 
8
+ function powerpress_openTab(evt, cityName) {
9
  // Declare all variables
10
  var i, tabcontent, tablinks;
11
 
31
  //Set/unset the interval for updating artwork previews
32
  if (cityName == 'artwork-' + feed_slug && !interval) {
33
  let el = jQuery("#powerpress_itunes_image_" + feed_slug);
34
+ interval = setInterval(function() { powerpress_insertArtIntoPreview(el[0]); }, 1000);
35
  }
36
  if (cityName != 'artwork-' + feed_slug && interval) {
37
  clearInterval(interval);
40
  }
41
 
42
  //Sets the hidden current_season input to equal the season input
43
+ function powerpress_setCurrentSeason(el) {
44
  let feed_slug = el.id.replace("powerpress_episode_season_", "");
45
  let season = jQuery("#powerpress_episode_season_" + feed_slug).val();
46
  jQuery("#most-recent-season").attr('value', season);
47
  }
48
 
49
  //Controls the three-way explicit setting switch
50
+ function powerpress_changeExplicitSwitch(el) {
51
  let id = el.id;
52
  let feed_slug = id.replace("not-set", "");
53
  feed_slug = feed_slug.replace("clean", "");
86
  }
87
  }
88
 
89
+ function powerpress_toggleMetamarksSettings(el) {
90
  var feed_slug;
91
  let row_num_array = el.id.split("-");
92
  let row_num = row_num_array[2];
115
  }
116
  }
117
 
118
+ function powerpress_showHideMediaDetails(el) {
119
  let feed_slug = el.id.replace("show-details-link-", "");
120
  //feed_slug = feed_slug.replace("hide-details-link-", "");
121
  let show_det = jQuery("#show-details-link-" + feed_slug);
128
  div.toggleClass('pp-hidden-settings');
129
  }
130
 
131
+ function powerpress_showHideAppleAdvanced(el) {
132
  let feed_slug;
133
  let show_det;
134
  let new_id;
150
  div.toggleClass('pp-hidden-settings');
151
  }
152
 
153
+ function powerpress_changeMediaFile(el) {
154
  let feed_slug = el.id.replace("pp-edit-media-button-", "");
155
  let input = jQuery("#pp-url-input-container-" + feed_slug);
156
  input.removeAttr("style");
171
  }
172
 
173
  //save button for edit media link
174
+ function powerpress_saveMediaFile(el) {
175
  let feed_slug = el.id.replace("save-media-", "");
176
  powerpress_get_media_info(feed_slug);
177
  let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
210
  }
211
 
212
  //Continue button for adding media to a post
213
+ function powerpress_continueToEpisodeSettings(el) {
214
  let feed_slug = el.id.replace("continue-to-episode-settings-", "");
215
  powerpress_get_media_info(feed_slug);
216
  let link = jQuery("#pp-url-input-container-" + feed_slug + " > input").val();
228
  let container = jQuery("#a-pp-selected-media-" + feed_slug);
229
  let details = jQuery("#media-file-details-" + feed_slug);
230
  if (link.length > 0) {
231
+ file_show.attr("title", link);
232
  if (link.includes("/")) {
233
  link_parts = link.split("/");
234
  } else {
262
  }
263
 
264
  //keeps art previews up to date
265
+ function powerpress_insertArtIntoPreview(el) {
266
  let feed_slug = el.id.replace("powerpress_itunes_image_", "");
267
  let art_input = "#powerpress_itunes_image_" + feed_slug;
268
  let poster_input = "#powerpress_image_" + feed_slug;
powerpress-metamarks.php CHANGED
@@ -118,7 +118,7 @@ function powerpress_metamarks_editrow_html($feed_slug, $next_row, $data = null,
118
  $html .= '<div id="metamark-preview-pos-' . $feed_slug .'-'. $next_row . '" class="metamark-preview-pos">' . $pos . '</div>';
119
  $html .= '<div id="metamark-preview-type-' . $feed_slug .'-'. $next_row . '" class="metamark-preview-type">' . $type . '</div>';
120
  $html .= '<div class="pp-metamark-delete"><a href="#" onclick="return powerpress_metamarks_deleterow(\'powerpress_metamarks_row_'. $feed_slug .'_'. $next_row .'\');" title="'. __('Delete', 'powerpress') .'">';
121
- $html .= __('Delete', 'powerpress') . '</a></div><div class="pp-metamark-edit"><a href="#" id="toggle-metamark-'. $next_row . '-' . $feed_slug . '" title="'. __('Save', 'powerpress') .'" onclick="toggleMetamarksSettings(this)">' . __($option, 'powerpress') . '</a></div>';
122
  $html .= '</div><div id="hide-metamark-' . $feed_slug .'-'. $next_row . '"' . $class . '>';
123
  $html .= '<div class="metamark-input-container"><div class="pp-metamark-label-container" id="type-label-' . $feed_slug .'-'. $next_row . '"><label class="pp-metamark-label" for="metamark-type-'. $feed_slug .'_'. $next_row .'">' . __('Type', 'powerpress') . '</label><select id="metamark-type-'. $feed_slug .'-'. $next_row .'" class="ep-box-input" type="text" title="'. __('Type', 'powerpress') .'" name="MetaMarks['.$feed_slug.']['.$next_row.'][type]">';
124
  $html .= powerpress_print_options( array(''=>'Select Type')+ $MarkTypes, $data['type'], true);
118
  $html .= '<div id="metamark-preview-pos-' . $feed_slug .'-'. $next_row . '" class="metamark-preview-pos">' . $pos . '</div>';
119
  $html .= '<div id="metamark-preview-type-' . $feed_slug .'-'. $next_row . '" class="metamark-preview-type">' . $type . '</div>';
120
  $html .= '<div class="pp-metamark-delete"><a href="#" onclick="return powerpress_metamarks_deleterow(\'powerpress_metamarks_row_'. $feed_slug .'_'. $next_row .'\');" title="'. __('Delete', 'powerpress') .'">';
121
+ $html .= __('Delete', 'powerpress') . '</a></div><div class="pp-metamark-edit"><a href="#" id="toggle-metamark-'. $next_row . '-' . $feed_slug . '" title="'. __('Save', 'powerpress') .'" onclick="powerpress_toggleMetamarksSettings(this)">' . __($option, 'powerpress') . '</a></div>';
122
  $html .= '</div><div id="hide-metamark-' . $feed_slug .'-'. $next_row . '"' . $class . '>';
123
  $html .= '<div class="metamark-input-container"><div class="pp-metamark-label-container" id="type-label-' . $feed_slug .'-'. $next_row . '"><label class="pp-metamark-label" for="metamark-type-'. $feed_slug .'_'. $next_row .'">' . __('Type', 'powerpress') . '</label><select id="metamark-type-'. $feed_slug .'-'. $next_row .'" class="ep-box-input" type="text" title="'. __('Type', 'powerpress') .'" name="MetaMarks['.$feed_slug.']['.$next_row.'][type]">';
124
  $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
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' );
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.1
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.1' );
40
 
41
  // Translation support:
42
  if ( !defined('POWERPRESS_ABSPATH') )
powerpressadmin-metabox.php CHANGED
@@ -43,7 +43,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
43
  style="display: none;"
44
  for="powerpress_url_<?php echo $FeedSlug; ?>"><?php echo __('Update URL or attach new media file'); ?></label>
45
  </div>
46
- <div style="<?php echo $style3 ?>" class="ep-box-input"
47
  id="powerpress_url_show_<?php echo $FeedSlug; ?>">
48
  <p id="ep-box-filename-<?php echo $FeedSlug; ?>"><?php echo $filename ?></p>
49
  <img id="powerpress_success_<?php echo $FeedSlug; ?>"
@@ -68,14 +68,14 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
68
  id="select-media-button-<?php echo $FeedSlug; ?>"><?php echo __('SELECT FILE', 'powerpress'); ?></div>
69
  </a>
70
  <div id="continue-to-episode-settings-<?php echo $FeedSlug; ?>" class="pp-blue-button"
71
- onclick="continueToEpisodeSettings(this)"><?php echo __('CONTINUE', 'powerpress'); ?></div>
72
  </div>
73
 
74
  <div id="edit-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style3 ?>">
75
  <div id="pp-edit-media-button-<?php echo $FeedSlug; ?>" class="pp-gray-button"
76
- onclick="changeMediaFile(this)"><?php echo __('CHANGE MEDIA', 'powerpress'); ?></div>
77
  <div id="verify-button-<?php echo $FeedSlug; ?>" class="pp-blue-button"
78
- onclick="verifyMedia(this)"><?php echo __('VERIFY LINK', 'powerpress'); ?></div>
79
  </div>
80
 
81
  <div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
@@ -86,7 +86,7 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
86
  id="change-media-button-<?php echo $FeedSlug; ?>"><?php echo __('CHOOSE FILE', 'powerpress'); ?></div>
87
  </a>
88
  <div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
89
- onclick="saveMediaFile(this)"><?php echo __('SAVE', 'powerpress'); ?></div>
90
  </div>
91
  <div id="pp-warning-messages">
92
  <div id="file-select-warning-<?php echo $FeedSlug; ?>"
@@ -152,8 +152,8 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
152
  <div id="show-hide-media-details-<?php echo $FeedSlug; ?>">
153
  <!--<div class="ep-box-line-bold"></div>-->
154
  <div id="media-details-container-<?php echo $FeedSlug; ?>">
155
- <a id="show-details-link-<?php echo $FeedSlug; ?>" class="media-details" title="<?php echo __("Show file size and duration","powerpress"); ?>"
156
- onclick="showHideMediaDetails(this)"><?php echo __('View File Size and Duration', 'powerpress'); ?> &#709;</a>
157
  <!--<a id="hide-details-link-<?php //echo $FeedSlug; ?>" class="pp-hidden-settings"
158
  onclick="showHideMediaDetails(this)"><?php //echo __('Hide File Size and Duration', 'powerpress'); ?> &#708;</a>-->
159
  </div>
@@ -299,15 +299,15 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
299
  </select>
300
  <div id="explicit-switch-base-<?php echo $FeedSlug; ?>">
301
  <div id="not-set-<?php echo $FeedSlug; ?>" title="<?php echo __("No explicit selected","powerpress"); ?>"
302
- onclick="changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? ' style="border-right: 1px solid #b3b3b3;"' : '' ?>
303
  " class="<?php echo $iTunesExplicit == 0 ? ' explicit-selected' : 'explicit-option' ?>
304
  "><?php echo __('NOT SET', 'powerpress'); ?></div>
305
  <div id="clean-<?php echo $FeedSlug; ?>" title="<?php echo __("Clean content","powerpress"); ?>"
306
- onclick="changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? '' : ' style="border-left: 1px solid #b3b3b3;border-right: 1px solid #b3b3b3;"' ?>
307
  " class="<?php echo $iTunesExplicit == 2 ? ' explicit-selected' : 'explicit-option' ?>
308
  "><?php echo __('CLEAN', 'powerpress'); ?></div>
309
  <div id="explicit-<?php echo $FeedSlug; ?>" title="<?php echo __("Explicit content","powerpress"); ?>"
310
- onclick="changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? ' style="border-left: 1px solid #b3b3b3;"' : '' ?>
311
  " class="<?php echo $iTunesExplicit == 1 ? ' explicit-selected' : 'explicit-option' ?>
312
  "><?php echo __('EXPLICIT', 'powerpress'); ?></div>
313
  </div>
@@ -333,30 +333,30 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
333
  <div class="label-container" id="season-container-<?php echo $FeedSlug; ?>">
334
  <label class="ep-box-label-apple"
335
  for="powerpress_episode_season_<?php echo $FeedSlug; ?>"><?php echo __('Season #', 'powerpress'); ?></label>
336
- <div class="pp-tooltip-left" style="float: right;">i
337
  <span class="text-pp-tooltip"
338
  style="float: right;"><?php echo __('If your feed type is set to serial, you may specify a season for each episode.', 'powerpress'); ?></span>
339
- </div>
340
- <input class="apple-opt-input" type="number" onclick="setCurrentSeason(this)"
341
  id="powerpress_episode_season_<?php echo $FeedSlug; ?>"
342
  name="Powerpress[<?php echo $FeedSlug; ?>][season]" title="<?php echo __("Apple Podcasts season number","powerpress"); ?>"
343
- value="<?php if ($canSetSeason) {
344
  if (isset($ExtraData['season']) && $ExtraData['season']) {
345
  echo esc_attr($ExtraData['season']) . "\"/>";
346
  } elseif (isset($GeneralSettings['current_season'])) {
347
  echo esc_attr($GeneralSettings['current_season']) . "\"/>";
348
  } else {
349
- echo "1\"/>";
350
  }
351
- } else {
352
  if (isset($ExtraData['season']) && $ExtraData['season']) {
353
  $season = esc_attr($ExtraData['season']);
354
  } else {
355
  $season = '1';
356
  }
357
  echo "$season\" style=\"display: none\"/>";
358
- echo "<input class='ep-box-input' type='number' id='powerpress_episode_season_disabled_$FeedSlug' value='$season' disabled \>";
359
- } ?>
360
  <input id="most-recent-season-<?php echo $FeedSlug; ?>" type="number"
361
  name="General[current_season]" style="display: none;" value="1" />
362
  </div>
@@ -377,7 +377,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
377
  <div class="ep-box-line-margin" style="border-top: 2px solid #EFEFEF;"></div>
378
  <div id="apple-advanced-container-<?php echo $FeedSlug; ?>">
379
  <button id="show-apple-link-<?php echo $FeedSlug; ?>" class="apple-advanced" aria-pressed="false" title="<?php echo __("More settings button","powerpress"); ?>"
380
- onclick="showHideAppleAdvanced(this)"><?php echo __('See More Settings &#709;', 'powerpress'); ?></button>
381
  </div>
382
  </div>
383
  <div id="apple-advanced-settings-<?php echo $FeedSlug; ?>" class="pp-hidden-settings">
@@ -394,7 +394,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
394
  <div class="label-container" style="width: 100%;" id="height-apple-author-<?php echo $FeedSlug; ?>">
395
  <label class="ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo __('Author', 'powerpress'); ?></label>
396
  <input class="apple-opt-input" type="text" id="powerpress_author_<?php echo $FeedSlug; ?>" title="<?php echo __("Apple Podcasts episode author","powerpress"); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][author]" value="<?php echo esc_attr($iTunesAuthor); ?>" />
397
- <label class="ep-box-label-under"><?php echo __('Leave blank to use post author name.', 'powerpress'); ?></label>
398
  </div>
399
  </div>
400
  <div class="apple-opt-section-container">
@@ -435,7 +435,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
435
  </div>
436
  </div>
437
  <div class="apple-opt-section-container">
438
- <div class="label-container" id="apple-feature-<?php echo $FeedSlug; ?>">
439
  <h4 class="pp-section-title-block" style="width: 100%;"><?php echo __("Feature Episode", 'powerpress') ?></h4>
440
  <?php if ($FeaturedChecked) { ?>
441
  <input type="hidden" name="PowerpressFeature[<?php echo $FeedSlug; ?>]" value="0" />
@@ -446,7 +446,7 @@ function seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesS
446
  <span for="powerpress_feature_<?php echo $FeedSlug; ?>"
447
  style="font-size: 14px;"> <?php echo __('Episode will appear at the top of your episode list in the Apple Podcast directory.', 'powerpress'); ?></span>
448
  </div>
449
- <div class="label-container" id="height-type-<?php echo $FeedSlug; ?>" style="float: right;">
450
  <label class="ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][order]"><?php echo __('Order', 'powerpress'); ?></label>
451
  <input class="apple-opt-input" type="number" id="powerpress_order_<?php echo $FeedSlug; ?>" title="<?php echo __("Apple Podcasts episode order","powerpress"); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][order]" value="<?php echo esc_attr($iTunesOrder); ?>" />
452
  </div>
@@ -483,7 +483,7 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage)
483
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
484
  name="Powerpress[<?php echo $FeedSlug; ?>][itunes_image]"
485
  value="<?php echo esc_attr($ExtraData['itunes_image']); ?>"
486
- style="font-size: 90%;" size="250" oninput="insertArtIntoPreview(this)"/>
487
  <br/>
488
  <br/>
489
  <a href="<?php echo $form_action_url; ?>" class="thickbox powerpress-itunes-image-browser"
@@ -514,7 +514,7 @@ function artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage)
514
  name="Powerpress[<?php echo $FeedSlug; ?>][image]" title="<?php echo __("Poster image URL","powerpress"); ?>"
515
  value="<?php echo esc_attr($CoverImage); ?>"
516
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
517
- style="font-size: 90%;" size="250" oninput="insertArtIntoPreview(this)"/>
518
  <br/>
519
  <label class="ep-box-caption"
520
  for="powerpress_image_<?php echo $FeedSlug; ?>"><?php echo __('Poster image for video (m4v, mp4, ogv, webm, etc..)', 'powerpress'); ?></label>
43
  style="display: none;"
44
  for="powerpress_url_<?php echo $FeedSlug; ?>"><?php echo __('Update URL or attach new media file'); ?></label>
45
  </div>
46
+ <div style="<?php echo $style3 ?>" class="ep-box-input" title="<?php echo $EnclosureURL; ?>"
47
  id="powerpress_url_show_<?php echo $FeedSlug; ?>">
48
  <p id="ep-box-filename-<?php echo $FeedSlug; ?>"><?php echo $filename ?></p>
49
  <img id="powerpress_success_<?php echo $FeedSlug; ?>"
68
  id="select-media-button-<?php echo $FeedSlug; ?>"><?php echo __('SELECT FILE', 'powerpress'); ?></div>
69
  </a>
70
  <div id="continue-to-episode-settings-<?php echo $FeedSlug; ?>" class="pp-blue-button"
71
+ onclick="powerpress_continueToEpisodeSettings(this)"><?php echo __('CONTINUE', 'powerpress'); ?></div>
72
  </div>
73
 
74
  <div id="edit-media-file-<?php echo $FeedSlug; ?>" style="<?php echo $style3 ?>">
75
  <div id="pp-edit-media-button-<?php echo $FeedSlug; ?>" class="pp-gray-button"
76
+ onclick="powerpress_changeMediaFile(this)"><?php echo __('CHANGE MEDIA', 'powerpress'); ?></div>
77
  <div id="verify-button-<?php echo $FeedSlug; ?>" class="pp-blue-button"
78
+ onclick="powerpress_verifyMedia(this)"><?php echo __('VERIFY LINK', 'powerpress'); ?></div>
79
  </div>
80
 
81
  <div id="pp-change-media-file-<?php echo $FeedSlug; ?>" style="display: none;">
86
  id="change-media-button-<?php echo $FeedSlug; ?>"><?php echo __('CHOOSE FILE', 'powerpress'); ?></div>
87
  </a>
88
  <div id="save-media-<?php echo $FeedSlug; ?>" class="pp-blue-button"
89
+ onclick="powerpress_saveMediaFile(this)"><?php echo __('SAVE', 'powerpress'); ?></div>
90
  </div>
91
  <div id="pp-warning-messages">
92
  <div id="file-select-warning-<?php echo $FeedSlug; ?>"
152
  <div id="show-hide-media-details-<?php echo $FeedSlug; ?>">
153
  <!--<div class="ep-box-line-bold"></div>-->
154
  <div id="media-details-container-<?php echo $FeedSlug; ?>">
155
+ <button id="show-details-link-<?php echo $FeedSlug; ?>" class="media-details" title="<?php echo __("Show file size and duration","powerpress"); ?>"
156
+ onclick="powerpress_showHideMediaDetails(this); return false;"><?php echo __('View File Size and Duration', 'powerpress'); ?> &#709;</button>
157
  <!--<a id="hide-details-link-<?php //echo $FeedSlug; ?>" class="pp-hidden-settings"
158
  onclick="showHideMediaDetails(this)"><?php //echo __('Hide File Size and Duration', 'powerpress'); ?> &#708;</a>-->
159
  </div>
299
  </select>
300
  <div id="explicit-switch-base-<?php echo $FeedSlug; ?>">
301
  <div id="not-set-<?php echo $FeedSlug; ?>" title="<?php echo __("No explicit selected","powerpress"); ?>"
302
+ onclick="powerpress_changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? ' style="border-right: 1px solid #b3b3b3;"' : '' ?>
303
  " class="<?php echo $iTunesExplicit == 0 ? ' explicit-selected' : 'explicit-option' ?>
304
  "><?php echo __('NOT SET', 'powerpress'); ?></div>
305
  <div id="clean-<?php echo $FeedSlug; ?>" title="<?php echo __("Clean content","powerpress"); ?>"
306
+ onclick="powerpress_changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? '' : ' style="border-left: 1px solid #b3b3b3;border-right: 1px solid #b3b3b3;"' ?>
307
  " class="<?php echo $iTunesExplicit == 2 ? ' explicit-selected' : 'explicit-option' ?>
308
  "><?php echo __('CLEAN', 'powerpress'); ?></div>
309
  <div id="explicit-<?php echo $FeedSlug; ?>" title="<?php echo __("Explicit content","powerpress"); ?>"
310
+ onclick="powerpress_changeExplicitSwitch(this)"<?php echo $iTunesExplicit == 2 ? ' style="border-left: 1px solid #b3b3b3;"' : '' ?>
311
  " class="<?php echo $iTunesExplicit == 1 ? ' explicit-selected' : 'explicit-option' ?>
312
  "><?php echo __('EXPLICIT', 'powerpress'); ?></div>
313
  </div>
333
  <div class="label-container" id="season-container-<?php echo $FeedSlug; ?>">
334
  <label class="ep-box-label-apple"
335
  for="powerpress_episode_season_<?php echo $FeedSlug; ?>"><?php echo __('Season #', 'powerpress'); ?></label>
336
+ <!--<div class="pp-tooltip-left" style="float: right;">i
337
  <span class="text-pp-tooltip"
338
  style="float: right;"><?php echo __('If your feed type is set to serial, you may specify a season for each episode.', 'powerpress'); ?></span>
339
+ </div>-->
340
+ <input class="apple-opt-input" type="number" onclick="powerpress_setCurrentSeason(this)"
341
  id="powerpress_episode_season_<?php echo $FeedSlug; ?>"
342
  name="Powerpress[<?php echo $FeedSlug; ?>][season]" title="<?php echo __("Apple Podcasts season number","powerpress"); ?>"
343
+ value="<?php //if ($canSetSeason) {
344
  if (isset($ExtraData['season']) && $ExtraData['season']) {
345
  echo esc_attr($ExtraData['season']) . "\"/>";
346
  } elseif (isset($GeneralSettings['current_season'])) {
347
  echo esc_attr($GeneralSettings['current_season']) . "\"/>";
348
  } else {
349
+ echo "1\" style=\"width: 100%;\"/>";
350
  }
351
+ /*} else {
352
  if (isset($ExtraData['season']) && $ExtraData['season']) {
353
  $season = esc_attr($ExtraData['season']);
354
  } else {
355
  $season = '1';
356
  }
357
  echo "$season\" style=\"display: none\"/>";
358
+ echo "<input class='ep-box-input' type='number' style='width: 100%;' id='powerpress_episode_season_disabled_$FeedSlug' value='$season' disabled \>";
359
+ }*/ ?>
360
  <input id="most-recent-season-<?php echo $FeedSlug; ?>" type="number"
361
  name="General[current_season]" style="display: none;" value="1" />
362
  </div>
377
  <div class="ep-box-line-margin" style="border-top: 2px solid #EFEFEF;"></div>
378
  <div id="apple-advanced-container-<?php echo $FeedSlug; ?>">
379
  <button id="show-apple-link-<?php echo $FeedSlug; ?>" class="apple-advanced" aria-pressed="false" title="<?php echo __("More settings button","powerpress"); ?>"
380
+ onclick="powerpress_showHideAppleAdvanced(this); return false;"><?php echo __('See More Settings &#709;', 'powerpress'); ?></button>
381
  </div>
382
  </div>
383
  <div id="apple-advanced-settings-<?php echo $FeedSlug; ?>" class="pp-hidden-settings">
394
  <div class="label-container" style="width: 100%;" id="height-apple-author-<?php echo $FeedSlug; ?>">
395
  <label class="ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo __('Author', 'powerpress'); ?></label>
396
  <input class="apple-opt-input" type="text" id="powerpress_author_<?php echo $FeedSlug; ?>" title="<?php echo __("Apple Podcasts episode author","powerpress"); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][author]" value="<?php echo esc_attr($iTunesAuthor); ?>" />
397
+ <label class="ep-box-label-under"><?php echo __('Leave blank to use default.', 'powerpress'); ?></label>
398
  </div>
399
  </div>
400
  <div class="apple-opt-section-container">
435
  </div>
436
  </div>
437
  <div class="apple-opt-section-container">
438
+ <div class="label-container" id="apple-feature-<?php echo $FeedSlug; ?>" style="width: 65%;">
439
  <h4 class="pp-section-title-block" style="width: 100%;"><?php echo __("Feature Episode", 'powerpress') ?></h4>
440
  <?php if ($FeaturedChecked) { ?>
441
  <input type="hidden" name="PowerpressFeature[<?php echo $FeedSlug; ?>]" value="0" />
446
  <span for="powerpress_feature_<?php echo $FeedSlug; ?>"
447
  style="font-size: 14px;"> <?php echo __('Episode will appear at the top of your episode list in the Apple Podcast directory.', 'powerpress'); ?></span>
448
  </div>
449
+ <div class="label-container" id="height-type-<?php echo $FeedSlug; ?>" style="float: right; width: 30%;">
450
  <label class="ep-box-label" for="Powerpress[<?php echo $FeedSlug; ?>][order]"><?php echo __('Order', 'powerpress'); ?></label>
451
  <input class="apple-opt-input" type="number" id="powerpress_order_<?php echo $FeedSlug; ?>" title="<?php echo __("Apple Podcasts episode order","powerpress"); ?>" name="Powerpress[<?php echo $FeedSlug; ?>][order]" value="<?php echo esc_attr($iTunesOrder); ?>" />
452
  </div>
483
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
484
  name="Powerpress[<?php echo $FeedSlug; ?>][itunes_image]"
485
  value="<?php echo esc_attr($ExtraData['itunes_image']); ?>"
486
+ style="font-size: 90%;" size="250" oninput="powerpress_insertArtIntoPreview(this)"/>
487
  <br/>
488
  <br/>
489
  <a href="<?php echo $form_action_url; ?>" class="thickbox powerpress-itunes-image-browser"
514
  name="Powerpress[<?php echo $FeedSlug; ?>][image]" title="<?php echo __("Poster image URL","powerpress"); ?>"
515
  value="<?php echo esc_attr($CoverImage); ?>"
516
  placeholder="<?php echo htmlspecialchars(__('e.g. http://example.com/path/to/image.jpg', 'powerpress')); ?>"
517
+ style="font-size: 90%;" size="250" oninput="powerpress_insertArtIntoPreview(this)"/>
518
  <br/>
519
  <label class="ep-box-caption"
520
  for="powerpress_image_<?php echo $FeedSlug; ?>"><?php echo __('Poster image for video (m4v, mp4, ogv, webm, etc..)', 'powerpress'); ?></label>
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.3.2
7
- Stable tag: 8.2
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
@@ -236,6 +236,12 @@ To install Blubrry PowerPress manually, follow these steps:
236
  = Fan of PowerPress and want to show your support? =
237
  If you are a fan of PowerPress, we would greatly appreciate it if you could take a moment and [leave us a review on WordPress.org](https://wordpress.org/support/plugin/powerpress/reviews/?rate=5#new-post). Your support is greatly appreciated!
238
 
 
 
 
 
 
 
239
  = 8.2 =
240
  * Released 2/10/2020
241
  * Eliminated Episode tab--whole episode box appears
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 5.3.2
7
+ Stable tag: 8.2.1
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.1 =
240
+ * Released 2/11/2020
241
+ * Fixed editor detection--now styling/responsiveness will accommodate for classic editor
242
+ * Fixed a bug where the .js file wasn't getting loaded for everyone
243
+ * Fixed a bug that would reload the page when a "View More"-type link was clicked
244
+
245
  = 8.2 =
246
  * Released 2/10/2020
247
  * Eliminated Episode tab--whole episode box appears
views/episode-box.php CHANGED
@@ -5,10 +5,19 @@
5
  //Plus maybe general settings and whatever other variables are initialized in powerpress_meta_box
6
 
7
  require_once(POWERPRESS_ABSPATH .'/powerpress-metamarks.php');
 
 
 
 
 
 
 
 
 
 
8
  function powerpress_meta_box($object, $box)
9
  {
10
  $FeedSlug = esc_attr(str_replace('powerpress-', '', $box['id']));
11
- wp_enqueue_style("powerpress_episode_box", '/wp-content/plugins/powerpress/css/episode-box.css');
12
  $DurationHH = '';
13
  $DurationMM = '';
14
  $DurationSS = '';
@@ -160,18 +169,18 @@ function powerpress_meta_box($object, $box)
160
 
161
  } // if ($object->ID)
162
  require_once(POWERPRESS_ABSPATH .'/powerpressadmin-metabox.php');
163
-
164
- if( function_exists( 'is_block_editor' ) && is_block_editor() ) {
165
- $editor = "classic-editor";
166
- } else {
167
  $editor = "";
 
 
168
  }
169
  if ($EnclosureURL) {
170
  $style = "display: block";
171
  } else {
172
  $style = "display: none";
173
  }
174
- echo "<script src='/wp-content/plugins/powerpress/js/admin.js'></script>";
175
  echo "<div id=\"powerpress_podcast_box_$FeedSlug\" class=\"$editor\">";
176
  if (!$EnclosureURL) {
177
  echo '<input type="hidden" name="Powerpress['. $FeedSlug .'][new_podcast]" value="1" />'.PHP_EOL;
@@ -185,10 +194,10 @@ function powerpress_meta_box($object, $box)
185
  echo "<div id=\"tab-container-$FeedSlug\" style=\"$style\">";
186
  echo "<div class=\"pp-tab\">";
187
  $titles = array("info" => __("Episode Info", "powerpress"), "artwork" => __("Episode Artwork", "powerpress"), "website" => __("Website Display", "powerpress"), "advanced" => __("Advanced", "powerpress"));
188
- echo "<button class=\"tablinks active\" id=\"0$FeedSlug\" title='{$titles['info']}' onclick=\"openTab(event, 'seo-$FeedSlug')\" id=\"defaultOpen-$FeedSlug\">" . __('Episode Info', 'powerpress') . "</button>";
189
- echo "<button class=\"tablinks\" id=\"1$FeedSlug\" title='{$titles['artwork']}' onclick=\"openTab(event, 'artwork-$FeedSlug')\">" . __('Episode Artwork', 'powerpress') . "</button>";
190
- echo "<button class=\"tablinks\" id=\"2$FeedSlug\" title='{$titles['website']}' onclick=\"openTab(event, 'display-$FeedSlug')\">" . __('Website Display', 'powerpress') . "</button>";
191
- echo "<button class=\"tablinks\" id=\"3$FeedSlug\" title='{$titles['advanced']}' onclick=\"openTab(event, 'notes-$FeedSlug')\">" . __('Advanced', 'powerpress') . "</button>";
192
  echo "</div>";
193
  seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesSubtitle, $iTunesSummary, $iTunesAuthor, $iTunesOrder, $iTunesBlock, $object);
194
  artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage);
5
  //Plus maybe general settings and whatever other variables are initialized in powerpress_meta_box
6
 
7
  require_once(POWERPRESS_ABSPATH .'/powerpress-metamarks.php');
8
+
9
+ function powerpress_admin_enqueue_scripts($hook) {
10
+ if ( 'post-new.php' === $hook || 'post.php' === $hook) {
11
+ wp_register_style( 'powerpress-episode-box', powerpress_get_root_url() . 'css/episode-box.css', array(), POWERPRESS_VERSION );
12
+ wp_enqueue_style( 'powerpress-episode-box' );
13
+ wp_enqueue_script('powerpress-admin', powerpress_get_root_url() . 'js/admin.js', array(), POWERPRESS_VERSION );
14
+ }
15
+ }
16
+ add_action('admin_enqueue_scripts', 'powerpress_admin_enqueue_scripts');
17
+
18
  function powerpress_meta_box($object, $box)
19
  {
20
  $FeedSlug = esc_attr(str_replace('powerpress-', '', $box['id']));
 
21
  $DurationHH = '';
22
  $DurationMM = '';
23
  $DurationSS = '';
169
 
170
  } // if ($object->ID)
171
  require_once(POWERPRESS_ABSPATH .'/powerpressadmin-metabox.php');
172
+ global $current_screen;
173
+ $current_screen = get_current_screen();
174
+ if( (method_exists( $current_screen, 'is_block_editor' ) && $current_screen->is_block_editor()) || ( function_exists('is_gutenberg_page')) && is_gutenberg_page() ) {
 
175
  $editor = "";
176
+ } else {
177
+ $editor = "classic-editor";
178
  }
179
  if ($EnclosureURL) {
180
  $style = "display: block";
181
  } else {
182
  $style = "display: none";
183
  }
 
184
  echo "<div id=\"powerpress_podcast_box_$FeedSlug\" class=\"$editor\">";
185
  if (!$EnclosureURL) {
186
  echo '<input type="hidden" name="Powerpress['. $FeedSlug .'][new_podcast]" value="1" />'.PHP_EOL;
194
  echo "<div id=\"tab-container-$FeedSlug\" style=\"$style\">";
195
  echo "<div class=\"pp-tab\">";
196
  $titles = array("info" => __("Episode Info", "powerpress"), "artwork" => __("Episode Artwork", "powerpress"), "website" => __("Website Display", "powerpress"), "advanced" => __("Advanced", "powerpress"));
197
+ echo "<button class=\"tablinks active\" id=\"0$FeedSlug\" title='{$titles['info']}' onclick=\"powerpress_openTab(event, 'seo-$FeedSlug')\" id=\"defaultOpen-$FeedSlug\">" . __('Episode Info', 'powerpress') . "</button>";
198
+ echo "<button class=\"tablinks\" id=\"1$FeedSlug\" title='{$titles['artwork']}' onclick=\"powerpress_openTab(event, 'artwork-$FeedSlug')\">" . __('Episode Artwork', 'powerpress') . "</button>";
199
+ echo "<button class=\"tablinks\" id=\"2$FeedSlug\" title='{$titles['website']}' onclick=\"powerpress_openTab(event, 'display-$FeedSlug')\">" . __('Website Display', 'powerpress') . "</button>";
200
+ echo "<button class=\"tablinks\" id=\"3$FeedSlug\" title='{$titles['advanced']}' onclick=\"powerpress_openTab(event, 'notes-$FeedSlug')\">" . __('Advanced', 'powerpress') . "</button>";
201
  echo "</div>";
202
  seo_tab($FeedSlug, $ExtraData, $iTunesExplicit, $canSetSeason, $iTunesSubtitle, $iTunesSummary, $iTunesAuthor, $iTunesOrder, $iTunesBlock, $object);
203
  artwork_tab($FeedSlug, $ExtraData, $object, $IsVideo, $CoverImage);