|
@@ -7,20 +7,20 @@ discard block |
|
|
block discarded – undo |
|
7
|
7
|
*/ |
|
8
|
8
|
|
|
9
|
9
|
// Exit if accessed directly. |
|
10
|
|
-if ( ! defined( 'ABSPATH' ) ) { |
|
|
10
|
+if ( ! defined ( 'ABSPATH' ) ) { |
|
11
|
11
|
exit; |
|
12
|
12
|
} |
|
13
|
13
|
|
|
14
|
14
|
global $ss_podcasting, $wp_query; |
|
15
|
15
|
|
|
16
|
16
|
// Hide all errors |
|
17
|
|
-error_reporting( 0 ); |
|
|
17
|
+error_reporting ( 0 ); |
|
18
|
18
|
|
|
19
|
19
|
// Allow feed access by default |
|
20
|
20
|
$give_access = true; |
|
21
|
21
|
|
|
22
|
22
|
// Check if feed is password protected |
|
23
|
|
-$protection = get_option( 'ss_podcasting_protect', '' ); |
|
|
23
|
+$protection = get_option ( 'ss_podcasting_protect', '' ); |
|
24
|
24
|
|
|
25
|
25
|
// Handle feed protection if required |
|
26
|
26
|
if ( $protection && $protection == 'on' ) { |
|
@@ -28,14 +28,14 @@ discard block |
|
|
block discarded – undo |
|
28
|
28
|
$give_access = false; |
|
29
|
29
|
|
|
30
|
30
|
// Request password and give access if correct |
|
31
|
|
- if ( ! isset( $_SERVER['PHP_AUTH_USER'] ) && ! isset( $_SERVER['PHP_AUTH_PW'] ) ) { |
|
|
31
|
+ if ( ! isset( $_SERVER[ 'PHP_AUTH_USER' ] ) && ! isset( $_SERVER[ 'PHP_AUTH_PW' ] ) ) { |
|
32
|
32
|
$give_access = false; |
|
33
|
33
|
} else { |
|
34
|
|
- $username = get_option( 'ss_podcasting_protection_username' ); |
|
35
|
|
- $password = get_option( 'ss_podcasting_protection_password' ); |
|
|
34
|
+ $username = get_option ( 'ss_podcasting_protection_username' ); |
|
|
35
|
+ $password = get_option ( 'ss_podcasting_protection_password' ); |
|
36
|
36
|
|
|
37
|
|
- if ( $_SERVER['PHP_AUTH_USER'] == $username ) { |
|
38
|
|
- if ( md5( $_SERVER['PHP_AUTH_PW'] ) == $password ) { |
|
|
37
|
+ if ( $_SERVER[ 'PHP_AUTH_USER' ] == $username ) { |
|
|
38
|
+ if ( md5 ( $_SERVER[ 'PHP_AUTH_PW' ] ) == $password ) { |
|
39
|
39
|
$give_access = true; |
|
40
|
40
|
} |
|
41
|
41
|
} |
|
@@ -44,168 +44,168 @@ discard block |
|
|
block discarded – undo |
|
44
|
44
|
|
|
45
|
45
|
// Get specified podcast series |
|
46
|
46
|
$podcast_series = ''; |
|
47
|
|
-if ( isset( $_GET['podcast_series'] ) && $_GET['podcast_series'] ) { |
|
48
|
|
- $podcast_series = esc_attr( $_GET['podcast_series'] ); |
|
49
|
|
-} elseif ( isset( $wp_query->query_vars['podcast_series'] ) && $wp_query->query_vars['podcast_series'] ) { |
|
50
|
|
- $podcast_series = esc_attr( $wp_query->query_vars['podcast_series'] ); |
|
|
47
|
+if ( isset( $_GET[ 'podcast_series' ] ) && $_GET[ 'podcast_series' ] ) { |
|
|
48
|
+ $podcast_series = esc_attr ( $_GET[ 'podcast_series' ] ); |
|
|
49
|
+} elseif ( isset( $wp_query->query_vars[ 'podcast_series' ] ) && $wp_query->query_vars[ 'podcast_series' ] ) { |
|
|
50
|
+ $podcast_series = esc_attr ( $wp_query->query_vars[ 'podcast_series' ] ); |
|
51
|
51
|
} |
|
52
|
52
|
|
|
53
|
53
|
// Get series ID |
|
54
|
54
|
$series_id = 0; |
|
55
|
55
|
if ( $podcast_series ) { |
|
56
|
|
- $series = get_term_by( 'slug', $podcast_series, 'series' ); |
|
|
56
|
+ $series = get_term_by ( 'slug', $podcast_series, 'series' ); |
|
57
|
57
|
$series_id = $series->term_id; |
|
58
|
58
|
} |
|
59
|
59
|
|
|
60
|
60
|
// Allow dynamic access control |
|
61
|
|
-$give_access = apply_filters( 'ssp_feed_access', $give_access, $series_id ); |
|
|
61
|
+$give_access = apply_filters ( 'ssp_feed_access', $give_access, $series_id ); |
|
62
|
62
|
|
|
63
|
63
|
// Send 401 status and display no access message if access has been denied |
|
64
|
64
|
if ( ! $give_access ) { |
|
65
|
65
|
|
|
66
|
66
|
// Set default message |
|
67
|
|
- $message = __( 'You are not permitted to view this podcast feed.' , 'seriously-simple-podcasting' ); |
|
|
67
|
+ $message = __ ( 'You are not permitted to view this podcast feed.', 'seriously-simple-podcasting' ); |
|
68
|
68
|
|
|
69
|
69
|
// Check message option from plugin settings |
|
70
|
|
- $message_option = get_option('ss_podcasting_protection_no_access_message'); |
|
|
70
|
+ $message_option = get_option ( 'ss_podcasting_protection_no_access_message' ); |
|
71
|
71
|
if ( $message_option ) { |
|
72
|
72
|
$message = $message_option; |
|
73
|
73
|
} |
|
74
|
74
|
|
|
75
|
75
|
// Allow message to be filtered dynamically |
|
76
|
|
- $message = apply_filters( 'ssp_feed_no_access_message', $message ); |
|
|
76
|
+ $message = apply_filters ( 'ssp_feed_no_access_message', $message ); |
|
77
|
77
|
|
|
78
|
|
- $no_access_message = '<div style="text-align:center;font-family:sans-serif;border:1px solid red;background:pink;padding:20px 0;color:red;">' . $message . '</div>'; |
|
|
78
|
+ $no_access_message = '<div style="text-align:center;font-family:sans-serif;border:1px solid red;background:pink;padding:20px 0;color:red;">'.$message.'</div>'; |
|
79
|
79
|
|
|
80
|
|
- header('WWW-Authenticate: Basic realm="Podcast Feed"'); |
|
81
|
|
- header('HTTP/1.0 401 Unauthorized'); |
|
|
80
|
+ header ( 'WWW-Authenticate: Basic realm="Podcast Feed"' ); |
|
|
81
|
+ header ( 'HTTP/1.0 401 Unauthorized' ); |
|
82
|
82
|
|
|
83
|
83
|
die( $no_access_message ); |
|
84
|
84
|
} |
|
85
|
85
|
|
|
86
|
86
|
// If redirect is on, get new feed URL and redirect if setting was changed more than 48 hours ago |
|
87
|
|
-$redirect = get_option( 'ss_podcasting_redirect_feed' ); |
|
|
87
|
+$redirect = get_option ( 'ss_podcasting_redirect_feed' ); |
|
88
|
88
|
$new_feed_url = false; |
|
89
|
89
|
if ( $redirect && $redirect == 'on' ) { |
|
90
|
90
|
|
|
91
|
|
- $new_feed_url = get_option( 'ss_podcasting_new_feed_url' ); |
|
92
|
|
- $update_date = get_option( 'ss_podcasting_redirect_feed_date' ); |
|
|
91
|
+ $new_feed_url = get_option ( 'ss_podcasting_new_feed_url' ); |
|
|
92
|
+ $update_date = get_option ( 'ss_podcasting_redirect_feed_date' ); |
|
93
|
93
|
|
|
94
|
94
|
if ( $new_feed_url && $update_date ) { |
|
95
|
|
- $redirect_date = strtotime( '+2 days' , $update_date ); |
|
96
|
|
- $current_date = time(); |
|
|
95
|
+ $redirect_date = strtotime ( '+2 days', $update_date ); |
|
|
96
|
+ $current_date = time (); |
|
97
|
97
|
|
|
98
|
98
|
// Redirect with 301 if it is more than 2 days since redirect was saved |
|
99
|
99
|
if ( $current_date > $redirect_date ) { |
|
100
|
100
|
header ( 'HTTP/1.1 301 Moved Permanently' ); |
|
101
|
|
- header ( 'Location: ' . $new_feed_url ); |
|
|
101
|
+ header ( 'Location: '.$new_feed_url ); |
|
102
|
102
|
exit; |
|
103
|
103
|
} |
|
104
|
104
|
} |
|
105
|
105
|
} |
|
106
|
106
|
|
|
107
|
107
|
// If this is a series-sepcific feed, then check if we need to redirect |
|
108
|
|
-if( $series_id ) { |
|
109
|
|
- $redirect = get_option( 'ss_podcasting_redirect_feed_' . $series_id ); |
|
|
108
|
+if ( $series_id ) { |
|
|
109
|
+ $redirect = get_option ( 'ss_podcasting_redirect_feed_'.$series_id ); |
|
110
|
110
|
$new_feed_url = false; |
|
111
|
111
|
if ( $redirect && $redirect == 'on' ) { |
|
112
|
|
- $new_feed_url = get_option( 'ss_podcasting_new_feed_url_' . $series_id ); |
|
|
112
|
+ $new_feed_url = get_option ( 'ss_podcasting_new_feed_url_'.$series_id ); |
|
113
|
113
|
if ( $new_feed_url ) { |
|
114
|
114
|
header ( 'HTTP/1.1 301 Moved Permanently' ); |
|
115
|
|
- header ( 'Location: ' . $new_feed_url ); |
|
|
115
|
+ header ( 'Location: '.$new_feed_url ); |
|
116
|
116
|
exit; |
|
117
|
117
|
} |
|
118
|
118
|
} |
|
119
|
119
|
} |
|
120
|
120
|
|
|
121
|
121
|
// Podcast title |
|
122
|
|
-$title = get_option( 'ss_podcasting_data_title', get_bloginfo( 'name' ) ); |
|
|
122
|
+$title = get_option ( 'ss_podcasting_data_title', get_bloginfo ( 'name' ) ); |
|
123
|
123
|
if ( $podcast_series ) { |
|
124
|
|
- $series_title = get_option( 'ss_podcasting_data_title_' . $series_id, '' ); |
|
|
124
|
+ $series_title = get_option ( 'ss_podcasting_data_title_'.$series_id, '' ); |
|
125
|
125
|
if ( $series_title ) { |
|
126
|
126
|
$title = $series_title; |
|
127
|
127
|
} |
|
128
|
128
|
} |
|
129
|
|
-$title = apply_filters( 'ssp_feed_title', $title, $series_id ); |
|
|
129
|
+$title = apply_filters ( 'ssp_feed_title', $title, $series_id ); |
|
130
|
130
|
|
|
131
|
131
|
// Podcast description |
|
132
|
|
-$description = get_option( 'ss_podcasting_data_description', get_bloginfo( 'description' ) ); |
|
|
132
|
+$description = get_option ( 'ss_podcasting_data_description', get_bloginfo ( 'description' ) ); |
|
133
|
133
|
if ( $podcast_series ) { |
|
134
|
|
- $series_description = get_option( 'ss_podcasting_data_description_' . $series_id, '' ); |
|
|
134
|
+ $series_description = get_option ( 'ss_podcasting_data_description_'.$series_id, '' ); |
|
135
|
135
|
if ( $series_description ) { |
|
136
|
136
|
$description = $series_description; |
|
137
|
137
|
} |
|
138
|
138
|
} |
|
139
|
|
-$podcast_description = mb_substr( strip_tags( $description ), 0, 3999 ); |
|
140
|
|
-$podcast_description = apply_filters( 'ssp_feed_description', $podcast_description, $series_id ); |
|
|
139
|
+$podcast_description = mb_substr ( strip_tags ( $description ), 0, 3999 ); |
|
|
140
|
+$podcast_description = apply_filters ( 'ssp_feed_description', $podcast_description, $series_id ); |
|
141
|
141
|
|
|
142
|
142
|
// Podcast language |
|
143
|
|
-$language = get_option( 'ss_podcasting_data_language', get_bloginfo( 'language' ) ); |
|
|
143
|
+$language = get_option ( 'ss_podcasting_data_language', get_bloginfo ( 'language' ) ); |
|
144
|
144
|
if ( $podcast_series ) { |
|
145
|
|
- $series_language = get_option( 'ss_podcasting_data_language_' . $series_id, '' ); |
|
|
145
|
+ $series_language = get_option ( 'ss_podcasting_data_language_'.$series_id, '' ); |
|
146
|
146
|
if ( $series_language ) { |
|
147
|
147
|
$language = $series_language; |
|
148
|
148
|
} |
|
149
|
149
|
} |
|
150
|
|
-$language = apply_filters( 'ssp_feed_language', $language, $series_id ); |
|
|
150
|
+$language = apply_filters ( 'ssp_feed_language', $language, $series_id ); |
|
151
|
151
|
|
|
152
|
152
|
// Podcast copyright string |
|
153
|
|
-$copyright = get_option( 'ss_podcasting_data_copyright', '© ' . date( 'Y' ) . ' ' . get_bloginfo( 'name' ) ); |
|
|
153
|
+$copyright = get_option ( 'ss_podcasting_data_copyright', '© '.date ( 'Y' ).' '.get_bloginfo ( 'name' ) ); |
|
154
|
154
|
if ( $podcast_series ) { |
|
155
|
|
- $series_copyright = get_option( 'ss_podcasting_data_copyright_' . $series_id, '' ); |
|
|
155
|
+ $series_copyright = get_option ( 'ss_podcasting_data_copyright_'.$series_id, '' ); |
|
156
|
156
|
if ( $series_copyright ) { |
|
157
|
157
|
$copyright = $series_copyright; |
|
158
|
158
|
} |
|
159
|
159
|
} |
|
160
|
|
-$copyright = apply_filters( 'ssp_feed_copyright', $copyright, $series_id ); |
|
|
160
|
+$copyright = apply_filters ( 'ssp_feed_copyright', $copyright, $series_id ); |
|
161
|
161
|
|
|
162
|
162
|
// Podcast subtitle |
|
163
|
|
-$subtitle = get_option( 'ss_podcasting_data_subtitle', get_bloginfo( 'description' ) ); |
|
|
163
|
+$subtitle = get_option ( 'ss_podcasting_data_subtitle', get_bloginfo ( 'description' ) ); |
|
164
|
164
|
if ( $podcast_series ) { |
|
165
|
|
- $series_subtitle = get_option( 'ss_podcasting_data_subtitle_' . $series_id, '' ); |
|
|
165
|
+ $series_subtitle = get_option ( 'ss_podcasting_data_subtitle_'.$series_id, '' ); |
|
166
|
166
|
if ( $series_subtitle ) { |
|
167
|
167
|
$subtitle = $series_subtitle; |
|
168
|
168
|
} |
|
169
|
169
|
} |
|
170
|
|
-$subtitle = apply_filters( 'ssp_feed_subtitle', $subtitle, $series_id ); |
|
|
170
|
+$subtitle = apply_filters ( 'ssp_feed_subtitle', $subtitle, $series_id ); |
|
171
|
171
|
|
|
172
|
172
|
// Podcast author |
|
173
|
|
-$author = get_option( 'ss_podcasting_data_author', get_bloginfo( 'name' ) ); |
|
|
173
|
+$author = get_option ( 'ss_podcasting_data_author', get_bloginfo ( 'name' ) ); |
|
174
|
174
|
if ( $podcast_series ) { |
|
175
|
|
- $series_author = get_option( 'ss_podcasting_data_author_' . $series_id, '' ); |
|
|
175
|
+ $series_author = get_option ( 'ss_podcasting_data_author_'.$series_id, '' ); |
|
176
|
176
|
if ( $series_author ) { |
|
177
|
177
|
$author = $series_author; |
|
178
|
178
|
} |
|
179
|
179
|
} |
|
180
|
|
-$author = apply_filters( 'ssp_feed_author', $author, $series_id ); |
|
|
180
|
+$author = apply_filters ( 'ssp_feed_author', $author, $series_id ); |
|
181
|
181
|
|
|
182
|
182
|
// Podcast owner name |
|
183
|
|
-$owner_name = get_option( 'ss_podcasting_data_owner_name', get_bloginfo( 'name' ) ); |
|
|
183
|
+$owner_name = get_option ( 'ss_podcasting_data_owner_name', get_bloginfo ( 'name' ) ); |
|
184
|
184
|
if ( $podcast_series ) { |
|
185
|
|
- $series_owner_name = get_option( 'ss_podcasting_data_owner_name_' . $series_id, '' ); |
|
|
185
|
+ $series_owner_name = get_option ( 'ss_podcasting_data_owner_name_'.$series_id, '' ); |
|
186
|
186
|
if ( $series_owner_name ) { |
|
187
|
187
|
$owner_name = $series_owner_name; |
|
188
|
188
|
} |
|
189
|
189
|
} |
|
190
|
|
-$owner_name = apply_filters( 'ssp_feed_owner_name', $owner_name, $series_id ); |
|
|
190
|
+$owner_name = apply_filters ( 'ssp_feed_owner_name', $owner_name, $series_id ); |
|
191
|
191
|
|
|
192
|
192
|
// Podcast owner email address |
|
193
|
|
-$owner_email = get_option( 'ss_podcasting_data_owner_email', get_bloginfo( 'admin_email' ) ); |
|
|
193
|
+$owner_email = get_option ( 'ss_podcasting_data_owner_email', get_bloginfo ( 'admin_email' ) ); |
|
194
|
194
|
if ( $podcast_series ) { |
|
195
|
|
- $series_owner_email = get_option( 'ss_podcasting_data_owner_email_' . $series_id, '' ); |
|
|
195
|
+ $series_owner_email = get_option ( 'ss_podcasting_data_owner_email_'.$series_id, '' ); |
|
196
|
196
|
if ( $series_owner_email ) { |
|
197
|
197
|
$owner_email = $series_owner_email; |
|
198
|
198
|
} |
|
199
|
199
|
} |
|
200
|
|
-$owner_email = apply_filters( 'ssp_feed_owner_email', $owner_email, $series_id ); |
|
|
200
|
+$owner_email = apply_filters ( 'ssp_feed_owner_email', $owner_email, $series_id ); |
|
201
|
201
|
|
|
202
|
202
|
// Podcast explicit setting |
|
203
|
|
-$explicit_option = get_option( 'ss_podcasting_explicit', '' ); |
|
|
203
|
+$explicit_option = get_option ( 'ss_podcasting_explicit', '' ); |
|
204
|
204
|
if ( $podcast_series ) { |
|
205
|
|
- $series_explicit_option = get_option( 'ss_podcasting_explicit_' . $series_id, '' ); |
|
|
205
|
+ $series_explicit_option = get_option ( 'ss_podcasting_explicit_'.$series_id, '' ); |
|
206
|
206
|
$explicit_option = $series_explicit_option; |
|
207
|
207
|
} |
|
208
|
|
-$explicit_option = apply_filters( 'ssp_feed_explicit', $explicit_option, $series_id ); |
|
|
208
|
+$explicit_option = apply_filters ( 'ssp_feed_explicit', $explicit_option, $series_id ); |
|
209
|
209
|
if ( $explicit_option && 'on' == $explicit_option ) { |
|
210
|
210
|
$itunes_explicit = 'yes'; |
|
211
|
211
|
$googleplay_explicit = 'Yes'; |
|
@@ -215,12 +215,12 @@ discard block |
|
|
block discarded – undo |
|
215
|
215
|
} |
|
216
|
216
|
|
|
217
|
217
|
// Podcast complete setting |
|
218
|
|
-$complete_option = get_option( 'ss_podcasting_complete', '' ); |
|
|
218
|
+$complete_option = get_option ( 'ss_podcasting_complete', '' ); |
|
219
|
219
|
if ( $podcast_series ) { |
|
220
|
|
- $series_complete_option = get_option( 'ss_podcasting_complete_' . $series_id, '' ); |
|
|
220
|
+ $series_complete_option = get_option ( 'ss_podcasting_complete_'.$series_id, '' ); |
|
221
|
221
|
$complete_option = $series_complete_option; |
|
222
|
222
|
} |
|
223
|
|
-$complete_option = apply_filters( 'ssp_feed_complete', $complete_option, $series_id ); |
|
|
223
|
+$complete_option = apply_filters ( 'ssp_feed_complete', $complete_option, $series_id ); |
|
224
|
224
|
if ( $complete_option && 'on' == $complete_option ) { |
|
225
|
225
|
$complete = 'yes'; |
|
226
|
226
|
} else { |
|
@@ -228,32 +228,32 @@ discard block |
|
|
block discarded – undo |
|
228
|
228
|
} |
|
229
|
229
|
|
|
230
|
230
|
// Podcast cover image |
|
231
|
|
-$image = get_option( 'ss_podcasting_data_image', '' ); |
|
|
231
|
+$image = get_option ( 'ss_podcasting_data_image', '' ); |
|
232
|
232
|
if ( $podcast_series ) { |
|
233
|
|
- $series_image = get_option( 'ss_podcasting_data_image_' . $series_id, 'no-image' ); |
|
|
233
|
+ $series_image = get_option ( 'ss_podcasting_data_image_'.$series_id, 'no-image' ); |
|
234
|
234
|
if ( 'no-image' != $series_image ) { |
|
235
|
235
|
$image = $series_image; |
|
236
|
236
|
} |
|
237
|
237
|
} |
|
238
|
|
-$image = apply_filters( 'ssp_feed_image', $image, $series_id ); |
|
|
238
|
+$image = apply_filters ( 'ssp_feed_image', $image, $series_id ); |
|
239
|
239
|
|
|
240
|
240
|
// Podcast category and subcategory (all levels) - can be filtered with `ssp_feed_category_output` |
|
241
|
|
-$category1 = ssp_get_feed_category_output( 1, $series_id ); |
|
242
|
|
-$category2 = ssp_get_feed_category_output( 2, $series_id ); |
|
243
|
|
-$category3 = ssp_get_feed_category_output( 3, $series_id ); |
|
|
241
|
+$category1 = ssp_get_feed_category_output ( 1, $series_id ); |
|
|
242
|
+$category2 = ssp_get_feed_category_output ( 2, $series_id ); |
|
|
243
|
+$category3 = ssp_get_feed_category_output ( 3, $series_id ); |
|
244
|
244
|
|
|
245
|
245
|
// Get stylehseet URL (filterable to allow custom RSS stylesheets) |
|
246
|
|
-$stylehseet_url = apply_filters( 'ssp_rss_stylesheet', $ss_podcasting->template_url . 'feed-stylesheet.xsl' ); |
|
|
246
|
+$stylehseet_url = apply_filters ( 'ssp_rss_stylesheet', $ss_podcasting->template_url.'feed-stylesheet.xsl' ); |
|
247
|
247
|
|
|
248
|
248
|
// Set RSS content type and charset headers |
|
249
|
|
-header( 'Content-Type: ' . feed_content_type( 'podcast' ) . '; charset=' . get_option( 'blog_charset' ), true ); |
|
|
249
|
+header ( 'Content-Type: '.feed_content_type ( 'podcast' ).'; charset='.get_option ( 'blog_charset' ), true ); |
|
250
|
250
|
|
|
251
|
251
|
// Use `echo` for first line to prevent any extra characters at start of document |
|
252
|
|
-echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '"?>' . "\n"; |
|
|
252
|
+echo '<?xml version="1.0" encoding="'.get_option ( 'blog_charset' ).'"?>'."\n"; |
|
253
|
253
|
|
|
254
|
254
|
// Include RSS stylesheet |
|
255
|
|
-if( $stylehseet_url ) { |
|
256
|
|
- echo '<?xml-stylesheet type="text/xsl" href="' . esc_url( $stylehseet_url ) . '"?>'; |
|
|
255
|
+if ( $stylehseet_url ) { |
|
|
256
|
+ echo '<?xml-stylesheet type="text/xsl" href="'.esc_url ( $stylehseet_url ).'"?>'; |
|
257
|
257
|
} ?> |
|
258
|
258
|
|
|
259
|
259
|
<rss version="2.0" |
|
@@ -265,90 +265,90 @@ discard block |
|
|
block discarded – undo |
|
265
|
265
|
xmlns:slash="http://purl.org/rss/1.0/modules/slash/" |
|
266
|
266
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" |
|
267
|
267
|
xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" |
|
268
|
|
- <?php do_action( 'rss2_ns' ); ?> |
|
|
268
|
+ <?php do_action ( 'rss2_ns' ); ?> |
|
269
|
269
|
> |
|
270
|
270
|
|
|
271
|
271
|
<channel> |
|
272
|
|
- <title><?php echo esc_html( $title ); ?></title> |
|
273
|
|
- <atom:link href="<?php esc_url( self_link() ); ?>" rel="self" type="application/rss+xml" /> |
|
274
|
|
- <link><?php echo esc_url( apply_filters( 'ssp_feed_channel_link_tag', $ss_podcasting->home_url, $podcast_series ) ) ?></link> |
|
275
|
|
- <description><?php echo esc_html( $description ); ?></description> |
|
276
|
|
- <lastBuildDate><?php echo esc_html( mysql2date( 'D, d M Y H:i:s +0000', get_lastpostmodified( 'GMT' ), false ) ); ?></lastBuildDate> |
|
277
|
|
- <language><?php echo esc_html( $language ); ?></language> |
|
278
|
|
- <copyright><?php echo esc_html( $copyright ); ?></copyright> |
|
279
|
|
- <itunes:subtitle><?php echo esc_html( $subtitle ); ?></itunes:subtitle> |
|
280
|
|
- <itunes:author><?php echo esc_html( $author ); ?></itunes:author> |
|
281
|
|
- <googleplay:author><?php echo esc_html( $author ); ?></googleplay:author> |
|
282
|
|
- <googleplay:email><?php echo esc_html( $owner_email ); ?></googleplay:email> |
|
283
|
|
- <itunes:summary><?php echo esc_html( $podcast_description ); ?></itunes:summary> |
|
284
|
|
- <googleplay:description><?php echo esc_html( $podcast_description ); ?></googleplay:description> |
|
|
272
|
+ <title><?php echo esc_html ( $title ); ?></title> |
|
|
273
|
+ <atom:link href="<?php esc_url ( self_link () ); ?>" rel="self" type="application/rss+xml" /> |
|
|
274
|
+ <link><?php echo esc_url ( apply_filters ( 'ssp_feed_channel_link_tag', $ss_podcasting->home_url, $podcast_series ) ) ?></link> |
|
|
275
|
+ <description><?php echo esc_html ( $description ); ?></description> |
|
|
276
|
+ <lastBuildDate><?php echo esc_html ( mysql2date ( 'D, d M Y H:i:s +0000', get_lastpostmodified ( 'GMT' ), false ) ); ?></lastBuildDate> |
|
|
277
|
+ <language><?php echo esc_html ( $language ); ?></language> |
|
|
278
|
+ <copyright><?php echo esc_html ( $copyright ); ?></copyright> |
|
|
279
|
+ <itunes:subtitle><?php echo esc_html ( $subtitle ); ?></itunes:subtitle> |
|
|
280
|
+ <itunes:author><?php echo esc_html ( $author ); ?></itunes:author> |
|
|
281
|
+ <googleplay:author><?php echo esc_html ( $author ); ?></googleplay:author> |
|
|
282
|
+ <googleplay:email><?php echo esc_html ( $owner_email ); ?></googleplay:email> |
|
|
283
|
+ <itunes:summary><?php echo esc_html ( $podcast_description ); ?></itunes:summary> |
|
|
284
|
+ <googleplay:description><?php echo esc_html ( $podcast_description ); ?></googleplay:description> |
|
285
|
285
|
<itunes:owner> |
|
286
|
|
- <itunes:name><?php echo esc_html( $owner_name ); ?></itunes:name> |
|
287
|
|
- <itunes:email><?php echo esc_html( $owner_email ); ?></itunes:email> |
|
|
286
|
+ <itunes:name><?php echo esc_html ( $owner_name ); ?></itunes:name> |
|
|
287
|
+ <itunes:email><?php echo esc_html ( $owner_email ); ?></itunes:email> |
|
288
|
288
|
</itunes:owner> |
|
289
|
|
- <itunes:explicit><?php echo esc_html( $itunes_explicit ); ?></itunes:explicit> |
|
290
|
|
- <googleplay:explicit><?php echo esc_html( $googleplay_explicit ); ?></googleplay:explicit> |
|
291
|
|
- <?php if( $complete ) { ?><itunes:complete><?php echo esc_html( $complete ); ?></itunes:complete><?php } |
|
|
289
|
+ <itunes:explicit><?php echo esc_html ( $itunes_explicit ); ?></itunes:explicit> |
|
|
290
|
+ <googleplay:explicit><?php echo esc_html ( $googleplay_explicit ); ?></googleplay:explicit> |
|
|
291
|
+ <?php if ( $complete ) { ?><itunes:complete><?php echo esc_html ( $complete ); ?></itunes:complete><?php } |
|
292
|
292
|
if ( $image ) { |
|
293
|
|
- ?><itunes:image href="<?php echo esc_url( $image ); ?>"></itunes:image> |
|
294
|
|
- <googleplay:image href="<?php echo esc_url( $image ); ?>"></googleplay:image> |
|
|
293
|
+ ?><itunes:image href="<?php echo esc_url ( $image ); ?>"></itunes:image> |
|
|
294
|
+ <googleplay:image href="<?php echo esc_url ( $image ); ?>"></googleplay:image> |
|
295
|
295
|
<image> |
|
296
|
|
- <url><?php echo esc_url( $image ); ?></url> |
|
297
|
|
- <title><?php echo esc_html( $title ); ?></title> |
|
298
|
|
- <link><?php echo esc_url( apply_filters( 'ssp_feed_channel_link_tag', $ss_podcasting->home_url, $podcast_series ) ) ?></link> |
|
|
296
|
+ <url><?php echo esc_url ( $image ); ?></url> |
|
|
297
|
+ <title><?php echo esc_html ( $title ); ?></title> |
|
|
298
|
+ <link><?php echo esc_url ( apply_filters ( 'ssp_feed_channel_link_tag', $ss_podcasting->home_url, $podcast_series ) ) ?></link> |
|
299
|
299
|
</image> |
|
300
|
300
|
<?php } |
|
301
|
|
-if ( isset( $category1['category'] ) && $category1['category'] ) { ?> |
|
302
|
|
- <itunes:category text="<?php echo esc_attr( $category1['category'] ); ?>"> |
|
303
|
|
-<?php if ( isset( $category1['subcategory'] ) && $category1['subcategory'] ) { ?> |
|
304
|
|
- <itunes:category text="<?php echo esc_attr( $category1['subcategory'] ); ?>"></itunes:category> |
|
|
301
|
+if ( isset( $category1[ 'category' ] ) && $category1[ 'category' ] ) { ?> |
|
|
302
|
+ <itunes:category text="<?php echo esc_attr ( $category1[ 'category' ] ); ?>"> |
|
|
303
|
+<?php if ( isset( $category1[ 'subcategory' ] ) && $category1[ 'subcategory' ] ) { ?> |
|
|
304
|
+ <itunes:category text="<?php echo esc_attr ( $category1[ 'subcategory' ] ); ?>"></itunes:category> |
|
305
|
305
|
<?php } ?> |
|
306
|
306
|
</itunes:category> |
|
307
|
307
|
<?php } ?> |
|
308
|
|
-<?php if ( isset( $category2['category'] ) && $category2['category'] ) { ?> |
|
309
|
|
- <itunes:category text="<?php echo esc_attr( $category2['category'] ); ?>"> |
|
310
|
|
-<?php if ( isset( $category2['subcategory'] ) && $category2['subcategory'] ) { ?> |
|
311
|
|
- <itunes:category text="<?php echo esc_attr( $category2['subcategory'] ); ?>"></itunes:category> |
|
|
308
|
+<?php if ( isset( $category2[ 'category' ] ) && $category2[ 'category' ] ) { ?> |
|
|
309
|
+ <itunes:category text="<?php echo esc_attr ( $category2[ 'category' ] ); ?>"> |
|
|
310
|
+<?php if ( isset( $category2[ 'subcategory' ] ) && $category2[ 'subcategory' ] ) { ?> |
|
|
311
|
+ <itunes:category text="<?php echo esc_attr ( $category2[ 'subcategory' ] ); ?>"></itunes:category> |
|
312
|
312
|
<?php } ?> |
|
313
|
313
|
</itunes:category> |
|
314
|
314
|
<?php } ?> |
|
315
|
|
-<?php if ( isset( $category3['category'] ) && $category3['category'] ) { ?> |
|
316
|
|
- <itunes:category text="<?php echo esc_attr( $category3['category'] ); ?>"> |
|
317
|
|
-<?php if ( isset( $category3['subcategory'] ) && $category3['subcategory'] ) { ?> |
|
318
|
|
- <itunes:category text="<?php echo esc_attr( $category3['subcategory'] ); ?>"></itunes:category> |
|
|
315
|
+<?php if ( isset( $category3[ 'category' ] ) && $category3[ 'category' ] ) { ?> |
|
|
316
|
+ <itunes:category text="<?php echo esc_attr ( $category3[ 'category' ] ); ?>"> |
|
|
317
|
+<?php if ( isset( $category3[ 'subcategory' ] ) && $category3[ 'subcategory' ] ) { ?> |
|
|
318
|
+ <itunes:category text="<?php echo esc_attr ( $category3[ 'subcategory' ] ); ?>"></itunes:category> |
|
319
|
319
|
<?php } ?> |
|
320
|
320
|
</itunes:category> |
|
321
|
321
|
<?php } ?> |
|
322
|
322
|
<?php if ( $new_feed_url ) { ?> |
|
323
|
|
- <itunes:new-feed-url><?php echo esc_url( $new_feed_url ); ?></itunes:new-feed-url> |
|
|
323
|
+ <itunes:new-feed-url><?php echo esc_url ( $new_feed_url ); ?></itunes:new-feed-url> |
|
324
|
324
|
<?php } |
|
325
|
325
|
|
|
326
|
326
|
// Prevent WP core from outputting an <image> element |
|
327
|
|
- remove_action( 'rss2_head', 'rss2_site_icon' ); |
|
|
327
|
+ remove_action ( 'rss2_head', 'rss2_site_icon' ); |
|
328
|
328
|
|
|
329
|
329
|
// Add RSS2 headers |
|
330
|
|
- do_action( 'rss2_head' ); |
|
|
330
|
+ do_action ( 'rss2_head' ); |
|
331
|
331
|
|
|
332
|
332
|
// Get post IDs of all podcast episodes |
|
333
|
|
- $num_posts = intval( apply_filters( 'ssp_feed_number_of_posts', get_option( 'posts_per_rss', 10 ) ) ); |
|
|
333
|
+ $num_posts = intval ( apply_filters ( 'ssp_feed_number_of_posts', get_option ( 'posts_per_rss', 10 ) ) ); |
|
334
|
334
|
|
|
335
|
|
- $args = ssp_episodes( $num_posts, $podcast_series, true, 'feed' ); |
|
|
335
|
+ $args = ssp_episodes ( $num_posts, $podcast_series, true, 'feed' ); |
|
336
|
336
|
|
|
337
|
|
- $qry = new WP_Query( $args ); |
|
|
337
|
+ $qry = new WP_Query ( $args ); |
|
338
|
338
|
|
|
339
|
|
- if ( $qry->have_posts() ) { |
|
340
|
|
- while ( $qry->have_posts()) { |
|
341
|
|
- $qry->the_post(); |
|
|
339
|
+ if ( $qry->have_posts () ) { |
|
|
340
|
+ while ( $qry->have_posts () ) { |
|
|
341
|
+ $qry->the_post (); |
|
342
|
342
|
|
|
343
|
343
|
// Audio file |
|
344
|
|
- $audio_file = $ss_podcasting->get_enclosure( get_the_ID() ); |
|
345
|
|
- if ( get_option( 'permalink_structure' ) ) { |
|
346
|
|
- $enclosure = $ss_podcasting->get_episode_download_link( get_the_ID() ); |
|
|
344
|
+ $audio_file = $ss_podcasting->get_enclosure ( get_the_ID () ); |
|
|
345
|
+ if ( get_option ( 'permalink_structure' ) ) { |
|
|
346
|
+ $enclosure = $ss_podcasting->get_episode_download_link ( get_the_ID () ); |
|
347
|
347
|
} else { |
|
348
|
348
|
$enclosure = $audio_file; |
|
349
|
349
|
} |
|
350
|
350
|
|
|
351
|
|
- $enclosure = apply_filters( 'ssp_feed_item_enclosure', $enclosure, get_the_ID() ); |
|
|
351
|
+ $enclosure = apply_filters ( 'ssp_feed_item_enclosure', $enclosure, get_the_ID () ); |
|
352
|
352
|
|
|
353
|
353
|
// If there is no enclosure then go no further |
|
354
|
354
|
if ( ! isset( $enclosure ) || ! $enclosure ) { |
|
@@ -357,46 +357,46 @@ discard block |
|
|
block discarded – undo |
|
357
|
357
|
|
|
358
|
358
|
// Get episode image from post featured image |
|
359
|
359
|
$episode_image = ''; |
|
360
|
|
- $image_id = get_post_thumbnail_id( get_the_ID() ); |
|
|
360
|
+ $image_id = get_post_thumbnail_id ( get_the_ID () ); |
|
361
|
361
|
if ( $image_id ) { |
|
362
|
|
- $image_att = wp_get_attachment_image_src( $image_id, 'full' ); |
|
|
362
|
+ $image_att = wp_get_attachment_image_src ( $image_id, 'full' ); |
|
363
|
363
|
if ( $image_att ) { |
|
364
|
|
- $episode_image = $image_att[0]; |
|
|
364
|
+ $episode_image = $image_att[ 0 ]; |
|
365
|
365
|
} |
|
366
|
366
|
} |
|
367
|
|
- $episode_image = apply_filters( 'ssp_feed_item_image', $episode_image, get_the_ID() ); |
|
|
367
|
+ $episode_image = apply_filters ( 'ssp_feed_item_image', $episode_image, get_the_ID () ); |
|
368
|
368
|
|
|
369
|
369
|
// Episode duration (default to 0:00 to ensure there is always a value for this) |
|
370
|
|
- $duration = get_post_meta( get_the_ID(), 'duration', true ); |
|
|
370
|
+ $duration = get_post_meta ( get_the_ID (), 'duration', true ); |
|
371
|
371
|
if ( ! $duration ) { |
|
372
|
372
|
$duration = '0:00'; |
|
373
|
373
|
} |
|
374
|
|
- $duration = apply_filters( 'ssp_feed_item_duration', $duration, get_the_ID() ); |
|
|
374
|
+ $duration = apply_filters ( 'ssp_feed_item_duration', $duration, get_the_ID () ); |
|
375
|
375
|
|
|
376
|
376
|
// File size |
|
377
|
|
- $size = get_post_meta( get_the_ID(), 'filesize_raw', true ); |
|
|
377
|
+ $size = get_post_meta ( get_the_ID (), 'filesize_raw', true ); |
|
378
|
378
|
if ( ! $size ) { |
|
379
|
379
|
$size = 1; |
|
380
|
380
|
} |
|
381
|
|
- $size = apply_filters( 'ssp_feed_item_size', $size, get_the_ID() ); |
|
|
381
|
+ $size = apply_filters ( 'ssp_feed_item_size', $size, get_the_ID () ); |
|
382
|
382
|
|
|
383
|
383
|
// File MIME type (default to MP3/MP4 to ensure there is always a value for this) |
|
384
|
|
- $mime_type = $ss_podcasting->get_attachment_mimetype( $audio_file ); |
|
|
384
|
+ $mime_type = $ss_podcasting->get_attachment_mimetype ( $audio_file ); |
|
385
|
385
|
if ( ! $mime_type ) { |
|
386
|
386
|
|
|
387
|
387
|
// Get the episode type (audio or video) to determine the appropriate default MIME type |
|
388
|
|
- $episode_type = $ss_podcasting->get_episode_type( get_the_ID() ); |
|
|
388
|
+ $episode_type = $ss_podcasting->get_episode_type ( get_the_ID () ); |
|
389
|
389
|
|
|
390
|
|
- switch( $episode_type ) { |
|
|
390
|
+ switch ( $episode_type ) { |
|
391
|
391
|
case 'audio': $mime_type = 'audio/mpeg'; break; |
|
392
|
392
|
case 'video': $mime_type = 'video/mp4'; break; |
|
393
|
393
|
} |
|
394
|
394
|
} |
|
395
|
|
- $mime_type = apply_filters( 'ssp_feed_item_mime_type', $mime_type, get_the_ID() ); |
|
|
395
|
+ $mime_type = apply_filters ( 'ssp_feed_item_mime_type', $mime_type, get_the_ID () ); |
|
396
|
396
|
|
|
397
|
397
|
// Episode explicit flag |
|
398
|
|
- $ep_explicit = get_post_meta( get_the_ID(), 'explicit', true ); |
|
399
|
|
- $ep_explicit = apply_filters( 'ssp_feed_item_explicit', $ep_explicit, get_the_ID() ); |
|
|
398
|
+ $ep_explicit = get_post_meta ( get_the_ID (), 'explicit', true ); |
|
|
399
|
+ $ep_explicit = apply_filters ( 'ssp_feed_item_explicit', $ep_explicit, get_the_ID () ); |
|
400
|
400
|
if ( $ep_explicit && $ep_explicit == 'on' ) { |
|
401
|
401
|
$itunes_explicit_flag = 'yes'; |
|
402
|
402
|
$googleplay_explicit_flag = 'Yes'; |
|
@@ -406,8 +406,8 @@ discard block |
|
|
block discarded – undo |
|
406
|
406
|
} |
|
407
|
407
|
|
|
408
|
408
|
// Episode block flag |
|
409
|
|
- $ep_block = get_post_meta( get_the_ID(), 'block', true ); |
|
410
|
|
- $ep_block = apply_filters( 'ssp_feed_item_block', $ep_block, get_the_ID() ); |
|
|
409
|
+ $ep_block = get_post_meta ( get_the_ID (), 'block', true ); |
|
|
410
|
+ $ep_block = apply_filters ( 'ssp_feed_item_block', $ep_block, get_the_ID () ); |
|
411
|
411
|
if ( $ep_block && $ep_block == 'on' ) { |
|
412
|
412
|
$block_flag = 'yes'; |
|
413
|
413
|
} else { |
|
@@ -415,53 +415,53 @@ discard block |
|
|
block discarded – undo |
|
415
|
415
|
} |
|
416
|
416
|
|
|
417
|
417
|
// Episode author |
|
418
|
|
- $author = esc_html( get_the_author() ); |
|
419
|
|
- $author = apply_filters( 'ssp_feed_item_author', $author, get_the_ID() ); |
|
|
418
|
+ $author = esc_html ( get_the_author () ); |
|
|
419
|
+ $author = apply_filters ( 'ssp_feed_item_author', $author, get_the_ID () ); |
|
420
|
420
|
|
|
421
|
421
|
// Episode content (with iframes removed) |
|
422
|
|
- $content = get_the_content_feed( 'rss2' ); |
|
423
|
|
- $content = preg_replace( '/<\/?iframe(.|\s)*?>/', '', $content ); |
|
424
|
|
- $content = apply_filters( 'ssp_feed_item_content', $content, get_the_ID() ); |
|
|
422
|
+ $content = get_the_content_feed ( 'rss2' ); |
|
|
423
|
+ $content = preg_replace ( '/<\/?iframe(.|\s)*?>/', '', $content ); |
|
|
424
|
+ $content = apply_filters ( 'ssp_feed_item_content', $content, get_the_ID () ); |
|
425
|
425
|
|
|
426
|
426
|
// iTunes summary is the full episode content, but must be shorter than 4000 characters |
|
427
|
|
- $itunes_summary = mb_substr( $content, 0, 3999 ); |
|
428
|
|
- $itunes_summary = apply_filters( 'ssp_feed_item_itunes_summary', $itunes_summary, get_the_ID() ); |
|
429
|
|
- $gp_description = apply_filters( 'ssp_feed_item_gp_description', $itunes_summary, get_the_ID() ); |
|
|
427
|
+ $itunes_summary = mb_substr ( $content, 0, 3999 ); |
|
|
428
|
+ $itunes_summary = apply_filters ( 'ssp_feed_item_itunes_summary', $itunes_summary, get_the_ID () ); |
|
|
429
|
+ $gp_description = apply_filters ( 'ssp_feed_item_gp_description', $itunes_summary, get_the_ID () ); |
|
430
|
430
|
|
|
431
|
431
|
// Episode description |
|
432
|
|
- ob_start(); |
|
433
|
|
- the_excerpt_rss(); |
|
434
|
|
- $description = ob_get_clean(); |
|
435
|
|
- $description = apply_filters( 'ssp_feed_item_description', $description, get_the_ID() ); |
|
|
432
|
+ ob_start (); |
|
|
433
|
+ the_excerpt_rss (); |
|
|
434
|
+ $description = ob_get_clean (); |
|
|
435
|
+ $description = apply_filters ( 'ssp_feed_item_description', $description, get_the_ID () ); |
|
436
|
436
|
|
|
437
|
437
|
// iTunes subtitle does not allow any HTML and must be shorter than 255 characters |
|
438
|
|
- $itunes_subtitle = strip_tags( strip_shortcodes( $description ) ); |
|
439
|
|
- $itunes_subtitle = str_replace( array( '>', '<', '\'', '"', '`', '[andhellip;]', '[…]', '[…]' ), array( '', '', '', '', '', '', '', '' ), $itunes_subtitle ); |
|
440
|
|
- $itunes_subtitle = mb_substr( $itunes_subtitle, 0, 254 ); |
|
441
|
|
- $itunes_subtitle = apply_filters( 'ssp_feed_item_itunes_subtitle', $itunes_subtitle, get_the_ID() ); |
|
|
438
|
+ $itunes_subtitle = strip_tags ( strip_shortcodes ( $description ) ); |
|
|
439
|
+ $itunes_subtitle = str_replace ( array( '>', '<', '\'', '"', '`', '[andhellip;]', '[…]', '[…]' ), array( '', '', '', '', '', '', '', '' ), $itunes_subtitle ); |
|
|
440
|
+ $itunes_subtitle = mb_substr ( $itunes_subtitle, 0, 254 ); |
|
|
441
|
+ $itunes_subtitle = apply_filters ( 'ssp_feed_item_itunes_subtitle', $itunes_subtitle, get_the_ID () ); |
|
442
|
442
|
|
|
443
|
443
|
?> |
|
444
|
444
|
<item> |
|
445
|
|
- <title><?php esc_html( the_title_rss() ); ?></title> |
|
446
|
|
- <link><?php esc_url( the_permalink_rss() ); ?></link> |
|
447
|
|
- <pubDate><?php echo esc_html( mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ) ); ?></pubDate> |
|
|
445
|
+ <title><?php esc_html ( the_title_rss () ); ?></title> |
|
|
446
|
+ <link><?php esc_url ( the_permalink_rss () ); ?></link> |
|
|
447
|
+ <pubDate><?php echo esc_html ( mysql2date ( 'D, d M Y H:i:s +0000', get_post_time ( 'Y-m-d H:i:s', true ), false ) ); ?></pubDate> |
|
448
|
448
|
<dc:creator><?php echo $author; ?></dc:creator> |
|
449
|
|
- <guid isPermaLink="false"><?php esc_html( the_guid() ); ?></guid> |
|
|
449
|
+ <guid isPermaLink="false"><?php esc_html ( the_guid () ); ?></guid> |
|
450
|
450
|
<description><![CDATA[<?php echo $description; ?>]]></description> |
|
451
|
451
|
<itunes:subtitle><![CDATA[<?php echo $itunes_subtitle; ?>]]></itunes:subtitle> |
|
452
|
452
|
<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded> |
|
453
|
453
|
<itunes:summary><![CDATA[<?php echo $itunes_summary; ?>]]></itunes:summary> |
|
454
|
454
|
<googleplay:description><![CDATA[<?php echo $gp_description; ?>]]></googleplay:description> |
|
455
|
455
|
<?php if ( $episode_image ) { ?> |
|
456
|
|
- <itunes:image href="<?php echo esc_url( $episode_image ); ?>"></itunes:image> |
|
457
|
|
- <googleplay:image href="<?php echo esc_url( $episode_image ); ?>"></googleplay:image> |
|
|
456
|
+ <itunes:image href="<?php echo esc_url ( $episode_image ); ?>"></itunes:image> |
|
|
457
|
+ <googleplay:image href="<?php echo esc_url ( $episode_image ); ?>"></googleplay:image> |
|
458
|
458
|
<?php } ?> |
|
459
|
|
- <enclosure url="<?php echo esc_url( $enclosure ); ?>" length="<?php echo esc_attr( $size ); ?>" type="<?php echo esc_attr( $mime_type ); ?>"></enclosure> |
|
460
|
|
- <itunes:explicit><?php echo esc_html( $itunes_explicit_flag ); ?></itunes:explicit> |
|
461
|
|
- <googleplay:explicit><?php echo esc_html( $googleplay_explicit_flag ); ?></googleplay:explicit> |
|
462
|
|
- <itunes:block><?php echo esc_html( $block_flag ); ?></itunes:block> |
|
463
|
|
- <googleplay:block><?php echo esc_html( $block_flag ); ?></googleplay:block> |
|
464
|
|
- <itunes:duration><?php echo esc_html( $duration ); ?></itunes:duration> |
|
|
459
|
+ <enclosure url="<?php echo esc_url ( $enclosure ); ?>" length="<?php echo esc_attr ( $size ); ?>" type="<?php echo esc_attr ( $mime_type ); ?>"></enclosure> |
|
|
460
|
+ <itunes:explicit><?php echo esc_html ( $itunes_explicit_flag ); ?></itunes:explicit> |
|
|
461
|
+ <googleplay:explicit><?php echo esc_html ( $googleplay_explicit_flag ); ?></googleplay:explicit> |
|
|
462
|
+ <itunes:block><?php echo esc_html ( $block_flag ); ?></itunes:block> |
|
|
463
|
+ <googleplay:block><?php echo esc_html ( $block_flag ); ?></googleplay:block> |
|
|
464
|
+ <itunes:duration><?php echo esc_html ( $duration ); ?></itunes:duration> |
|
465
|
465
|
<itunes:author><?php echo $author; ?></itunes:author> |
|
466
|
466
|
</item> |
|
467
|
467
|
<?php } |