Version Description
- Released on 1/30/2014
- Fixed bug with MEjs player not working for m4a files (Thanks JT for the code patch!)
- Added logic to PowerPress edit iTunes Subscription URL settings, precaution to make sure the field is saved correctly.
- Made a few CSS changes for WordPress 3.8+
- Noted in the HTML5 audio player option that Firefox 26.0+ now supports mp3 playback. We are aware that Firefox 21.0 supported mp3 playback but it was limited to particular Windows versions.
- Fixed bug where player and links may not appear for custom post type podcasting episodes. (Thanks Seth and Segovia for discovering and helping me debug the problem!)
- Fixed bug where Blubrry hosting customers may not have been able to publish media for custom post type podcasting.
- Renamed post type podcasting setting field in database to avoid possible field setting conflicts.
- Added logic to allow for the premium podcast feeds feature to work with custom post type podcasting.
- Added the HTML5 download attribute, when then download link is clicked the file will be downloaded, rather than streamed to default media player. Only Chrome, Firefox and Opera web browsers currently support this HTML5 attribute.
Download this release
Release Info
Developer | amandato |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 5.0.4 |
Comparing to | |
See all releases |
Code changes from version 5.0.3 to 5.0.4
- css/admin.css +10 -3
- css/jquery.css +2 -0
- powerpress-player.php +49 -6
- powerpress.php +115 -5
- powerpressadmin-basic.php +44 -43
- powerpressadmin-defaults.php +2 -2
- powerpressadmin-editfeed.php +25 -25
- powerpressadmin-metabox.php +4 -4
- powerpressadmin-player-page.php +1 -1
- powerpressadmin-podpress.php +1 -1
- powerpressadmin.php +20 -9
- readme.txt +18 -4
css/admin.css
CHANGED
@@ -36,7 +36,7 @@ div.powerpress-error,
|
|
36 |
font-size: 90%;
|
37 |
}
|
38 |
#powerpress_settings label {
|
39 |
-
font-size:
|
40 |
}
|
41 |
.bpp_input_sm {
|
42 |
width: 120px;
|
@@ -68,6 +68,8 @@ text-decoration:none;
|
|
68 |
-moz-border-radius-bottomright:0;
|
69 |
-moz-border-radius-topleft:3px;
|
70 |
-moz-border-radius-topright:3px;
|
|
|
|
|
71 |
border-style:solid;
|
72 |
border-width:1px;
|
73 |
cursor:pointer;
|
@@ -76,9 +78,12 @@ height:18px;
|
|
76 |
margin:5px 5px 0 0;
|
77 |
padding:4px 5px 2px;
|
78 |
background-color:#F1F1F1;
|
|
|
79 |
border-color:#DFDFDF;
|
|
|
80 |
color:#999999;
|
81 |
-
|
|
|
82 |
}
|
83 |
.powerpress_tabbed_content ul a:hover {
|
84 |
}
|
@@ -114,6 +119,7 @@ border-collapse:separate;
|
|
114 |
border-style:solid;
|
115 |
border-width:1px;
|
116 |
border-color:#DFDFDF;
|
|
|
117 |
padding-bottom: 15px;
|
118 |
}
|
119 |
.powerpress_tab .form-table {
|
@@ -211,9 +217,10 @@ padding-bottom: 15px;
|
|
211 |
margin: 60px 0 40px;
|
212 |
}
|
213 |
.powerpress-required {
|
214 |
-
font-size:
|
215 |
color: #CC0000;
|
216 |
margin-left: 12px;
|
|
|
217 |
}
|
218 |
|
219 |
.powerpress-step {
|
36 |
font-size: 90%;
|
37 |
}
|
38 |
#powerpress_settings label {
|
39 |
+
/* font-size: 110%; */
|
40 |
}
|
41 |
.bpp_input_sm {
|
42 |
width: 120px;
|
68 |
-moz-border-radius-bottomright:0;
|
69 |
-moz-border-radius-topleft:3px;
|
70 |
-moz-border-radius-topright:3px;
|
71 |
+
border-radius-topleft:3px;
|
72 |
+
border-radius-topright:3px;
|
73 |
border-style:solid;
|
74 |
border-width:1px;
|
75 |
cursor:pointer;
|
78 |
margin:5px 5px 0 0;
|
79 |
padding:4px 5px 2px;
|
80 |
background-color:#F1F1F1;
|
81 |
+
background-color:#E3E3E3;
|
82 |
border-color:#DFDFDF;
|
83 |
+
border-color:#B3B3B3;
|
84 |
color:#999999;
|
85 |
+
color:#666666;
|
86 |
+
font-weight: bold;
|
87 |
}
|
88 |
.powerpress_tabbed_content ul a:hover {
|
89 |
}
|
119 |
border-style:solid;
|
120 |
border-width:1px;
|
121 |
border-color:#DFDFDF;
|
122 |
+
border-color:#B3B3B3;
|
123 |
padding-bottom: 15px;
|
124 |
}
|
125 |
.powerpress_tab .form-table {
|
217 |
margin: 60px 0 40px;
|
218 |
}
|
219 |
.powerpress-required {
|
220 |
+
font-size: 85%;
|
221 |
color: #CC0000;
|
222 |
margin-left: 12px;
|
223 |
+
font-style:italic;
|
224 |
}
|
225 |
|
226 |
.powerpress-step {
|
css/jquery.css
CHANGED
@@ -66,9 +66,11 @@ ul.media li a {
|
|
66 |
}
|
67 |
#accountinfo input[type=text], #accountinfo input[type=password] {
|
68 |
width: 220px;
|
|
|
69 |
}
|
70 |
#accountinfo select {
|
71 |
width: 222px;
|
|
|
72 |
}
|
73 |
.powerpress-notice {
|
74 |
border: 1px solid #FFCC00;
|
66 |
}
|
67 |
#accountinfo input[type=text], #accountinfo input[type=password] {
|
68 |
width: 220px;
|
69 |
+
border-color: #AAAAAA;
|
70 |
}
|
71 |
#accountinfo select {
|
72 |
width: 222px;
|
73 |
+
border-color: #AAAAAA;
|
74 |
}
|
75 |
.powerpress-notice {
|
76 |
border: 1px solid #FFCC00;
|
powerpress-player.php
CHANGED
@@ -91,6 +91,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
|
|
91 |
$return = '';
|
92 |
$feed = '';
|
93 |
$channel = '';
|
|
|
94 |
$url = '';
|
95 |
$image = '';
|
96 |
$width = '';
|
@@ -100,6 +101,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
|
|
100 |
'url' => '',
|
101 |
'feed' => '',
|
102 |
'channel' => '',
|
|
|
103 |
'image' => '',
|
104 |
'width' => '',
|
105 |
'height' => ''
|
@@ -107,6 +109,8 @@ function powerpress_shortcode_handler( $attributes, $content = null )
|
|
107 |
|
108 |
if( empty($channel) && !empty($feed) ) // Feed for backward compat.
|
109 |
$channel = $feed;
|
|
|
|
|
110 |
|
111 |
if( !$url && $content )
|
112 |
{
|
@@ -155,6 +159,36 @@ function powerpress_shortcode_handler( $attributes, $content = null )
|
|
155 |
if( !isset($GeneralSettings['custom_feeds']['podcast']) )
|
156 |
$GeneralSettings['custom_feeds']['podcast'] = 'Podcast Feed'; // Fixes scenario where the user never configured the custom default podcast feed.
|
157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
while( list($feed_slug,$feed_title) = each($GeneralSettings['custom_feeds']) )
|
159 |
{
|
160 |
if( isset($GeneralSettings['disable_player']) && isset($GeneralSettings['disable_player'][$feed_slug]) )
|
@@ -178,7 +212,7 @@ function powerpress_shortcode_handler( $attributes, $content = null )
|
|
178 |
if( !empty($height) )
|
179 |
$EpisodeData['height'] = $height;
|
180 |
|
181 |
-
if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($
|
182 |
{
|
183 |
$return .= powerpress_premium_content_message($post->ID, $feed_slug, $EpisodeData);
|
184 |
continue;
|
@@ -922,18 +956,18 @@ function powerpressplayer_link_download($content, $media_url, $ExtraData = array
|
|
922 |
$player_links = '';
|
923 |
if( $GeneralSettings['podcast_link'] == 1 )
|
924 |
{
|
925 |
-
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\">". POWERPRESS_DOWNLOAD_TEXT ."</a>".PHP_EOL;
|
926 |
}
|
927 |
else if( $GeneralSettings['podcast_link'] == 2 )
|
928 |
{
|
929 |
-
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).") ".PHP_EOL;
|
930 |
}
|
931 |
else if( $GeneralSettings['podcast_link'] == 3 )
|
932 |
{
|
933 |
-
if( $ExtraData['duration'] && ltrim($ExtraData['duration'], '0:') != '' )
|
934 |
-
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (". htmlspecialchars(POWERPRESS_DURATION_TEXT) .": " . powerpress_readable_duration($ExtraData['duration']) ." — ".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
|
935 |
else
|
936 |
-
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
|
937 |
}
|
938 |
|
939 |
if( $player_links && !empty($content) )
|
@@ -1415,6 +1449,15 @@ function powerpressplayer_build_mediaelementaudio($media_url, $EpisodeData=array
|
|
1415 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
|
1416 |
$content .= '<audio class="powerpress-mejs-audio" controls="controls"';
|
1417 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1418 |
// Prevent pre-loading in certain browsers
|
1419 |
$media_url_src = $media_url;
|
1420 |
// Folloowing is for mobile browsers that pre-load the audio
|
91 |
$return = '';
|
92 |
$feed = '';
|
93 |
$channel = '';
|
94 |
+
$slug = ''; // latest and preferred way to specify the feed slug
|
95 |
$url = '';
|
96 |
$image = '';
|
97 |
$width = '';
|
101 |
'url' => '',
|
102 |
'feed' => '',
|
103 |
'channel' => '',
|
104 |
+
'slug' => '',
|
105 |
'image' => '',
|
106 |
'width' => '',
|
107 |
'height' => ''
|
109 |
|
110 |
if( empty($channel) && !empty($feed) ) // Feed for backward compat.
|
111 |
$channel = $feed;
|
112 |
+
if( !empty($slug) ) // Foward compatibility
|
113 |
+
$channel = $slug;
|
114 |
|
115 |
if( !$url && $content )
|
116 |
{
|
159 |
if( !isset($GeneralSettings['custom_feeds']['podcast']) )
|
160 |
$GeneralSettings['custom_feeds']['podcast'] = 'Podcast Feed'; // Fixes scenario where the user never configured the custom default podcast feed.
|
161 |
|
162 |
+
// If we have post type podcasting enabled, then we need to use the podcast post type feeds instead here...
|
163 |
+
if( !empty($GeneralSettings['posttype_podcasting']) )
|
164 |
+
{
|
165 |
+
$post_type = get_query_var('post_type');
|
166 |
+
// Get the feed slugs and titles for this post type
|
167 |
+
$PostTypeSettingsArray = get_option('powerpress_posttype_'.$post_type);
|
168 |
+
// Loop through this array...
|
169 |
+
if( !empty($PostTypeSettingsArray) )
|
170 |
+
{
|
171 |
+
switch($post_type)
|
172 |
+
{
|
173 |
+
case 'post':
|
174 |
+
case 'page': {
|
175 |
+
// Do nothing!, we want the default podcast and channels to appear in these post types
|
176 |
+
}; break;
|
177 |
+
default: {
|
178 |
+
$GeneralSettings['custom_feeds'] = array(); // reset this array since we're working with a custom post type
|
179 |
+
};
|
180 |
+
}
|
181 |
+
|
182 |
+
while( list($feed_slug, $postTypeSettings) = each($PostTypeSettingsArray) )
|
183 |
+
{
|
184 |
+
if( !empty( $postTypeSettings['title']) )
|
185 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $postTypeSettings['title'];
|
186 |
+
else
|
187 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_slug;
|
188 |
+
}
|
189 |
+
}
|
190 |
+
}
|
191 |
+
|
192 |
while( list($feed_slug,$feed_title) = each($GeneralSettings['custom_feeds']) )
|
193 |
{
|
194 |
if( isset($GeneralSettings['disable_player']) && isset($GeneralSettings['disable_player'][$feed_slug]) )
|
212 |
if( !empty($height) )
|
213 |
$EpisodeData['height'] = $height;
|
214 |
|
215 |
+
if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($feed_slug) )
|
216 |
{
|
217 |
$return .= powerpress_premium_content_message($post->ID, $feed_slug, $EpisodeData);
|
218 |
continue;
|
956 |
$player_links = '';
|
957 |
if( $GeneralSettings['podcast_link'] == 1 )
|
958 |
{
|
959 |
+
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a>".PHP_EOL;
|
960 |
}
|
961 |
else if( $GeneralSettings['podcast_link'] == 2 )
|
962 |
{
|
963 |
+
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).") ".PHP_EOL;
|
964 |
}
|
965 |
else if( $GeneralSettings['podcast_link'] == 3 )
|
966 |
{
|
967 |
+
if( !empty($ExtraData['duration']) && ltrim($ExtraData['duration'], '0:') != '' )
|
968 |
+
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (". htmlspecialchars(POWERPRESS_DURATION_TEXT) .": " . powerpress_readable_duration($ExtraData['duration']) ." — ".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
|
969 |
else
|
970 |
+
$player_links .= "<a href=\"{$media_url}\" class=\"powerpress_link_d\" title=\"". POWERPRESS_DOWNLOAD_TEXT ."\" rel=\"nofollow\" download=\"". htmlspecialchars(basename($media_url)) ."\">". POWERPRESS_DOWNLOAD_TEXT ."</a> (".powerpress_byte_size($ExtraData['size']).")".PHP_EOL;
|
971 |
}
|
972 |
|
973 |
if( $player_links && !empty($content) )
|
1449 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'">'.PHP_EOL;
|
1450 |
$content .= '<audio class="powerpress-mejs-audio" controls="controls"';
|
1451 |
|
1452 |
+
// Set the type if required
|
1453 |
+
$extension = powerpressplayer_get_extension($EpisodeData['url']);
|
1454 |
+
switch( $extension )
|
1455 |
+
{
|
1456 |
+
case 'm4a': {
|
1457 |
+
$content .= ' type="audio/mp4"';
|
1458 |
+
}; break;
|
1459 |
+
}
|
1460 |
+
|
1461 |
// Prevent pre-loading in certain browsers
|
1462 |
$media_url_src = $media_url;
|
1463 |
// Folloowing is for mobile browsers that pre-load the audio
|
powerpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="http://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
|
6 |
-
Version: 5.0.
|
7 |
Author: Blubrry
|
8 |
Author URI: http://www.blubrry.com/
|
9 |
Change Log:
|
@@ -32,7 +32,7 @@ if( !function_exists('add_action') )
|
|
32 |
die("access denied.");
|
33 |
|
34 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
35 |
-
define('POWERPRESS_VERSION', '5.0.
|
36 |
|
37 |
// Translation support:
|
38 |
if ( !defined('POWERPRESS_ABSPATH') )
|
@@ -159,6 +159,8 @@ function powerpress_content($content)
|
|
159 |
|
160 |
if( !isset($GeneralSettings['custom_feeds']) )
|
161 |
$GeneralSettings['custom_feeds'] = array('podcast'=>'Default Podcast Feed');
|
|
|
|
|
162 |
|
163 |
// Re-order so the default podcast episode is the top most...
|
164 |
$Temp = $GeneralSettings['custom_feeds'];
|
@@ -171,6 +173,39 @@ function powerpress_content($content)
|
|
171 |
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_title;
|
172 |
}
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
if( !isset($GeneralSettings['display_player']) )
|
175 |
$GeneralSettings['display_player'] = 1;
|
176 |
if( !isset($GeneralSettings['player_function']) )
|
@@ -1195,10 +1230,24 @@ function powerpress_init()
|
|
1195 |
{
|
1196 |
// Loop through the posttype podcasting settings and set the feeds for the custom post type slugs...
|
1197 |
global $wp_rewrite;
|
1198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1199 |
if( empty($FeedSlugPostTypesArray) )
|
|
|
1200 |
$FeedSlugPostTypesArray = array();
|
1201 |
-
|
1202 |
while( list($feed_slug, $FeedSlugPostTypes) = each($FeedSlugPostTypesArray) )
|
1203 |
{
|
1204 |
if ( !in_array($feed_slug, $wp_rewrite->feeds) ) // we need to add this feed name
|
@@ -1671,6 +1720,7 @@ function get_the_powerpress_content()
|
|
1671 |
$Temp = $GeneralSettings['custom_feeds'];
|
1672 |
$GeneralSettings['custom_feeds'] = array();
|
1673 |
$GeneralSettings['custom_feeds']['podcast'] = 'Default Podcast Feed';
|
|
|
1674 |
while( list($feed_slug, $feed_title) = each($Temp) )
|
1675 |
{
|
1676 |
if( $feed_slug == 'podcast' )
|
@@ -1678,6 +1728,39 @@ function get_the_powerpress_content()
|
|
1678 |
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_title;
|
1679 |
}
|
1680 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1681 |
if( !isset($GeneralSettings['display_player']) )
|
1682 |
$GeneralSettings['display_player'] = 1;
|
1683 |
if( !isset($GeneralSettings['player_function']) )
|
@@ -2542,7 +2625,7 @@ function get_the_powerpress_all_players($slug = false, $no_link=false)
|
|
2542 |
$AddDefaultPlayer = false;
|
2543 |
}
|
2544 |
|
2545 |
-
if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($
|
2546 |
{
|
2547 |
$return .= powerpress_premium_content_message(get_the_ID(), $feed_slug, $EpisodeData);
|
2548 |
continue;
|
@@ -2572,6 +2655,19 @@ function powerpress_premium_content_authorized($feed_slug)
|
|
2572 |
if( isset($FeedSettings['premium']) && $FeedSettings['premium'] != '' )
|
2573 |
return current_user_can($FeedSettings['premium']);
|
2574 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2575 |
return true; // any user can access this content
|
2576 |
}
|
2577 |
|
@@ -2583,6 +2679,20 @@ function powerpress_premium_content_message($post_id, $feed_slug, $EpisodeData =
|
|
2583 |
if( !$EpisodeData )
|
2584 |
return '';
|
2585 |
$FeedSettings = get_option('powerpress_feed_'.$feed_slug);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2586 |
|
2587 |
$extension = 'unknown';
|
2588 |
$parts = pathinfo($EpisodeData['url']);
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="http://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> adds podcasting support to your blog. Features include: media player, 3rd party statistics, iTunes integration, Blubrry Services (Media Statistics and Hosting) integration and a lot more.
|
6 |
+
Version: 5.0.4
|
7 |
Author: Blubrry
|
8 |
Author URI: http://www.blubrry.com/
|
9 |
Change Log:
|
32 |
die("access denied.");
|
33 |
|
34 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
35 |
+
define('POWERPRESS_VERSION', '5.0.4' );
|
36 |
|
37 |
// Translation support:
|
38 |
if ( !defined('POWERPRESS_ABSPATH') )
|
159 |
|
160 |
if( !isset($GeneralSettings['custom_feeds']) )
|
161 |
$GeneralSettings['custom_feeds'] = array('podcast'=>'Default Podcast Feed');
|
162 |
+
if( empty($GeneralSettings['custom_feeds']['podcast']) )
|
163 |
+
$GeneralSettings['custom_feeds']['podcast'] = 'Default Podcast Feed';
|
164 |
|
165 |
// Re-order so the default podcast episode is the top most...
|
166 |
$Temp = $GeneralSettings['custom_feeds'];
|
173 |
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_title;
|
174 |
}
|
175 |
|
176 |
+
// Handle post type feeds....
|
177 |
+
if( !empty($GeneralSettings['posttype_podcasting']) )
|
178 |
+
{
|
179 |
+
$post_type = get_query_var('post_type');
|
180 |
+
//$post_type = get_post_type();
|
181 |
+
|
182 |
+
// Get the feed slugs and titles for this post type
|
183 |
+
$PostTypeSettingsArray = get_option('powerpress_posttype_'.$post_type);
|
184 |
+
// Loop through this array of post type settings...
|
185 |
+
if( !empty($PostTypeSettingsArray) )
|
186 |
+
{
|
187 |
+
switch($post_type)
|
188 |
+
{
|
189 |
+
case 'post':
|
190 |
+
case 'page': {
|
191 |
+
// Do nothing!, we want the default podcast to appear in these post types
|
192 |
+
}; break;
|
193 |
+
default: {
|
194 |
+
if( !empty($post_type) && empty($PostTypeSettingsArray['podcast']) )
|
195 |
+
unset($GeneralSettings['custom_feeds']['podcast']); // special case, we do not want an accidental podcast episode to appear in a custom post type if the feature is enabled
|
196 |
+
}; break;
|
197 |
+
}
|
198 |
+
|
199 |
+
while( list($feed_slug, $postTypeSettings) = each($PostTypeSettingsArray) )
|
200 |
+
{
|
201 |
+
if( !empty( $postTypeSettings['title']) )
|
202 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $postTypeSettings['title'];
|
203 |
+
else
|
204 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_slug;
|
205 |
+
}
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
if( !isset($GeneralSettings['display_player']) )
|
210 |
$GeneralSettings['display_player'] = 1;
|
211 |
if( !isset($GeneralSettings['player_function']) )
|
1230 |
{
|
1231 |
// Loop through the posttype podcasting settings and set the feeds for the custom post type slugs...
|
1232 |
global $wp_rewrite;
|
1233 |
+
|
1234 |
+
|
1235 |
+
$FeedSlugPostTypesArray = get_option('powerpress_posttype-podcasting'); // Changed field slightly so it does not conflict with a post type "podcasting"
|
1236 |
+
if( $FeedSlugPostTypesArray === false )
|
1237 |
+
{
|
1238 |
+
// Simple one-time fix...
|
1239 |
+
$FeedSlugPostTypesArray = get_option('powerpress_posttype_podcasting');
|
1240 |
+
if( empty($FeedSlugPostTypesArray) )
|
1241 |
+
$FeedSlugPostTypesArray = array();
|
1242 |
+
update_option('powerpress_posttype-podcasting', $FeedSlugPostTypesArray);
|
1243 |
+
if( !array_key_exists('title', $FeedSlugPostTypesArray) ) // AS long as it doesn't have post type specific settings...
|
1244 |
+
delete_option('powerpress_posttype_podcasting');
|
1245 |
+
}
|
1246 |
+
|
1247 |
if( empty($FeedSlugPostTypesArray) )
|
1248 |
+
{
|
1249 |
$FeedSlugPostTypesArray = array();
|
1250 |
+
}
|
1251 |
while( list($feed_slug, $FeedSlugPostTypes) = each($FeedSlugPostTypesArray) )
|
1252 |
{
|
1253 |
if ( !in_array($feed_slug, $wp_rewrite->feeds) ) // we need to add this feed name
|
1720 |
$Temp = $GeneralSettings['custom_feeds'];
|
1721 |
$GeneralSettings['custom_feeds'] = array();
|
1722 |
$GeneralSettings['custom_feeds']['podcast'] = 'Default Podcast Feed';
|
1723 |
+
|
1724 |
while( list($feed_slug, $feed_title) = each($Temp) )
|
1725 |
{
|
1726 |
if( $feed_slug == 'podcast' )
|
1728 |
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_title;
|
1729 |
}
|
1730 |
|
1731 |
+
// Handle post type feeds....
|
1732 |
+
if( !empty($GeneralSettings['posttype_podcasting']) )
|
1733 |
+
{
|
1734 |
+
$post_type = get_query_var('post_type');
|
1735 |
+
//$post_type = get_post_type();
|
1736 |
+
|
1737 |
+
// Get the feed slugs and titles for this post type
|
1738 |
+
$PostTypeSettingsArray = get_option('powerpress_posttype_'.$post_type);
|
1739 |
+
// Loop through this array of post type settings...
|
1740 |
+
if( !empty($PostTypeSettingsArray) )
|
1741 |
+
{
|
1742 |
+
switch($post_type)
|
1743 |
+
{
|
1744 |
+
case 'post':
|
1745 |
+
case 'page': {
|
1746 |
+
// Do nothing!, we want the default podcast to appear in these post types
|
1747 |
+
}; break;
|
1748 |
+
default: {
|
1749 |
+
if( !empty($post_type) && empty($PostTypeSettingsArray['podcast']) )
|
1750 |
+
unset($GeneralSettings['custom_feeds']['podcast']); // special case, we do not want an accidental podcast episode to appear in a custom post type if the feature is enabled
|
1751 |
+
}; break;
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
while( list($feed_slug, $postTypeSettings) = each($PostTypeSettingsArray) )
|
1755 |
+
{
|
1756 |
+
if( !empty( $postTypeSettings['title']) )
|
1757 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $postTypeSettings['title'];
|
1758 |
+
else
|
1759 |
+
$GeneralSettings['custom_feeds'][ $feed_slug ] = $feed_slug;
|
1760 |
+
}
|
1761 |
+
}
|
1762 |
+
}
|
1763 |
+
|
1764 |
if( !isset($GeneralSettings['display_player']) )
|
1765 |
$GeneralSettings['display_player'] = 1;
|
1766 |
if( !isset($GeneralSettings['player_function']) )
|
2625 |
$AddDefaultPlayer = false;
|
2626 |
}
|
2627 |
|
2628 |
+
if( isset($GeneralSettings['premium_caps']) && $GeneralSettings['premium_caps'] && !powerpress_premium_content_authorized($feed_slug) )
|
2629 |
{
|
2630 |
$return .= powerpress_premium_content_message(get_the_ID(), $feed_slug, $EpisodeData);
|
2631 |
continue;
|
2655 |
if( isset($FeedSettings['premium']) && $FeedSettings['premium'] != '' )
|
2656 |
return current_user_can($FeedSettings['premium']);
|
2657 |
}
|
2658 |
+
|
2659 |
+
$post_type = get_query_var('post_type');
|
2660 |
+
if( $post_type != 'post' )
|
2661 |
+
{
|
2662 |
+
$GeneralSettings = get_option('powerpress_general');
|
2663 |
+
if( !empty($GeneralSettings['posttype_podcasting']) ) // Custom Post Types
|
2664 |
+
{
|
2665 |
+
// Get the feed slugs and titles for this post type
|
2666 |
+
$PostTypeSettingsArray = get_option('powerpress_posttype_'.$post_type);
|
2667 |
+
if( !empty($PostTypeSettingsArray[$feed_slug]['premium']) )
|
2668 |
+
return current_user_can($PostTypeSettingsArray[$feed_slug]['premium']);
|
2669 |
+
}
|
2670 |
+
}
|
2671 |
return true; // any user can access this content
|
2672 |
}
|
2673 |
|
2679 |
if( !$EpisodeData )
|
2680 |
return '';
|
2681 |
$FeedSettings = get_option('powerpress_feed_'.$feed_slug);
|
2682 |
+
$post_type = get_query_var('post_type');
|
2683 |
+
if( $post_type != 'post' )
|
2684 |
+
{
|
2685 |
+
$GeneralSettings = get_option('powerpress_general');
|
2686 |
+
if( !empty($GeneralSettings['posttype_podcasting']) ) // Custom Post Types
|
2687 |
+
{
|
2688 |
+
// Get the feed slugs and titles for this post type
|
2689 |
+
$PostTypeSettingsArray = get_option('powerpress_posttype_'.$post_type);
|
2690 |
+
if( !empty($PostTypeSettingsArray[$feed_slug]['premium']) )
|
2691 |
+
{
|
2692 |
+
$FeedSettings = $PostTypeSettingsArray[$feed_slug];
|
2693 |
+
}
|
2694 |
+
}
|
2695 |
+
}
|
2696 |
|
2697 |
$extension = 'unknown';
|
2698 |
$parts = pathinfo($EpisodeData['url']);
|
powerpressadmin-basic.php
CHANGED
@@ -130,8 +130,8 @@ jQuery(document).ready(function($) {
|
|
130 |
<div id="powerpress_admin_header">
|
131 |
<h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
|
132 |
<span class="powerpress-mode"><?php echo __('Advanced Mode', 'powerpress'); ?>
|
133 |
-
|
134 |
-
</span>
|
135 |
</div>
|
136 |
|
137 |
<div id="powerpress_settings_page" class="powerpress_tabbed_content">
|
@@ -306,8 +306,8 @@ function powerpressadmin_advanced_options($General)
|
|
306 |
</li>
|
307 |
<li><?php echo __('Tell the world about PowerPress by writing about it on your blog', 'powerpress'); ?>,
|
308 |
<a href="http://twitter.com/home/?status=<?php echo urlencode( __('I\'m podcasting with Blubrry PowerPress (http://blubrry.com/powerpress/) #powerpress #wordpress', 'powerpress') ); ?>" target="_blank"><?php echo __('Twitter', 'powerpress'); ?></a>,
|
309 |
-
<a href="http://www.facebook.com/share.php?u=<?php echo urlencode('http://create.blubrry.com/resources/powerpress/'); ?>&t=<?php echo urlencode( __('I podcast with Blubrry PowerPress', 'powerpress')); ?>" target="_blank"><?php echo __('Facebook', 'powerpress'); ?></a>,
|
310 |
-
<a href="http://digg.com/submit?phase=2&url=<?php echo urlencode('http://www.blubrry.com/powerpress'); ?>&title=<?php echo urlencode( __('Blubrry PowerPress Podcasting Plugin for WordPress', 'powerpress') ); ?>" target="_blank"><?php echo __('Digg', 'powerpress'); ?></a>,
|
311 |
etc...</li>
|
312 |
<li><a href="http://www.blubrry.com/contact.php" target="_blank"><?php echo __('Send us feedback', 'powerpress'); ?></a> (<?php echo __('we love getting suggestions for new features!', 'powerpress'); ?>)</li>
|
313 |
</ul>
|
@@ -357,7 +357,7 @@ function powerpressadmin_edit_entry_options($General)
|
|
357 |
<p style="margin-top: 15px;"><input class="episode_box_option" name="Null[ignore]" type="checkbox" value="1" checked onclick="return false" onkeydown="return false" /> <?php echo __('Media URL', 'powerpress'); ?>
|
358 |
(<?php echo __('Specify URL to episode\'s media file', 'powerpress'); ?>)</p>
|
359 |
|
360 |
-
<p style="margin-top: 15px;"><input id="
|
361 |
(<?php echo __('Specify episode\'s media file size and duration', 'powerpress'); ?>)</p>
|
362 |
|
363 |
<p style="margin-top: 15px; margin-bottom: 0;"><input id="episode_box_embed" class="episode_box_option" name="General[episode_box_embed]" type="checkbox" value="1"<?php if( !empty($General['episode_box_embed']) ) echo ' checked'; ?> onclick="SelectEmbedField(this.checked);" /> <?php echo __('Embed Field', 'powerpress'); ?>
|
@@ -399,7 +399,7 @@ function powerpressadmin_edit_entry_options($General)
|
|
399 |
<p style="margin-top: 15px;"><input id="episode_box_explicit" class="episode_box_option" name="General[episode_box_explicit]" type="checkbox" value="1"<?php if( !empty($General['episode_box_explicit']) ) echo ' checked'; ?> /> <?php echo __('iTunes Explicit Field', 'powerpress'); ?>
|
400 |
(<?php echo __('Leave unchecked to use your feed\'s explicit setting', 'powerpress'); ?>)</p>
|
401 |
|
402 |
-
<p style="margin-top: 15px;"><label><input id="
|
403 |
(<?php echo __('Leave unchecked to use the image embedded into your media files.', 'powerpress'); ?>)</p>
|
404 |
|
405 |
<p style="margin-top: 15px;"><label><input id="episode_box_closed_captioned" class="episode_box_option" name="General[episode_box_closed_captioned]" type="checkbox" value="1"<?php if( !empty($General['episode_box_closed_captioned']) ) echo ' checked'; ?> /> <?php echo __('iTunes Closed Captioned', 'powerpress'); ?></label>
|
@@ -525,7 +525,7 @@ while( list($value,$desc) = each($options) )
|
|
525 |
?>
|
526 |
</select>
|
527 |
<p><?php echo __('When enabled, the first or last media link found in the post content is automatically added as your podcast episode.', 'powerpress'); ?></p>
|
528 |
-
<p style="margin-bottom: 0;"><em><?php echo __('NOTE: Use this feature with caution. Links to media files could unintentionally become podcast episodes.', 'powerpress'); ?></em></p>
|
529 |
<p><em><?php echo __('WARNING: Episodes created with this feature will <u>not</u> include Duration (total play time) information.', 'powerpress'); ?></em></p>
|
530 |
</td>
|
531 |
</tr>
|
@@ -637,19 +637,25 @@ while( list($value,$desc) = each($options) )
|
|
637 |
function powerpressadmin_edit_itunes_general($FeedSettings, $General, $FeedAttribs = array() )
|
638 |
{
|
639 |
// Set default settings (if not set)
|
640 |
-
if( $FeedSettings )
|
641 |
{
|
642 |
if( !isset($FeedSettings['itunes_url']) )
|
643 |
$FeedSettings['itunes_url'] = '';
|
644 |
}
|
645 |
if( !isset($General['itunes_url']) )
|
646 |
$General['itunes_url'] = '';
|
647 |
-
else if( !isset($FeedSettings['itunes_url']) )
|
648 |
$FeedSettings['itunes_url'] = $General['itunes_url'];
|
649 |
|
650 |
$feed_slug = $FeedAttribs['feed_slug'];
|
651 |
$cat_ID = $FeedAttribs['category_id'];
|
652 |
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
?>
|
654 |
<h3><?php echo __('iTunes Listing Information', 'powerpress'); ?></h3>
|
655 |
<table class="form-table">
|
@@ -734,7 +740,7 @@ function powerpressadmin_edit_blubrry_services($General)
|
|
734 |
{
|
735 |
?>
|
736 |
<p style="font-weight: bold;">
|
737 |
-
<img src="<?php echo powerpress_get_root_url(); ?>images/Check.png" style="width: 25px; height: 20px;" />
|
738 |
<?php
|
739 |
if( empty($General['blubrry_hosting']) || $General['blubrry_hosting'] === 'false' )
|
740 |
echo __('Blubrry Statistics Enabled!', 'powerpress');
|
@@ -801,7 +807,7 @@ function powerpressadmin_edit_media_statistics($General)
|
|
801 |
$StatsIntegrationURL = 'http://media.blubrry.com/'.$General['blubrry_program_keyword'].'/';
|
802 |
?>
|
803 |
<div id="blubrry_stats_settings">
|
804 |
-
<h3><?php echo __('Media Statistics', 'powerpress'); ?></
|
805 |
<div style="margin-left: 40px;">
|
806 |
<p>
|
807 |
<?php echo __('Enter your Redirect URL issued by your media statistics service provider below.', 'powerpress'); ?>
|
@@ -820,7 +826,7 @@ function powerpressadmin_edit_media_statistics($General)
|
|
820 |
</table>
|
821 |
<?php if( empty($General['redirect2']) && empty($General['redirect3']) ) { ?>
|
822 |
<div style="position: absolute;bottom: -2px;left: -40px;" id="powerpress_redirect2_showlink">
|
823 |
-
<a href="
|
824 |
</div>
|
825 |
<?php } ?>
|
826 |
</div>
|
@@ -839,7 +845,7 @@ function powerpressadmin_edit_media_statistics($General)
|
|
839 |
</table>
|
840 |
<?php if( $General['redirect3'] == '' ) { ?>
|
841 |
<div style="position: absolute;bottom: -2px;left: -40px;" id="powerpress_redirect3_showlink">
|
842 |
-
<a href="
|
843 |
</div>
|
844 |
<?php } ?>
|
845 |
</div>
|
@@ -911,18 +917,16 @@ function powerpressadmin_appearance($General=false)
|
|
911 |
<th scope="row"> </th>
|
912 |
<td>
|
913 |
<ul>
|
914 |
-
<li><label><input type="radio" name="General[disable_appearance]" value="0" <?php if( $General['disable_appearance'] == 0 ) echo 'checked'; ?> onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'block':'none') );" /> <?php echo __('Enable PowerPress Media Players and Links', 'powerpress'); ?></label> (<?php echo __('default', 'powerpress'); ?>)</
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
</ul>
|
919 |
</li>
|
920 |
|
921 |
-
<li><label><input type="radio" name="General[disable_appearance]" value="1" <?php if( $General['disable_appearance'] == 1 ) echo 'checked'; ?> onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'none':'block') );" /> <?php echo __('Disable PowerPress Media Players and Links', 'powerpress'); ?></label></
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
</ul>
|
926 |
</li>
|
927 |
</ul>
|
928 |
</td>
|
@@ -942,24 +946,21 @@ function powerpressadmin_appearance($General=false)
|
|
942 |
<th scope="row"><?php echo htmlspecialchars(__('Display Media & Links', 'powerpress')); ?></th>
|
943 |
<td>
|
944 |
<ul>
|
945 |
-
<li><label><input type="radio" name="General[display_player]" value="1" <?php if( $General['display_player'] == 1 ) echo 'checked'; ?> /> <?php echo __('Below page content', 'powerpress'); ?></label> (<?php echo __('default', 'powerpress'); ?>)</
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
</ul>
|
950 |
</li>
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
<li><?php echo __('Player and media links will appear <u>above</u> your post and page content.', 'powerpress'); ?></li>
|
956 |
-
</ul>
|
957 |
</li>
|
958 |
-
<li><label><input type="radio" name="General[display_player]" value="0" <?php if( $General['display_player'] == 0 ) echo 'checked'; ?> /> <?php echo __('Disable', 'powerpress'); ?></label></li>
|
959 |
<li>
|
960 |
-
<
|
961 |
-
|
962 |
-
|
|
|
963 |
</li>
|
964 |
</ul>
|
965 |
<p><input name="General[display_player_excerpt]" type="checkbox" value="1" <?php if( !empty($General['display_player_excerpt']) ) echo 'checked '; ?>/> <?php echo __('Display media / links in:', 'powerpress'); ?> <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" title="<?php echo __('WordPress Excerpts', 'powerpress'); ?>" target="_blank"><?php echo __('WordPress Excerpts', 'powerpress'); ?></a> (<?php echo __('e.g. search results', 'powerpress'); ?>)</p>
|
@@ -984,7 +985,7 @@ function powerpressadmin_appearance($General=false)
|
|
984 |
<p>
|
985 |
<?php echo sprintf(__('Please visit the %s page for additional options.', 'powerpress'), '<a href="http://create.blubrry.com/resources/powerpress/advanced-tools-and-options/shortcode/" target="_blank">'. __('PowerPress Shortcode', 'powerpress') .'</a>' ); ?>
|
986 |
</p>
|
987 |
-
<p>
|
988 |
<?php echo __('Note: When specifying a URL to media in the powerpress shortcode, only the player is included. The Media Links will <u>NOT</u> be included since there is not enough meta information to display them.', 'powerpress'); ?>
|
989 |
</p>
|
990 |
</td>
|
@@ -1189,7 +1190,7 @@ function powerpressadmin_edit_tv($FeedSettings = false, $feed_slug='podcast', $c
|
|
1189 |
$tip = $RatingsTips[ $rating ];
|
1190 |
?>
|
1191 |
<div style="margin-bottom: 10px;"><label><input type="radio" name="Feed[parental_rating]" value="<?php echo $rating; ?>" <?php if( $FeedSettings['parental_rating'] == $rating) echo 'checked'; ?> /> <?php if( $rating ) { ?><strong><?php echo $rating; ?></strong><?php } else { ?><strong><?php echo htmlspecialchars($title); ?></strong><?php } ?></label>
|
1192 |
-
<?php if( $rating ) { ?> <span style="margin-left: 8px;"><a href="#" class="powerpress-parental-rating-tip" id="rating_tip_<?php echo $rating; ?>"><?php echo htmlspecialchars($title); ?></a><?php }
|
1193 |
<p style="margin: 5px 50px; display: none;" id="rating_tip_<?php echo $rating; ?>_p" class="powerpress-parental-rating-tip-p"><?php echo htmlspecialchars($tip); ?></p>
|
1194 |
</div>
|
1195 |
<?php
|
@@ -1228,7 +1229,7 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
|
|
1228 |
<?php echo __('This image is for your listing on the iTunes podcast directory and may also be used by other directories like Blubrry. It is not the artwork that is displayed during episode playback. That artwork needs to be saved into the media file in the form of tags (ID3 tags for mp3) following the production of the media file.', 'powerpress'); ?>
|
1229 |
</p>
|
1230 |
|
1231 |
-
<p><?php echo __('Note: If you change the iTunes image without changing the file name it may take some time (days or even months) for iTunes to update the image in the iTunes Podcast Directory.', 'powerpress'); ?>
|
1232 |
<?php echo sprintf( __('Please contact %s if you are having issues with your image changes not appearing in iTunes.', 'powerpress'), '<a href="http://www.apple.com/support/itunes/contact/">'. __('iTunes Support', 'powerpress') .'</a>'); ?></p>
|
1233 |
<?php if( $SupportUploads ) { ?>
|
1234 |
|
@@ -1236,7 +1237,7 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
|
|
1236 |
<span style="font-size:85%;">(<?php echo __('Using this option should update your image on iTunes within 24 hours', 'powerpress'); ?>)</span>
|
1237 |
</p>
|
1238 |
<div style="display:none" id="itunes_image_upload">
|
1239 |
-
<label for="itunes_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="itunes_image_file" /><br />
|
1240 |
<?php if( !empty($General['advanced_mode_2']) ) { ?>
|
1241 |
<div style="margin-left: 85px;"><label class="powerpress-normal-font"><input name="itunes_image_checkbox_as_rss" type="checkbox" value="1" onchange="powerpress_show_field('rss_image_upload_container', !this.checked)" /> <?php echo __('Also use as RSS image', 'powerpress'); ?></label></div>
|
1242 |
<?php } else { ?>
|
@@ -1258,7 +1259,7 @@ function powerpressadmin_edit_artwork($FeedSettings, $General)
|
|
1258 |
|
1259 |
<p><label><input type="checkbox" name="Feed[episode_itunes_image]" value="1" <?php if( !empty($FeedSettings['episode_itunes_image']) ) echo 'checked '; ?>/> <?php echo __('Use iTunes image above', 'powerpress'); ?></label></p>
|
1260 |
<p><?php echo __('Use the program iTunes image above as your iTunes episode image.', 'powerpress'); ?></p>
|
1261 |
-
<p><?php echo __('NOTE: You must still save artwork into your media files to guarantee your artwork is displayed during playback.', 'powerpress'); ?></p>
|
1262 |
</td>
|
1263 |
</tr>
|
1264 |
|
130 |
<div id="powerpress_admin_header">
|
131 |
<h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
|
132 |
<span class="powerpress-mode"><?php echo __('Advanced Mode', 'powerpress'); ?>
|
133 |
+
<a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_basic.php&mode=simple"); ?>" id="powerpress_advanced_mode_button" class="button-primary"><?php echo __('Switch to simplified Default Mode', 'powerpress'); ?></a>
|
134 |
+
</span>
|
135 |
</div>
|
136 |
|
137 |
<div id="powerpress_settings_page" class="powerpress_tabbed_content">
|
306 |
</li>
|
307 |
<li><?php echo __('Tell the world about PowerPress by writing about it on your blog', 'powerpress'); ?>,
|
308 |
<a href="http://twitter.com/home/?status=<?php echo urlencode( __('I\'m podcasting with Blubrry PowerPress (http://blubrry.com/powerpress/) #powerpress #wordpress', 'powerpress') ); ?>" target="_blank"><?php echo __('Twitter', 'powerpress'); ?></a>,
|
309 |
+
<a href="http://www.facebook.com/share.php?u=<?php echo urlencode('http://create.blubrry.com/resources/powerpress/'); ?>&t=<?php echo urlencode( __('I podcast with Blubrry PowerPress', 'powerpress')); ?>" target="_blank"><?php echo __('Facebook', 'powerpress'); ?></a>,
|
310 |
+
<a href="http://digg.com/submit?phase=2&url=<?php echo urlencode('http://www.blubrry.com/powerpress'); ?>&title=<?php echo urlencode( __('Blubrry PowerPress Podcasting Plugin for WordPress', 'powerpress') ); ?>" target="_blank"><?php echo __('Digg', 'powerpress'); ?></a>,
|
311 |
etc...</li>
|
312 |
<li><a href="http://www.blubrry.com/contact.php" target="_blank"><?php echo __('Send us feedback', 'powerpress'); ?></a> (<?php echo __('we love getting suggestions for new features!', 'powerpress'); ?>)</li>
|
313 |
</ul>
|
357 |
<p style="margin-top: 15px;"><input class="episode_box_option" name="Null[ignore]" type="checkbox" value="1" checked onclick="return false" onkeydown="return false" /> <?php echo __('Media URL', 'powerpress'); ?>
|
358 |
(<?php echo __('Specify URL to episode\'s media file', 'powerpress'); ?>)</p>
|
359 |
|
360 |
+
<p style="margin-top: 15px;"><input id="episode_box_mode" class="episode_box_option" name="General[episode_box_mode]" type="checkbox" value="2" <?php if( empty($General['episode_box_mode']) || $General['episode_box_mode'] != 1 ) echo ' checked'; ?> /> <?php echo __('Media File Size and Duration', 'powerpress'); ?>
|
361 |
(<?php echo __('Specify episode\'s media file size and duration', 'powerpress'); ?>)</p>
|
362 |
|
363 |
<p style="margin-top: 15px; margin-bottom: 0;"><input id="episode_box_embed" class="episode_box_option" name="General[episode_box_embed]" type="checkbox" value="1"<?php if( !empty($General['episode_box_embed']) ) echo ' checked'; ?> onclick="SelectEmbedField(this.checked);" /> <?php echo __('Embed Field', 'powerpress'); ?>
|
399 |
<p style="margin-top: 15px;"><input id="episode_box_explicit" class="episode_box_option" name="General[episode_box_explicit]" type="checkbox" value="1"<?php if( !empty($General['episode_box_explicit']) ) echo ' checked'; ?> /> <?php echo __('iTunes Explicit Field', 'powerpress'); ?>
|
400 |
(<?php echo __('Leave unchecked to use your feed\'s explicit setting', 'powerpress'); ?>)</p>
|
401 |
|
402 |
+
<p style="margin-top: 15px;"><label><input id="episode_box_itunes_image" class="episode_box_option" name="General[episode_box_itunes_image]" type="checkbox" value="1"<?php if( !empty($General['episode_box_itunes_image']) ) echo ' checked'; ?> /> <?php echo __('iTunes Episode Image Field', 'powerpress'); ?></label> <?php echo powerpressadmin_new(); ?>
|
403 |
(<?php echo __('Leave unchecked to use the image embedded into your media files.', 'powerpress'); ?>)</p>
|
404 |
|
405 |
<p style="margin-top: 15px;"><label><input id="episode_box_closed_captioned" class="episode_box_option" name="General[episode_box_closed_captioned]" type="checkbox" value="1"<?php if( !empty($General['episode_box_closed_captioned']) ) echo ' checked'; ?> /> <?php echo __('iTunes Closed Captioned', 'powerpress'); ?></label>
|
525 |
?>
|
526 |
</select>
|
527 |
<p><?php echo __('When enabled, the first or last media link found in the post content is automatically added as your podcast episode.', 'powerpress'); ?></p>
|
528 |
+
<p style="margin-bottom: 0;" class="description"><em><?php echo __('NOTE: Use this feature with caution. Links to media files could unintentionally become podcast episodes.', 'powerpress'); ?></em></p>
|
529 |
<p><em><?php echo __('WARNING: Episodes created with this feature will <u>not</u> include Duration (total play time) information.', 'powerpress'); ?></em></p>
|
530 |
</td>
|
531 |
</tr>
|
637 |
function powerpressadmin_edit_itunes_general($FeedSettings, $General, $FeedAttribs = array() )
|
638 |
{
|
639 |
// Set default settings (if not set)
|
640 |
+
if( !empty($FeedSettings) )
|
641 |
{
|
642 |
if( !isset($FeedSettings['itunes_url']) )
|
643 |
$FeedSettings['itunes_url'] = '';
|
644 |
}
|
645 |
if( !isset($General['itunes_url']) )
|
646 |
$General['itunes_url'] = '';
|
647 |
+
else if( !isset($FeedSettings['itunes_url']) ) // Should almost never happen
|
648 |
$FeedSettings['itunes_url'] = $General['itunes_url'];
|
649 |
|
650 |
$feed_slug = $FeedAttribs['feed_slug'];
|
651 |
$cat_ID = $FeedAttribs['category_id'];
|
652 |
|
653 |
+
if( $feed_slug == 'podcast' && $FeedAttribs['type'] == 'general' )
|
654 |
+
{
|
655 |
+
if( empty($FeedSettings['itunes_url']) && !empty($General['itunes_url']) )
|
656 |
+
$FeedSettings['itunes_url'] = $General['itunes_url'];
|
657 |
+
}
|
658 |
+
|
659 |
?>
|
660 |
<h3><?php echo __('iTunes Listing Information', 'powerpress'); ?></h3>
|
661 |
<table class="form-table">
|
740 |
{
|
741 |
?>
|
742 |
<p style="font-weight: bold;">
|
743 |
+
<img src="<?php echo powerpress_get_root_url(); ?>images/Check.png" style="width: 25px; height: 20px;" alt="<?php echo __('Enabled!', 'powerpress'); ?>" />
|
744 |
<?php
|
745 |
if( empty($General['blubrry_hosting']) || $General['blubrry_hosting'] === 'false' )
|
746 |
echo __('Blubrry Statistics Enabled!', 'powerpress');
|
807 |
$StatsIntegrationURL = 'http://media.blubrry.com/'.$General['blubrry_program_keyword'].'/';
|
808 |
?>
|
809 |
<div id="blubrry_stats_settings">
|
810 |
+
<h3><?php echo __('Media Statistics', 'powerpress'); ?></h3>
|
811 |
<div style="margin-left: 40px;">
|
812 |
<p>
|
813 |
<?php echo __('Enter your Redirect URL issued by your media statistics service provider below.', 'powerpress'); ?>
|
826 |
</table>
|
827 |
<?php if( empty($General['redirect2']) && empty($General['redirect3']) ) { ?>
|
828 |
<div style="position: absolute;bottom: -2px;left: -40px;" id="powerpress_redirect2_showlink">
|
829 |
+
<a href="#" onclick="javascript:document.getElementById('powerpress_redirect2_table').style.display='block';document.getElementById('powerpress_redirect2_showlink').style.display='none';return false;"><?php echo __('Add Another Redirect', 'powerpress'); ?></a>
|
830 |
</div>
|
831 |
<?php } ?>
|
832 |
</div>
|
845 |
</table>
|
846 |
<?php if( $General['redirect3'] == '' ) { ?>
|
847 |
<div style="position: absolute;bottom: -2px;left: -40px;" id="powerpress_redirect3_showlink">
|
848 |
+
<a href="#" onclick="javascript:document.getElementById('powerpress_redirect3_table').style.display='block';document.getElementById('powerpress_redirect3_showlink').style.display='none';return false;"><?php echo __('Add Another Redirect', 'powerpress'); ?></a>
|
849 |
</div>
|
850 |
<?php } ?>
|
851 |
</div>
|
917 |
<th scope="row"> </th>
|
918 |
<td>
|
919 |
<ul>
|
920 |
+
<li><p><label><input type="radio" name="General[disable_appearance]" value="0" <?php if( $General['disable_appearance'] == 0 ) echo 'checked'; ?> onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'block':'none') );" /> <?php echo __('Enable PowerPress Media Players and Links', 'powerpress'); ?></label> (<?php echo __('default', 'powerpress'); ?>)</p>
|
921 |
+
<ul><li>
|
922 |
+
<p class="description"><?php echo __('PowerPress will add media players and links to your site.', 'powerpress'); ?></p>
|
923 |
+
</li></ul>
|
|
|
924 |
</li>
|
925 |
|
926 |
+
<li><p><label><input type="radio" name="General[disable_appearance]" value="1" <?php if( $General['disable_appearance'] == 1 ) echo 'checked'; ?> onclick="javascript: jQuery('#presentation_settings').css('display', (this.checked?'none':'block') );" /> <?php echo __('Disable PowerPress Media Players and Links', 'powerpress'); ?></label></p>
|
927 |
+
<ul><li>
|
928 |
+
<p class="description"><?php echo __('PowerPress will <u>not</u> add any media players or media links to your site. PowerPress will only be used to add podcasting support to your feeds.', 'powerpress'); ?></p>
|
929 |
+
</li></ul>
|
|
|
930 |
</li>
|
931 |
</ul>
|
932 |
</td>
|
946 |
<th scope="row"><?php echo htmlspecialchars(__('Display Media & Links', 'powerpress')); ?></th>
|
947 |
<td>
|
948 |
<ul>
|
949 |
+
<li><p><label><input type="radio" name="General[display_player]" value="1" <?php if( $General['display_player'] == 1 ) echo 'checked'; ?> /> <?php echo __('Below page content', 'powerpress'); ?></label> (<?php echo __('default', 'powerpress'); ?>)</p>
|
950 |
+
<ul><li>
|
951 |
+
<p class="description"><?php echo __('Player and media links will appear <u>below</u> your post and page content.', 'powerpress'); ?><p>
|
952 |
+
</li></ul>
|
|
|
953 |
</li>
|
954 |
+
<li><p><label><input type="radio" name="General[display_player]" value="2" <?php if( $General['display_player'] == 2 ) echo 'checked'; ?> /> <?php echo __('Above page content', 'powerpress'); ?></label></p>
|
955 |
+
<ul><li>
|
956 |
+
<p class="description"><?php echo __('Player and media links will appear <u>above</u> your post and page content.', 'powerpress'); ?></p>
|
957 |
+
</li></ul>
|
|
|
|
|
958 |
</li>
|
|
|
959 |
<li>
|
960 |
+
<p><label><input type="radio" name="General[display_player]" value="0" <?php if( $General['display_player'] == 0 ) echo 'checked'; ?> /> <?php echo __('Disable', 'powerpress'); ?></label></p>
|
961 |
+
<ul><li>
|
962 |
+
<p class="description"><?php echo __('Player and media links will <u>NOT</u> appear in your post and page content. Media player and links can be added manually by using the <i>shortcode</i> below.', 'powerpress'); ?></p>
|
963 |
+
</li></ul>
|
964 |
</li>
|
965 |
</ul>
|
966 |
<p><input name="General[display_player_excerpt]" type="checkbox" value="1" <?php if( !empty($General['display_player_excerpt']) ) echo 'checked '; ?>/> <?php echo __('Display media / links in:', 'powerpress'); ?> <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" title="<?php echo __('WordPress Excerpts', 'powerpress'); ?>" target="_blank"><?php echo __('WordPress Excerpts', 'powerpress'); ?></a> (<?php echo __('e.g. search results', 'powerpress'); ?>)</p>
|
985 |
<p>
|
986 |
<?php echo sprintf(__('Please visit the %s page for additional options.', 'powerpress'), '<a href="http://create.blubrry.com/resources/powerpress/advanced-tools-and-options/shortcode/" target="_blank">'. __('PowerPress Shortcode', 'powerpress') .'</a>' ); ?>
|
987 |
</p>
|
988 |
+
<p class="description">
|
989 |
<?php echo __('Note: When specifying a URL to media in the powerpress shortcode, only the player is included. The Media Links will <u>NOT</u> be included since there is not enough meta information to display them.', 'powerpress'); ?>
|
990 |
</p>
|
991 |
</td>
|
1190 |
$tip = $RatingsTips[ $rating ];
|
1191 |
?>
|
1192 |
<div style="margin-bottom: 10px;"><label><input type="radio" name="Feed[parental_rating]" value="<?php echo $rating; ?>" <?php if( $FeedSettings['parental_rating'] == $rating) echo 'checked'; ?> /> <?php if( $rating ) { ?><strong><?php echo $rating; ?></strong><?php } else { ?><strong><?php echo htmlspecialchars($title); ?></strong><?php } ?></label>
|
1193 |
+
<?php if( $rating ) { ?> <span style="margin-left: 8px;"><a href="#" class="powerpress-parental-rating-tip" id="rating_tip_<?php echo $rating; ?>"><?php echo htmlspecialchars($title); ?></a></span><?php } ?>
|
1194 |
<p style="margin: 5px 50px; display: none;" id="rating_tip_<?php echo $rating; ?>_p" class="powerpress-parental-rating-tip-p"><?php echo htmlspecialchars($tip); ?></p>
|
1195 |
</div>
|
1196 |
<?php
|
1229 |
<?php echo __('This image is for your listing on the iTunes podcast directory and may also be used by other directories like Blubrry. It is not the artwork that is displayed during episode playback. That artwork needs to be saved into the media file in the form of tags (ID3 tags for mp3) following the production of the media file.', 'powerpress'); ?>
|
1230 |
</p>
|
1231 |
|
1232 |
+
<p class="description"><?php echo __('Note: If you change the iTunes image without changing the file name it may take some time (days or even months) for iTunes to update the image in the iTunes Podcast Directory.', 'powerpress'); ?>
|
1233 |
<?php echo sprintf( __('Please contact %s if you are having issues with your image changes not appearing in iTunes.', 'powerpress'), '<a href="http://www.apple.com/support/itunes/contact/">'. __('iTunes Support', 'powerpress') .'</a>'); ?></p>
|
1234 |
<?php if( $SupportUploads ) { ?>
|
1235 |
|
1237 |
<span style="font-size:85%;">(<?php echo __('Using this option should update your image on iTunes within 24 hours', 'powerpress'); ?>)</span>
|
1238 |
</p>
|
1239 |
<div style="display:none" id="itunes_image_upload">
|
1240 |
+
<label for="itunes_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" id="itunes_image_file" name="itunes_image_file" /><br />
|
1241 |
<?php if( !empty($General['advanced_mode_2']) ) { ?>
|
1242 |
<div style="margin-left: 85px;"><label class="powerpress-normal-font"><input name="itunes_image_checkbox_as_rss" type="checkbox" value="1" onchange="powerpress_show_field('rss_image_upload_container', !this.checked)" /> <?php echo __('Also use as RSS image', 'powerpress'); ?></label></div>
|
1243 |
<?php } else { ?>
|
1259 |
|
1260 |
<p><label><input type="checkbox" name="Feed[episode_itunes_image]" value="1" <?php if( !empty($FeedSettings['episode_itunes_image']) ) echo 'checked '; ?>/> <?php echo __('Use iTunes image above', 'powerpress'); ?></label></p>
|
1261 |
<p><?php echo __('Use the program iTunes image above as your iTunes episode image.', 'powerpress'); ?></p>
|
1262 |
+
<p class="description"><?php echo __('NOTE: You must still save artwork into your media files to guarantee your artwork is displayed during playback.', 'powerpress'); ?></p>
|
1263 |
</td>
|
1264 |
</tr>
|
1265 |
|
powerpressadmin-defaults.php
CHANGED
@@ -89,7 +89,7 @@ jQuery(document).ready(function($) {
|
|
89 |
<div id="powerpress_admin_header">
|
90 |
<h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
|
91 |
<span class="powerpress-mode"><?php echo __('Default Mode', 'powerpress'); ?>
|
92 |
-
<a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_basic.php&mode=advanced"); ?>" id="powerpress_advanced_mode_button" class="button-primary"><?php echo __('Switch to Advanced Mode', 'powerpress'); ?></a>
|
93 |
</span>
|
94 |
</div>
|
95 |
|
@@ -106,7 +106,7 @@ jQuery(document).ready(function($) {
|
|
106 |
<?php echo __('Program Title', 'powerpress'); ?>
|
107 |
</th>
|
108 |
<td>
|
109 |
-
<input type="text" name="Feed[title]"style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
|
110 |
(<?php echo __('leave blank to use blog title', 'powerpress'); ?>)
|
111 |
<p><?php echo __('Blog title:', 'powerpress') .' '. get_bloginfo_rss('name'); ?></p>
|
112 |
</td>
|
89 |
<div id="powerpress_admin_header">
|
90 |
<h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
|
91 |
<span class="powerpress-mode"><?php echo __('Default Mode', 'powerpress'); ?>
|
92 |
+
<a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_basic.php&mode=advanced"); ?>" id="powerpress_advanced_mode_button" class="button-primary"><?php echo __('Switch to Advanced Mode', 'powerpress'); ?></a>
|
93 |
</span>
|
94 |
</div>
|
95 |
|
106 |
<?php echo __('Program Title', 'powerpress'); ?>
|
107 |
</th>
|
108 |
<td>
|
109 |
+
<input type="text" name="Feed[title]" style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
|
110 |
(<?php echo __('leave blank to use blog title', 'powerpress'); ?>)
|
111 |
<p><?php echo __('Blog title:', 'powerpress') .' '. get_bloginfo_rss('name'); ?></p>
|
112 |
</td>
|
powerpressadmin-editfeed.php
CHANGED
@@ -347,7 +347,7 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
|
|
347 |
<?php echo __('Enhance Feeds', 'powerpress'); ?></th>
|
348 |
<td>
|
349 |
<ul>
|
350 |
-
<li><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> <?php echo __('Enhance All Feeds', 'powerpress'); ?></label> (<?php echo __('Recommended', 'powerpress'); ?>)</li>
|
351 |
<li>
|
352 |
<ul>
|
353 |
<li><?php echo __('Adds podcasting support to all feeds', 'powerpress'); ?></li>
|
@@ -355,13 +355,13 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
|
|
355 |
<li><?php echo __('Allows for Tag/Keyword Casting', 'powerpress'); ?> (<?php echo __('Visitors may subscribe to your tags as a podcast', 'powerpress'); ?>)</li>
|
356 |
</ul>
|
357 |
</li>
|
358 |
-
<li><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> <?php echo __('Enhance Main Feed Only', 'powerpress'); ?></label></li>
|
359 |
<li>
|
360 |
<ul>
|
361 |
<li><?php echo __('Adds podcasting support to your main feed only', 'powerpress'); ?></li>
|
362 |
</ul>
|
363 |
</li>
|
364 |
-
<li><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> <?php echo __('Do Not Enhance Feeds', 'powerpress'); ?></label></li>
|
365 |
<li>
|
366 |
<ul>
|
367 |
<li><?php echo __('Feed Settings below will only apply to your podcast channel feeds', 'powerpress'); ?></li>
|
@@ -411,7 +411,7 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
|
|
411 |
</p>
|
412 |
<?php } ?>
|
413 |
<p><?php echo __('These are podcast only feeds suitable for submission podcast directories such as iTunes.', 'powerpress'); ?></p>
|
414 |
-
<p><?php echo __('Note: We do not recommend submitting your main site feed to podcast directories such as iTunes. iTunes and many other podcast directories work best with feeds that do not have regular blog posts mixed in.', 'powerpress'); ?></p>
|
415 |
|
416 |
</td>
|
417 |
</tr>
|
@@ -477,7 +477,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
|
|
477 |
<?php echo __('Feed URL', 'powerpress'); ?>
|
478 |
</th>
|
479 |
<td>
|
480 |
-
<p style="margin-top: 0;"><a href="<?php echo $feed_link; ?>" target="_blank"><?php echo $feed_link; ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode( str_replace('&', '&', $feed_link)); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a></p>
|
481 |
<?php
|
482 |
if( !empty($FeedSettings['premium']) )
|
483 |
{
|
@@ -491,7 +491,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
|
|
491 |
?>
|
492 |
<h3><?php echo __('Feed Settings', 'powerpress'); ?></h3>
|
493 |
<?php if( $FeedAttribs['type'] == 'general' ) { ?>
|
494 |
-
<p><?php echo __('Feed settings below only apply to the podcast only feed:', 'powerpress'); ?> <?php echo get_feed_link('podcast'); ?></p>
|
495 |
<?php } ?>
|
496 |
<table class="form-table">
|
497 |
|
@@ -501,7 +501,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
|
|
501 |
<?php echo __('Feed Title', 'powerpress'); ?>
|
502 |
</th>
|
503 |
<td>
|
504 |
-
<input type="text" name="Feed[title]"style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
|
505 |
<?php if( $cat_ID ) { ?>
|
506 |
(<?php echo __('leave blank to use default category title', 'powerpress'); ?>)
|
507 |
<?php } else { ?>
|
@@ -511,9 +511,9 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
|
|
511 |
$category = get_category_to_edit($cat_ID);
|
512 |
$CategoryName = htmlspecialchars($category->name);
|
513 |
?>
|
514 |
-
<p><?php echo __('Default Category title:', 'powerpress') .' '. get_bloginfo_rss('name') . ' » '. $CategoryName; ?></p>
|
515 |
<?php } else { ?>
|
516 |
-
<p><?php echo __('Blog title:', 'powerpress') .' '. get_bloginfo_rss('name'); ?></p>
|
517 |
<?php } ?>
|
518 |
</td>
|
519 |
</tr>
|
@@ -525,7 +525,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $FeedAttrib
|
|
525 |
<?php echo __('Feed Description', 'powerpress'); ?>
|
526 |
</th>
|
527 |
<td>
|
528 |
-
<input type="text" name="Feed[description]"style="width: 60%;" value="<?php echo ( !empty($FeedSettings['description'])? $FeedSettings['description']:''); ?>" maxlength="1000" />
|
529 |
<?php if( $cat_ID ) { ?>
|
530 |
(<?php echo __('leave blank to use category description', 'powerpress'); ?>)
|
531 |
<?php } else { ?>
|
@@ -543,16 +543,16 @@ if( $FeedAttribs['type'] != 'general' ) // All types exept general settings
|
|
543 |
<?php echo __('Feed Landing Page URL', 'powerpress'); ?> <br />
|
544 |
</th>
|
545 |
<td>
|
546 |
-
<input type="text" name="Feed[url]"style="width: 60%;" value="<?php echo ( !empty($FeedSettings['url'])? $FeedSettings['url']:''); ?>" maxlength="250" />
|
547 |
<?php if( $cat_ID ) { ?>
|
548 |
(<?php echo __('leave blank to use category page', 'powerpress'); ?>)
|
549 |
<?php } else { ?>
|
550 |
(<?php echo __('leave blank to use home page', 'powerpress'); ?>)
|
551 |
<?php } ?>
|
552 |
<?php if( $cat_ID ) { ?>
|
553 |
-
<p><?php echo __('Category page URL', 'powerpress'); ?>: <?php echo get_category_link($cat_ID); ?></p>
|
554 |
<?php } else { ?>
|
555 |
-
<p>e.g. <?php echo get_bloginfo('url'); ?>/custom-page/</p>
|
556 |
<?php } ?>
|
557 |
</td>
|
558 |
</tr>
|
@@ -563,9 +563,9 @@ if( $FeedAttribs['type'] != 'general' ) // All types exept general settings
|
|
563 |
<span style="font-size: 85%; margin-left: 5px;"><?php echo __('Recommendation: leave blank', 'powerpress'); ?></span>
|
564 |
</th>
|
565 |
<td>
|
566 |
-
<input type="text" name="Feed[feed_redirect_url]"style="width: 60%;" value="<?php echo (!empty($FeedSettings['feed_redirect_url'])? $FeedSettings['feed_redirect_url']:''); ?>" maxlength="100" /> (<?php echo __('leave blank to use built-in feed', 'powerpress'); ?>)
|
567 |
|
568 |
-
<p style="margin-top: 0px; margin-bottomd: 0;"><?php echo powerpressadmin_notice( __('NOTE: FeedBurner is not required for podcasting.', 'powerpress') ); ?> <br />
|
569 |
<?php echo powerpressadmin_notice( __('No support is available from blubrry if you are using Feedburner or other feed hosted services.', 'powerpress') ); ?><br />
|
570 |
<a href="http://create.blubrry.com/manual/syndicating-your-podcast-rss-feeds/feedburner-for-podcasting/" target="_blank"><?php echo __('Learn more about FeedBurner and Podcasitng', 'powerpress'); ?></a>
|
571 |
</p>
|
@@ -578,7 +578,7 @@ if( strstr($link, '?') )
|
|
578 |
else
|
579 |
$link .= "?redirect=no";
|
580 |
?>
|
581 |
-
<p><?php echo __('Bypass Redirect URL', 'powerpress'); ?>: <a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a></p>
|
582 |
</td>
|
583 |
</tr>
|
584 |
|
@@ -589,11 +589,11 @@ else
|
|
589 |
<?php echo __('Show the most recent', 'powerpress'); ?>
|
590 |
</th>
|
591 |
<td>
|
592 |
-
<input type="text" name="Feed[posts_per_rss]"style="width: 50px;" value="<?php echo ( !empty($FeedSettings['posts_per_rss'])? $FeedSettings['posts_per_rss']:''); ?>" maxlength="5" /> <?php echo __('episodes / posts per feed (leave blank to use blog default', 'powerpress'); ?>: <?php form_option('posts_per_rss'); ?>)
|
593 |
<?php if( empty($FeedAttribs['type']) ) { ?>
|
594 |
-
<p style="margin-top: 5px; margin-bottomd: 0;"><?php echo __('Note: Setting above applies only to podcast channel feeds', 'powerpress'); ?></p>
|
595 |
<?php } ?>
|
596 |
-
<p style="margin-top: 5px; margin-bottomd: 0;"><?php echo __('WARNING: Setting this value larger than 10 may cause feed timeout errors and delay podcast directory listings from updating.', 'powerpress'); ?></p>
|
597 |
</td>
|
598 |
</tr>
|
599 |
|
@@ -608,7 +608,7 @@ else
|
|
608 |
<td>
|
609 |
<input type="checkbox" name="Feed[maximize_feed]" value="1" <?php if( !empty($FeedSettings['maximize_feed']) ) echo 'checked'; ?> />
|
610 |
<?php echo __('The latest 10 episodes in feed will remain as normal. The remaining 11+ older episodes in feed will have only the bare essential tags in order to maximize the number of episodes in the feed.', 'powerpress'); ?>
|
611 |
-
<p style="margin-top: 0px; margin-bottomd: 0;"><?php echo __('NOTE: This feature may allow you to enter a larger value for the "Show the most recent" setting above. You must make sure that your feed does not exceed 512KB (1/2 MB) in size.', 'powerpress'); ?></p>
|
612 |
</td>
|
613 |
</tr>
|
614 |
<?php
|
@@ -711,9 +711,9 @@ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug, $
|
|
711 |
<td>
|
712 |
<input type="text" style="width: 60%;" name="Feed[redirect]" value="<?php echo $FeedSettings['redirect']; ?>" maxlength="250" />
|
713 |
<?php if( $FeedAttribs['type'] == 'category' ) { ?>
|
714 |
-
<p><?php echo __('Note: Category Media Redirect URL is applied to category feeds and pages only. The redirect will also apply to single pages if this is the only category associated with the blog post.', 'powerpress'); ?></p>
|
715 |
<?php } else if( $FeedAttribs['type'] == 'ttid' ) { ?>
|
716 |
-
<p><?php echo __('Note: Media Redirect URL is applied to this podcast feed only. The redirect will NOT apply to pages.', 'powerpress'); ?></p>
|
717 |
<?php } ?>
|
718 |
</td>
|
719 |
</tr>
|
@@ -974,7 +974,7 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $FeedAttribs
|
|
974 |
<?php echo __('iTunes Program Subtitle', 'powerpress'); ?> <br />
|
975 |
</th>
|
976 |
<td>
|
977 |
-
<input type="text" name="Feed[itunes_subtitle]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_subtitle']; ?>" maxlength="250" />
|
978 |
</td>
|
979 |
</tr>
|
980 |
|
@@ -1004,7 +1004,7 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $FeedAttribs
|
|
1004 |
<p>
|
1005 |
<?php echo __('Creates a friendlier view of your post/episode content by converting web links and images to clickable links in the iTunes application.', 'powerpress'); ?>
|
1006 |
</p>
|
1007 |
-
<p><strong>
|
1008 |
<?php echo __('Note: With the recent launch of iTunes web site during the summer of 2010, Optimize iTunes Summary\'s clickable links do not appear online in the same way they do in the iTunes application. For this reason, we no longer recommend using this feature.', 'powerpress'); ?>
|
1009 |
</strong></p>
|
1010 |
<?php } else { ?>
|
@@ -1216,7 +1216,7 @@ while( list($value,$desc) = each($explicit) )
|
|
1216 |
</p>
|
1217 |
<p style="margin-bottom: 0;">
|
1218 |
<label style="width: 25%; float:left; display:block; font-weight: bold;"><?php echo __('New Feed URL', 'powerpress'); ?></label>
|
1219 |
-
<input type="text" name="Feed[itunes_new_feed_url]"style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url']; ?>" maxlength="250" />
|
1220 |
</p>
|
1221 |
<p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(<?php echo __('Leave blank for no New Feed URL', 'powerpress'); ?>)</p>
|
1222 |
|
347 |
<?php echo __('Enhance Feeds', 'powerpress'); ?></th>
|
348 |
<td>
|
349 |
<ul>
|
350 |
+
<li><p><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> <?php echo __('Enhance All Feeds', 'powerpress'); ?></label> (<?php echo __('Recommended', 'powerpress'); ?>)</p></li>
|
351 |
<li>
|
352 |
<ul>
|
353 |
<li><?php echo __('Adds podcasting support to all feeds', 'powerpress'); ?></li>
|
355 |
<li><?php echo __('Allows for Tag/Keyword Casting', 'powerpress'); ?> (<?php echo __('Visitors may subscribe to your tags as a podcast', 'powerpress'); ?>)</li>
|
356 |
</ul>
|
357 |
</li>
|
358 |
+
<li><p><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> <?php echo __('Enhance Main Feed Only', 'powerpress'); ?></label></p></li>
|
359 |
<li>
|
360 |
<ul>
|
361 |
<li><?php echo __('Adds podcasting support to your main feed only', 'powerpress'); ?></li>
|
362 |
</ul>
|
363 |
</li>
|
364 |
+
<li><p><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> <?php echo __('Do Not Enhance Feeds', 'powerpress'); ?></label></p></li>
|
365 |
<li>
|
366 |
<ul>
|
367 |
<li><?php echo __('Feed Settings below will only apply to your podcast channel feeds', 'powerpress'); ?></li>
|
411 |
</p>
|
412 |
<?php } ?>
|
413 |
<p><?php echo __('These are podcast only feeds suitable for submission podcast directories such as iTunes.', 'powerpress'); ?></p>
|
414 |
+
<p class="description"><?php echo __('Note: We do not recommend submitting your main site feed to podcast directories such as iTunes. iTunes and many other podcast directories work best with feeds that do not have regular blog posts mixed in.', 'powerpress'); ?></p>
|
415 |
|
416 |
</td>
|
417 |
</tr>
|
477 |
<?php echo __('Feed URL', 'powerpress'); ?>
|
478 |
</th>
|
479 |
<td>
|
480 |
+
<p style="margin-top: 0;" class="description"><a href="<?php echo $feed_link; ?>" target="_blank"><?php echo $feed_link; ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode( str_replace('&', '&', $feed_link)); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a></p>
|
481 |
<?php
|
482 |
if( !empty($FeedSettings['premium']) )
|
483 |
{
|
491 |
?>
|
492 |
<h3><?php echo __('Feed Settings', 'powerpress'); ?></h3>
|
493 |
<?php if( $FeedAttribs['type'] == 'general' ) { ?>
|
494 |
+
<p class="description"><?php echo __('Feed settings below only apply to the podcast only feed:', 'powerpress'); ?> <?php echo get_feed_link('podcast'); ?></p>
|
495 |
<?php } ?>
|
496 |
<table class="form-table">
|
497 |
|
501 |
<?php echo __('Feed Title', 'powerpress'); ?>
|
502 |
</th>
|
503 |
<td>
|
504 |
+
<input type="text" name="Feed[title]" style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
|
505 |
<?php if( $cat_ID ) { ?>
|
506 |
(<?php echo __('leave blank to use default category title', 'powerpress'); ?>)
|
507 |
<?php } else { ?>
|
511 |
$category = get_category_to_edit($cat_ID);
|
512 |
$CategoryName = htmlspecialchars($category->name);
|
513 |
?>
|
514 |
+
<p class="description"><?php echo __('Default Category title:', 'powerpress') .' '. get_bloginfo_rss('name') . ' » '. $CategoryName; ?></p>
|
515 |
<?php } else { ?>
|
516 |
+
<p class="description"><?php echo __('Blog title:', 'powerpress') .' '. get_bloginfo_rss('name'); ?></p>
|
517 |
<?php } ?>
|
518 |
</td>
|
519 |
</tr>
|
525 |
<?php echo __('Feed Description', 'powerpress'); ?>
|
526 |
</th>
|
527 |
<td>
|
528 |
+
<input type="text" name="Feed[description]" style="width: 60%;" value="<?php echo ( !empty($FeedSettings['description'])? $FeedSettings['description']:''); ?>" maxlength="1000" />
|
529 |
<?php if( $cat_ID ) { ?>
|
530 |
(<?php echo __('leave blank to use category description', 'powerpress'); ?>)
|
531 |
<?php } else { ?>
|
543 |
<?php echo __('Feed Landing Page URL', 'powerpress'); ?> <br />
|
544 |
</th>
|
545 |
<td>
|
546 |
+
<input type="text" name="Feed[url]" style="width: 60%;" value="<?php echo ( !empty($FeedSettings['url'])? $FeedSettings['url']:''); ?>" maxlength="250" />
|
547 |
<?php if( $cat_ID ) { ?>
|
548 |
(<?php echo __('leave blank to use category page', 'powerpress'); ?>)
|
549 |
<?php } else { ?>
|
550 |
(<?php echo __('leave blank to use home page', 'powerpress'); ?>)
|
551 |
<?php } ?>
|
552 |
<?php if( $cat_ID ) { ?>
|
553 |
+
<p class="description"><?php echo __('Category page URL', 'powerpress'); ?>: <?php echo get_category_link($cat_ID); ?></p>
|
554 |
<?php } else { ?>
|
555 |
+
<p class="description">e.g. <?php echo get_bloginfo('url'); ?>/custom-page/</p>
|
556 |
<?php } ?>
|
557 |
</td>
|
558 |
</tr>
|
563 |
<span style="font-size: 85%; margin-left: 5px;"><?php echo __('Recommendation: leave blank', 'powerpress'); ?></span>
|
564 |
</th>
|
565 |
<td>
|
566 |
+
<input type="text" name="Feed[feed_redirect_url]" style="width: 60%;" value="<?php echo (!empty($FeedSettings['feed_redirect_url'])? $FeedSettings['feed_redirect_url']:''); ?>" maxlength="100" /> (<?php echo __('leave blank to use built-in feed', 'powerpress'); ?>)
|
567 |
|
568 |
+
<p style="margin-top: 0px; margin-bottomd: 0;" class="description"><?php echo powerpressadmin_notice( __('NOTE: FeedBurner is not required for podcasting.', 'powerpress') ); ?> <br />
|
569 |
<?php echo powerpressadmin_notice( __('No support is available from blubrry if you are using Feedburner or other feed hosted services.', 'powerpress') ); ?><br />
|
570 |
<a href="http://create.blubrry.com/manual/syndicating-your-podcast-rss-feeds/feedburner-for-podcasting/" target="_blank"><?php echo __('Learn more about FeedBurner and Podcasitng', 'powerpress'); ?></a>
|
571 |
</p>
|
578 |
else
|
579 |
$link .= "?redirect=no";
|
580 |
?>
|
581 |
+
<p class="description"><?php echo __('Bypass Redirect URL', 'powerpress'); ?>: <a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a></p>
|
582 |
</td>
|
583 |
</tr>
|
584 |
|
589 |
<?php echo __('Show the most recent', 'powerpress'); ?>
|
590 |
</th>
|
591 |
<td>
|
592 |
+
<input type="text" name="Feed[posts_per_rss]" style="width: 50px;" value="<?php echo ( !empty($FeedSettings['posts_per_rss'])? $FeedSettings['posts_per_rss']:''); ?>" maxlength="5" /> <?php echo __('episodes / posts per feed (leave blank to use blog default', 'powerpress'); ?>: <?php form_option('posts_per_rss'); ?>)
|
593 |
<?php if( empty($FeedAttribs['type']) ) { ?>
|
594 |
+
<p style="margin-top: 5px; margin-bottomd: 0;" class="description"><?php echo __('Note: Setting above applies only to podcast channel feeds', 'powerpress'); ?></p>
|
595 |
<?php } ?>
|
596 |
+
<p style="margin-top: 5px; margin-bottomd: 0;" class="description"><?php echo __('WARNING: Setting this value larger than 10 may cause feed timeout errors and delay podcast directory listings from updating.', 'powerpress'); ?></p>
|
597 |
</td>
|
598 |
</tr>
|
599 |
|
608 |
<td>
|
609 |
<input type="checkbox" name="Feed[maximize_feed]" value="1" <?php if( !empty($FeedSettings['maximize_feed']) ) echo 'checked'; ?> />
|
610 |
<?php echo __('The latest 10 episodes in feed will remain as normal. The remaining 11+ older episodes in feed will have only the bare essential tags in order to maximize the number of episodes in the feed.', 'powerpress'); ?>
|
611 |
+
<p style="margin-top: 0px; margin-bottomd: 0;" class="description"><?php echo __('NOTE: This feature may allow you to enter a larger value for the "Show the most recent" setting above. You must make sure that your feed does not exceed 512KB (1/2 MB) in size.', 'powerpress'); ?></p>
|
612 |
</td>
|
613 |
</tr>
|
614 |
<?php
|
711 |
<td>
|
712 |
<input type="text" style="width: 60%;" name="Feed[redirect]" value="<?php echo $FeedSettings['redirect']; ?>" maxlength="250" />
|
713 |
<?php if( $FeedAttribs['type'] == 'category' ) { ?>
|
714 |
+
<p class="description"><?php echo __('Note: Category Media Redirect URL is applied to category feeds and pages only. The redirect will also apply to single pages if this is the only category associated with the blog post.', 'powerpress'); ?></p>
|
715 |
<?php } else if( $FeedAttribs['type'] == 'ttid' ) { ?>
|
716 |
+
<p class="description"><?php echo __('Note: Media Redirect URL is applied to this podcast feed only. The redirect will NOT apply to pages.', 'powerpress'); ?></p>
|
717 |
<?php } ?>
|
718 |
</td>
|
719 |
</tr>
|
974 |
<?php echo __('iTunes Program Subtitle', 'powerpress'); ?> <br />
|
975 |
</th>
|
976 |
<td>
|
977 |
+
<input type="text" name="Feed[itunes_subtitle]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_subtitle']; ?>" maxlength="250" />
|
978 |
</td>
|
979 |
</tr>
|
980 |
|
1004 |
<p>
|
1005 |
<?php echo __('Creates a friendlier view of your post/episode content by converting web links and images to clickable links in the iTunes application.', 'powerpress'); ?>
|
1006 |
</p>
|
1007 |
+
<p class="description"><strong>
|
1008 |
<?php echo __('Note: With the recent launch of iTunes web site during the summer of 2010, Optimize iTunes Summary\'s clickable links do not appear online in the same way they do in the iTunes application. For this reason, we no longer recommend using this feature.', 'powerpress'); ?>
|
1009 |
</strong></p>
|
1010 |
<?php } else { ?>
|
1216 |
</p>
|
1217 |
<p style="margin-bottom: 0;">
|
1218 |
<label style="width: 25%; float:left; display:block; font-weight: bold;"><?php echo __('New Feed URL', 'powerpress'); ?></label>
|
1219 |
+
<input type="text" name="Feed[itunes_new_feed_url]" style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url']; ?>" maxlength="250" />
|
1220 |
</p>
|
1221 |
<p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(<?php echo __('Leave blank for no New Feed URL', 'powerpress'); ?>)</p>
|
1222 |
|
powerpressadmin-metabox.php
CHANGED
@@ -193,7 +193,7 @@ function powerpress_meta_box($object, $box)
|
|
193 |
|
194 |
<input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][hosting]" value="<?php echo ( !empty($ExtraData['hosting'])?'1':'0'); ?>" />
|
195 |
<div id="powerpress_hosting_note_<?php echo $FeedSlug; ?>" style="margin-left: 2px; padding-bottom: 2px; padding-top: 2px; display: <?php echo ( !empty($ExtraData['hosting'])?'block':'none'); ?>"><em><?php echo __('Media file hosted by blubrry.com.', 'powerpress'); ?>
|
196 |
-
(<a href="
|
197 |
</em></div>
|
198 |
|
199 |
|
@@ -264,9 +264,9 @@ function powerpress_meta_box($object, $box)
|
|
264 |
<div style="margin-bottom: 4px;">
|
265 |
<input id="powerpress_set_duration_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="1" type="radio" <?php echo ($GeneralSettings['set_duration']==1?'checked':''); ?> />
|
266 |
<?php echo __('Specify', 'powerpress').': '; ?>
|
267 |
-
<input id="powerpress_duration_hh_<?php echo $FeedSlug; ?>" class="powerpress-duration-hh" placeholder="HH" name="Powerpress[<?php echo $FeedSlug; ?>][duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width:
|
268 |
-
<input id="powerpress_duration_mm_<?php echo $FeedSlug; ?>" class="powerpress-duration-mm" placeholder="MM" name="Powerpress[<?php echo $FeedSlug; ?>][duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width:
|
269 |
-
<input id="powerpress_duration_ss_<?php echo $FeedSlug; ?>" class="powerpress-duration-ss" placeholder="SS" name="Powerpress[<?php echo $FeedSlug; ?>][duration_ss]" maxlength="10" value="<?php echo $DurationSS; ?>" style="width:
|
270 |
</div>
|
271 |
<div>
|
272 |
<input id="powerpress_set_duration_2_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="-1" type="radio" <?php echo ($GeneralSettings['set_duration']==-1?'checked':''); ?> />
|
193 |
|
194 |
<input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][hosting]" value="<?php echo ( !empty($ExtraData['hosting'])?'1':'0'); ?>" />
|
195 |
<div id="powerpress_hosting_note_<?php echo $FeedSlug; ?>" style="margin-left: 2px; padding-bottom: 2px; padding-top: 2px; display: <?php echo ( !empty($ExtraData['hosting'])?'block':'none'); ?>"><em><?php echo __('Media file hosted by blubrry.com.', 'powerpress'); ?>
|
196 |
+
(<a href="#" title="<?php echo __('Remove Blubrry.com hosted media file', 'powerpress'); ?>" onclick="powerpress_remove_hosting('<?php echo $FeedSlug; ?>');return false;"><?php echo __('remove', 'powerpress'); ?></a>)
|
197 |
</em></div>
|
198 |
|
199 |
|
264 |
<div style="margin-bottom: 4px;">
|
265 |
<input id="powerpress_set_duration_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="1" type="radio" <?php echo ($GeneralSettings['set_duration']==1?'checked':''); ?> />
|
266 |
<?php echo __('Specify', 'powerpress').': '; ?>
|
267 |
+
<input id="powerpress_duration_hh_<?php echo $FeedSlug; ?>" class="powerpress-duration-hh" placeholder="HH" name="Powerpress[<?php echo $FeedSlug; ?>][duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width: 36px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
|
268 |
+
<input id="powerpress_duration_mm_<?php echo $FeedSlug; ?>" class="powerpress-duration-mm" placeholder="MM" name="Powerpress[<?php echo $FeedSlug; ?>][duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width: 36px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
|
269 |
+
<input id="powerpress_duration_ss_<?php echo $FeedSlug; ?>" class="powerpress-duration-ss" placeholder="SS" name="Powerpress[<?php echo $FeedSlug; ?>][duration_ss]" maxlength="10" value="<?php echo $DurationSS; ?>" style="width: 36px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" />
|
270 |
</div>
|
271 |
<div>
|
272 |
<input id="powerpress_set_duration_2_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="-1" type="radio" <?php echo ($GeneralSettings['set_duration']==-1?'checked':''); ?> />
|
powerpressadmin-player-page.php
CHANGED
@@ -450,7 +450,7 @@ table.html5formats tr > td:first-child {
|
|
450 |
</tr>
|
451 |
<tr>
|
452 |
<td><i><?php echo __('Firefox', 'powerpress'); ?></i></td>
|
453 |
-
<td
|
454 |
<td>-</td>
|
455 |
<td><strong>3.5+</strong></td>
|
456 |
</tr>
|
450 |
</tr>
|
451 |
<tr>
|
452 |
<td><i><?php echo __('Firefox', 'powerpress'); ?></i></td>
|
453 |
+
<td><strong>26.0+</strong></td>
|
454 |
<td>-</td>
|
455 |
<td><strong>3.5+</strong></td>
|
456 |
</tr>
|
powerpressadmin-podpress.php
CHANGED
@@ -459,7 +459,7 @@ function select_all(index,value)
|
|
459 |
//echo "<pre id=\"podpress_debug_info\" style=\"display: none;\">";
|
460 |
//print_r($results);
|
461 |
//echo "</pre>";
|
462 |
-
//echo '<p><a href="
|
463 |
|
464 |
if( count($results) == 0 || count($results) == 1 )
|
465 |
{
|
459 |
//echo "<pre id=\"podpress_debug_info\" style=\"display: none;\">";
|
460 |
//print_r($results);
|
461 |
//echo "</pre>";
|
462 |
+
//echo '<p><a href="#" onclick="javascript:document.getElementById(\'podpress_debug_info\').style.display=\'block\';this.style.display=\'none\';return false;">Show Debug Info</a></p>';
|
463 |
|
464 |
if( count($results) == 0 || count($results) == 1 )
|
465 |
{
|
powerpressadmin.php
CHANGED
@@ -1354,7 +1354,7 @@ function powerpress_rebuild_posttype_podcasting()
|
|
1354 |
$FeedSlugPostTypeArray[ $feed_slug ][ $post_type ] = ( empty($PostTypeSettings['title'])? $feed_slug : $PostTypeSettings['title'] );
|
1355 |
}
|
1356 |
}
|
1357 |
-
update_option('
|
1358 |
}
|
1359 |
|
1360 |
function powerpress_admin_menu()
|
@@ -1372,7 +1372,7 @@ function powerpress_admin_menu()
|
|
1372 |
$FeedSlugPostTypesArray = array();
|
1373 |
if( !empty($Powerpress['posttype_podcasting']) )
|
1374 |
{
|
1375 |
-
$FeedSlugPostTypesArray = get_option('
|
1376 |
if( empty($FeedSlugPostTypesArray) )
|
1377 |
$FeedSlugPostTypesArray = array();
|
1378 |
}
|
@@ -1403,7 +1403,7 @@ function powerpress_admin_menu()
|
|
1403 |
{
|
1404 |
add_meta_box('powerpress-podcast', __('Podcast Episode (default)', 'powerpress'), 'powerpress_meta_box', 'post', 'normal'); // Default podcast box for post type 'post'
|
1405 |
|
1406 |
-
$FeedSlugPostTypesArray = get_option('
|
1407 |
if( empty($FeedSlugPostTypesArray) )
|
1408 |
$FeedSlugPostTypesArray = array();
|
1409 |
|
@@ -2917,6 +2917,17 @@ function powerpress_process_hosting($post_ID, $post_title)
|
|
2917 |
$CustomFeeds = $Settings['custom_feeds'];
|
2918 |
if( !isset($CustomFeeds['podcast']) )
|
2919 |
$CustomFeeds['podcast'] = 'podcast';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2920 |
|
2921 |
while( list($feed_slug,$null) = each($CustomFeeds) )
|
2922 |
{
|
@@ -3098,9 +3109,6 @@ function powerpress_admin_import_podpress_settings()
|
|
3098 |
else
|
3099 |
$General['display_player'] = 1;
|
3100 |
|
3101 |
-
if( $PodpressData['iTunes']['FeedID'] )
|
3102 |
-
$General['itunes_url'] = 'http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id='. $PodpressData['iTunes']['FeedID'];
|
3103 |
-
|
3104 |
// save these imported general settings
|
3105 |
powerpress_save_settings($General, 'powerpress_general');
|
3106 |
|
@@ -3139,6 +3147,9 @@ function powerpress_admin_import_podpress_settings()
|
|
3139 |
$FeedSettings['itunes_explicit'] = 1;
|
3140 |
else if( $PodpressData['iTunes']['explicit'] == 'Clean' )
|
3141 |
$FeedSettings['itunes_explicit'] = 2;
|
|
|
|
|
|
|
3142 |
|
3143 |
// Lastly, lets try to get the RSS image from the database
|
3144 |
$RSSImage = get_option('rss_image');
|
@@ -3862,11 +3873,11 @@ function powerpressadmin_community_news($items=3)
|
|
3862 |
echo '<div style="margin-top:10px;border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">';
|
3863 |
echo __('Subscribe:', 'powerpress');
|
3864 |
echo ' ';
|
3865 |
-
echo '<a href="http://www.powerpresspodcast.com/feed/"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" /> '. __('Blog', 'powerpress') .'</a>';
|
3866 |
echo ' ';
|
3867 |
-
echo '<a href="http://www.powerpresspodcast.com/feed/podcast/"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" /> '. __('Podcast', 'powerpress') .'</a>';
|
3868 |
echo ' ';
|
3869 |
-
echo '<a href="https://itunes.apple.com/us/podcast/blubrry-powerpress-community/id430248099/"><img src="'.powerpress_get_root_url().'/images/itunes_modern.png" /> '. __('iTunes', 'powerpress') .'</a>';
|
3870 |
//echo ' ';
|
3871 |
|
3872 |
echo '</div>';
|
1354 |
$FeedSlugPostTypeArray[ $feed_slug ][ $post_type ] = ( empty($PostTypeSettings['title'])? $feed_slug : $PostTypeSettings['title'] );
|
1355 |
}
|
1356 |
}
|
1357 |
+
update_option('powerpress_posttype-podcasting', $FeedSlugPostTypeArray);
|
1358 |
}
|
1359 |
|
1360 |
function powerpress_admin_menu()
|
1372 |
$FeedSlugPostTypesArray = array();
|
1373 |
if( !empty($Powerpress['posttype_podcasting']) )
|
1374 |
{
|
1375 |
+
$FeedSlugPostTypesArray = get_option('powerpress_posttype-podcasting');
|
1376 |
if( empty($FeedSlugPostTypesArray) )
|
1377 |
$FeedSlugPostTypesArray = array();
|
1378 |
}
|
1403 |
{
|
1404 |
add_meta_box('powerpress-podcast', __('Podcast Episode (default)', 'powerpress'), 'powerpress_meta_box', 'post', 'normal'); // Default podcast box for post type 'post'
|
1405 |
|
1406 |
+
$FeedSlugPostTypesArray = get_option('powerpress_posttype-podcasting');
|
1407 |
if( empty($FeedSlugPostTypesArray) )
|
1408 |
$FeedSlugPostTypesArray = array();
|
1409 |
|
2917 |
$CustomFeeds = $Settings['custom_feeds'];
|
2918 |
if( !isset($CustomFeeds['podcast']) )
|
2919 |
$CustomFeeds['podcast'] = 'podcast';
|
2920 |
+
|
2921 |
+
|
2922 |
+
if( !empty($Settings['posttype_podcasting']) )
|
2923 |
+
{
|
2924 |
+
$FeedSlugPostTypesArray = get_option('powerpress_posttype-podcasting');
|
2925 |
+
while( list($feed_slug, $null) = each($FeedSlugPostTypesArray) )
|
2926 |
+
{
|
2927 |
+
if( empty($CustomFeeds[$feed_slug]) )
|
2928 |
+
$CustomFeeds[$feed_slug] = $feed_slug;
|
2929 |
+
}
|
2930 |
+
}
|
2931 |
|
2932 |
while( list($feed_slug,$null) = each($CustomFeeds) )
|
2933 |
{
|
3109 |
else
|
3110 |
$General['display_player'] = 1;
|
3111 |
|
|
|
|
|
|
|
3112 |
// save these imported general settings
|
3113 |
powerpress_save_settings($General, 'powerpress_general');
|
3114 |
|
3147 |
$FeedSettings['itunes_explicit'] = 1;
|
3148 |
else if( $PodpressData['iTunes']['explicit'] == 'Clean' )
|
3149 |
$FeedSettings['itunes_explicit'] = 2;
|
3150 |
+
|
3151 |
+
if( !empty($PodpressData['iTunes']['FeedID']) )
|
3152 |
+
$FeedSettings['itunes_url'] = 'http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id='. $PodpressData['iTunes']['FeedID'];
|
3153 |
|
3154 |
// Lastly, lets try to get the RSS image from the database
|
3155 |
$RSSImage = get_option('rss_image');
|
3873 |
echo '<div style="margin-top:10px;border-top: 1px solid #ddd; padding-top: 10px; text-align:center;">';
|
3874 |
echo __('Subscribe:', 'powerpress');
|
3875 |
echo ' ';
|
3876 |
+
echo '<a href="http://www.powerpresspodcast.com/feed/"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" alt="'. __('Blog', 'powerpress') .'" /> '. __('Blog', 'powerpress') .'</a>';
|
3877 |
echo ' ';
|
3878 |
+
echo '<a href="http://www.powerpresspodcast.com/feed/podcast/"><img src="'.get_bloginfo('wpurl').'/wp-includes/images/rss.png" alt="'. __('Podcast', 'powerpress') .'" /> '. __('Podcast', 'powerpress') .'</a>';
|
3879 |
echo ' ';
|
3880 |
+
echo '<a href="https://itunes.apple.com/us/podcast/blubrry-powerpress-community/id430248099/"><img src="'.powerpress_get_root_url().'/images/itunes_modern.png" alt="'. __('iTunes', 'powerpress') .'" /> '. __('iTunes', 'powerpress') .'</a>';
|
3881 |
//echo ' ';
|
3882 |
|
3883 |
echo '</div>';
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: amandato, blubrry
|
3 |
Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 5.0.
|
7 |
Donate link: http://create.blubrry.com/
|
8 |
License: GPLv2 or later
|
9 |
|
@@ -109,7 +109,7 @@ We now offer one-on-one consulting via Gotomeeting, Skype or phone.
|
|
109 |
* [Message Flow](http://wordpress.org/extend/plugins/message-flow/) - generates a CoverFlow-like interface for your blog posts with podcast episodes. For podcasts, use shortocde `[message-flow podcasts_only="true"]`.
|
110 |
* [Eli's PowerPress Addon Widget](http://wordpress.org/extend/plugins/podpress-addons/) - Adds a sidebar widget that lists your podcast episodes linked to the play in a new window PowerPress player.
|
111 |
* [PowerPress Posts From MySQL](http://wordpress.org/extend/plugins/powerpress-posts-from-mysql/developers/) - Creates blog posts with PowerPress podcast episode information from a MySQL table.
|
112 |
-
* [Featured Podcast Widget](http://wordpress.org/plugins/featured-podcast-widget/) - A widget that enables you to display your latest podcast from a category or featured podcast utilising the PowerPress plugin's default player.
|
113 |
* [Subscribe Sidebar plugin by Blubrry](http://wordpress.org/extend/plugins/subscribe-sidebar/) - A sidebar widget that provides a list of "Subscribe" links to your sidebar.
|
114 |
|
115 |
|
@@ -171,9 +171,23 @@ To install Blubrry PowerPress manually, follow these steps:
|
|
171 |
|
172 |
= Next Major Release Announcements =
|
173 |
* PowerPress 6.0+ will no longer be compatible with WordPress 3.0.x, 3.1.x and 3.2.x. Please upgrade to WordPress 3.3 or newer to install future versions of PowerPress.
|
174 |
-
* Translation support will change in PowerPress 6.0+. Translations will be packaged in a
|
175 |
* We are looking for beta testers! If you would like to beta test future versions of PowerPress, please [contact us](http://www.blubrry.com/contact.php) with your name and email.
|
176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
= 5.0.3 =
|
178 |
* Released on 12/3/2013
|
179 |
* Fixed bug with feed title not properly XML encoding ampersand. (Thanks Robin for bringing to our attention!)
|
2 |
Contributors: amandato, blubrry
|
3 |
Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, multisite, multi site, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog, simple podcasting, seriously simple podcasting, seriously-simple-podcasting, podlove, podcast.de
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 3.8.1
|
6 |
+
Stable tag: 5.0.4
|
7 |
Donate link: http://create.blubrry.com/
|
8 |
License: GPLv2 or later
|
9 |
|
109 |
* [Message Flow](http://wordpress.org/extend/plugins/message-flow/) - generates a CoverFlow-like interface for your blog posts with podcast episodes. For podcasts, use shortocde `[message-flow podcasts_only="true"]`.
|
110 |
* [Eli's PowerPress Addon Widget](http://wordpress.org/extend/plugins/podpress-addons/) - Adds a sidebar widget that lists your podcast episodes linked to the play in a new window PowerPress player.
|
111 |
* [PowerPress Posts From MySQL](http://wordpress.org/extend/plugins/powerpress-posts-from-mysql/developers/) - Creates blog posts with PowerPress podcast episode information from a MySQL table.
|
112 |
+
* [Featured Podcast Widget](http://wordpress.org/plugins/featured-podcast-widget/), [Home Page](http://www.richardfarrar.com/featured-podcast-widget-for-wordpress/) - A widget that enables you to display your latest podcast from a category or featured podcast utilising the PowerPress plugin's default player.
|
113 |
* [Subscribe Sidebar plugin by Blubrry](http://wordpress.org/extend/plugins/subscribe-sidebar/) - A sidebar widget that provides a list of "Subscribe" links to your sidebar.
|
114 |
|
115 |
|
171 |
|
172 |
= Next Major Release Announcements =
|
173 |
* PowerPress 6.0+ will no longer be compatible with WordPress 3.0.x, 3.1.x and 3.2.x. Please upgrade to WordPress 3.3 or newer to install future versions of PowerPress.
|
174 |
+
* Translation support will change in PowerPress 6.0+. Translations will be packaged in a separate plugin made available on WordPress.org. This will allow us to release translations separately and more often.
|
175 |
* We are looking for beta testers! If you would like to beta test future versions of PowerPress, please [contact us](http://www.blubrry.com/contact.php) with your name and email.
|
176 |
|
177 |
+
|
178 |
+
= 5.0.4 =
|
179 |
+
* Released on 1/30/2014
|
180 |
+
* Fixed bug with MEjs player not working for m4a files (Thanks JT for the code patch!)
|
181 |
+
* Added logic to PowerPress edit iTunes Subscription URL settings, precaution to make sure the field is saved correctly.
|
182 |
+
* Made a few CSS changes for WordPress 3.8+
|
183 |
+
* Noted in the HTML5 audio player option that Firefox 26.0+ now supports mp3 playback. We are aware that Firefox 21.0 supported mp3 playback but it was limited to particular Windows versions.
|
184 |
+
* Fixed bug where player and links may not appear for custom post type podcasting episodes. (Thanks Seth and Segovia for discovering and helping me debug the problem!)
|
185 |
+
* Fixed bug where Blubrry hosting customers may not have been able to publish media for custom post type podcasting.
|
186 |
+
* Renamed post type podcasting setting field in database to avoid possible field setting conflicts.
|
187 |
+
* Added logic to allow for the premium podcast feeds feature to work with custom post type podcasting.
|
188 |
+
* Added the HTML5 download attribute, when then download link is clicked the file will be downloaded, rather than streamed to default media player. Only Chrome, Firefox and Opera web browsers currently support this HTML5 attribute.
|
189 |
+
|
190 |
+
|
191 |
= 5.0.3 =
|
192 |
* Released on 12/3/2013
|
193 |
* Fixed bug with feed title not properly XML encoding ampersand. (Thanks Robin for bringing to our attention!)
|