PowerPress Podcasting plugin by Blubrry - Version 6.2

Version Description

  • Released on 11/16/2015
  • Clammr Audio Player option added to PowerPress.
  • Added logic to call the do_shortcode fucntion when themes override the audio shortcode.
  • Fixed bug in the media redirect url function when switching between sites for a MultiSite. (Thanks Avi for the patch!)
  • HTML output will only append a "\n" when in debug mode. This will prevent situation where some plugins convert new lines into <br> tags. (Thanks Avi for bringing to our attention)
  • Added new define option POWERPRESS_DO_SHORTCODE, when set in your wp-config.php the do_shortcode is used rather than calling the wp_audio_shortcode function.
  • Moved the wp_enqueue_style for subscribe widget within the shortcode. Shortcode can now be used outside of the_content.
Download this release

Release Info

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

Code changes from version 6.1 to 6.2

images/clammr.png ADDED
Binary file
powerpress-player.php CHANGED
@@ -673,7 +673,7 @@ function powerpressplayer_player_other($content, $media_url, $EpisodeData = arra
673
 
674
  if( $autoplay )
675
  {
676
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL;
677
  $content .= '<script type="text/javascript"><!--'.PHP_EOL;
678
  $content .= "powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, 'tofit');\n";
679
  $content .= "//-->\n";
@@ -681,7 +681,7 @@ function powerpressplayer_player_other($content, $media_url, $EpisodeData = arra
681
  }
682
  else
683
  {
684
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
685
  $content .= '<a href="'. $media_url .'" title="'. htmlspecialchars(POWERPRESS_PLAY_TEXT) .'" onclick="';
686
  $content .= "return powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, 'tofit' );";
687
  $content .= '">';
@@ -868,7 +868,7 @@ function powerpressplayer_mediaobjects($type, $content, $media_url, $EpisodeData
868
  {
869
  $GLOBALS['g_powerpress_complete_mediaobject'] = true;
870
  $addhtml = '';
871
- $addhtml .= '<div itemscope itemtype="http://schema.org/'. ($type=='video'?'VideoObject':'AudioObject') .'">'.PHP_EOL;
872
 
873
  if( !empty($EpisodeData['title']) )
874
  {
@@ -880,12 +880,12 @@ function powerpressplayer_mediaobjects($type, $content, $media_url, $EpisodeData
880
  //var_dump($EpisodeData);
881
  $post_title = get_the_title();
882
  if( !empty($post_title) )
883
- $addhtml .= '<meta itemprop="name" content="'. htmlspecialchars($post_title) .'" />'.PHP_EOL;
884
- $addhtml .= '<meta itemprop="encodingFormat" content="'. powerpress_get_contenttype($media_url) .'" />'.PHP_EOL;
885
- $addhtml .= '<meta itemprop="duration" content="'. powerpress_iso8601_duration($EpisodeData['duration']) .'" />'.PHP_EOL; // http://en.wikipedia.org/wiki/ISO_8601#Durations
886
  if( !empty($EpisodeData['subtitle']) )
887
  {
888
- $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($EpisodeData['subtitle']) .'" />'.PHP_EOL;
889
  }
890
  else
891
  { // Get the current post object...
@@ -904,36 +904,36 @@ function powerpressplayer_mediaobjects($type, $content, $media_url, $EpisodeData
904
  $subtitle = (function_exists('mb_substr')?mb_substr($subtitle, 0, 250):substr($subtitle, 0, 250) ). '...';
905
  }
906
 
907
- $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($subtitle) .'" />'.PHP_EOL;
908
  }
909
 
910
  if( empty($subtitle) )
911
  $subtitle = $post_title;
912
 
913
- $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($subtitle) .'" />'.PHP_EOL;
914
  }
915
- $addhtml .= '<meta itemprop="contentUrl" content="'. htmlspecialchars($media_url) .'" />'.PHP_EOL;
916
 
917
  // For thumbnail image, use the podcast artwork
918
  if( !empty($EpisodeData['image']) )
919
  {
920
- $addhtml .= '<meta itemprop="thumbnailURL" content="'.$EpisodeData['image'] .'" />'.PHP_EOL;
921
  }
922
 
923
  if( !empty($EpisodeData['size']) )
924
  {
925
- $addhtml .= '<meta itemprop="contentSize" content="'. number_format($EpisodeData['size'] / (1024 * 1024), 1) .'" />'.PHP_EOL;
926
  }
927
 
928
  // <meta itemprop="videoQuality" content="HD"/>
929
  if( !empty($EpisodeData['height']) && is_numeric($EpisodeData['height']) )
930
  {
931
- $addhtml .= '<meta itemprop="height" content="'.$EpisodeData['height'] .'" />'.PHP_EOL;
932
  }
933
 
934
  if( !empty($EpisodeData['width']) && is_numeric($EpisodeData['width']) )
935
  {
936
- $addhtml .= '<meta itemprop="width" content="'.$EpisodeData['width'] .'" />'.PHP_EOL;
937
  }
938
 
939
  return $content . $addhtml;
@@ -997,18 +997,18 @@ function powerpressplayer_link_download($content, $media_url, $ExtraData = array
997
  $player_links = '';
998
  if( $GeneralSettings['podcast_link'] == 1 )
999
  {
1000
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a>".PHP_EOL;
1001
  }
1002
  else if( $GeneralSettings['podcast_link'] == 2 )
1003
  {
1004
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).") ".PHP_EOL;
1005
  }
1006
  else if( $GeneralSettings['podcast_link'] == 3 )
1007
  {
1008
  if( !empty($ExtraData['duration']) && ltrim($ExtraData['duration'], '0:') != '' )
1009
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (". htmlspecialchars(POWERPRESS_DURATION_TEXT) .": " . powerpress_readable_duration($ExtraData['duration']) ." &#8212; ".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
1010
  else
1011
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
1012
  }
1013
 
1014
  if( $player_links && !empty($content) )
@@ -1031,13 +1031,13 @@ function powerpressplayer_link_pinw($content, $media_url, $ExtraData = array() )
1031
  case 3: // Play in new window only
1032
  case 5: { // Play in page and new window
1033
  if( $is_pdf )
1034
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". __('Open in New Window', 'powerpress') ."\" rel=\"nofollow\">". __('Open in New Window', 'powerpress') ."</a>".PHP_EOL;
1035
  else if( !empty($ExtraData['id']) && !empty($ExtraData['feed']) ) {
1036
  $pinw_url = get_bloginfo('url') ."/?powerpress_pinw={$ExtraData['id']}-{$ExtraData['feed']}";
1037
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."\" onclick=\"return powerpress_pinw('". esc_js($pinw_url) ."');\" rel=\"nofollow\">". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."</a>".PHP_EOL;
1038
  }
1039
  else
1040
- $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."\" rel=\"nofollow\">". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."</a>".PHP_EOL;
1041
  }; break;
1042
  }//end switch
1043
 
@@ -1276,7 +1276,7 @@ function powerpressplayer_build_html5video($media_url, $EpisodeData=array(), $em
1276
  $content = '';
1277
  if( $embed )
1278
  {
1279
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
1280
  $content .= '<video width="'. $player_width .'" height="'. $player_height .'" controls="controls"';
1281
  if( $cover_image )
1282
  $content .= ' poster="'. $cover_image .'"';
@@ -1285,7 +1285,7 @@ function powerpressplayer_build_html5video($media_url, $EpisodeData=array(), $em
1285
  else
1286
  $content .= ' preload="none"';
1287
 
1288
- $content .= '>'.PHP_EOL;
1289
  $content_type = powerpress_get_contenttype($media_url);
1290
  $content .='<source src="'. $media_url .'" type="'. $content_type .'" />';
1291
 
@@ -1296,8 +1296,8 @@ function powerpressplayer_build_html5video($media_url, $EpisodeData=array(), $em
1296
  }
1297
 
1298
  $content .= powerpressplayer_build_playimage($media_url, $EpisodeData);
1299
- $content .= '</video>'.PHP_EOL;
1300
- $content .= '</div>'.PHP_EOL;
1301
  }
1302
  else
1303
  {
@@ -1391,7 +1391,7 @@ function powerpressplayer_build_mediaelementvideo($media_url, $EpisodeData=array
1391
 
1392
  $content = '';
1393
 
1394
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
1395
  $attr = array('src'=>$media_url, 'poster'=>'', 'loop'=>'', 'autoplay'=>'', 'preload'=>'none'); // , 'width'=>'', 'height'=>'');
1396
  if( !empty($player_width) )
1397
  $attr['width'] = $player_width;
@@ -1404,13 +1404,26 @@ function powerpressplayer_build_mediaelementvideo($media_url, $EpisodeData=array
1404
  if( !empty($EpisodeData['webm_src']) )
1405
  $attr['webm'] = powerpress_add_flag_to_redirect_url($EpisodeData['webm_src'], 'p');
1406
 
1407
- $shortcode = wp_video_shortcode( $attr );
 
 
 
 
 
 
 
 
 
 
 
 
 
1408
  if( $embed )
1409
  {
1410
  $shortcode = str_replace( array('"123"', '"456"', '456px;'), array('"100%"', '"100%"', '100%;'), $shortcode);
1411
  }
1412
  $content .= $shortcode;
1413
- $content .= '</div>'.PHP_EOL;
1414
  return $content;
1415
  }
1416
 
@@ -1427,18 +1440,18 @@ function powerpressplayer_build_html5audio($media_url, $EpisodeData=array(), $em
1427
  $content = '';
1428
  if( $embed )
1429
  {
1430
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
1431
  $content .= '<audio controls="controls"';
1432
  $content .=' src="'. $media_url .'"';
1433
  if( $autoplay )
1434
  $content .= ' autoplay="autoplay"';
1435
  else
1436
  $content .= ' preload="none"';
1437
- $content .= '>'.PHP_EOL;
1438
 
1439
  $content .= powerpressplayer_build_playimageaudio($media_url);
1440
- $content .= '</audio>'.PHP_EOL;
1441
- $content .= '</div>'.PHP_EOL;
1442
  }
1443
  else
1444
  {
@@ -1490,7 +1503,7 @@ function powerpressplayer_build_mediaelementaudio($media_url, $EpisodeData=array
1490
  $content = '';
1491
 
1492
 
1493
- $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
1494
 
1495
  $attr = array(
1496
  'src' => $media_url,
@@ -1498,9 +1511,19 @@ function powerpressplayer_build_mediaelementaudio($media_url, $EpisodeData=array
1498
  'autoplay' => ( $autoplay ?'on':''),
1499
  'preload' => 'none'
1500
  );
1501
-
1502
- $content .= wp_audio_shortcode( $attr );
1503
- $content .= '</div>'.PHP_EOL;
 
 
 
 
 
 
 
 
 
 
1504
  return $content;
1505
  }
1506
 
@@ -1733,17 +1756,17 @@ function powerpressplayer_build_1pxoutplayer($media_url, $EpisodeData = array())
1733
  $player_id = powerpressplayer_get_next_id();
1734
  if( empty($EpisodeData['nodiv']) )
1735
  $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">';
1736
- $content .= '<object type="application/x-shockwave-flash" data="'.powerpress_get_root_url().'audio-player.swf" id="'.$player_id.'" height="24" width="'. $PlayerSettings['width'] .'">'.PHP_EOL;
1737
- $content .= '<param name="movie" value="'.powerpress_get_root_url().'audio-player.swf" />'.PHP_EOL;
1738
- $content .= '<param name="FlashVars" value="playerID='.$player_id.'&amp;soundFile='.urlencode($media_url).$flashvars.'" />'.PHP_EOL;
1739
- $content .= '<param name="quality" value="high" />'.PHP_EOL;
1740
- $content .= '<param name="menu" value="false" />'.PHP_EOL;
1741
- $content .= '<param name="wmode" value="transparent" />'.PHP_EOL;
1742
  // $content .= powerpressplayer_build_html5audio($media_url, $EpisodeData, true); // Feature removed since it causes double players to be insrted in Safari/Firefox
1743
  $content .= powerpressplayer_build_playimageaudio($media_url);
1744
- $content .= '</object>'.PHP_EOL;
1745
  if( empty($EpisodeData['nodiv']) )
1746
- $content .= '</div>'.PHP_EOL;
1747
 
1748
  return $content;
1749
  }
673
 
674
  if( $autoplay )
675
  {
676
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL_WEB;
677
  $content .= '<script type="text/javascript"><!--'.PHP_EOL;
678
  $content .= "powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, 'tofit');\n";
679
  $content .= "//-->\n";
681
  }
682
  else
683
  {
684
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL_WEB;
685
  $content .= '<a href="'. $media_url .'" title="'. htmlspecialchars(POWERPRESS_PLAY_TEXT) .'" onclick="';
686
  $content .= "return powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, 'tofit' );";
687
  $content .= '">';
868
  {
869
  $GLOBALS['g_powerpress_complete_mediaobject'] = true;
870
  $addhtml = '';
871
+ $addhtml .= '<div itemscope itemtype="http://schema.org/'. ($type=='video'?'VideoObject':'AudioObject') .'">'.PHP_EOL_WEB;
872
 
873
  if( !empty($EpisodeData['title']) )
874
  {
880
  //var_dump($EpisodeData);
881
  $post_title = get_the_title();
882
  if( !empty($post_title) )
883
+ $addhtml .= '<meta itemprop="name" content="'. htmlspecialchars($post_title) .'" />'.PHP_EOL_WEB;
884
+ $addhtml .= '<meta itemprop="encodingFormat" content="'. powerpress_get_contenttype($media_url) .'" />'.PHP_EOL_WEB;
885
+ $addhtml .= '<meta itemprop="duration" content="'. powerpress_iso8601_duration($EpisodeData['duration']) .'" />'.PHP_EOL_WEB; // http://en.wikipedia.org/wiki/ISO_8601#Durations
886
  if( !empty($EpisodeData['subtitle']) )
887
  {
888
+ $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($EpisodeData['subtitle']) .'" />'.PHP_EOL_WEB;
889
  }
890
  else
891
  { // Get the current post object...
904
  $subtitle = (function_exists('mb_substr')?mb_substr($subtitle, 0, 250):substr($subtitle, 0, 250) ). '...';
905
  }
906
 
907
+ $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($subtitle) .'" />'.PHP_EOL_WEB;
908
  }
909
 
910
  if( empty($subtitle) )
911
  $subtitle = $post_title;
912
 
913
+ $addhtml .= '<meta itemprop="description" content="'. htmlspecialchars($subtitle) .'" />'.PHP_EOL_WEB;
914
  }
915
+ $addhtml .= '<meta itemprop="contentUrl" content="'. htmlspecialchars($media_url) .'" />'.PHP_EOL_WEB;
916
 
917
  // For thumbnail image, use the podcast artwork
918
  if( !empty($EpisodeData['image']) )
919
  {
920
+ $addhtml .= '<meta itemprop="thumbnailURL" content="'.$EpisodeData['image'] .'" />'.PHP_EOL_WEB;
921
  }
922
 
923
  if( !empty($EpisodeData['size']) )
924
  {
925
+ $addhtml .= '<meta itemprop="contentSize" content="'. number_format($EpisodeData['size'] / (1024 * 1024), 1) .'" />'.PHP_EOL_WEB;
926
  }
927
 
928
  // <meta itemprop="videoQuality" content="HD"/>
929
  if( !empty($EpisodeData['height']) && is_numeric($EpisodeData['height']) )
930
  {
931
+ $addhtml .= '<meta itemprop="height" content="'.$EpisodeData['height'] .'" />'.PHP_EOL_WEB;
932
  }
933
 
934
  if( !empty($EpisodeData['width']) && is_numeric($EpisodeData['width']) )
935
  {
936
+ $addhtml .= '<meta itemprop="width" content="'.$EpisodeData['width'] .'" />'.PHP_EOL_WEB;
937
  }
938
 
939
  return $content . $addhtml;
997
  $player_links = '';
998
  if( $GeneralSettings['podcast_link'] == 1 )
999
  {
1000
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a>".PHP_EOL_WEB;
1001
  }
1002
  else if( $GeneralSettings['podcast_link'] == 2 )
1003
  {
1004
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).") ".PHP_EOL_WEB;
1005
  }
1006
  else if( $GeneralSettings['podcast_link'] == 3 )
1007
  {
1008
  if( !empty($ExtraData['duration']) && ltrim($ExtraData['duration'], '0:') != '' )
1009
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (". htmlspecialchars(POWERPRESS_DURATION_TEXT) .": " . powerpress_readable_duration($ExtraData['duration']) ." &#8212; ".powerpress_byte_size($ExtraData['size']).")".PHP_EOL_WEB;
1010
  else
1011
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).")".PHP_EOL_WEB;
1012
  }
1013
 
1014
  if( $player_links && !empty($content) )
1031
  case 3: // Play in new window only
1032
  case 5: { // Play in page and new window
1033
  if( $is_pdf )
1034
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". __('Open in New Window', 'powerpress') ."\" rel=\"nofollow\">". __('Open in New Window', 'powerpress') ."</a>".PHP_EOL_WEB;
1035
  else if( !empty($ExtraData['id']) && !empty($ExtraData['feed']) ) {
1036
  $pinw_url = get_bloginfo('url') ."/?powerpress_pinw={$ExtraData['id']}-{$ExtraData['feed']}";
1037
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."\" onclick=\"return powerpress_pinw('". esc_js($pinw_url) ."');\" rel=\"nofollow\">". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."</a>".PHP_EOL_WEB;
1038
  }
1039
  else
1040
+ $player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_pinw\" target=\"_blank\" title=\"". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."\" rel=\"nofollow\">". POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT ."</a>".PHP_EOL_WEB;
1041
  }; break;
1042
  }//end switch
1043
 
1276
  $content = '';
1277
  if( $embed )
1278
  {
1279
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL_WEB;
1280
  $content .= '<video width="'. $player_width .'" height="'. $player_height .'" controls="controls"';
1281
  if( $cover_image )
1282
  $content .= ' poster="'. $cover_image .'"';
1285
  else
1286
  $content .= ' preload="none"';
1287
 
1288
+ $content .= '>'.PHP_EOL_WEB;
1289
  $content_type = powerpress_get_contenttype($media_url);
1290
  $content .='<source src="'. $media_url .'" type="'. $content_type .'" />';
1291
 
1296
  }
1297
 
1298
  $content .= powerpressplayer_build_playimage($media_url, $EpisodeData);
1299
+ $content .= '</video>'.PHP_EOL_WEB;
1300
+ $content .= '</div>'.PHP_EOL_WEB;
1301
  }
1302
  else
1303
  {
1391
 
1392
  $content = '';
1393
 
1394
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL_WEB;
1395
  $attr = array('src'=>$media_url, 'poster'=>'', 'loop'=>'', 'autoplay'=>'', 'preload'=>'none'); // , 'width'=>'', 'height'=>'');
1396
  if( !empty($player_width) )
1397
  $attr['width'] = $player_width;
1404
  if( !empty($EpisodeData['webm_src']) )
1405
  $attr['webm'] = powerpress_add_flag_to_redirect_url($EpisodeData['webm_src'], 'p');
1406
 
1407
+ // Double check that WordPress is providing the shortcode...
1408
+ global $shortcode_tags;
1409
+ if( !defined('POWERPRESS_DO_SHORTCODE') && !empty($shortcode_tags['video']) && is_string($shortcode_tags['video']) && $shortcode_tags['video'] == 'wp_video_shortcode' ) {
1410
+ $shortcode = wp_video_shortcode( $attr );
1411
+ } else {
1412
+ $shortcode_value = '[video ';
1413
+ while( list($tag_name,$tag_value) = each($attr) ) {
1414
+ $shortcode_value .= ' '.$tag_name.'="'. esc_attr($tag_value) .'"';
1415
+ }
1416
+ $shortcode_value .= ']';
1417
+ $shortcode .= do_shortcode($shortcode_value);
1418
+ }
1419
+
1420
+
1421
  if( $embed )
1422
  {
1423
  $shortcode = str_replace( array('"123"', '"456"', '456px;'), array('"100%"', '"100%"', '100%;'), $shortcode);
1424
  }
1425
  $content .= $shortcode;
1426
+ $content .= '</div>'.PHP_EOL_WEB;
1427
  return $content;
1428
  }
1429
 
1440
  $content = '';
1441
  if( $embed )
1442
  {
1443
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL_WEB;
1444
  $content .= '<audio controls="controls"';
1445
  $content .=' src="'. $media_url .'"';
1446
  if( $autoplay )
1447
  $content .= ' autoplay="autoplay"';
1448
  else
1449
  $content .= ' preload="none"';
1450
+ $content .= '>'.PHP_EOL_WEB;
1451
 
1452
  $content .= powerpressplayer_build_playimageaudio($media_url);
1453
+ $content .= '</audio>'.PHP_EOL_WEB;
1454
+ $content .= '</div>'.PHP_EOL_WEB;
1455
  }
1456
  else
1457
  {
1503
  $content = '';
1504
 
1505
 
1506
+ $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL_WEB;
1507
 
1508
  $attr = array(
1509
  'src' => $media_url,
1511
  'autoplay' => ( $autoplay ?'on':''),
1512
  'preload' => 'none'
1513
  );
1514
+
1515
+ if( !empty($GLOBALS['ClammrPlayer']) && is_object($GLOBALS['ClammrPlayer']) && get_option('powerpress_clammr') == 1 ) {
1516
+ $content .= do_shortcode( '[audio-clammr src="'. esc_attr($media_url) .'" autoplay="'. ( $autoplay ?'on':'') .'" loop="" preload="none"]');
1517
+ } else {
1518
+ // Double check that WordPress is providing the shortcode...
1519
+ global $shortcode_tags;
1520
+ if( !defined('POWERPRESS_DO_SHORTCODE') && !empty($shortcode_tags['audio']) && is_string($shortcode_tags['audio']) && $shortcode_tags['audio'] == 'wp_audio_shortcode' ) {
1521
+ $content .= wp_audio_shortcode( $attr );
1522
+ } else {
1523
+ $content .= do_shortcode( '[audio src="'. esc_attr($media_url) .'" autoplay="'. ( $autoplay ?'on':'') .'" loop="" preload="none"]');
1524
+ }
1525
+ }
1526
+ $content .= '</div>'.PHP_EOL_WEB;
1527
  return $content;
1528
  }
1529
 
1756
  $player_id = powerpressplayer_get_next_id();
1757
  if( empty($EpisodeData['nodiv']) )
1758
  $content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">';
1759
+ $content .= '<object type="application/x-shockwave-flash" data="'.powerpress_get_root_url().'audio-player.swf" id="'.$player_id.'" height="24" width="'. $PlayerSettings['width'] .'">'.PHP_EOL_WEB;
1760
+ $content .= '<param name="movie" value="'.powerpress_get_root_url().'audio-player.swf" />'.PHP_EOL_WEB;
1761
+ $content .= '<param name="FlashVars" value="playerID='.$player_id.'&amp;soundFile='.urlencode($media_url).$flashvars.'" />'.PHP_EOL_WEB;
1762
+ $content .= '<param name="quality" value="high" />'.PHP_EOL_WEB;
1763
+ $content .= '<param name="menu" value="false" />'.PHP_EOL_WEB;
1764
+ $content .= '<param name="wmode" value="transparent" />'.PHP_EOL_WEB;
1765
  // $content .= powerpressplayer_build_html5audio($media_url, $EpisodeData, true); // Feature removed since it causes double players to be insrted in Safari/Firefox
1766
  $content .= powerpressplayer_build_playimageaudio($media_url);
1767
+ $content .= '</object>'.PHP_EOL_WEB;
1768
  if( empty($EpisodeData['nodiv']) )
1769
+ $content .= '</div>'.PHP_EOL_WEB;
1770
 
1771
  return $content;
1772
  }
powerpress-subscribe.php CHANGED
@@ -225,7 +225,7 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
225
  $player_links = '';
226
  $separator = false;
227
  if( !empty($itunes_url) ) {
228
- $player_links .= "<a href=\"". htmlspecialchars($itunes_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_itunes\" title=\"". __('Subscribe on iTunes', 'powerpress') ."\" rel=\"nofollow\">". __('iTunes','powerpress') ."</a>".PHP_EOL;
229
  $separator = true;
230
  }
231
 
@@ -236,12 +236,12 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
236
  $separator = true;
237
 
238
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
239
- $player_links .= "<a href=\"". htmlspecialchars($android_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_android\" title=\"". __('Subscribe on Android', 'powerpress') ."\" rel=\"nofollow\">". __('Android','powerpress') ."</a>".PHP_EOL;
240
  if( !empty($SubscribeSettings['subscribe_feature_email']) )
241
  {
242
  $player_links .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
243
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
244
- $player_links .= "<a href=\"". htmlspecialchars($email_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_email\" title=\"". __('Subscribe by Email', 'powerpress') ."\" rel=\"nofollow\">". __('Email','powerpress') ."</a>".PHP_EOL;
245
  }
246
 
247
  }
@@ -250,7 +250,7 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
250
  $player_links .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
251
  else
252
  $separator = true;
253
- $player_links .= "<a href=\"". htmlspecialchars($feed_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_rss\" title=\"". __('Subscribe via RSS', 'powerpress') ."\" rel=\"nofollow\">". __('RSS','powerpress') ."</a>".PHP_EOL;
254
 
255
  if( !empty($SubscribeSettings['subscribe_page_url']) )
256
  {
@@ -260,7 +260,7 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
260
  $separator = true;
261
 
262
  $label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More Subscribe Options', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
263
- $player_links .= "<a href=\"{$SubscribeSettings['subscribe_page_url']}\" class=\"powerpress_link_subscribe powerpress_link_subscribe_more\" title=\"". htmlspecialchars($label) ."\" rel=\"nofollow\">". htmlspecialchars($label) ."</a>".PHP_EOL;
264
  }
265
  $content .= $player_links;
266
  return $content;
@@ -394,6 +394,7 @@ function powerpress_subscribe_shortcode( $attr ) {
394
  return '';
395
 
396
  $Settings['itunes_url'] = powerpresssubscribe_get_itunes_url($Settings);
 
397
 
398
  if( !empty($attr['itunes_button']) && !empty($Settings['itunes_url']) )
399
  {
225
  $player_links = '';
226
  $separator = false;
227
  if( !empty($itunes_url) ) {
228
+ $player_links .= "<a href=\"". htmlspecialchars($itunes_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_itunes\" title=\"". __('Subscribe on iTunes', 'powerpress') ."\" rel=\"nofollow\">". __('iTunes','powerpress') ."</a>".PHP_EOL_WEB;
229
  $separator = true;
230
  }
231
 
236
  $separator = true;
237
 
238
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
239
+ $player_links .= "<a href=\"". htmlspecialchars($android_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_android\" title=\"". __('Subscribe on Android', 'powerpress') ."\" rel=\"nofollow\">". __('Android','powerpress') ."</a>".PHP_EOL_WEB;
240
  if( !empty($SubscribeSettings['subscribe_feature_email']) )
241
  {
242
  $player_links .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
243
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
244
+ $player_links .= "<a href=\"". htmlspecialchars($email_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_email\" title=\"". __('Subscribe by Email', 'powerpress') ."\" rel=\"nofollow\">". __('Email','powerpress') ."</a>".PHP_EOL_WEB;
245
  }
246
 
247
  }
250
  $player_links .= ' '.POWERPRESS_LINK_SEPARATOR .' ';
251
  else
252
  $separator = true;
253
+ $player_links .= "<a href=\"". htmlspecialchars($feed_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_rss\" title=\"". __('Subscribe via RSS', 'powerpress') ."\" rel=\"nofollow\">". __('RSS','powerpress') ."</a>".PHP_EOL_WEB;
254
 
255
  if( !empty($SubscribeSettings['subscribe_page_url']) )
256
  {
260
  $separator = true;
261
 
262
  $label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More Subscribe Options', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
263
+ $player_links .= "<a href=\"{$SubscribeSettings['subscribe_page_url']}\" class=\"powerpress_link_subscribe powerpress_link_subscribe_more\" title=\"". htmlspecialchars($label) ."\" rel=\"nofollow\">". htmlspecialchars($label) ."</a>".PHP_EOL_WEB;
264
  }
265
  $content .= $player_links;
266
  return $content;
394
  return '';
395
 
396
  $Settings['itunes_url'] = powerpresssubscribe_get_itunes_url($Settings);
397
+ wp_enqueue_style( 'powerpress-subscribe-style' );
398
 
399
  if( !empty($attr['itunes_button']) && !empty($Settings['itunes_url']) )
400
  {
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="http://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
6
- Version: 6.1
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Requires at least: 3.7
@@ -35,7 +35,7 @@ if( !function_exists('add_action') )
35
  die("access denied.");
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
- define('POWERPRESS_VERSION', '6.1' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
@@ -80,6 +80,16 @@ if( !defined('POWERPRESS_PLAY_IMAGE') )
80
  define('POWERPRESS_PLAY_IMAGE', 'play_video_default.jpg');
81
  if( !defined('PHP_EOL') )
82
  define('PHP_EOL', "\n"); // We need this variable defined for new lines.
 
 
 
 
 
 
 
 
 
 
83
  if( !defined('POWERPRESS_SUBSCRIBE') )
84
  define('POWERPRESS_SUBSCRIBE', true); // Temporary until we finish tweaking the features
85
 
@@ -352,19 +362,6 @@ function powerpress_yoast_gawp_fix($content)
352
  return $content;
353
  }
354
 
355
- function powerpress_wp_enqueue_scripts()
356
- {
357
- if( is_singular() )
358
- {
359
- global $post;
360
- if( preg_match('/\[(powerpress_subscribe|powerpresssubscribe)/i', $post->post_content) )
361
- {
362
- wp_enqueue_style( 'powerpress-subscribe-style' );
363
- }
364
- }
365
- }
366
- add_action( 'wp_enqueue_scripts', 'powerpress_wp_enqueue_scripts' );
367
-
368
  function powerpress_header()
369
  {
370
  // PowerPress settings:
@@ -2494,36 +2491,22 @@ function powerpress_add_redirect_url($MediaURL, $channel = 'podcast')
2494
 
2495
  $URLScheme = ( (preg_match('/^https:\/\//i', $NewURL) != 0 ) ? 'https://':'http://');
2496
 
2497
- $GeneralSettings = false;
2498
- if( !$GeneralSettings ) // Get the general settings if not passed to this function, maintain the settings globally for further use
2499
- {
2500
- global $powerpress_general_settings;
2501
- if( !$powerpress_general_settings )
2502
- {
2503
- $powerpress_general_settings = get_option('powerpress_general');
2504
- if( !empty($powerpress_general_settings['cat_casting']) ) // If category podcasting...
2505
- {
2506
- if( is_category() ) // Special case where we want to track the category separately
2507
- {
2508
- $FeedCatSettings = get_option('powerpress_cat_feed_'.get_query_var('cat') );
2509
- if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2510
- $powerpress_general_settings['redirect0'] = $FeedCatSettings['redirect'];
2511
- }
2512
- else if( is_single() )
2513
- {
2514
- $categories = wp_get_post_categories( get_the_ID() );
2515
- if( count($categories) == 1 )
2516
- {
2517
- list($null,$cat_id) = each($categories);
2518
- $FeedCatSettings = get_option('powerpress_cat_feed_'.$cat_id );
2519
- if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2520
- $powerpress_general_settings['redirect0'] = $FeedCatSettings['redirect'];
2521
- // See if only one category is associated with this post
2522
- }
2523
- }
2524
  }
2525
  }
2526
- $GeneralSettings = $powerpress_general_settings;
2527
  }
2528
 
2529
  if( defined('CHANNEL_STATS_REDIRECT') )
@@ -3100,9 +3083,9 @@ function powerpress_premium_content_message($post_id, $feed_slug, $EpisodeData =
3100
  $extension = strtolower($parts['extension']);
3101
 
3102
  if( isset($FeedSettings['premium_label']) && $FeedSettings['premium_label'] != '' ) // User has a custom label
3103
- return '<p class="powerpress_links powerpress_links_'. $extension .'">'. $FeedSettings['premium_label'] . '</p>'.PHP_EOL;
3104
 
3105
- return '<p class="powerpress_links powerpress_links_'. $extension .'">'. htmlspecialchars($FeedSettings['title']) .': <a href="'. get_bloginfo('url') .'/wp-login.php" title="Protected Content">(Protected Content)</a></p>'.PHP_EOL;
3106
  }
3107
 
3108
  function powerpress_is_mobile_client()
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://create.blubrry.com/resources/powerpress/
5
  Description: <a href="http://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
6
+ Version: 6.2
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Requires at least: 3.7
35
  die("access denied.");
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
+ define('POWERPRESS_VERSION', '6.2' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
80
  define('POWERPRESS_PLAY_IMAGE', 'play_video_default.jpg');
81
  if( !defined('PHP_EOL') )
82
  define('PHP_EOL', "\n"); // We need this variable defined for new lines.
83
+ if( defined('POWERPRESS_DEBUG') ) {
84
+ if( !defined('PHP_EOL_WEB') ) {
85
+ define('PHP_EOL_WEB', "\n"); // Helps with readability
86
+ }
87
+ } else {
88
+ if( !defined('PHP_EOL_WEB') ) {
89
+ define('PHP_EOL_WEB', ''); // We don't necessarily need new lines for web output
90
+ }
91
+ }
92
+
93
  if( !defined('POWERPRESS_SUBSCRIBE') )
94
  define('POWERPRESS_SUBSCRIBE', true); // Temporary until we finish tweaking the features
95
 
362
  return $content;
363
  }
364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  function powerpress_header()
366
  {
367
  // PowerPress settings:
2491
 
2492
  $URLScheme = ( (preg_match('/^https:\/\//i', $NewURL) != 0 ) ? 'https://':'http://');
2493
 
2494
+ $GeneralSettings = get_option('powerpress_general');
2495
+
2496
+ if( !empty($GeneralSettings['cat_casting']) ) { // If category podcasting...
2497
+ if( is_category() ) { // Special case where we want to track the category separately
2498
+ $FeedCatSettings = get_option('powerpress_cat_feed_'.get_query_var('cat') );
2499
+ if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2500
+ $GeneralSettings['redirect0'] = $FeedCatSettings['redirect'];
2501
+ } else if( is_single() ) {
2502
+ $categories = wp_get_post_categories( get_the_ID() );
2503
+ if( count($categories) == 1 ) { // See if only one category is associated with this post
2504
+ list($null,$cat_id) = each($categories);
2505
+ $FeedCatSettings = get_option('powerpress_cat_feed_'.$cat_id );
2506
+ if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2507
+ $GeneralSettings['redirect0'] = $FeedCatSettings['redirect'];
 
 
 
 
 
 
 
 
 
 
 
 
 
2508
  }
2509
  }
 
2510
  }
2511
 
2512
  if( defined('CHANNEL_STATS_REDIRECT') )
3083
  $extension = strtolower($parts['extension']);
3084
 
3085
  if( isset($FeedSettings['premium_label']) && $FeedSettings['premium_label'] != '' ) // User has a custom label
3086
+ return '<p class="powerpress_links powerpress_links_'. $extension .'">'. $FeedSettings['premium_label'] . '</p>'.PHP_EOL_WEB;
3087
 
3088
+ return '<p class="powerpress_links powerpress_links_'. $extension .'">'. htmlspecialchars($FeedSettings['title']) .': <a href="'. get_bloginfo('url') .'/wp-login.php" title="Protected Content">(Protected Content)</a></p>'.PHP_EOL_WEB;
3089
  }
3090
 
3091
  function powerpress_is_mobile_client()
powerpressadmin-basic.php CHANGED
@@ -345,6 +345,9 @@ function powerpressadmin_advanced_options($General)
345
  <strong><?php echo '<a href="http://create.blubrry.com/resources/partners/reactor-ios-android-podcast-apps-powerpress/" target="_blank">'. __('Learn More about Reactor iOS and Android podcast apps for PowerPress', 'powerpress') .'</a>'; ?></strong>
346
  </p>
347
  </div>
 
 
 
348
  <?php
349
  if( isset($General['timestamp']) && $General['timestamp'] > 0 && $General['timestamp'] < ( time()- (60*60*24*14) ) ) // Lets wait 14 days before we annoy them asking for support
350
  {
345
  <strong><?php echo '<a href="http://create.blubrry.com/resources/partners/reactor-ios-android-podcast-apps-powerpress/" target="_blank">'. __('Learn More about Reactor iOS and Android podcast apps for PowerPress', 'powerpress') .'</a>'; ?></strong>
346
  </p>
347
  </div>
348
+ <div style="margin-left: 10px;">
349
+ <?php powerpresspartner_clammr_info(); ?>
350
+ </div>
351
  <?php
352
  if( isset($General['timestamp']) && $General['timestamp'] > 0 && $General['timestamp'] < ( time()- (60*60*24*14) ) ) // Lets wait 14 days before we annoy them asking for support
353
  {
powerpressadmin-player-page.php CHANGED
@@ -326,6 +326,9 @@ table.html5formats tr > td:first-child {
326
  ?>
327
  </p>
328
  <?php powerpressplayer_mediaelement_info(); ?>
 
 
 
329
  </li>
330
 
331
  <li><label><input type="radio" name="Player[player]" id="player_html5audio" value="html5audio" <?php if( $General['player'] == 'html5audio' ) echo 'checked'; ?> /> <?php echo __('HTML5 Audio Player', 'powerpress'); ?> </label>
@@ -975,6 +978,7 @@ function audio_player_defaults()
975
  <td valign="top">
976
  <input type="text" style="width: 50px;" id="audio_player_max_width" name="General[audio_player_max_width]" class="player-width" value="<?php echo esc_attr($General['audio_player_max_width']); ?>" maxlength="4" />
977
  <?php echo __('Width of Audio mp3 player (leave blank for max width)', 'powerpress'); ?>
 
978
  </td>
979
  </tr>
980
 
326
  ?>
327
  </p>
328
  <?php powerpressplayer_mediaelement_info(); ?>
329
+ <div style="margin: 30px 0;">
330
+ <?php powerpresspartner_clammr_info(false); ?>
331
+ </div>
332
  </li>
333
 
334
  <li><label><input type="radio" name="Player[player]" id="player_html5audio" value="html5audio" <?php if( $General['player'] == 'html5audio' ) echo 'checked'; ?> /> <?php echo __('HTML5 Audio Player', 'powerpress'); ?> </label>
978
  <td valign="top">
979
  <input type="text" style="width: 50px;" id="audio_player_max_width" name="General[audio_player_max_width]" class="player-width" value="<?php echo esc_attr($General['audio_player_max_width']); ?>" maxlength="4" />
980
  <?php echo __('Width of Audio mp3 player (leave blank for max width)', 'powerpress'); ?>
981
+ <?php powerpresspartner_clammr_info(); ?>
982
  </td>
983
  </tr>
984
 
powerpressadmin.php CHANGED
@@ -793,6 +793,14 @@ function powerpress_admin_init()
793
  }
794
  }
795
 
 
 
 
 
 
 
 
 
796
  if( isset($_POST['EpisodeBoxBGColor']) )
797
  {
798
  $GeneralSettingsTemp = get_option('powerpress_general');
@@ -4405,6 +4413,40 @@ function powerpress_admin_plugin_action_links( $links, $file )
4405
  }
4406
  add_filter( 'plugin_action_links', 'powerpress_admin_plugin_action_links', 10, 2 );
4407
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4408
 
4409
  require_once( POWERPRESS_ABSPATH .'/powerpressadmin-jquery.php');
4410
  // Only include the dashboard when appropriate.
793
  }
794
  }
795
 
796
+ if( isset($_POST['PowerPressClammr']) )
797
+ {
798
+ if( empty($_POST['PowerPressClammr']) )
799
+ update_option('powerpress_clammr', 0);
800
+ else
801
+ update_option('powerpress_clammr', 1);
802
+ }
803
+
804
  if( isset($_POST['EpisodeBoxBGColor']) )
805
  {
806
  $GeneralSettingsTemp = get_option('powerpress_general');
4413
  }
4414
  add_filter( 'plugin_action_links', 'powerpress_admin_plugin_action_links', 10, 2 );
4415
 
4416
+
4417
+ // At bottom of powerpressadmin.php
4418
+ function powerpresspartner_clammr_info($Settings=true)
4419
+ {
4420
+ if( defined('POWERPRESS_DISABLE_PARTNERS') && POWERPRESS_DISABLE_PARTNERS == true )
4421
+ return;
4422
+ $ClammrPluginEnabled = false;
4423
+ if( !empty($GLOBALS['ClammrPlayer']) )
4424
+ $ClammrPluginEnabled = is_object($GLOBALS['ClammrPlayer']);
4425
+ ?>
4426
+ <h3 style="position: relative;margin-left: 30px; margin-bottom: 5px;">
4427
+ <img src="<?php echo powerpress_get_root_url(); ?>images/clammr.png" style="width: 30px; height: 30px; position: absolute; top: 0; left: -34px;" />
4428
+ <?php echo __('Clammr Player PowerPress Add-on', 'powerpress'); ?> <?php echo powerpressadmin_new(); ?></h3>
4429
+ <p style="margin-left: 50px;">
4430
+ <?php echo __('Blubrry has partnered with Clammr to enable a social-themed audio player for your site. As visitors listen to your podcast, they can tap the integrated Clammr Button to tag their favorite highlights and share them to Facebook and Twitter. The shared highligths contain links back to you full audio and site, driving additional audience and traffic to you.', 'powerpress'); ?>
4431
+ </p>
4432
+ <?php if( $Settings ) { if( $ClammrPluginEnabled == false ) {
4433
+
4434
+ $plugin_link = '<a href="'. esc_url( network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=' . 'audio-player-by-clammr' .
4435
+ '&TB_iframe=true&width=640&height=662' ) ) .'" class="thickbox" title="' .
4436
+ esc_attr__('Install Plugin') . '">'. __('Install Clammr Audio Player add-on plugin', 'powerpress') . '</a>';
4437
+ ?>
4438
+ <p style="margin-left: 50px;"><strong><?php echo $plugin_link; ?></strong></p><?php } else {
4439
+ $PowerPressClammr = get_option('powerpress_clammr');
4440
+ ?>
4441
+ <p style="margin-bottom: 20px; margin-left: 50px;">
4442
+ <input type="hidden" name="PowerPressClammr" value="0" />
4443
+ <input type="checkbox" name="PowerPressClammr" value="1" <?php if( !empty($PowerPressClammr) ) echo 'checked'; ?> />
4444
+ <strong><?php echo __('Enable Clammr Audio Player with PowerPress', 'powerpress'); ?></strong>
4445
+ </p>
4446
+ <?php
4447
+ }
4448
+ }
4449
+ }
4450
 
4451
  require_once( POWERPRESS_ABSPATH .'/powerpressadmin-jquery.php');
4452
  // Only include the dashboard when appropriate.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: amandato, blubrry
3
  Tags: podcasting, podcast, podcaster, itunes, google play music, google play, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de, clammr
4
  Requires at least: 3.6
5
  Tested up to: 4.3.1
6
- Stable tag: 6.1
7
  Donate link: https://www.patreon.com/blubrry?ty=h
8
  License: GPLv2 or later
9
 
@@ -133,7 +133,7 @@ If you are having a problem, try [Diagnosing Feed and/or Player Issues](http://c
133
 
134
  If you are having a problem specifically with the player and links, try the "Having issues?" option under PowerPress Settings > Appearance tab. Visit [Resolving Plugin or Theme Conflicts](http://create.blubrry.com/resources/powerpress/powerpress-settings/media-appearance/plugin-theme-conflict-issues/) for details.
135
 
136
- = Premium themes compatible with PowerPress =
137
  [Appendipity Podcast Pro theme](https://www.appendipity.com/themes/podcast-pro-theme/?aid=13) is is designed specifically to take advantage of built-in features, settings and podcast episode meta data in PowerPress. The Blubrry team works with the Appendipity team during beta testing and major WordPress releases to make sure the Podcast Pro theme and PowerPress work together seamlessly.
138
 
139
 
@@ -211,6 +211,16 @@ To install Blubrry PowerPress manually, follow these steps:
211
  = Become a PowerPress Patron! =
212
  Help support your favorite podcasting plugin via Patreon. [Visit Blubrry's Patreon page](https://www.patreon.com/blubrry?ty=h)
213
 
 
 
 
 
 
 
 
 
 
 
214
  = 6.1 =
215
  * Released on 10/30/2015
216
  * Added Google Play Music podcast directory support.
3
  Tags: podcasting, podcast, podcaster, itunes, google play music, google play, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de, clammr
4
  Requires at least: 3.6
5
  Tested up to: 4.3.1
6
+ Stable tag: 6.2
7
  Donate link: https://www.patreon.com/blubrry?ty=h
8
  License: GPLv2 or later
9
 
133
 
134
  If you are having a problem specifically with the player and links, try the "Having issues?" option under PowerPress Settings > Appearance tab. Visit [Resolving Plugin or Theme Conflicts](http://create.blubrry.com/resources/powerpress/powerpress-settings/media-appearance/plugin-theme-conflict-issues/) for details.
135
 
136
+ = Premium podcasting themes compatible with PowerPress =
137
  [Appendipity Podcast Pro theme](https://www.appendipity.com/themes/podcast-pro-theme/?aid=13) is is designed specifically to take advantage of built-in features, settings and podcast episode meta data in PowerPress. The Blubrry team works with the Appendipity team during beta testing and major WordPress releases to make sure the Podcast Pro theme and PowerPress work together seamlessly.
138
 
139
 
211
  = Become a PowerPress Patron! =
212
  Help support your favorite podcasting plugin via Patreon. [Visit Blubrry's Patreon page](https://www.patreon.com/blubrry?ty=h)
213
 
214
+ = 6.2 =
215
+ * Released on 11/16/2015
216
+ * Clammr Audio Player option added to PowerPress.
217
+ * Added logic to call the do_shortcode fucntion when themes override the audio shortcode.
218
+ * Fixed bug in the media redirect url function when switching between sites for a MultiSite. (Thanks Avi for the patch!)
219
+ * HTML output will only append a "\n" when in debug mode. This will prevent situation where some plugins convert new lines into `<br>` tags. (Thanks Avi for bringing to our attention)
220
+ * Added new define option `POWERPRESS_DO_SHORTCODE`, when set in your wp-config.php the `do_shortcode` is used rather than calling the `wp_audio_shortcode` function.
221
+ * Moved the wp_enqueue_style for subscribe widget within the shortcode. Shortcode can now be used outside of `the_content`.
222
+
223
+
224
  = 6.1 =
225
  * Released on 10/30/2015
226
  * Added Google Play Music podcast directory support.