Version Description
- Released on 10/25/2021
- Solved a bug that occurred when detecting a filetype on media with a query string
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 8.7.5 |
Comparing to | |
See all releases |
Code changes from version 8.7.4 to 8.7.5
- powerpress-player.php +8 -0
- powerpress-subscribe.php +34 -3
- powerpress.php +2 -2
- readme.txt +5 -1
- shortcodes/views/program-result.php +2 -0
- views/settings_tab_destinations.php +25 -0
powerpress-player.php
CHANGED
@@ -15,6 +15,14 @@ function powerpressplayer_get_next_id()
|
|
15 |
|
16 |
function powerpressplayer_get_extension($media_url, $EpisodeData = array() )
|
17 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
$extension = 'unknown';
|
19 |
$parts = pathinfo($media_url);
|
20 |
if( !empty($parts['extension']) )
|
15 |
|
16 |
function powerpressplayer_get_extension($media_url, $EpisodeData = array() )
|
17 |
{
|
18 |
+
$qpos = strpos($media_url, "?");
|
19 |
+
if ($qpos!==false) {
|
20 |
+
$ext = powerpressplayer_get_extension(substr($media_url, 0, $qpos));
|
21 |
+
if ($ext != 'unknown') {
|
22 |
+
return $ext;
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
$extension = 'unknown';
|
27 |
$parts = pathinfo($media_url);
|
28 |
if( !empty($parts['extension']) )
|
powerpress-subscribe.php
CHANGED
@@ -145,6 +145,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
145 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
146 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
147 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
|
|
148 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
149 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
150 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
@@ -161,6 +162,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
161 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
162 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
163 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
|
|
164 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
165 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
166 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
@@ -177,6 +179,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
177 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
178 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
179 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
|
|
180 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
181 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
182 |
} else {
|
@@ -232,6 +235,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
232 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
233 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
234 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
|
|
235 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
236 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
237 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
@@ -248,6 +252,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
248 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
249 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
250 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
|
|
251 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
252 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
253 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
@@ -264,6 +269,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
264 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
265 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
266 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
|
|
267 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
268 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
269 |
} else {
|
@@ -329,6 +335,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
329 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
330 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
331 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
|
|
332 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
333 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
334 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
@@ -345,6 +352,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
345 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
346 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
347 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
|
|
348 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
349 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
350 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
@@ -361,6 +369,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
361 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
362 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
363 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
|
|
364 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
365 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
366 |
} else {
|
@@ -410,6 +419,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
410 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
411 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
412 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
|
|
413 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
414 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
415 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
@@ -426,6 +436,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
426 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
427 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
428 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
|
|
429 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
430 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
431 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
@@ -442,6 +453,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
442 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
443 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
444 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
|
|
445 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
446 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
447 |
} else {
|
@@ -465,6 +477,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
465 |
$Settings['subscribe_feature_jiosaavn'] = false;
|
466 |
$Settings['subscribe_feature_podchaser'] = false;
|
467 |
$Settings['subscribe_feature_gaana'] = false;
|
|
|
468 |
$Settings['subscribe_feature_email_shortcode'] = false;
|
469 |
$Settings['subscribe_feature_apple_shortcode'] = false;
|
470 |
$Settings['subscribe_feature_gp_shortcode'] = false;
|
@@ -481,6 +494,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
481 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = false;
|
482 |
$Settings['subscribe_feature_podchaser_shortcode'] = false;
|
483 |
$Settings['subscribe_feature_gaana_shortcode'] = false;
|
|
|
484 |
$Settings['subscribe_feature_email_sidebar'] = false;
|
485 |
$Settings['subscribe_feature_gp_sidebar'] = false;
|
486 |
$Settings['subscribe_feature_apple_sidebar'] = false;
|
@@ -497,6 +511,7 @@ function powerpresssubscribe_get_settings($ExtraData, $detect_category=true)
|
|
497 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = false;
|
498 |
$Settings['subscribe_feature_podchaser_sidebar'] = false;
|
499 |
$Settings['subscribe_feature_gaana_sidebar'] = false;
|
|
|
500 |
}
|
501 |
|
502 |
return $Settings;
|
@@ -629,9 +644,15 @@ function powerpressplayer_link_subscribe_pre($content, $media_url, $ExtraData =
|
|
629 |
$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;
|
630 |
}
|
631 |
|
632 |
-
|
633 |
-
|
634 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
635 |
{
|
636 |
$label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
|
637 |
$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;
|
@@ -1003,6 +1024,11 @@ function powerpress_do_subscribe_widget($settings, $PowerPressSettings)
|
|
1003 |
$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>';
|
1004 |
}
|
1005 |
|
|
|
|
|
|
|
|
|
|
|
1006 |
//$html .= var_dump($settings, true);
|
1007 |
|
1008 |
|
@@ -1147,6 +1173,11 @@ function powerpress_do_subscribe_sidebar_widget($settings)
|
|
1147 |
$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>';
|
1148 |
}
|
1149 |
|
|
|
|
|
|
|
|
|
|
|
1150 |
$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>';
|
1151 |
|
1152 |
|
145 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
146 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
147 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
148 |
+
$Settings['subscribe_feature_anghami'] = (isset($GeneralSettings['subscribe_feature_anghami']) ? $GeneralSettings['subscribe_feature_anghami'] : false );
|
149 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
150 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
151 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
162 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
163 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
164 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
165 |
+
$Settings['subscribe_feature_anghami_shortcode'] = (isset($GeneralSettings['subscribe_feature_anghami_shortcode']) ? $GeneralSettings['subscribe_feature_anghami_shortcode'] : true );
|
166 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
167 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
168 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
179 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
180 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
181 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
182 |
+
$Settings['subscribe_feature_anghami_sidebar'] = (isset($GeneralSettings['subscribe_feature_anghami_sidebar']) ? $GeneralSettings['subscribe_feature_anghami_sidebar'] : false );
|
183 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
184 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
185 |
} else {
|
235 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
236 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
237 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
238 |
+
$Settings['subscribe_feature_anghami'] = (isset($GeneralSettings['subscribe_feature_anghami']) ? $GeneralSettings['subscribe_feature_anghami'] : false );
|
239 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
240 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
241 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
252 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
253 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
254 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
255 |
+
$Settings['subscribe_feature_anghami_shortcode'] = (isset($GeneralSettings['subscribe_feature_anghami_shortcode']) ? $GeneralSettings['subscribe_feature_anghami_shortcode'] : true );
|
256 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
257 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
258 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
269 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
270 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
271 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
272 |
+
$Settings['subscribe_feature_anghami_sidebar'] = (isset($GeneralSettings['subscribe_feature_anghami_sidebar']) ? $GeneralSettings['subscribe_feature_anghami_sidebar'] : false );
|
273 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
274 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
275 |
} else {
|
335 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
336 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
337 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
338 |
+
$Settings['subscribe_feature_anghami'] = (isset($GeneralSettings['subscribe_feature_anghami']) ? $GeneralSettings['subscribe_feature_anghami'] : false );
|
339 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
340 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
341 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
352 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
353 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
354 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
355 |
+
$Settings['subscribe_feature_anghami_shortcode'] = (isset($GeneralSettings['subscribe_feature_anghami_shortcode']) ? $GeneralSettings['subscribe_feature_anghami_shortcode'] : true );
|
356 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
357 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
358 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
369 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
370 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
371 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
372 |
+
$Settings['subscribe_feature_anghami_sidebar'] = (isset($GeneralSettings['subscribe_feature_anghami_sidebar']) ? $GeneralSettings['subscribe_feature_anghami_sidebar'] : false );
|
373 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
374 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
375 |
} else {
|
419 |
$Settings['subscribe_feature_jiosaavn'] = (isset($GeneralSettings['subscribe_feature_jiosaavn']) ? $GeneralSettings['subscribe_feature_jiosaavn'] : false );
|
420 |
$Settings['subscribe_feature_podchaser'] = (isset($GeneralSettings['subscribe_feature_podchaser']) ? $GeneralSettings['subscribe_feature_podchaser'] : false );
|
421 |
$Settings['subscribe_feature_gaana'] = (isset($GeneralSettings['subscribe_feature_gaana']) ? $GeneralSettings['subscribe_feature_gaana'] : false );
|
422 |
+
$Settings['subscribe_feature_anghami'] = (isset($GeneralSettings['subscribe_feature_anghami']) ? $GeneralSettings['subscribe_feature_anghami'] : false );
|
423 |
$Settings['subscribe_feature_email_shortcode'] = (isset($GeneralSettings['subscribe_feature_email_shortcode']) ? $GeneralSettings['subscribe_feature_email_shortcode'] : true );
|
424 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($GeneralSettings['subscribe_feature_apple_shortcode']) ? $GeneralSettings['subscribe_feature_apple_shortcode'] : true );
|
425 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($GeneralSettings['subscribe_feature_gp_shortcode']) ? $GeneralSettings['subscribe_feature_gp_shortcode'] : true );
|
436 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_shortcode']) ? $GeneralSettings['subscribe_feature_jiosaavn_shortcode'] : true );
|
437 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($GeneralSettings['subscribe_feature_podchaser_shortcode']) ? $GeneralSettings['subscribe_feature_podchaser_shortcode'] : true );
|
438 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($GeneralSettings['subscribe_feature_gaana_shortcode']) ? $GeneralSettings['subscribe_feature_gaana_shortcode'] : true );
|
439 |
+
$Settings['subscribe_feature_anghami_shortcode'] = (isset($GeneralSettings['subscribe_feature_anghami_shortcode']) ? $GeneralSettings['subscribe_feature_anghami_shortcode'] : true );
|
440 |
$Settings['subscribe_feature_email_sidebar'] = (isset($GeneralSettings['subscribe_feature_email_sidebar']) ? $GeneralSettings['subscribe_feature_email_sidebar'] : true );
|
441 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($GeneralSettings['subscribe_feature_apple_sidebar']) ? $GeneralSettings['subscribe_feature_apple_sidebar'] : true );
|
442 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($GeneralSettings['subscribe_feature_gp_sidebar']) ? $GeneralSettings['subscribe_feature_gp_sidebar'] : true );
|
453 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($GeneralSettings['subscribe_feature_jiosaavn_sidebar']) ? $GeneralSettings['subscribe_feature_jiosaavn_sidebar'] : false );
|
454 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($GeneralSettings['subscribe_feature_podchaser_sidebar']) ? $GeneralSettings['subscribe_feature_podchaser_sidebar'] : false );
|
455 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($GeneralSettings['subscribe_feature_gaana_sidebar']) ? $GeneralSettings['subscribe_feature_gaana_sidebar'] : false );
|
456 |
+
$Settings['subscribe_feature_anghami_sidebar'] = (isset($GeneralSettings['subscribe_feature_anghami_sidebar']) ? $GeneralSettings['subscribe_feature_anghami_sidebar'] : false );
|
457 |
if (isset($GeneralSettings['subscribe_no_important_styling'])) {
|
458 |
$Settings['subscribe_no_important_styling'] = $GeneralSettings['subscribe_no_important_styling'];
|
459 |
} else {
|
477 |
$Settings['subscribe_feature_jiosaavn'] = false;
|
478 |
$Settings['subscribe_feature_podchaser'] = false;
|
479 |
$Settings['subscribe_feature_gaana'] = false;
|
480 |
+
$Settings['subscribe_feature_anghami'] = false;
|
481 |
$Settings['subscribe_feature_email_shortcode'] = false;
|
482 |
$Settings['subscribe_feature_apple_shortcode'] = false;
|
483 |
$Settings['subscribe_feature_gp_shortcode'] = false;
|
494 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = false;
|
495 |
$Settings['subscribe_feature_podchaser_shortcode'] = false;
|
496 |
$Settings['subscribe_feature_gaana_shortcode'] = false;
|
497 |
+
$Settings['subscribe_feature_anghami_shortcode'] = false;
|
498 |
$Settings['subscribe_feature_email_sidebar'] = false;
|
499 |
$Settings['subscribe_feature_gp_sidebar'] = false;
|
500 |
$Settings['subscribe_feature_apple_sidebar'] = false;
|
511 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = false;
|
512 |
$Settings['subscribe_feature_podchaser_sidebar'] = false;
|
513 |
$Settings['subscribe_feature_gaana_sidebar'] = false;
|
514 |
+
$Settings['subscribe_feature_anghami_sidebar'] = false;
|
515 |
}
|
516 |
|
517 |
return $Settings;
|
644 |
$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;
|
645 |
}
|
646 |
|
647 |
+
if( !empty($SubscribeSettings['subscribe_feature_anghami']) && !empty($SubscribeSettings['anghami_url']) )
|
648 |
+
{
|
649 |
+
$SubscribeSettings['anghami_url'] = trim($SubscribeSettings['anghami_url']);
|
650 |
+
$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;
|
651 |
+
}
|
652 |
+
|
653 |
+
$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;
|
654 |
+
|
655 |
+
if( !empty($SubscribeSettings['subscribe_page_url']) )
|
656 |
{
|
657 |
$label = (empty($SubscribeSettings['subscribe_page_link_text'])?__('More', 'powerpress'):$SubscribeSettings['subscribe_page_link_text']);
|
658 |
$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;
|
1024 |
$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>';
|
1025 |
}
|
1026 |
|
1027 |
+
if( !empty($settings['subscribe_feature_anghami_shortcode']) && !empty($settings['anghami_url']) ) {
|
1028 |
+
|
1029 |
+
$html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-sub-btn'.$settings['subscribe_widget_shape'].' pp-sub-deezer" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-sub-ic"></span>'. esc_html( __('Anghami', 'powerpress') ) .'</a>';
|
1030 |
+
}
|
1031 |
+
|
1032 |
//$html .= var_dump($settings, true);
|
1033 |
|
1034 |
|
1173 |
$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>';
|
1174 |
}
|
1175 |
|
1176 |
+
if( !empty($settings['subscribe_feature_anghami_sidebar']) && !empty($settings['anghami_url']) ) {
|
1177 |
+
$settings['anghami_url'] = trim($settings['anghami_url']);
|
1178 |
+
$html .= '<a href="'. esc_url( $settings['anghami_url'] ) .'" class="pp-ssb-btn'.$settings['modern_style'].' '.$settings['modern_direction'].' pp-ssb-deezer" title="'. esc_attr( __('Subscribe on Anghami', 'powerpress') ) .'"><span class="pp-ssb-ic"></span><span class="pp-ssb-text">'. esc_html( __('Anghami', 'powerpress') ) .'</span></a>';
|
1179 |
+
}
|
1180 |
+
|
1181 |
$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>';
|
1182 |
|
1183 |
|
powerpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
-
Version: 8.7.
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
@@ -36,7 +36,7 @@ if( !function_exists('add_action') ) {
|
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
-
define('POWERPRESS_VERSION', '8.7.
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
+
Version: 8.7.5
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
|
39 |
+
define('POWERPRESS_VERSION', '8.7.5' );
|
40 |
|
41 |
// Translation support:
|
42 |
if ( !defined('POWERPRESS_ABSPATH') )
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: podcasting, podcast, podcaster, powerpress, itunes, apple, apple podcasts,
|
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 8.7.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -186,6 +186,10 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
189 |
= 8.7.4 =
|
190 |
* Released on 10/04/2021
|
191 |
* Fixed a missing CSS issue in the onboarding section
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 8.7.5
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 8.7.5 =
|
190 |
+
* Released on 10/25/2021
|
191 |
+
* Solved a bug that occurred when detecting a filetype on media with a query string
|
192 |
+
|
193 |
= 8.7.4 =
|
194 |
* Released on 10/04/2021
|
195 |
* Fixed a missing CSS issue in the onboarding section
|
shortcodes/views/program-result.php
CHANGED
@@ -116,6 +116,8 @@
|
|
116 |
'amazon_url'=>esc_url($props['subscribe_amazon_music']), //For future use
|
117 |
'subscribe_feature_pandora_sidebar'=>false,
|
118 |
'pandora_url'=>esc_url($props['subscribe_pandora']), //For future use
|
|
|
|
|
119 |
'subscribe_feature_rss_sidebar'=>true,
|
120 |
'subscribe_page_url'=>esc_url($props['subscribe_html'])
|
121 |
]) ?>
|
116 |
'amazon_url'=>esc_url($props['subscribe_amazon_music']), //For future use
|
117 |
'subscribe_feature_pandora_sidebar'=>false,
|
118 |
'pandora_url'=>esc_url($props['subscribe_pandora']), //For future use
|
119 |
+
'subscribe_feature_anghami_sidebar'=>false,
|
120 |
+
'anghami_url'=>esc_url($props['subscribe_anghami']), //For future use
|
121 |
'subscribe_feature_rss_sidebar'=>true,
|
122 |
'subscribe_page_url'=>esc_url($props['subscribe_html'])
|
123 |
]) ?>
|
views/settings_tab_destinations.php
CHANGED
@@ -58,6 +58,8 @@
|
|
58 |
$FeedSettings['podchaser_url'] = '';
|
59 |
if(empty($FeedSettings['gaana_url']) )
|
60 |
$FeedSettings['gaana_url'] = '';
|
|
|
|
|
61 |
|
62 |
$Settings['subscribe_feature_email'] = (isset($General['subscribe_feature_email']) ? $General['subscribe_feature_email'] : false );
|
63 |
$Settings['subscribe_feature_apple'] = (isset($General['subscribe_feature_apple']) ? $General['subscribe_feature_apple'] : false );
|
@@ -75,6 +77,7 @@
|
|
75 |
$Settings['subscribe_feature_jiosaavn'] = (isset($General['subscribe_feature_jiosaavn']) ? $General['subscribe_feature_jiosaavn'] : false );
|
76 |
$Settings['subscribe_feature_podchaser'] = (isset($General['subscribe_feature_podchaser']) ? $General['subscribe_feature_podchaser'] : false );
|
77 |
$Settings['subscribe_feature_gaana'] = (isset($General['subscribe_feature_gaana']) ? $General['subscribe_feature_gaana'] : false );
|
|
|
78 |
$Settings['subscribe_feature_email_shortcode'] = (isset($General['subscribe_feature_email_shortcode']) ? $General['subscribe_feature_email_shortcode'] : true );
|
79 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($General['subscribe_feature_apple_shortcode']) ? $General['subscribe_feature_apple_shortcode'] : true );
|
80 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($General['subscribe_feature_gp_shortcode']) ? $General['subscribe_feature_gp_shortcode'] : true );
|
@@ -91,6 +94,7 @@
|
|
91 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($General['subscribe_feature_jiosaavn_shortcode']) ? $General['subscribe_feature_jiosaavn_shortcode'] : false );
|
92 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($General['subscribe_feature_podchaser_shortcode']) ? $General['subscribe_feature_podchaser_shortcode'] : false );
|
93 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($General['subscribe_feature_gaana_shortcode']) ? $General['subscribe_feature_gaana_shortcode'] : false );
|
|
|
94 |
$Settings['subscribe_feature_email_sidebar'] = (isset($General['subscribe_feature_email_sidebar']) ? $General['subscribe_feature_email_sidebar'] : true );
|
95 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($General['subscribe_feature_apple_sidebar']) ? $General['subscribe_feature_apple_sidebar'] : true );
|
96 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($General['subscribe_feature_gp_sidebar']) ? $General['subscribe_feature_gp_sidebar'] : true );
|
@@ -107,6 +111,7 @@
|
|
107 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($General['subscribe_feature_jiosaavn_sidebar']) ? $General['subscribe_feature_jiosaavn_sidebar'] : false );
|
108 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($General['subscribe_feature_podchaser_sidebar']) ? $General['subscribe_feature_podchaser_sidebar'] : false );
|
109 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($General['subscribe_feature_gaana_sidebar']) ? $General['subscribe_feature_gaana_sidebar'] : false );
|
|
|
110 |
|
111 |
|
112 |
function subscribeSetting($directory, $feed_url, $listing_url) {
|
@@ -304,6 +309,15 @@ function subscribeSetting($directory, $feed_url, $listing_url) {
|
|
304 |
<input class="pp-settings-text-input-less-wide" type="text" id="gaana_url<?php echo $id_tail; ?>" name="Feed[gaana_url]" placeholder="<?php echo __('Gaana Listing URL', 'powerpress'); ?>" value="<?php echo esc_attr($listing_url); ?>" maxlength="255" />
|
305 |
<label for="gaana_url" class="pp-settings-label-under"><?php echo sprintf(__('e.g. %s', 'powerpress'), 'https://gaana.com/season/xxxxxxxx'); ?></label>
|
306 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
<?php
|
308 |
break;
|
309 |
case 'default':
|
@@ -333,6 +347,7 @@ function subscribeSetting($directory, $feed_url, $listing_url) {
|
|
333 |
<button class="pp-sidenav-tablinks" id="destinations-email-tab" onclick="sideNav(event, 'destinations-email')"><span id="email-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('Email', 'powerpress')); ?></span></button>
|
334 |
<button class="pp-sidenav-tablinks" id="destinations-tunein-tab" onclick="sideNav(event, 'destinations-tunein')"><span id="tunein-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('TuneIn', 'powerpress')); ?></span></button>
|
335 |
<button class="pp-sidenav-tablinks" id="destinations-deezer-tab" onclick="sideNav(event, 'destinations-deezer')"><span id="deezer-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('Deezer', 'powerpress')); ?></span></button>
|
|
|
336 |
<?php
|
337 |
powerpressadmin_edit_blubrry_services($General);
|
338 |
?>
|
@@ -521,4 +536,14 @@ function subscribeSetting($directory, $feed_url, $listing_url) {
|
|
521 |
</div>
|
522 |
<?php powerpress_settings_tab_footer(); ?>
|
523 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
<br />
|
58 |
$FeedSettings['podchaser_url'] = '';
|
59 |
if(empty($FeedSettings['gaana_url']) )
|
60 |
$FeedSettings['gaana_url'] = '';
|
61 |
+
if(empty($FeedSettings['anghami_url']) )
|
62 |
+
$FeedSettings['anghami_url'] = '';
|
63 |
|
64 |
$Settings['subscribe_feature_email'] = (isset($General['subscribe_feature_email']) ? $General['subscribe_feature_email'] : false );
|
65 |
$Settings['subscribe_feature_apple'] = (isset($General['subscribe_feature_apple']) ? $General['subscribe_feature_apple'] : false );
|
77 |
$Settings['subscribe_feature_jiosaavn'] = (isset($General['subscribe_feature_jiosaavn']) ? $General['subscribe_feature_jiosaavn'] : false );
|
78 |
$Settings['subscribe_feature_podchaser'] = (isset($General['subscribe_feature_podchaser']) ? $General['subscribe_feature_podchaser'] : false );
|
79 |
$Settings['subscribe_feature_gaana'] = (isset($General['subscribe_feature_gaana']) ? $General['subscribe_feature_gaana'] : false );
|
80 |
+
$Settings['subscribe_feature_anghami'] = (isset($General['subscribe_feature_anghami']) ? $General['subscribe_feature_anghami'] : false );
|
81 |
$Settings['subscribe_feature_email_shortcode'] = (isset($General['subscribe_feature_email_shortcode']) ? $General['subscribe_feature_email_shortcode'] : true );
|
82 |
$Settings['subscribe_feature_apple_shortcode'] = (isset($General['subscribe_feature_apple_shortcode']) ? $General['subscribe_feature_apple_shortcode'] : true );
|
83 |
$Settings['subscribe_feature_gp_shortcode'] = (isset($General['subscribe_feature_gp_shortcode']) ? $General['subscribe_feature_gp_shortcode'] : true );
|
94 |
$Settings['subscribe_feature_jiosaavn_shortcode'] = (isset($General['subscribe_feature_jiosaavn_shortcode']) ? $General['subscribe_feature_jiosaavn_shortcode'] : false );
|
95 |
$Settings['subscribe_feature_podchaser_shortcode'] = (isset($General['subscribe_feature_podchaser_shortcode']) ? $General['subscribe_feature_podchaser_shortcode'] : false );
|
96 |
$Settings['subscribe_feature_gaana_shortcode'] = (isset($General['subscribe_feature_gaana_shortcode']) ? $General['subscribe_feature_gaana_shortcode'] : false );
|
97 |
+
$Settings['subscribe_feature_anghami_shortcode'] = (isset($General['subscribe_feature_anghami_shortcode']) ? $General['subscribe_feature_anghami_shortcode'] : false );
|
98 |
$Settings['subscribe_feature_email_sidebar'] = (isset($General['subscribe_feature_email_sidebar']) ? $General['subscribe_feature_email_sidebar'] : true );
|
99 |
$Settings['subscribe_feature_apple_sidebar'] = (isset($General['subscribe_feature_apple_sidebar']) ? $General['subscribe_feature_apple_sidebar'] : true );
|
100 |
$Settings['subscribe_feature_gp_sidebar'] = (isset($General['subscribe_feature_gp_sidebar']) ? $General['subscribe_feature_gp_sidebar'] : true );
|
111 |
$Settings['subscribe_feature_jiosaavn_sidebar'] = (isset($General['subscribe_feature_jiosaavn_sidebar']) ? $General['subscribe_feature_jiosaavn_sidebar'] : false );
|
112 |
$Settings['subscribe_feature_podchaser_sidebar'] = (isset($General['subscribe_feature_podchaser_sidebar']) ? $General['subscribe_feature_podchaser_sidebar'] : false );
|
113 |
$Settings['subscribe_feature_gaana_sidebar'] = (isset($General['subscribe_feature_gaana_sidebar']) ? $General['subscribe_feature_gaana_sidebar'] : false );
|
114 |
+
$Settings['subscribe_feature_anghami_sidebar'] = (isset($General['subscribe_feature_anghami_sidebar']) ? $General['subscribe_feature_anghami_sidebar'] : false );
|
115 |
|
116 |
|
117 |
function subscribeSetting($directory, $feed_url, $listing_url) {
|
309 |
<input class="pp-settings-text-input-less-wide" type="text" id="gaana_url<?php echo $id_tail; ?>" name="Feed[gaana_url]" placeholder="<?php echo __('Gaana Listing URL', 'powerpress'); ?>" value="<?php echo esc_attr($listing_url); ?>" maxlength="255" />
|
310 |
<label for="gaana_url" class="pp-settings-label-under"><?php echo sprintf(__('e.g. %s', 'powerpress'), 'https://gaana.com/season/xxxxxxxx'); ?></label>
|
311 |
|
312 |
+
<?php
|
313 |
+
break;
|
314 |
+
case 'anghami': ?>
|
315 |
+
|
316 |
+
<h2 class="pp-heading"><span id="anghami-icon" class="destinations-side-icon"></span><span class="directory-summary-head"><?php echo __('Anghami', 'powerpress'); ?></span></h2>
|
317 |
+
<p class="pp-settings-text"><b><a href="https://blubrry.com/manual/podcast-promotion/submit-podcast-to-anghami/?podcast-feed=<?php echo urlencode($feed_url); ?>" target="_blank"><?php echo __('How to submit a podcast to Anghami', 'powerpress'); ?></a></b></p>
|
318 |
+
<input class="pp-settings-text-input-less-wide" type="text" id="anghami_url<?php echo $id_tail; ?>" name="Feed[anghami_url]" placeholder="<?php echo __('Anghami Listing URL', 'powerpress'); ?>" value="<?php echo esc_attr($listing_url); ?>" maxlength="255" />
|
319 |
+
<label for="anghami_url" class="pp-settings-label-under"><?php echo sprintf(__('e.g. %s', 'powerpress'), 'https://www.anghami.com/artist/example'); ?></label>
|
320 |
+
|
321 |
<?php
|
322 |
break;
|
323 |
case 'default':
|
347 |
<button class="pp-sidenav-tablinks" id="destinations-email-tab" onclick="sideNav(event, 'destinations-email')"><span id="email-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('Email', 'powerpress')); ?></span></button>
|
348 |
<button class="pp-sidenav-tablinks" id="destinations-tunein-tab" onclick="sideNav(event, 'destinations-tunein')"><span id="tunein-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('TuneIn', 'powerpress')); ?></span></button>
|
349 |
<button class="pp-sidenav-tablinks" id="destinations-deezer-tab" onclick="sideNav(event, 'destinations-deezer')"><span id="deezer-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('Deezer', 'powerpress')); ?></span></button>
|
350 |
+
<!--waiting on icon for this destination <button class="pp-sidenav-tablinks" id="destinations-anghami-tab" onclick="sideNav(event, 'destinations-anghami')"><span id="deezer-icon-side" class="destinations-side-icon"></span><span class="destination-side-text"><?php echo htmlspecialchars(__('Anghami', 'powerpress')); ?></span></button>-->
|
351 |
<?php
|
352 |
powerpressadmin_edit_blubrry_services($General);
|
353 |
?>
|
536 |
</div>
|
537 |
<?php powerpress_settings_tab_footer(); ?>
|
538 |
</div>
|
539 |
+
|
540 |
+
<div id="destinations-anghami" class="pp-sidenav-tab">
|
541 |
+
<?php subscribeSetting('anghami', $feed_url, $FeedSettings['anghami_url']); ?>
|
542 |
+
<div class="pp-show-subscribe">
|
543 |
+
<p class="pp-settings-text-smaller-margin"><input type="hidden" name="General[subscribe_feature_anghami_sidebar]" value="0" /><input class="pp-settings-checkbox" type="checkbox" id="subscribe_feature_anghami_sidebar" name="General[subscribe_feature_anghami_sidebar]" value="1" <?php if( !empty($Settings['subscribe_feature_anghami_sidebar']) ) echo 'checked '; ?>/> <label for="subscribe_feature_anghami_sidebar"><?php echo __('Show link in subscribe sidebar', 'powerpress'); ?></label></p>
|
544 |
+
<p class="pp-settings-text-smaller-margin"><input type="hidden" name="General[subscribe_feature_anghami_shortcode]" value="0" /><input class="pp-settings-checkbox" type="checkbox" id="subscribe_feature_anghami_shortcode" name="General[subscribe_feature_anghami_shortcode]" value="1" <?php if( !empty($Settings['subscribe_feature_anghami_shortcode']) ) echo 'checked '; ?>/> <label for="subscribe_feature_anghami_shortcode"><?php echo __('Show link on subscribe page', 'powerpress'); ?></label></p>
|
545 |
+
<p class="pp-settings-text-smaller-margin"><input type="hidden" name="General[subscribe_feature_anghami]" value="0" /><input class="pp-settings-checkbox" type="checkbox" id="subscribe_feature_anghami" name="General[subscribe_feature_anghami]" value="1" <?php if( !empty($Settings['subscribe_feature_anghami']) ) echo 'checked '; ?>/> <label for="subscribe_feature_anghami"><?php echo __('Show link under media player', 'powerpress'); ?></label></p>
|
546 |
+
</div>
|
547 |
+
<?php powerpress_settings_tab_footer(); ?>
|
548 |
+
</div>
|
549 |
<br />
|