PowerPress Podcasting plugin by Blubrry - Version 9.7.3

Version Description

  • Released on 11/17/2022
  • Bugfixes for the Post Type Podcasting page
  • Open destinations links in a new tab
Download this release

Release Info

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

Code changes from version 9.7.2 to 9.7.3

powerpress-subscribe.php CHANGED
@@ -565,7 +565,7 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
565
  $links_array = array();
566
  if( !empty($itunes_url) && !empty($SubscribeSettings['subscribe_feature_apple']) ) {
567
  $guid = get_the_guid();
568
- $links_array[] = "<a href=\"". htmlspecialchars( powerpresssubscribe_add_guid_to_itunes_url($itunes_url, $guid) ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_itunes\" title=\"". __('Subscribe on Apple Podcasts', 'powerpress') ."\" rel=\"nofollow\">". __('Apple Podcasts','powerpress') ."</a>".PHP_EOL_WEB;
569
  }
570
 
571
  if( !empty($SubscribeSettings['subscribe_feature_gp']) )
@@ -574,105 +574,105 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
574
  $SubscribeSettings['googleplay_url'] =$SubscribeSettings['google_url'];
575
  else
576
  $SubscribeSettings['googleplay_url'] = 'https://www.google.com/podcasts?feed='. powerpress_base64_encode($feed_url);
577
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['googleplay_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_googleplay\" title=\"". __('Subscribe on Google Podcasts', 'powerpress') ."\" rel=\"nofollow\">". __('Google Podcasts','powerpress') ."</a>".PHP_EOL_WEB;
578
  }
579
 
580
  if( !empty($SubscribeSettings['subscribe_feature_spotify']) && !empty($SubscribeSettings['spotify_url']) )
581
  {
582
  $SubscribeSettings['spotify_url'] = trim($SubscribeSettings['spotify_url']);
583
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['spotify_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_spotify\" title=\"". __('Subscribe on Spotify', 'powerpress') ."\" rel=\"nofollow\">". __('Spotify','powerpress') ."</a>".PHP_EOL_WEB;
584
  }
585
 
586
  if( !empty($SubscribeSettings['subscribe_feature_amazon']) && !empty($SubscribeSettings['amazon_url']) )
587
  {
588
  $SubscribeSettings['amazon_url'] = trim($SubscribeSettings['amazon_url']);
589
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['amazon_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_amazon\" title=\"". __('Subscribe on Amazon Music', 'powerpress') ."\" rel=\"nofollow\">". __('Amazon Music','powerpress') ."</a>".PHP_EOL_WEB;
590
  }
591
 
592
  if( preg_match('/^(https?:\/\/)(.*)$/i', $feed_url, $matches ) && !empty($SubscribeSettings['subscribe_feature_android']) ) {
593
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
594
- $links_array[] = "<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;
595
  }
596
 
597
  if( !empty($SubscribeSettings['subscribe_feature_pandora']) && !empty($SubscribeSettings['pandora_url']) )
598
  {
599
  $SubscribeSettings['pandora_url'] = trim($SubscribeSettings['pandora_url']);
600
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['pandora_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_pandora\" title=\"". __('Subscribe on Pandora', 'powerpress') ."\" rel=\"nofollow\">". __('Pandora','powerpress') ."</a>".PHP_EOL_WEB;
601
  }
602
 
603
  if( !empty($SubscribeSettings['subscribe_feature_iheart']) && !empty($SubscribeSettings['iheart_url']) )
604
  {
605
  $SubscribeSettings['iheart_url'] = trim($SubscribeSettings['iheart_url']);
606
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['iheart_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_iheart\" title=\"". __('Subscribe on iHeartRadio', 'powerpress') ."\" rel=\"nofollow\">". __('iHeartRadio','powerpress') ."</a>".PHP_EOL_WEB;
607
  }
608
 
609
  if( !empty($SubscribeSettings['subscribe_feature_stitcher']) && !empty($SubscribeSettings['stitcher_url']) )
610
  {
611
  $SubscribeSettings['stitcher_url'] = trim($SubscribeSettings['stitcher_url']);
612
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['stitcher_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_stitcher\" title=\"". __('Subscribe on Stitcher', 'powerpress') ."\" rel=\"nofollow\">". __('Stitcher','powerpress') ."</a>".PHP_EOL_WEB;
613
  }
614
 
615
  if( !empty($SubscribeSettings['subscribe_feature_blubrry']) && !empty($SubscribeSettings['blubrry_url']) )
616
  {
617
  $SubscribeSettings['blubrry_url'] = trim($SubscribeSettings['blubrry_url']);
618
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['blubrry_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_blubrry\" title=\"". __('Subscribe on Blubrry', 'powerpress') ."\" rel=\"nofollow\">". __('Blubrry','powerpress') ."</a>".PHP_EOL_WEB;
619
  }
620
 
621
  if( !empty($SubscribeSettings['subscribe_feature_jiosaavn']) && !empty($SubscribeSettings['jiosaavn_url']) )
622
  {
623
  $SubscribeSettings['jiosaavn_url'] = trim($SubscribeSettings['jiosaavn_url']);
624
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['jiosaavn_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_jiosaavn\" title=\"". __('Subscribe on JioSaavn', 'powerpress') ."\" rel=\"nofollow\">". __('JioSaavn','powerpress') ."</a>".PHP_EOL_WEB;
625
  }
626
 
627
  if( !empty($SubscribeSettings['subscribe_feature_podchaser']) && !empty($SubscribeSettings['podchaser_url']) )
628
  {
629
  $SubscribeSettings['podchaser_url'] = trim($SubscribeSettings['podchaser_url']);
630
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['podchaser_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_podchaser\" title=\"". __('Subscribe on Podchaser', 'powerpress') ."\" rel=\"nofollow\">". __('Podchaser','powerpress') ."</a>".PHP_EOL_WEB;
631
  }
632
 
633
  if( !empty($SubscribeSettings['subscribe_feature_gaana']) && !empty($SubscribeSettings['gaana_url']) )
634
  {
635
  $SubscribeSettings['gaana_url'] = trim($SubscribeSettings['gaana_url']);
636
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['gaana_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_gaana\" title=\"". __('Subscribe on Gaana', 'powerpress') ."\" rel=\"nofollow\">". __('Gaana','powerpress') ."</a>".PHP_EOL_WEB;
637
  }
638
 
639
  if( !empty($SubscribeSettings['subscribe_feature_pcindex']) && !empty($SubscribeSettings['pcindex_url']) )
640
  {
641
  $SubscribeSettings['pcindex_url'] = trim($SubscribeSettings['pcindex_url']);
642
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['pcindex_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_pcindex\" title=\"". __('Subscribe on Podcast Index', 'powerpress') ."\" rel=\"nofollow\">". __('Podcast Index','powerpress') ."</a>".PHP_EOL_WEB;
643
  }
644
 
645
  if( preg_match('/^(https?:\/\/)(.*)$/i', $feed_url, $matches ) && !empty($SubscribeSettings['subscribe_feature_email']) ) {
646
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
647
- $links_array[] = "<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;
648
  }
649
 
650
  if( !empty($SubscribeSettings['subscribe_feature_tunein']) && !empty($SubscribeSettings['tunein_url']) )
651
  {
652
  $SubscribeSettings['tunein_url'] = trim($SubscribeSettings['tunein_url']);
653
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['tunein_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_tunein\" title=\"". __('Subscribe on TuneIn', 'powerpress') ."\" rel=\"nofollow\">". __('TuneIn','powerpress') ."</a>".PHP_EOL_WEB;
654
  }
655
 
656
  if( !empty($SubscribeSettings['subscribe_feature_deezer']) && !empty($SubscribeSettings['deezer_url']) )
657
  {
658
  $SubscribeSettings['deezer_url'] = trim($SubscribeSettings['deezer_url']);
659
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['deezer_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_deezer\" title=\"". __('Subscribe on Deezer', 'powerpress') ."\" rel=\"nofollow\">". __('Deezer','powerpress') ."</a>".PHP_EOL_WEB;
660
  }
661
 
662
  if( !empty($SubscribeSettings['subscribe_feature_anghami']) && !empty($SubscribeSettings['anghami_url']) )
663
  {
664
  $SubscribeSettings['anghami_url'] = trim($SubscribeSettings['anghami_url']);
665
- $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['anghami_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_anghami\" title=\"". __('Subscribe on Anghami', 'powerpress') ."\" rel=\"nofollow\">". __('Anghami','powerpress') ."</a>".PHP_EOL_WEB;
666
  }
667
 
668
  if (!empty($SubscribeSettings['subscribe_feature_rss'])) {
669
- $links_array[] = "<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;
670
  }
671
 
672
  if( !empty($SubscribeSettings['subscribe_page_url']) )
673
  {
674
  $label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
675
- $links_array[] = "<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;
676
  }
677
 
678
  $content .= implode(' '.POWERPRESS_LINK_SEPARATOR .' ', $links_array);
@@ -847,7 +847,7 @@ function powerpress_subscribe_shortcode( $attr ) {
847
  $html .= '';
848
  $html .='<a href="';
849
  $html .= esc_url($Settings['itunes_url']);
850
- $html .= '" style="display:inline-block;overflow:hidden;background:url(https://linkmaker.itunes.apple.com/images/badges/en-us/badge_itunes-lrg.svg) no-repeat;width:165px;height:40px;"></a>';
851
  $html .= '</div>';
852
  return $html;
853
  }
@@ -858,7 +858,7 @@ function powerpress_subscribe_shortcode( $attr ) {
858
  $html .= '';
859
  $html .='<a href="';
860
  $html .= esc_url($Settings['itunes_url']);
861
- $html .= '" style="display:inline-block;overflow:hidden;background:url(https://linkmaker.itunes.apple.com/images/badges/en-us/badge_itunes-sm.svg) no-repeat;width:80px;height:15px;"></a>';
862
  $html .= '</div>';
863
  return $html;
864
  }
@@ -946,7 +946,7 @@ function powerpress_do_subscribe_widget($settings, $PowerPressSettings)
946
  $link_counter = 0;
947
  if( !empty($settings['itunes_url']) && !empty($settings['subscribe_feature_apple_shortcode']) ) {
948
  $link_counter++;
949
- $html .= '<a href="'. esc_url( $settings['itunes_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-itunes" title="'. esc_attr( __('Subscribe on Apple Podcasts', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Apple Podcasts', 'powerpress') ) .'</a>';
950
  }
951
  // Google Podcasts
952
  $googleUrl = '';
@@ -956,87 +956,87 @@ function powerpress_do_subscribe_widget($settings, $PowerPressSettings)
956
  $googleUrl = 'https://www.google.com/podcasts?feed='. powerpress_base64_encode($settings['feed_url']);
957
  if (!empty($settings['subscribe_feature_gp_shortcode'])) {
958
  $link_counter++;
959
- $html .= '<a href="' . esc_url($googleUrl) . '" class="pp-sub-btn' . $settings['subscribe_widget_shape'] . ' pp-sub-gp" title="' . esc_attr(__('Subscribe on Google Podcasts', 'powerpress')) . '"><span class="pp-sub-ic"></span>' . esc_html(__('Google Podcasts', 'powerpress')) . '</a>';
960
  }
961
 
962
  if( !empty($settings['subscribe_feature_spotify_shortcode']) && !empty($settings['spotify_url']) )
963
  {
964
  $link_counter++;
965
- $html .= '<a href="'. esc_url( $settings['spotify_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-spotify" title="'. esc_attr( __('Subscribe on Spotify', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Spotify', 'powerpress') ) .'</a>';
966
  }
967
 
968
  if( !empty($settings['subscribe_feature_amazon_shortcode']) && !empty($settings['amazon_url']) ) {
969
  $link_counter++;
970
- $html .= '<a href="'. esc_url( $settings['amazon_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-amazon" title="'. esc_attr( __('Subscribe on Amazon Music', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Amazon Music', 'powerpress') ) .'</a>';
971
  }
972
 
973
  if( !empty($settings['subscribe_feature_android_shortcode']) && preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
974
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
975
  $link_counter++;
976
- $html .= '<a href="'. esc_url( $android_url ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-android" title="'. esc_attr( __('Subscribe on Android', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Android', 'powerpress') ) .'</a>';
977
  }
978
 
979
  if( !empty($settings['subscribe_feature_pandora_shortcode']) && !empty($settings['pandora_url']) ) {
980
  $link_counter++;
981
- $html .= '<a href="'. esc_url( $settings['pandora_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-pandora" title="'. esc_attr( __('Subscribe on Pandora', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Pandora', 'powerpress') ) .'</a>';
982
  }
983
 
984
  if( !empty($settings['subscribe_feature_iheart_shortcode']) && !empty($settings['iheart_url']) ) {
985
  $link_counter++;
986
- $html .= '<a href="'. esc_url( $settings['iheart_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-iheartradio" title="'. esc_attr( __('Subscribe on iHeartRadio', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('iHeartRadio', 'powerpress') ) .'</a>';
987
  }
988
 
989
  if( !empty($settings['subscribe_feature_stitcher_shortcode']) && !empty($settings['stitcher_url']) )
990
  {
991
  $link_counter++;
992
- $html .= '<a href="'. esc_url( $settings['stitcher_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-stitcher" title="'. esc_attr( __('Subscribe on Stitcher', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Stitcher', 'powerpress') ) .'</a>';
993
  }
994
 
995
  if( !empty($settings['subscribe_feature_blubrry_shortcode']) && !empty($settings['blubrry_url']) ) {
996
  $link_counter++;
997
- $html .= '<a href="'. esc_url( $settings['blubrry_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-blubrry" title="'. esc_attr( __('Subscribe on Blubrry', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Blubrry', 'powerpress') ) .'</a>';
998
  }
999
 
1000
  if( !empty($settings['subscribe_feature_jiosaavn_shortcode']) && !empty($settings['jiosaavn_url']) ) {
1001
  $link_counter++;
1002
- $html .= '<a href="'. esc_url( $settings['jiosaavn_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-jiosaavn" title="'. esc_attr( __('Subscribe on JioSaavn', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('JioSaavn', 'powerpress') ) .'</a>';
1003
  }
1004
 
1005
  if( !empty($settings['subscribe_feature_podchaser_shortcode']) && !empty($settings['podchaser_url']) ) {
1006
  $link_counter++;
1007
- $html .= '<a href="'. esc_url( $settings['podchaser_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-podchaser" title="'. esc_attr( __('Subscribe on Podchaser', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Podchaser', 'powerpress') ) .'</a>';
1008
  }
1009
 
1010
  if( !empty($settings['subscribe_feature_gaana_shortcode']) && !empty($settings['gaana_url']) ) {
1011
  $link_counter++;
1012
- $html .= '<a href="'. esc_url( $settings['gaana_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-gaana" title="'. esc_attr( __('Subscribe on Gaana', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Gaana', 'powerpress') ) .'</a>';
1013
  }
1014
 
1015
  if( !empty($settings['subscribe_feature_pcindex_shortcode']) && !empty($settings['pcindex_url']) ) {
1016
  $link_counter++;
1017
- $html .= '<a href="'. esc_url( $settings['pcindex_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-pcindex" title="'. esc_attr( __('Subscribe on Podcast Index', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Podcast Index', 'powerpress') ) .'</a>';
1018
  }
1019
 
1020
  if( !empty($settings['subscribe_feature_email_shortcode']) && preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
1021
  $link_counter++;
1022
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
1023
- $html .= '<a href="'. esc_url( $email_url ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-email" title="'. esc_attr( __('Subscribe by Email', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('by Email', 'powerpress') ) .'</a>';
1024
  }
1025
 
1026
  if( !empty($settings['subscribe_feature_tunein_shortcode']) && !empty($settings['tunein_url']) )
1027
  {
1028
  $link_counter++;
1029
- $html .= '<a href="'. esc_url( $settings['tunein_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-tunein" title="'. esc_attr( __('Subscribe on TuneIn', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('TuneIn', 'powerpress') ) .'</a>';
1030
  }
1031
 
1032
  if( !empty($settings['subscribe_feature_deezer_shortcode']) && !empty($settings['deezer_url']) ) {
1033
  $link_counter++;
1034
- $html .= '<a href="'. esc_url( $settings['deezer_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-deezer" title="'. esc_attr( __('Subscribe on Deezer', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Deezer', 'powerpress') ) .'</a>';
1035
  }
1036
 
1037
  if( !empty($settings['subscribe_feature_anghami_shortcode']) && !empty($settings['anghami_url']) ) {
1038
  $link_counter++;
1039
- $html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-anghami" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Anghami', 'powerpress') ) .'</a>';
1040
  }
1041
 
1042
  //$html .= var_dump($settings, true);
@@ -1044,7 +1044,7 @@ function powerpress_do_subscribe_widget($settings, $PowerPressSettings)
1044
 
1045
  if (!empty($settings['subscribe_feature_rss_shortcode'])) {
1046
  $link_counter++;
1047
- $html .= '<a href="'. esc_url( $settings['feed_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-rss" title="'. esc_attr( __('Subscribe via RSS', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('RSS', 'powerpress') ) .'</a>';
1048
  }
1049
 
1050
  while ($link_counter % 3 != 0) {
@@ -1093,7 +1093,7 @@ function powerpress_do_subscribe_sidebar_widget($settings)
1093
  $html = '';
1094
  $html .= '<div class="pp-ssb-widget pp-ssb-widget-modern' . $important_tags_class .'">';
1095
  if( !empty($settings['itunes_url']) && !empty($settings['subscribe_feature_apple_sidebar']) ) {
1096
- $html .= '<a href="'. esc_url( $settings['itunes_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-itunes" title="'. esc_attr( __('Subscribe on Apple Podcasts', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Apple Podcasts', 'powerpress') ) .'</span></a>';
1097
  }
1098
 
1099
  if( !empty($settings['subscribe_feature_gp_sidebar']) ) {
@@ -1103,92 +1103,92 @@ function powerpress_do_subscribe_sidebar_widget($settings)
1103
  else
1104
  $gp_url = 'https://www.google.com/podcasts?feed='.powerpress_base64_encode($settings['feed_url']);
1105
 
1106
- $html .= '<a href="'. esc_url( $gp_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-gp" title="'. esc_attr( __('Subscribe on Google Podcasts', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Google Podcasts', 'powerpress') ) .'</span></a>';
1107
  }
1108
 
1109
  if( !empty($settings['subscribe_feature_spotify_sidebar']) && !empty($settings['spotify_url']) ) {
1110
  $settings['spotify_url'] = trim($settings['spotify_url']);
1111
- $html .= '<a href="'. esc_url( $settings['spotify_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-spotify" title="'. esc_attr( __('Subscribe on Spotify', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Spotify', 'powerpress') ) .'</span></a>';
1112
  }
1113
 
1114
  if( !empty($settings['subscribe_feature_amazon_sidebar']) && !empty($settings['amazon_url']) ) {
1115
  $settings['amazon_url'] = trim($settings['amazon_url']);
1116
- $html .= '<a href="'. esc_url( $settings['amazon_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-amazon" title="'. esc_attr( __('Subscribe on Amazon Music', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Amazon Music', 'powerpress') ) .'</span></a>';
1117
  }
1118
 
1119
  if( preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) && !empty($settings['subscribe_feature_android_sidebar']) ) {
1120
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
1121
- $html .= '<a href="'. esc_url( $android_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-android" title="'. esc_attr( __('Subscribe on Android', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Android', 'powerpress') ) .'</span></a>';
1122
  }
1123
 
1124
  if( !empty($settings['subscribe_feature_pandora_sidebar']) && !empty($settings['pandora_url']) ) {
1125
  $settings['pandora_url'] = trim($settings['pandora_url']);
1126
- $html .= '<a href="'. esc_url( $settings['pandora_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-pandora" title="'. esc_attr( __('Subscribe on Pandora', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Pandora', 'powerpress') ) .'</span></a>';
1127
  }
1128
 
1129
  if( !empty($settings['subscribe_feature_iheart_sidebar']) && !empty($settings['iheart_url']) ) {
1130
  $settings['iheart_url'] = trim($settings['iheart_url']);
1131
- $html .= '<a href="'. esc_url( $settings['iheart_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-iheartradio" title="'. esc_attr( __('Subscribe on iHeartRadio', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('iHeartRadio', 'powerpress') ) .'</span></a>';
1132
  }
1133
 
1134
  if( !empty($settings['subscribe_feature_stitcher_sidebar']) && !empty($settings['stitcher_url']) ) {
1135
  $settings['stitcher_url'] = trim($settings['stitcher_url']);
1136
- $html .= '<a href="'. esc_url( $settings['stitcher_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-stitcher" title="'. esc_attr( __('Subscribe on Stitcher', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Stitcher', 'powerpress') ) .'</span></a>';
1137
  }
1138
 
1139
  if( !empty($settings['subscribe_feature_blubrry_sidebar']) && !empty($settings['blubrry_url']) ) {
1140
  $settings['blubrry_url'] = trim($settings['blubrry_url']);
1141
- $html .= '<a href="'. esc_url( $settings['blubrry_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-blubrry" title="'. esc_attr( __('Subscribe on Blubrry', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Blubrry', 'powerpress') ) .'</span></a>';
1142
  }
1143
 
1144
  if( !empty($settings['subscribe_feature_jiosaavn_sidebar']) && !empty($settings['jiosaavn_url']) ) {
1145
  $settings['jiosaavn_url'] = trim($settings['jiosaavn_url']);
1146
- $html .= '<a href="'. esc_url( $settings['jiosaavn_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-jiosaavn" title="'. esc_attr( __('Subscribe on JioSaavn', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('JioSaavn', 'powerpress') ) .'</span></a>';
1147
  }
1148
 
1149
  if( !empty($settings['subscribe_feature_podchaser_sidebar']) && !empty($settings['podchaser_url']) ) {
1150
  $settings['podchaser_url'] = trim($settings['podchaser_url']);
1151
- $html .= '<a href="'. esc_url( $settings['podchaser_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-podchaser" title="'. esc_attr( __('Subscribe on Podchaser', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Podchaser', 'powerpress') ) .'</span></a>';
1152
  }
1153
 
1154
  if( !empty($settings['subscribe_feature_gaana_sidebar']) && !empty($settings['gaana_url']) ) {
1155
  $settings['gaana_url'] = trim($settings['gaana_url']);
1156
- $html .= '<a href="'. esc_url( $settings['gaana_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-gaana" title="'. esc_attr( __('Subscribe on Gaana', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Gaana', 'powerpress') ) .'</span></a>';
1157
  }
1158
 
1159
  if( !empty($settings['subscribe_feature_pcindex_sidebar']) && !empty($settings['pcindex_url']) ) {
1160
  $settings['pcindex_url'] = trim($settings['pcindex_url']);
1161
- $html .= '<a href="'. esc_url( $settings['pcindex_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-pcindex" title="'. esc_attr( __('Subscribe on Podcast Index', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Podcast Index', 'powerpress') ) .'</span></a>';
1162
  }
1163
 
1164
  if( preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
1165
  if( !empty($settings['subscribe_feature_email_sidebar']) ) {
1166
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
1167
- $html .= '<a href="'. esc_url( $email_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-email" title="'. esc_attr( __('Subscribe by Email', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('by Email', 'powerpress') ) .'</span></a>';
1168
  }
1169
  }
1170
 
1171
  if( !empty($settings['subscribe_feature_tunein_sidebar']) && !empty($settings['tunein_url']) ) {
1172
  $settings['tunein_url'] = trim($settings['tunein_url']);
1173
- $html .= '<a href="'. esc_url( $settings['tunein_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-tunein" title="'. esc_attr( __('Subscribe on TuneIn', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('TuneIn', 'powerpress') ) .'</span></a>';
1174
  }
1175
 
1176
  if( !empty($settings['subscribe_feature_deezer_sidebar']) && !empty($settings['deezer_url']) ) {
1177
  $settings['deezer_url'] = trim($settings['deezer_url']);
1178
- $html .= '<a href="'. esc_url( $settings['deezer_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-deezer" title="'. esc_attr( __('Subscribe on Deezer', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Deezer', 'powerpress') ) .'</span></a>';
1179
  }
1180
 
1181
  if( !empty($settings['subscribe_feature_anghami_sidebar']) && !empty($settings['anghami_url']) ) {
1182
  $settings['anghami_url'] = trim($settings['anghami_url']);
1183
- $html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-anghami" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Anghami', 'powerpress') ) .'</span></a>';
1184
  }
1185
 
1186
  if (!empty($settings['subscribe_feature_rss_sidebar'])) {
1187
- $html .= '<a href="' . esc_url($settings['feed_url']) . '" class="pp-ssb-btn' . $settings['modern_style'] . ' ' . $settings['modern_direction'] . ' pp-ssb-rss" title="' . esc_attr(__('Subscribe via RSS', 'powerpress')) . '"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">' . esc_html(__('RSS', 'powerpress')) . '</span></a>';
1188
  }
1189
 
1190
  if( !empty($settings['subscribe_page_url']) )
1191
- $html .= '<a href="'. esc_url( $settings['subscribe_page_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-more" title="'. esc_attr( __('More Subscribe Options', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('More Subscribe Options', 'powerpress') ) .'</span></a>';
1192
  $html .= '</div>';
1193
 
1194
  return $html;
565
  $links_array = array();
566
  if( !empty($itunes_url) && !empty($SubscribeSettings['subscribe_feature_apple']) ) {
567
  $guid = get_the_guid();
568
+ $links_array[] = "<a href=\"". htmlspecialchars( powerpresssubscribe_add_guid_to_itunes_url($itunes_url, $guid) ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_itunes\" target=\"_blank\" title=\"". __('Subscribe on Apple Podcasts', 'powerpress') ."\" rel=\"nofollow\">". __('Apple Podcasts','powerpress') ."</a>".PHP_EOL_WEB;
569
  }
570
 
571
  if( !empty($SubscribeSettings['subscribe_feature_gp']) )
574
  $SubscribeSettings['googleplay_url'] =$SubscribeSettings['google_url'];
575
  else
576
  $SubscribeSettings['googleplay_url'] = 'https://www.google.com/podcasts?feed='. powerpress_base64_encode($feed_url);
577
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['googleplay_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_googleplay\" target=\"_blank\" title=\"". __('Subscribe on Google Podcasts', 'powerpress') ."\" rel=\"nofollow\">". __('Google Podcasts','powerpress') ."</a>".PHP_EOL_WEB;
578
  }
579
 
580
  if( !empty($SubscribeSettings['subscribe_feature_spotify']) && !empty($SubscribeSettings['spotify_url']) )
581
  {
582
  $SubscribeSettings['spotify_url'] = trim($SubscribeSettings['spotify_url']);
583
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['spotify_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_spotify\" target=\"_blank\" title=\"". __('Subscribe on Spotify', 'powerpress') ."\" rel=\"nofollow\">". __('Spotify','powerpress') ."</a>".PHP_EOL_WEB;
584
  }
585
 
586
  if( !empty($SubscribeSettings['subscribe_feature_amazon']) && !empty($SubscribeSettings['amazon_url']) )
587
  {
588
  $SubscribeSettings['amazon_url'] = trim($SubscribeSettings['amazon_url']);
589
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['amazon_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_amazon\" target=\"_blank\" title=\"". __('Subscribe on Amazon Music', 'powerpress') ."\" rel=\"nofollow\">". __('Amazon Music','powerpress') ."</a>".PHP_EOL_WEB;
590
  }
591
 
592
  if( preg_match('/^(https?:\/\/)(.*)$/i', $feed_url, $matches ) && !empty($SubscribeSettings['subscribe_feature_android']) ) {
593
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
594
+ $links_array[] = "<a href=\"". htmlspecialchars($android_url) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_android\" target=\"_blank\" title=\"". __('Subscribe on Android', 'powerpress') ."\" rel=\"nofollow\">". __('Android','powerpress') ."</a>".PHP_EOL_WEB;
595
  }
596
 
597
  if( !empty($SubscribeSettings['subscribe_feature_pandora']) && !empty($SubscribeSettings['pandora_url']) )
598
  {
599
  $SubscribeSettings['pandora_url'] = trim($SubscribeSettings['pandora_url']);
600
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['pandora_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_pandora\" target=\"_blank\" title=\"". __('Subscribe on Pandora', 'powerpress') ."\" rel=\"nofollow\">". __('Pandora','powerpress') ."</a>".PHP_EOL_WEB;
601
  }
602
 
603
  if( !empty($SubscribeSettings['subscribe_feature_iheart']) && !empty($SubscribeSettings['iheart_url']) )
604
  {
605
  $SubscribeSettings['iheart_url'] = trim($SubscribeSettings['iheart_url']);
606
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['iheart_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_iheart\" target=\"_blank\" title=\"". __('Subscribe on iHeartRadio', 'powerpress') ."\" rel=\"nofollow\">". __('iHeartRadio','powerpress') ."</a>".PHP_EOL_WEB;
607
  }
608
 
609
  if( !empty($SubscribeSettings['subscribe_feature_stitcher']) && !empty($SubscribeSettings['stitcher_url']) )
610
  {
611
  $SubscribeSettings['stitcher_url'] = trim($SubscribeSettings['stitcher_url']);
612
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['stitcher_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_stitcher\" target=\"_blank\" title=\"". __('Subscribe on Stitcher', 'powerpress') ."\" rel=\"nofollow\">". __('Stitcher','powerpress') ."</a>".PHP_EOL_WEB;
613
  }
614
 
615
  if( !empty($SubscribeSettings['subscribe_feature_blubrry']) && !empty($SubscribeSettings['blubrry_url']) )
616
  {
617
  $SubscribeSettings['blubrry_url'] = trim($SubscribeSettings['blubrry_url']);
618
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['blubrry_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_blubrry\" target=\"_blank\" title=\"". __('Subscribe on Blubrry', 'powerpress') ."\" rel=\"nofollow\">". __('Blubrry','powerpress') ."</a>".PHP_EOL_WEB;
619
  }
620
 
621
  if( !empty($SubscribeSettings['subscribe_feature_jiosaavn']) && !empty($SubscribeSettings['jiosaavn_url']) )
622
  {
623
  $SubscribeSettings['jiosaavn_url'] = trim($SubscribeSettings['jiosaavn_url']);
624
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['jiosaavn_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_jiosaavn\" target=\"_blank\" title=\"". __('Subscribe on JioSaavn', 'powerpress') ."\" rel=\"nofollow\">". __('JioSaavn','powerpress') ."</a>".PHP_EOL_WEB;
625
  }
626
 
627
  if( !empty($SubscribeSettings['subscribe_feature_podchaser']) && !empty($SubscribeSettings['podchaser_url']) )
628
  {
629
  $SubscribeSettings['podchaser_url'] = trim($SubscribeSettings['podchaser_url']);
630
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['podchaser_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_podchaser\" target=\"_blank\" title=\"". __('Subscribe on Podchaser', 'powerpress') ."\" rel=\"nofollow\">". __('Podchaser','powerpress') ."</a>".PHP_EOL_WEB;
631
  }
632
 
633
  if( !empty($SubscribeSettings['subscribe_feature_gaana']) && !empty($SubscribeSettings['gaana_url']) )
634
  {
635
  $SubscribeSettings['gaana_url'] = trim($SubscribeSettings['gaana_url']);
636
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['gaana_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_gaana\" target=\"_blank\" title=\"". __('Subscribe on Gaana', 'powerpress') ."\" rel=\"nofollow\">". __('Gaana','powerpress') ."</a>".PHP_EOL_WEB;
637
  }
638
 
639
  if( !empty($SubscribeSettings['subscribe_feature_pcindex']) && !empty($SubscribeSettings['pcindex_url']) )
640
  {
641
  $SubscribeSettings['pcindex_url'] = trim($SubscribeSettings['pcindex_url']);
642
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['pcindex_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_pcindex\" target=\"_blank\" title=\"". __('Subscribe on Podcast Index', 'powerpress') ."\" rel=\"nofollow\">". __('Podcast Index','powerpress') ."</a>".PHP_EOL_WEB;
643
  }
644
 
645
  if( preg_match('/^(https?:\/\/)(.*)$/i', $feed_url, $matches ) && !empty($SubscribeSettings['subscribe_feature_email']) ) {
646
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
647
+ $links_array[] = "<a href=\"" . htmlspecialchars($email_url) . "\" class=\"powerpress_link_subscribe powerpress_link_subscribe_email\" target=\"_blank\" title=\"" . __('Subscribe by Email', 'powerpress') . "\" rel=\"nofollow\">" . __('Email', 'powerpress') . "</a>" . PHP_EOL_WEB;
648
  }
649
 
650
  if( !empty($SubscribeSettings['subscribe_feature_tunein']) && !empty($SubscribeSettings['tunein_url']) )
651
  {
652
  $SubscribeSettings['tunein_url'] = trim($SubscribeSettings['tunein_url']);
653
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['tunein_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_tunein\" target=\"_blank\" title=\"". __('Subscribe on TuneIn', 'powerpress') ."\" rel=\"nofollow\">". __('TuneIn','powerpress') ."</a>".PHP_EOL_WEB;
654
  }
655
 
656
  if( !empty($SubscribeSettings['subscribe_feature_deezer']) && !empty($SubscribeSettings['deezer_url']) )
657
  {
658
  $SubscribeSettings['deezer_url'] = trim($SubscribeSettings['deezer_url']);
659
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['deezer_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_deezer\" target=\"_blank\" title=\"". __('Subscribe on Deezer', 'powerpress') ."\" rel=\"nofollow\">". __('Deezer','powerpress') ."</a>".PHP_EOL_WEB;
660
  }
661
 
662
  if( !empty($SubscribeSettings['subscribe_feature_anghami']) && !empty($SubscribeSettings['anghami_url']) )
663
  {
664
  $SubscribeSettings['anghami_url'] = trim($SubscribeSettings['anghami_url']);
665
+ $links_array[] = "<a href=\"". esc_attr($SubscribeSettings['anghami_url'] ) ."\" class=\"powerpress_link_subscribe powerpress_link_subscribe_anghami\" target=\"_blank\" title=\"". __('Subscribe on Anghami', 'powerpress') ."\" rel=\"nofollow\">". __('Anghami','powerpress') ."</a>".PHP_EOL_WEB;
666
  }
667
 
668
  if (!empty($SubscribeSettings['subscribe_feature_rss'])) {
669
+ $links_array[] = "<a href=\"" . htmlspecialchars($feed_url) . "\" class=\"powerpress_link_subscribe powerpress_link_subscribe_rss\" target=\"_blank\" title=\"" . __('Subscribe via RSS', 'powerpress') . "\" rel=\"nofollow\">" . __('RSS', 'powerpress') . "</a>" . PHP_EOL_WEB;
670
  }
671
 
672
  if( !empty($SubscribeSettings['subscribe_page_url']) )
673
  {
674
  $label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
675
+ $links_array[] = "<a href=\"{$SubscribeSettings['subscribe_page_url']}\" class=\"powerpress_link_subscribe powerpress_link_subscribe_more\" target=\"_blank\" title=\"". htmlspecialchars($label) ."\" rel=\"nofollow\">". htmlspecialchars($label) ."</a>".PHP_EOL_WEB;
676
  }
677
 
678
  $content .= implode(' '.POWERPRESS_LINK_SEPARATOR .' ', $links_array);
847
  $html .= '';
848
  $html .='<a href="';
849
  $html .= esc_url($Settings['itunes_url']);
850
+ $html .= '" target="_blank" style="display:inline-block;overflow:hidden;background:url(https://linkmaker.itunes.apple.com/images/badges/en-us/badge_itunes-lrg.svg) no-repeat;width:165px;height:40px;"></a>';
851
  $html .= '</div>';
852
  return $html;
853
  }
858
  $html .= '';
859
  $html .='<a href="';
860
  $html .= esc_url($Settings['itunes_url']);
861
+ $html .= '" target="_blank" style="display:inline-block;overflow:hidden;background:url(https://linkmaker.itunes.apple.com/images/badges/en-us/badge_itunes-sm.svg) no-repeat;width:80px;height:15px;"></a>';
862
  $html .= '</div>';
863
  return $html;
864
  }
946
  $link_counter = 0;
947
  if( !empty($settings['itunes_url']) && !empty($settings['subscribe_feature_apple_shortcode']) ) {
948
  $link_counter++;
949
+ $html .= '<a href="'. esc_url( $settings['itunes_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-itunes" target="_blank" title="'. esc_attr( __('Subscribe on Apple Podcasts', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Apple Podcasts', 'powerpress') ) .'</a>';
950
  }
951
  // Google Podcasts
952
  $googleUrl = '';
956
  $googleUrl = 'https://www.google.com/podcasts?feed='. powerpress_base64_encode($settings['feed_url']);
957
  if (!empty($settings['subscribe_feature_gp_shortcode'])) {
958
  $link_counter++;
959
+ $html .= '<a href="' . esc_url($googleUrl) . '" class="pp-sub-btn' . $settings['subscribe_widget_shape'] . ' pp-sub-gp" target="_blank" title="' . esc_attr(__('Subscribe on Google Podcasts', 'powerpress')) . '"><span class="pp-sub-ic"></span>' . esc_html(__('Google Podcasts', 'powerpress')) . '</a>';
960
  }
961
 
962
  if( !empty($settings['subscribe_feature_spotify_shortcode']) && !empty($settings['spotify_url']) )
963
  {
964
  $link_counter++;
965
+ $html .= '<a href="'. esc_url( $settings['spotify_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-spotify" target="_blank" title="'. esc_attr( __('Subscribe on Spotify', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Spotify', 'powerpress') ) .'</a>';
966
  }
967
 
968
  if( !empty($settings['subscribe_feature_amazon_shortcode']) && !empty($settings['amazon_url']) ) {
969
  $link_counter++;
970
+ $html .= '<a href="'. esc_url( $settings['amazon_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-amazon" target="_blank" title="'. esc_attr( __('Subscribe on Amazon Music', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Amazon Music', 'powerpress') ) .'</a>';
971
  }
972
 
973
  if( !empty($settings['subscribe_feature_android_shortcode']) && preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
974
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
975
  $link_counter++;
976
+ $html .= '<a href="'. esc_url( $android_url ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-android" target="_blank" title="'. esc_attr( __('Subscribe on Android', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Android', 'powerpress') ) .'</a>';
977
  }
978
 
979
  if( !empty($settings['subscribe_feature_pandora_shortcode']) && !empty($settings['pandora_url']) ) {
980
  $link_counter++;
981
+ $html .= '<a href="'. esc_url( $settings['pandora_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-pandora" target="_blank" title="'. esc_attr( __('Subscribe on Pandora', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Pandora', 'powerpress') ) .'</a>';
982
  }
983
 
984
  if( !empty($settings['subscribe_feature_iheart_shortcode']) && !empty($settings['iheart_url']) ) {
985
  $link_counter++;
986
+ $html .= '<a href="'. esc_url( $settings['iheart_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-iheartradio" target="_blank" title="'. esc_attr( __('Subscribe on iHeartRadio', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('iHeartRadio', 'powerpress') ) .'</a>';
987
  }
988
 
989
  if( !empty($settings['subscribe_feature_stitcher_shortcode']) && !empty($settings['stitcher_url']) )
990
  {
991
  $link_counter++;
992
+ $html .= '<a href="'. esc_url( $settings['stitcher_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-stitcher" target="_blank" title="'. esc_attr( __('Subscribe on Stitcher', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Stitcher', 'powerpress') ) .'</a>';
993
  }
994
 
995
  if( !empty($settings['subscribe_feature_blubrry_shortcode']) && !empty($settings['blubrry_url']) ) {
996
  $link_counter++;
997
+ $html .= '<a href="'. esc_url( $settings['blubrry_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-blubrry" target="_blank" title="'. esc_attr( __('Subscribe on Blubrry', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Blubrry', 'powerpress') ) .'</a>';
998
  }
999
 
1000
  if( !empty($settings['subscribe_feature_jiosaavn_shortcode']) && !empty($settings['jiosaavn_url']) ) {
1001
  $link_counter++;
1002
+ $html .= '<a href="'. esc_url( $settings['jiosaavn_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-jiosaavn" target="_blank" title="'. esc_attr( __('Subscribe on JioSaavn', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('JioSaavn', 'powerpress') ) .'</a>';
1003
  }
1004
 
1005
  if( !empty($settings['subscribe_feature_podchaser_shortcode']) && !empty($settings['podchaser_url']) ) {
1006
  $link_counter++;
1007
+ $html .= '<a href="'. esc_url( $settings['podchaser_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-podchaser" target="_blank" title="'. esc_attr( __('Subscribe on Podchaser', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Podchaser', 'powerpress') ) .'</a>';
1008
  }
1009
 
1010
  if( !empty($settings['subscribe_feature_gaana_shortcode']) && !empty($settings['gaana_url']) ) {
1011
  $link_counter++;
1012
+ $html .= '<a href="'. esc_url( $settings['gaana_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-gaana" target="_blank" title="'. esc_attr( __('Subscribe on Gaana', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Gaana', 'powerpress') ) .'</a>';
1013
  }
1014
 
1015
  if( !empty($settings['subscribe_feature_pcindex_shortcode']) && !empty($settings['pcindex_url']) ) {
1016
  $link_counter++;
1017
+ $html .= '<a href="'. esc_url( $settings['pcindex_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-pcindex" target="_blank" title="'. esc_attr( __('Subscribe on Podcast Index', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Podcast Index', 'powerpress') ) .'</a>';
1018
  }
1019
 
1020
  if( !empty($settings['subscribe_feature_email_shortcode']) && preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
1021
  $link_counter++;
1022
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
1023
+ $html .= '<a href="'. esc_url( $email_url ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-email" target="_blank" title="'. esc_attr( __('Subscribe by Email', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('by Email', 'powerpress') ) .'</a>';
1024
  }
1025
 
1026
  if( !empty($settings['subscribe_feature_tunein_shortcode']) && !empty($settings['tunein_url']) )
1027
  {
1028
  $link_counter++;
1029
+ $html .= '<a href="'. esc_url( $settings['tunein_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-tunein" target="_blank" title="'. esc_attr( __('Subscribe on TuneIn', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('TuneIn', 'powerpress') ) .'</a>';
1030
  }
1031
 
1032
  if( !empty($settings['subscribe_feature_deezer_shortcode']) && !empty($settings['deezer_url']) ) {
1033
  $link_counter++;
1034
+ $html .= '<a href="'. esc_url( $settings['deezer_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-deezer" target="_blank" title="'. esc_attr( __('Subscribe on Deezer', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Deezer', 'powerpress') ) .'</a>';
1035
  }
1036
 
1037
  if( !empty($settings['subscribe_feature_anghami_shortcode']) && !empty($settings['anghami_url']) ) {
1038
  $link_counter++;
1039
+ $html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-anghami" target="_blank" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Anghami', 'powerpress') ) .'</a>';
1040
  }
1041
 
1042
  //$html .= var_dump($settings, true);
1044
 
1045
  if (!empty($settings['subscribe_feature_rss_shortcode'])) {
1046
  $link_counter++;
1047
+ $html .= '<a href="'. esc_url( $settings['feed_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-rss" target="_blank" title="'. esc_attr( __('Subscribe via RSS', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('RSS', 'powerpress') ) .'</a>';
1048
  }
1049
 
1050
  while ($link_counter % 3 != 0) {
1093
  $html = '';
1094
  $html .= '<div class="pp-ssb-widget pp-ssb-widget-modern' . $important_tags_class .'">';
1095
  if( !empty($settings['itunes_url']) && !empty($settings['subscribe_feature_apple_sidebar']) ) {
1096
+ $html .= '<a href="'. esc_url( $settings['itunes_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-itunes" target="_blank" title="'. esc_attr( __('Subscribe on Apple Podcasts', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Apple Podcasts', 'powerpress') ) .'</span></a>';
1097
  }
1098
 
1099
  if( !empty($settings['subscribe_feature_gp_sidebar']) ) {
1103
  else
1104
  $gp_url = 'https://www.google.com/podcasts?feed='.powerpress_base64_encode($settings['feed_url']);
1105
 
1106
+ $html .= '<a href="'. esc_url( $gp_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-gp" target="_blank" title="'. esc_attr( __('Subscribe on Google Podcasts', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Google Podcasts', 'powerpress') ) .'</span></a>';
1107
  }
1108
 
1109
  if( !empty($settings['subscribe_feature_spotify_sidebar']) && !empty($settings['spotify_url']) ) {
1110
  $settings['spotify_url'] = trim($settings['spotify_url']);
1111
+ $html .= '<a href="'. esc_url( $settings['spotify_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-spotify" target="_blank" title="'. esc_attr( __('Subscribe on Spotify', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Spotify', 'powerpress') ) .'</span></a>';
1112
  }
1113
 
1114
  if( !empty($settings['subscribe_feature_amazon_sidebar']) && !empty($settings['amazon_url']) ) {
1115
  $settings['amazon_url'] = trim($settings['amazon_url']);
1116
+ $html .= '<a href="'. esc_url( $settings['amazon_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-amazon" target="_blank" title="'. esc_attr( __('Subscribe on Amazon Music', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Amazon Music', 'powerpress') ) .'</span></a>';
1117
  }
1118
 
1119
  if( preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) && !empty($settings['subscribe_feature_android_sidebar']) ) {
1120
  $android_url = $matches[1] . 'subscribeonandroid.com/' . $matches[2];
1121
+ $html .= '<a href="'. esc_url( $android_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-android" target="_blank" title="'. esc_attr( __('Subscribe on Android', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Android', 'powerpress') ) .'</span></a>';
1122
  }
1123
 
1124
  if( !empty($settings['subscribe_feature_pandora_sidebar']) && !empty($settings['pandora_url']) ) {
1125
  $settings['pandora_url'] = trim($settings['pandora_url']);
1126
+ $html .= '<a href="'. esc_url( $settings['pandora_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-pandora" target="_blank" title="'. esc_attr( __('Subscribe on Pandora', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Pandora', 'powerpress') ) .'</span></a>';
1127
  }
1128
 
1129
  if( !empty($settings['subscribe_feature_iheart_sidebar']) && !empty($settings['iheart_url']) ) {
1130
  $settings['iheart_url'] = trim($settings['iheart_url']);
1131
+ $html .= '<a href="'. esc_url( $settings['iheart_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-iheartradio" target="_blank" title="'. esc_attr( __('Subscribe on iHeartRadio', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('iHeartRadio', 'powerpress') ) .'</span></a>';
1132
  }
1133
 
1134
  if( !empty($settings['subscribe_feature_stitcher_sidebar']) && !empty($settings['stitcher_url']) ) {
1135
  $settings['stitcher_url'] = trim($settings['stitcher_url']);
1136
+ $html .= '<a href="'. esc_url( $settings['stitcher_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-stitcher" target="_blank" title="'. esc_attr( __('Subscribe on Stitcher', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Stitcher', 'powerpress') ) .'</span></a>';
1137
  }
1138
 
1139
  if( !empty($settings['subscribe_feature_blubrry_sidebar']) && !empty($settings['blubrry_url']) ) {
1140
  $settings['blubrry_url'] = trim($settings['blubrry_url']);
1141
+ $html .= '<a href="'. esc_url( $settings['blubrry_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-blubrry" target="_blank" title="'. esc_attr( __('Subscribe on Blubrry', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Blubrry', 'powerpress') ) .'</span></a>';
1142
  }
1143
 
1144
  if( !empty($settings['subscribe_feature_jiosaavn_sidebar']) && !empty($settings['jiosaavn_url']) ) {
1145
  $settings['jiosaavn_url'] = trim($settings['jiosaavn_url']);
1146
+ $html .= '<a href="'. esc_url( $settings['jiosaavn_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-jiosaavn" target="_blank" title="'. esc_attr( __('Subscribe on JioSaavn', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('JioSaavn', 'powerpress') ) .'</span></a>';
1147
  }
1148
 
1149
  if( !empty($settings['subscribe_feature_podchaser_sidebar']) && !empty($settings['podchaser_url']) ) {
1150
  $settings['podchaser_url'] = trim($settings['podchaser_url']);
1151
+ $html .= '<a href="'. esc_url( $settings['podchaser_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-podchaser" target="_blank" title="'. esc_attr( __('Subscribe on Podchaser', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Podchaser', 'powerpress') ) .'</span></a>';
1152
  }
1153
 
1154
  if( !empty($settings['subscribe_feature_gaana_sidebar']) && !empty($settings['gaana_url']) ) {
1155
  $settings['gaana_url'] = trim($settings['gaana_url']);
1156
+ $html .= '<a href="'. esc_url( $settings['gaana_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-gaana" target="_blank" title="'. esc_attr( __('Subscribe on Gaana', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Gaana', 'powerpress') ) .'</span></a>';
1157
  }
1158
 
1159
  if( !empty($settings['subscribe_feature_pcindex_sidebar']) && !empty($settings['pcindex_url']) ) {
1160
  $settings['pcindex_url'] = trim($settings['pcindex_url']);
1161
+ $html .= '<a href="'. esc_url( $settings['pcindex_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-pcindex" target="_blank" title="'. esc_attr( __('Subscribe on Podcast Index', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Podcast Index', 'powerpress') ) .'</span></a>';
1162
  }
1163
 
1164
  if( preg_match('/^(https?:\/\/)(.*)$/i', $settings['feed_url'], $matches ) ) {
1165
  if( !empty($settings['subscribe_feature_email_sidebar']) ) {
1166
  $email_url = $matches[1] . 'subscribebyemail.com/' . $matches[2];
1167
+ $html .= '<a href="'. esc_url( $email_url ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-email" target="_blank" title="'. esc_attr( __('Subscribe by Email', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('by Email', 'powerpress') ) .'</span></a>';
1168
  }
1169
  }
1170
 
1171
  if( !empty($settings['subscribe_feature_tunein_sidebar']) && !empty($settings['tunein_url']) ) {
1172
  $settings['tunein_url'] = trim($settings['tunein_url']);
1173
+ $html .= '<a href="'. esc_url( $settings['tunein_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-tunein" target="_blank" title="'. esc_attr( __('Subscribe on TuneIn', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('TuneIn', 'powerpress') ) .'</span></a>';
1174
  }
1175
 
1176
  if( !empty($settings['subscribe_feature_deezer_sidebar']) && !empty($settings['deezer_url']) ) {
1177
  $settings['deezer_url'] = trim($settings['deezer_url']);
1178
+ $html .= '<a href="'. esc_url( $settings['deezer_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-deezer" target="_blank" title="'. esc_attr( __('Subscribe on Deezer', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Deezer', 'powerpress') ) .'</span></a>';
1179
  }
1180
 
1181
  if( !empty($settings['subscribe_feature_anghami_sidebar']) && !empty($settings['anghami_url']) ) {
1182
  $settings['anghami_url'] = trim($settings['anghami_url']);
1183
+ $html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-anghami" target="_blank" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Anghami', 'powerpress') ) .'</span></a>';
1184
  }
1185
 
1186
  if (!empty($settings['subscribe_feature_rss_sidebar'])) {
1187
+ $html .= '<a href="' . esc_url($settings['feed_url']) . '" class="pp-ssb-btn' . $settings['modern_style'] . ' ' . $settings['modern_direction'] . ' pp-ssb-rss" target="_blank" title="' . esc_attr(__('Subscribe via RSS', 'powerpress')) . '"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">' . esc_html(__('RSS', 'powerpress')) . '</span></a>';
1188
  }
1189
 
1190
  if( !empty($settings['subscribe_page_url']) )
1191
+ $html .= '<a href="'. esc_url( $settings['subscribe_page_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-more" target="_blank" title="'. esc_attr( __('More Subscribe Options', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('More Subscribe Options', 'powerpress') ) .'</span></a>';
1192
  $html .= '</div>';
1193
 
1194
  return $html;
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: 9.7.2
7
  Author: Blubrry
8
  Author URI: https://blubrry.com/
9
  Requires at least: 3.6
@@ -35,7 +35,7 @@ if( !function_exists('add_action') ) {
35
  }
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
- define('POWERPRESS_VERSION', '9.7.2' );
39
 
40
  // Translation support:
41
  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: 9.7.3
7
  Author: Blubrry
8
  Author URI: https://blubrry.com/
9
  Requires at least: 3.6
35
  }
36
 
37
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
38
+ define('POWERPRESS_VERSION', '9.7.3' );
39
 
40
  // Translation support:
41
  if ( !defined('POWERPRESS_ABSPATH') )
powerpressadmin-posttypefeeds.php CHANGED
@@ -15,7 +15,6 @@ function powerpress_admin_posttypefeeds_columns($data=array()){
15
  add_filter('manage_powerpressadmin_posttypefeeds_columns', 'powerpress_admin_posttypefeeds_columns');
16
 
17
  function powerpress_admin_posttypefeeds(){
18
- $General = powerpress_get_settings('powerpress_general');
19
  $post_types = powerpress_admin_get_post_types(false);
20
 
21
  // If we have powerpress credentials, check if the account has been verified
@@ -33,40 +32,50 @@ function powerpress_admin_posttypefeeds(){
33
  <div class="pp-row">
34
  <h2 class="pp-page-sub-header">Add Podcasting to a custom Post Type</h2>
35
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
- <h3><label for="powerpress_post_type_select"><?php echo __('Post Type', 'powerpress'); ?></label></h3>
38
- <select id="powerpress_post_type_select" name="podcast_post_type" style="width: 95%;">
39
- <option value=""><?php echo __('Select Post Type', 'powerpress'); ?></option>
40
- <?php
41
- reset($post_types);
42
- foreach($post_types as $null => $post_type){
43
- if($post_type == 'post'){
44
- continue;
45
- }
46
- $post_type = htmlspecialchars($post_type);
47
- echo "\t<option value=\"$post_type\">$post_type</option>\n";
48
- }
49
- ?>
50
- </select>
51
 
 
 
 
 
52
 
53
- <div class="form-field form-required">
54
- <h3><label for="feed_title"><?php echo __('Feed Title', 'powerpress') ?></label></h3>
55
- <input name="feed_title" id="feed_title" type="text" value="" size="100"/>
56
- </div>
 
57
 
58
- <div class="form-field">
59
- <h3><label for="feed_slug"><?php echo __('Feed Slug', 'powerpress') ?></label></h3>
60
- <input name="feed_slug" id="feed_slug" type="text" value="" size="40"/>
61
- <p><?php echo __('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'powerpress'); ?></p>
62
- </div>
63
 
 
 
 
64
  </div>
 
65
  <div class="pp-col-50">
66
  <div class="pp-row">
67
  <h2 class="pp-page-sub-header">Why would I use Post Type?</h2>
68
  </div>
69
-
70
  <ul style="list-style: unset; padding-left: 20px;">
71
  <li>
72
  <h3 style="font-weight: 400;">You have a podcast that covers two topics that sometimes share same posts and sometimes do not. Use your main podcast feed as a combined feed of both topics and use category feeds to distribute topic specific episodes.</h3>
@@ -78,137 +87,122 @@ function powerpress_admin_posttypefeeds(){
78
  </div>
79
  </div>
80
 
81
- <div class="pp-row pp-tools-row">
82
- <p class="submit"><input type="submit" class="powerpress_save_button_other" name="add_podcasting" value="<?php echo __('Add Podcasting to Post Type', 'powerpress'); ?>" /> </p>
83
- </div>
84
-
85
- <hr>
86
-
87
- <div class="pp-row pp-tools-row" style="margin-top: 20px;">
88
- <div class="pp-row">
89
- <h2 class="pp-page-sub-header">List of Post Type Feeds</h2>
90
- </div>
91
- </div>
92
 
93
- <div class="pp-row pp-tools-row" style="margin-top: 20px;">
94
- <table class="widefat fixed">
95
  <thead>
96
  <tr>
97
  <?php print_column_headers('powerpressadmin_posttypefeeds'); ?>
98
- </tr>
99
- </thead>
100
 
101
- <tfoot>
102
- <tr>
103
  <?php print_column_headers('powerpressadmin_posttypefeeds', false); ?>
104
- </tr>
105
- </tfoot>
106
 
107
- <tbody>
108
  <?php
109
-
110
- $count = 0;
111
- foreach($post_types as $null => $post_type){
112
- $PostTypeSettingsArray = get_option('powerpress_posttype_'. $post_type );
113
- if(!$PostTypeSettingsArray){
114
- continue;
115
- }
116
-
117
- foreach($PostTypeSettingsArray as $feed_slug => $PostTypeSettings){
118
- $feed_title = (!empty($PostTypeSettings['title']) ? $PostTypeSettings['title'] : '(blank)');
119
-
120
- $columns = powerpress_admin_posttypefeeds_columns();
121
- $hidden = array();
122
-
123
- if($count % 2 == 0){
124
- echo '<tr class="alternate">';
125
- } else {
126
- echo '<tr>';
127
  }
128
 
129
- $edit_link = admin_url('admin.php?page='. powerpress_admin_get_page() .'&amp;action=powerpress-editposttypefeed&amp;feed_slug='. $feed_slug .'&podcast_post_type='.$post_type) ;
130
-
131
- $url = get_post_type_archive_feed_link($post_type, $feed_slug);
132
- if(empty($url)){
133
- $url = '';
134
- $short_url = '';
135
- } else {
136
- $short_url = str_replace('http://', '', $url);
137
- $short_url = str_replace('www.', '', $short_url);
138
- if(strlen($short_url) > 35){
139
- $short_url = substr($short_url, 0, 32).'...';
140
- }
141
- }
142
 
143
- foreach($columns as $column_name=>$column_display_name) {
144
- $class = "class=\"column-$column_name\"";
145
-
146
- switch($column_name) {
147
- case 'feed-slug': {
148
- echo "<td $class>{$feed_slug}";
149
- echo "</td>";
150
-
151
- } break;
152
- case 'name': {
153
- echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . esc_attr(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">'.esc_attr($feed_title).'</a></strong><br />';
154
- $actions = array();
155
- $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
156
- $actions['remove'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=". powerpress_admin_get_page() ."&amp;action=powerpress-delete-posttype-feed&amp;podcast_post_type={$post_type}&amp;feed_slug={$feed_slug}", 'powerpress-delete-posttype-feed-'.$post_type .'_'.$feed_slug) . "' onclick=\"if ( confirm('" . esc_js(sprintf( __("You are about to remove podcast settings for Post Type '%s'\n 'Cancel' to stop, 'OK' to delete.", 'powerpress'), esc_attr($feed_title) )) . "') ) { return true;}return false;\">" . __('Remove', 'powerpress') . "</a>";
157
- $action_count = count($actions);
158
- $i = 0;
159
- echo '<div class="row-actions">';
160
- foreach($actions as $action => $linkaction){
161
- ++$i;
162
- ($i == $action_count) ? $sep = '' : $sep = ' | ';
163
- echo '<span class="'.$action.'">'.$linkaction.$sep .'</span>';
164
- }
165
- echo '</div>';
166
- echo '</td>';
167
 
168
- } break;
 
 
 
 
 
 
 
 
 
 
 
 
169
 
170
- case 'url': {
171
- echo "<td $class><a href='$url' title='". esc_attr(sprintf(__('Visit %s', 'powerpress'), $feed_title))."' target=\"_blank\">$short_url</a>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  echo '<div class="row-actions">';
173
- if(defined('POWERPRESS_FEEDVALIDATOR_URL')){ // http://www.feedvalidator.org/check.cgi?url=
174
- echo '<span class="'.$action .'"><a href="'. POWERPRESS_FEEDVALIDATOR_URL . urlencode( str_replace('&amp;', '&', $url) ) .'" target="_blank">' . __('Validate Feed', 'powerpress') . '</a></span>';
 
 
175
  }
176
  echo '</div>';
177
- echo "</td>";
178
-
179
- } break;
180
-
181
- case 'episode-count': {
182
- echo "<td $class>$episode_total";
183
- echo "</td>";
184
-
185
- } break;
186
-
187
- case 'post-type': {
188
- echo "<td $class>$post_type";
189
- echo "</td>";
190
- } break;
191
-
192
- default: {
193
-
194
- } break;
 
 
 
 
 
 
 
 
 
 
195
  }
 
 
196
  }
197
-
198
- echo "\n </tr>\n";
199
- $count++;
200
  }
201
- }
202
  ?>
203
- </tbody>
204
  </table>
205
  </div>
206
  </div>
207
 
208
- <style>
209
- .pp-col-50 {
210
- width: 50%;
211
- }
212
- </style>
213
 
214
- <?php } ?>
 
 
 
 
15
  add_filter('manage_powerpressadmin_posttypefeeds_columns', 'powerpress_admin_posttypefeeds_columns');
16
 
17
  function powerpress_admin_posttypefeeds(){
 
18
  $post_types = powerpress_admin_get_post_types(false);
19
 
20
  // If we have powerpress credentials, check if the account has been verified
32
  <div class="pp-row">
33
  <h2 class="pp-page-sub-header">Add Podcasting to a custom Post Type</h2>
34
  </div>
35
+ <div class="pp-row">
36
+ <div class="form-wrap">
37
+ <h3><?php echo __('Add Podcasting to a custom Post Type', 'powerpress'); ?></h3>
38
+ <input type="hidden" name="action" value="powerpress-addposttypefeed" />
39
+ <div class="form-field form-required">
40
+ <label style="font-size: 14px;" for="powerpress_post_type_select"><?php echo __('Post Type', 'powerpress'); ?></label>
41
+ <select id="powerpress_post_type_select" name="podcast_post_type" style="width: 95%;">
42
+ <option value=""><?php echo __('Select Post Type', 'powerpress'); ?></option>
43
+ <?php
44
+ reset($post_types);
45
+ foreach($post_types as $null => $post_type){
46
+ if($post_type == 'post'){
47
+ continue;
48
+ }
49
 
50
+ $post_type = htmlspecialchars($post_type);
51
+ echo "\t<option value=\"$post_type\">$post_type</option>\n";
52
+ }
53
+ ?>
54
+ </select>
55
+ </div>
 
 
 
 
 
 
 
 
56
 
57
+ <div class="form-field form-required">
58
+ <label style="font-size: 14px;" for="feed_title"><?php echo __('Feed Title', 'powerpress') ?></label>
59
+ <input name="feed_title" id="feed_title" type="text" value="" size="100"/>
60
+ </div>
61
 
62
+ <div class="form-field">
63
+ <label style="font-size: 14px;" for="feed_slug"><?php echo __('Feed Slug', 'powerpress') ?></label>
64
+ <input name="feed_slug" id="feed_slug" type="text" value="" size="40"/>
65
+ <p><?php echo __('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'powerpress'); ?></p>
66
+ </div>
67
 
68
+ <?php wp_nonce_field('powerpress-add-posttype-feed'); ?>
 
 
 
 
69
 
70
+ <p class="submit"><input type="submit" class="powerpress_save_button_other" name="add_podcasting" value="<?php echo __('Add Podcasting to Post Type', 'powerpress'); ?>" /></p>
71
+ </div>
72
+ </div>
73
  </div>
74
+
75
  <div class="pp-col-50">
76
  <div class="pp-row">
77
  <h2 class="pp-page-sub-header">Why would I use Post Type?</h2>
78
  </div>
 
79
  <ul style="list-style: unset; padding-left: 20px;">
80
  <li>
81
  <h3 style="font-weight: 400;">You have a podcast that covers two topics that sometimes share same posts and sometimes do not. Use your main podcast feed as a combined feed of both topics and use category feeds to distribute topic specific episodes.</h3>
87
  </div>
88
  </div>
89
 
90
+ <hr style="margin-bottom: 40px;">
 
 
 
 
 
 
 
 
 
 
91
 
92
+ <div class="pp-row">
93
+ <table class="widefat fixed" cellspacing="0">
94
  <thead>
95
  <tr>
96
  <?php print_column_headers('powerpressadmin_posttypefeeds'); ?>
97
+ </tr>
98
+ </thead>
99
 
100
+ <tfoot>
101
+ <tr>
102
  <?php print_column_headers('powerpressadmin_posttypefeeds', false); ?>
103
+ </tr>
104
+ </tfoot>
105
 
106
+ <tbody>
107
  <?php
108
+ $count = 0;
109
+ foreach($post_types as $null => $post_type){
110
+ $PostTypeSettingsArray = get_option('powerpress_posttype_'. $post_type );
111
+ if(!$PostTypeSettingsArray){
112
+ continue;
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  }
114
 
115
+ foreach($PostTypeSettingsArray as $feed_slug => $PostTypeSettings){
116
+ $feed_title = ( !empty($PostTypeSettings['title']) ? $PostTypeSettings['title'] : '(blank)');
117
+ $columns = powerpress_admin_posttypefeeds_columns();
118
+ $hidden = array();
 
 
 
 
 
 
 
 
 
119
 
120
+ if($count % 2 == 0){
121
+ echo '<tr valign="middle" class="alternate">';
122
+ } else {
123
+ echo '<tr valign="middle">';
124
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
 
126
+ $edit_link = admin_url('admin.php?page='. powerpress_admin_get_page() .'&amp;action=powerpress-editposttypefeed&amp;feed_slug='. $feed_slug .'&podcast_post_type='.$post_type) ;
127
+
128
+ $url = get_post_type_archive_feed_link($post_type, $feed_slug);
129
+ if(empty($url)) {
130
+ $url = '';
131
+ $short_url = '';
132
+ } else {
133
+ $short_url = str_replace('http://', '', $url);
134
+ $short_url = str_replace('www.', '', $short_url);
135
+ if(strlen($short_url) > 35){
136
+ $short_url = substr($short_url, 0, 32).'...';
137
+ }
138
+ }
139
 
140
+ foreach($columns as $column_name=>$column_display_name){
141
+ $class = "class=\"column-$column_name\"";
142
+
143
+ switch($column_name){
144
+ case 'feed-slug': {
145
+ echo "<td $class>{$feed_slug}";
146
+ echo "</td>";
147
+ } break;
148
+
149
+ case 'name': {
150
+ echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . esc_attr(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">'.esc_attr($feed_title).'</a></strong><br />';
151
+ $actions = array();
152
+ $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
153
+ $actions['remove'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=". powerpress_admin_get_page() ."&amp;action=powerpress-delete-posttype-feed&amp;podcast_post_type={$post_type}&amp;feed_slug={$feed_slug}", 'powerpress-delete-posttype-feed-'.$post_type .'_'.$feed_slug) . "' onclick=\"if ( confirm('" . esc_js(sprintf( __("You are about to remove podcast settings for Post Type '%s'\n 'Cancel' to stop, 'OK' to delete.", 'powerpress'), esc_attr($feed_title) )) . "') ) { return true;}return false;\">" . __('Remove', 'powerpress') . "</a>";
154
+ $action_count = count($actions);
155
+ $i = 0;
156
  echo '<div class="row-actions">';
157
+ foreach ( $actions as $action => $linkaction){
158
+ ++$i;
159
+ ($i == $action_count) ? $sep = '' : $sep = ' | ';
160
+ echo '<span class="'.$action.'">'.$linkaction.$sep .'</span>';
161
  }
162
  echo '</div>';
163
+ echo '</td>';
164
+
165
+ } break;
166
+
167
+ case 'url': {
168
+ echo "<td $class><a href='$url' title='". esc_attr(sprintf(__('Visit %s', 'powerpress'), $feed_title))."' target=\"_blank\">$short_url</a>";
169
+ echo '<div class="row-actions">';
170
+ if( defined('POWERPRESS_FEEDVALIDATOR_URL') ) { // http://www.feedvalidator.org/check.cgi?url=
171
+ echo '<span class="'.$action .'"><a href="'. POWERPRESS_FEEDVALIDATOR_URL . urlencode( str_replace('&amp;', '&', $url) ) .'" target="_blank">' . __('Validate Feed', 'powerpress') . '</a></span>';
172
+ }
173
+ echo '</div>';
174
+ echo "</td>";
175
+
176
+ } break;
177
+
178
+ case 'episode-count': {
179
+ echo "<td $class>$episode_total";
180
+ echo "</td>";
181
+ } break;
182
+
183
+ case 'post-type': {
184
+ echo "<td $class>$post_type";
185
+ echo "</td>";
186
+ } break;
187
+
188
+ default: {
189
+ } break;
190
+ }
191
  }
192
+ echo "\n </tr>\n";
193
+ $count++;
194
  }
 
 
 
195
  }
 
196
  ?>
197
+ </tbody>
198
  </table>
199
  </div>
200
  </div>
201
 
202
+ <?php } ?>
 
 
 
 
203
 
204
+ <style>
205
+ .pp-col-50 {
206
+ width: 50%;
207
+ }
208
+ </style>
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: 6.0
7
- Stable tag: 9.7.2
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
@@ -185,6 +185,11 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
185
 
186
 
187
  == Changelog ==
 
 
 
 
 
188
  = 9.7.2 =
189
  * Released on 11/07/2022
190
  * Bugfixes for feed artwork and subscribe page styling
4
  Requires at least: 3.6
5
  Requires PHP: 5.2
6
  Tested up to: 6.0
7
+ Stable tag: 9.7.3
8
  Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
9
  License: GPLv2 or later
10
 
185
 
186
 
187
  == Changelog ==
188
+ = 9.7.3 =
189
+ * Released on 11/17/2022
190
+ * Bugfixes for the Post Type Podcasting page
191
+ * Open destinations links in a new tab
192
+
193
  = 9.7.2 =
194
  * Released on 11/07/2022
195
  * Bugfixes for feed artwork and subscribe page styling