PowerPress Podcasting plugin by Blubrry - Version 1.0.9

Version Description

  • Released on 7/2/2010
  • Updated WP supported version tag to 3.0, we have yet to find any issues between PowerPress and the latest version of WordPress.
  • Fixed minor bug when clicking 'Add Podcasting to Category' when category not selected.
  • Added Media Redirect URL option for Category feeds and pages. The Redirect URL also works with single pages if only one category is selected for the post.
  • Finished adding translation support. Want to translate PowerPress into you language? Please email cio [at] rawvoice.com for details.
  • Improved error reporting for the 'Verify' button feature.
Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

languages/powerpress-xx_XX.pot ADDED
@@ -0,0 +1 @@
 
1
+ MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit
mp3info.class.php CHANGED
@@ -100,7 +100,7 @@
100
  {
101
  if( !ini_get( 'allow_url_fopen' ) && !function_exists( 'curl_init' ) )
102
  {
103
- $this->SetError( __('Your server must either have the php.ini setting \'allow_url_fopen\' enabled or have the PHP cURL library installed in order to continue.') );
104
  return false;
105
  }
106
 
@@ -110,7 +110,7 @@
110
  // The following code relies on fopen_url capability.
111
  if( $RedirectCount > $this->m_RedirectLimit )
112
  {
113
- $this->SetError( 'Media URL exceeded redirect limit of '.$this->m_RedirectLimit .' (fopen).' );
114
  return false;
115
  }
116
 
@@ -121,9 +121,9 @@
121
  if( !isset( $urlParts['host']) )
122
  {
123
  if( empty($url) )
124
- $this->SetError( 'Unable to obtain host name from URL.' );
125
  else
126
- $this->SetError( 'Unable to obtain host name from the URL: '.$url );
127
  return false;
128
  }
129
  if( !isset( $urlParts['path']) )
@@ -223,7 +223,7 @@
223
  }
224
  else
225
  {
226
- $this->SetError('Unable to obtain media size from web server.');
227
  return false;
228
  }
229
  }
@@ -236,7 +236,7 @@
236
 
237
  if( $TempFile === false )
238
  {
239
- $this->SetError('Unable to save media information to temporary directory.');
240
  return false;
241
  }
242
 
@@ -249,7 +249,7 @@
249
  return $TempFile;
250
  }
251
  }
252
- $this->SetError('Unable to connect to host '.$urlParts['host'].'.');
253
  return false;
254
  }
255
 
@@ -263,7 +263,7 @@
263
  {
264
  if( $RedirectCount > $this->m_RedirectLimit )
265
  {
266
- $this->SetError( 'Media URL exceeded redirect limit of '.$this->m_RedirectLimit .' (cURL in safe mode).' );
267
  return false;
268
  }
269
  $this->m_RedirectCount = $RedirectCount;
@@ -305,7 +305,7 @@
305
  case 307: {
306
  if ( !ini_get('safe_mode') && !ini_get('open_basedir') )
307
  {
308
- $this->SetError( 'Media URL exceeded redirect limit of '.$this->m_RedirectLimit .' (cURL).' );
309
  }
310
  else
311
  {
@@ -320,7 +320,7 @@
320
  }
321
  else
322
  {
323
- $this->SetError( sprintf(__('Unable to obtain HTTP %d redirect URL.'), $HttpCode) );
324
  }
325
  }
326
  }; break;
@@ -350,7 +350,7 @@
350
  $this->m_ContentLength = $ContentLength;
351
  return true;
352
  }
353
- $this->SetError('Unable to obtain media size from server.');
354
  return false;
355
  }
356
 
@@ -361,7 +361,7 @@
361
  $TempFile = tempnam('/tmp', 'wp_powerpress');
362
  if( $TempFile === false )
363
  {
364
- $this->SetError('Unable to create temporary file for checking media information.');
365
  return false;
366
  }
367
 
@@ -424,7 +424,7 @@
424
  }
425
  else if( $success && $this->m_data == '' )
426
  {
427
- $this->SetError('Unable to download media.');
428
  $success = false;
429
  }
430
  }
@@ -432,9 +432,9 @@
432
  if( !$success )
433
  {
434
  if( curl_errno($curl) )
435
- $this->SetError('Retrieving file info: '. curl_error($curl) );
436
  else if( $this->GetError() == '' )
437
- $this->SetError('Unable to download media.');
438
  }
439
  curl_close($curl);
440
  fclose($fp);
@@ -478,6 +478,27 @@
478
  $LocalFile = $File;
479
  }
480
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  // Hack so this works in Windows, helper apps are not necessary for what we're doing anyway
482
  define('GETID3_HELPERAPPSDIR', true);
483
  require_once(POWERPRESS_ABSPATH.'/getid3/getid3.php');
@@ -488,6 +509,14 @@
488
 
489
  if( $FileInfo )
490
  {
 
 
 
 
 
 
 
 
491
  // Remove extra data that is not necessary for us to return...
492
  //unset($FileInfo['mpeg']);
493
  unset($FileInfo['audio']);
@@ -504,13 +533,13 @@
504
  if( $Audio['sample_rate'] != 22050 && $Audio['sample_rate'] != 44100 )
505
  {
506
  // Add warning here
507
- $this->AddWarning( sprintf(__('Sample Rate %dKhz may cause playback issues, we recommend 22Khz or 44Khz for maximum player compatibility.'), $Audio['sample_rate']/1000 ) );
508
  }
509
 
510
  if( stristr($Audio['channelmode'], 'stereo' ) === false )
511
  {
512
  // Add warning here
513
- $this->AddWarning( sprintf(__('Channel Mode \'%s\' may cause playback issues, we recommend \'joint stereo\' for maximum player compatibility.'), trim($Audio['channelmode']) ) );
514
  }
515
  }
516
 
100
  {
101
  if( !ini_get( 'allow_url_fopen' ) && !function_exists( 'curl_init' ) )
102
  {
103
+ $this->SetError( __('Your server must either have the php.ini setting \'allow_url_fopen\' enabled or have the PHP cURL library installed in order to continue.', 'powerpress') );
104
  return false;
105
  }
106
 
110
  // The following code relies on fopen_url capability.
111
  if( $RedirectCount > $this->m_RedirectLimit )
112
  {
113
+ $this->SetError( sprintf( __('Media URL exceeded redirect limit of %d (fopen).', 'powerpress'), $this->m_RedirectLimit) );
114
  return false;
115
  }
116
 
121
  if( !isset( $urlParts['host']) )
122
  {
123
  if( empty($url) )
124
+ $this->SetError( __('Unable to obtain host name from URL.', 'powerpress') );
125
  else
126
+ $this->SetError( __('Unable to obtain host name from the URL:', 'powerpress') .' '.$url );
127
  return false;
128
  }
129
  if( !isset( $urlParts['path']) )
223
  }
224
  else
225
  {
226
+ $this->SetError( __('Unable to obtain media size from web server.', 'powerpress') );
227
  return false;
228
  }
229
  }
236
 
237
  if( $TempFile === false )
238
  {
239
+ $this->SetError( __('Unable to save media information to temporary directory.', 'powerpress') );
240
  return false;
241
  }
242
 
249
  return $TempFile;
250
  }
251
  }
252
+ $this->SetError( __('Unable to connect to host:','powerpress') .' '.$urlParts['host']);
253
  return false;
254
  }
255
 
263
  {
264
  if( $RedirectCount > $this->m_RedirectLimit )
265
  {
266
+ $this->SetError( sprintf( __('Media URL exceeded redirect limit of %d (cURL in safe mode).', 'powerpress'), $this->m_RedirectLimit) );
267
  return false;
268
  }
269
  $this->m_RedirectCount = $RedirectCount;
305
  case 307: {
306
  if ( !ini_get('safe_mode') && !ini_get('open_basedir') )
307
  {
308
+ $this->SetError( sprintf( __('Media URL exceeded redirect limit of %d (cURL).', 'powerpress'), $this->m_RedirectLimit) );
309
  }
310
  else
311
  {
320
  }
321
  else
322
  {
323
+ $this->SetError( sprintf(__('Unable to obtain HTTP %d redirect URL.', 'powerpress'), $HttpCode) );
324
  }
325
  }
326
  }; break;
350
  $this->m_ContentLength = $ContentLength;
351
  return true;
352
  }
353
+ $this->SetError( __('Unable to obtain media size from server.', 'powerpress') );
354
  return false;
355
  }
356
 
361
  $TempFile = tempnam('/tmp', 'wp_powerpress');
362
  if( $TempFile === false )
363
  {
364
+ $this->SetError( __('Unable to create temporary file for checking media information.', 'powerpress') );
365
  return false;
366
  }
367
 
424
  }
425
  else if( $success && $this->m_data == '' )
426
  {
427
+ $this->SetError( __('Unable to download media.', 'powerpress') );
428
  $success = false;
429
  }
430
  }
432
  if( !$success )
433
  {
434
  if( curl_errno($curl) )
435
+ $this->SetError( __('Retrieving file info:', 'powerpress') .' '. curl_error($curl) );
436
  else if( $this->GetError() == '' )
437
+ $this->SetError( __('Unable to download media.', 'powerpress') );
438
  }
439
  curl_close($curl);
440
  fclose($fp);
478
  $LocalFile = $File;
479
  }
480
 
481
+ if( !is_file($LocalFile) )
482
+ {
483
+ $this->SetError( __('Error occurred downloading media file.', 'powerpress') );
484
+ return false;
485
+ }
486
+
487
+ if( $this->m_ContentLength == -1 )
488
+ {
489
+ $this->SetError( __('Error occurred downloading media file.', 'powerpress') );
490
+ return false;
491
+ }
492
+
493
+ if( $this->m_ContentLength < 1 )
494
+ $this->m_ContentLength = filesize($LocalFile);
495
+
496
+ if( $this->m_ContentLength == 0 )
497
+ {
498
+ $this->SetError( __('Downloaded media file is empty.', 'powerpress') );
499
+ return false;
500
+ }
501
+
502
  // Hack so this works in Windows, helper apps are not necessary for what we're doing anyway
503
  define('GETID3_HELPERAPPSDIR', true);
504
  require_once(POWERPRESS_ABSPATH.'/getid3/getid3.php');
509
 
510
  if( $FileInfo )
511
  {
512
+ if( isset($FileInfo['error']) )
513
+ {
514
+ $errors = '';
515
+ while( list($null,$error) = each($FileInfo['error']) )
516
+ $errors .= " $error.";
517
+ $this->SetError( trim($errors) );
518
+ return false;
519
+ }
520
  // Remove extra data that is not necessary for us to return...
521
  //unset($FileInfo['mpeg']);
522
  unset($FileInfo['audio']);
533
  if( $Audio['sample_rate'] != 22050 && $Audio['sample_rate'] != 44100 )
534
  {
535
  // Add warning here
536
+ $this->AddWarning( sprintf(__('Sample Rate %dKhz may cause playback issues, we recommend 22Khz or 44Khz for maximum player compatibility.', 'powerpress'), $Audio['sample_rate']/1000 ) );
537
  }
538
 
539
  if( stristr($Audio['channelmode'], 'stereo' ) === false )
540
  {
541
  // Add warning here
542
+ $this->AddWarning( sprintf(__('Channel Mode \'%s\' may cause playback issues, we recommend \'joint stereo\' for maximum player compatibility.', 'powerpress'), trim($Audio['channelmode']) ) );
543
  }
544
  }
545
 
powerpress-feed-auth.php CHANGED
@@ -19,17 +19,17 @@
19
  if( $user->has_cap( $FeedSettings['premium'] ) )
20
  return; // Nice, let us continue...
21
 
22
- powerpress_feed_auth_basic( $FeedSettings['title'], __('Access Denied') );
23
  }
24
 
25
  // user authenticated here
26
- powerpress_feed_auth_basic( $FeedSettings['title'], __('Authorization Failed') );
27
  }
28
 
29
  function powerpress_feed_auth_basic($realm_name, $error = false )
30
  {
31
  if( !$error )
32
- $error = __('Unauthorized');
33
  header('HTTP/1.0 401 Unauthorized');
34
  header('WWW-Authenticate: Basic realm="'. str_replace('"', '', $realm_name).'"');
35
 
19
  if( $user->has_cap( $FeedSettings['premium'] ) )
20
  return; // Nice, let us continue...
21
 
22
+ powerpress_feed_auth_basic( $FeedSettings['title'], __('Access Denied', 'powerpress') );
23
  }
24
 
25
  // user authenticated here
26
+ powerpress_feed_auth_basic( $FeedSettings['title'], __('Authorization Failed', 'powerpress') );
27
  }
28
 
29
  function powerpress_feed_auth_basic($realm_name, $error = false )
30
  {
31
  if( !$error )
32
+ $error = __('Unauthorized', 'powerpress');
33
  header('HTTP/1.0 401 Unauthorized');
34
  header('WWW-Authenticate: Basic realm="'. str_replace('"', '', $realm_name).'"');
35
 
powerpress-player.php CHANGED
@@ -79,7 +79,7 @@ function powerpressplayer_build($media_url, $Settings, $ExtraData = array())
79
  //$PlayerSettings['noinfo'] = 'yes';
80
  if( $PlayerSettings['titles'] == '' )
81
  $PlayerSettings['titles'] = 'Blubrry PowerPress';
82
- else if( strtoupper($PlayerSettings['titles']) == 'TRACK' )
83
  unset( $PlayerSettings['titles'] );
84
 
85
  $keys = array_keys($PlayerSettings);
79
  //$PlayerSettings['noinfo'] = 'yes';
80
  if( $PlayerSettings['titles'] == '' )
81
  $PlayerSettings['titles'] = 'Blubrry PowerPress';
82
+ else if( strtoupper($PlayerSettings['titles']) == __('TRACK', 'powerpress') )
83
  unset( $PlayerSettings['titles'] );
84
 
85
  $keys = array_keys($PlayerSettings);
powerpress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://www.blubrry.com/powerpress/
5
  Description: <a href="http://www.blubrry.com/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: 1.0.8
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
@@ -33,7 +33,7 @@ if( !function_exists('add_action') )
33
  die("access denied.");
34
 
35
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
36
- define('POWERPRESS_VERSION', '1.0.8' );
37
 
38
  /////////////////////////////////////////////////////
39
  // The following define options should be placed in your
@@ -1742,7 +1742,7 @@ function powerpress_do_pinw($pinw, $process_podpress)
1742
  <html xmlns="http://www.w3.org/1999/xhtml">
1743
  <head>
1744
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1745
- <title>Blubrry PowerPress Player</title>
1746
  <?php wp_head(); ?>
1747
  <style type="text/css">
1748
  body { font-size: 13px; font-family: Arial, Helvetica, sans-serif; }
@@ -1754,7 +1754,7 @@ body { font-size: 13px; font-family: Arial, Helvetica, sans-serif; }
1754
  $GeneralSettings = get_option('powerpress_general');
1755
  if( !$EpisodeData )
1756
  {
1757
- echo '<p>Unable to retrieve media information.</p>';
1758
  }
1759
  else if( !empty($GeneralSettings['premium_caps']) && !powerpress_premium_content_authorized($feed_slug) )
1760
  {
@@ -2133,14 +2133,37 @@ function powerpress_add_redirect_url($MediaURL, $GeneralSettings = false)
2133
  {
2134
  global $powerpress_general_settings;
2135
  if( !$powerpress_general_settings )
 
2136
  $powerpress_general_settings = get_option('powerpress_general');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2137
  $GeneralSettings = $powerpress_general_settings;
2138
  }
2139
 
2140
- for( $x = 3; $x > 0; $x-- )
2141
  {
2142
  $key = sprintf('redirect%d', $x);
2143
- if( $GeneralSettings[ $key ] )
2144
  {
2145
  $RedirectClean = str_replace('http://', '', trim($GeneralSettings[ $key ]) );
2146
  if( !strstr($NewURL, $RedirectClean) )
3
  Plugin Name: Blubrry PowerPress
4
  Plugin URI: http://www.blubrry.com/powerpress/
5
  Description: <a href="http://www.blubrry.com/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: 1.0.9
7
  Author: Blubrry
8
  Author URI: http://www.blubrry.com/
9
  Change Log:
33
  die("access denied.");
34
 
35
  // WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
36
+ define('POWERPRESS_VERSION', '1.0.9' );
37
 
38
  /////////////////////////////////////////////////////
39
  // The following define options should be placed in your
1742
  <html xmlns="http://www.w3.org/1999/xhtml">
1743
  <head>
1744
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1745
+ <title><?php echo __('Blubrry PowerPress Player', 'powerpress'); ?></title>
1746
  <?php wp_head(); ?>
1747
  <style type="text/css">
1748
  body { font-size: 13px; font-family: Arial, Helvetica, sans-serif; }
1754
  $GeneralSettings = get_option('powerpress_general');
1755
  if( !$EpisodeData )
1756
  {
1757
+ echo '<p>'. __('Unable to retrieve media information.', 'powerpress') .'</p>';
1758
  }
1759
  else if( !empty($GeneralSettings['premium_caps']) && !powerpress_premium_content_authorized($feed_slug) )
1760
  {
2133
  {
2134
  global $powerpress_general_settings;
2135
  if( !$powerpress_general_settings )
2136
+ {
2137
  $powerpress_general_settings = get_option('powerpress_general');
2138
+ if( !empty($powerpress_general_settings['cat_casting']) ) // If category podcasting...
2139
+ {
2140
+ if( is_category() ) // Special case where we want to track the category separately
2141
+ {
2142
+ $FeedCatSettings = get_option('powerpress_cat_feed_'.get_query_var('cat') );
2143
+ if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2144
+ $powerpress_general_settings['redirect0'] = $FeedCatSettings['redirect'];
2145
+ }
2146
+ else if( is_single() )
2147
+ {
2148
+ $categories = wp_get_post_categories( get_the_ID() );
2149
+ if( count($categories) == 1 )
2150
+ {
2151
+ list($null,$cat_id) = each($categories);
2152
+ $FeedCatSettings = get_option('powerpress_cat_feed_'.$cat_id );
2153
+ if( $FeedCatSettings && !empty($FeedCatSettings['redirect']) )
2154
+ $powerpress_general_settings['redirect0'] = $FeedCatSettings['redirect'];
2155
+ // See if only one category is associated with this post
2156
+ }
2157
+ }
2158
+ }
2159
+ }
2160
  $GeneralSettings = $powerpress_general_settings;
2161
  }
2162
 
2163
+ for( $x = 3; $x >= 0; $x-- )
2164
  {
2165
  $key = sprintf('redirect%d', $x);
2166
+ if( !empty($GeneralSettings[ $key ]) )
2167
  {
2168
  $RedirectClean = str_replace('http://', '', trim($GeneralSettings[ $key ]) );
2169
  if( !strstr($NewURL, $RedirectClean) )
powerpressadmin-basic.php CHANGED
@@ -30,7 +30,7 @@ function CheckRedirect(obj)
30
  if( obj.value.indexOf('rawvoice') == -1 && obj.value.indexOf('techpodcasts') == -1 &&
31
  obj.value.indexOf('blubrry') == -1 && obj.value.indexOf('podtrac') == -1 )
32
  {
33
- if( !confirm('<?php echo __('The redirect entered is not recongized as a supported statistics redirect service.'); ?>\n\n<?php echo __('Are you sure you wish to continue with this redirect url?'); ?>') )
34
  {
35
  obj.value = '';
36
  return false;
@@ -87,15 +87,15 @@ jQuery(document).ready(function($) {
87
 
88
  <input type="hidden" name="action" value="powerpress-save-settings" />
89
 
90
- <h2><?php echo __('Blubrry PowerPress Settings'); ?></h2>
91
 
92
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
93
  <ul class="powerpress_settings_tabs">
94
- <li><a href="#tab1"><span><?php echo __('Basic Settings'); ?></span></a></li>
95
- <li><a href="#tab2"><span><?php echo htmlspecialchars(__('Services & Statistics')); ?></span></a></li>
96
- <li><a href="#tab3"><span><?php echo __('Appearance'); ?></span></a></li>
97
- <li><a href="#tab4"><span><?php echo __('Feeds'); ?></span></a></li>
98
- <li><a href="#tab5"><span><?php echo __('iTunes'); ?></span></a></li>
99
  </ul>
100
 
101
  <div id="tab1" class="powerpress_tab">
@@ -138,7 +138,7 @@ jQuery(document).ready(function($) {
138
  <?php
139
  $ChannelsCheckbox = '';
140
  if( !empty($General['custom_feeds']) )
141
- $ChannelsCheckbox = ' onclick="alert(\'You must delete all of the Podcast Channels to disable this option.\');return false;"';
142
  $CategoryCheckbox = '';
143
  //if( !empty($General['custom_cat_feeds']) ) // Decided ont to include this warning because it may imply that you have to delete the actual category, which is not true.
144
  // $CategoryCheckbox = ' onclick="alert(\'You must remove podcasting from the categories to disable this option.\');return false;"';
@@ -148,26 +148,26 @@ jQuery(document).ready(function($) {
148
  <div style="margin-left: 50px;">
149
  <div>
150
  <input type="checkbox" name="General[advanced_mode]" value="1" <?php echo ($General['advanced_mode']==1?' checked':''); ?> />
151
- <strong><?php echo __('Advanced Mode'); ?></strong> -
152
- <?php echo __('Uncheck to display only the essential settings for podcasting.'); ?>
153
  </div>
154
  <div>
155
  <input type="checkbox" name="General[player_options]" value="1" <?php echo ($General['player_options']?' checked':''); ?> />
156
- <strong><?php echo __('Audio Player Options'); ?></strong> -
157
- <?php echo __('Select from 5 different web based audio flash players.'); ?>
158
- <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled'); ?>)</span>
159
  </div>
160
  <div>
161
  <input type="checkbox" name="General[channels]" value="1" <?php echo ($General['channels']?' checked':''); echo $ChannelsCheckbox; ?> />
162
- <strong><?php echo __('Custom Podcast Channels'); ?></strong> -
163
- <?php echo __('Manage multiple media files and/or formats to one blog post.'); ?>
164
- <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled'); ?>)</span>
165
  </div>
166
  <div>
167
  <input type="checkbox" name="General[cat_casting]" value="1" <?php echo ($General['cat_casting']?' checked':''); echo $CategoryCheckbox; ?> />
168
- <strong><?php echo __('Category Podcasting'); ?></strong> -
169
- <?php echo __('Manage category podcast feeds.'); ?>
170
- <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled'); ?>)</span>
171
  </div>
172
  </div>
173
  </div>
@@ -177,18 +177,22 @@ jQuery(document).ready(function($) {
177
  {
178
  ?>
179
  <div style="margin-left: 10px;">
180
- <h3 style="margin-bottom: 5px;"><?php echo __('Like The Plugin?'); ?></h3>
181
  <p style="margin-top: 0;">
182
- <?php echo __('This plugin is great, don\'t you think? If you like the plugin we\'d be ever so grateful if you\'d give it your support. Here\'s how:'); ?>
183
  </p>
184
  <ul id="powerpress_support">
185
- <li><?php echo __('Rate this plugin 5 stars in the'); ?> <a href="http://wordpress.org/extend/plugins/powerpress/" title="<?php echo __('Rate this plugin 5 stars in the'); ?> <?php echo __('WordPress Plugins Directory'); ?>" target="_blank"><?php echo __('WordPress Plugins Directory'); ?></a>.</li>
186
- <li><?php echo __('Tell the world about PowerPress by writing about it on your blog'); ?>,
187
- <a href="http://twitter.com/home/?status=<?php echo urlencode('I\'m podcasting with Blubrry PowerPress (http://blubrry.com/powerpress/) #powerpress #wordpress'); ?>" target="_blank" title="<?php echo __('Tweet about Blubrry PowerPress'); ?>">Twitter</a>,
188
- <a href="http://www.facebook.com/share.php?u=<?php echo urlencode('http://www.blubrry.com/powerpress/'); ?>&t=<?php echo urlencode('I podcast with Blubrry PowerPress'); ?>" target="_blank" title="<?php echo __('Share Blubrry PowerPress on Facebook'); ?>">Facebook</a>,
189
- <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'); ?>" target="_blank" title="<?php echo __('Digg about Blubrry PowerPress'); ?>">Digg</a>,
 
 
 
 
190
  etc...</li>
191
- <li><a href="http://www.blubrry.com/contact.php" target="_blank" title="<?php echo __('Send us feedback'); ?>"><?php echo __('Send us feedback'); ?></a> (<?php echo __('we love getting suggestions for new features!'); ?>)</li>
192
  </ul>
193
  </div>
194
  <?php
@@ -212,7 +216,7 @@ function powerpressadmin_edit_entry_options($General)
212
  if( !isset($General['auto_enclose']) )
213
  $General['auto_enclose'] = 0;
214
  ?>
215
- <h3><?php echo __("Episode Entry Options"); ?></h3>
216
 
217
  <table class="form-table">
218
  <?php
@@ -220,11 +224,11 @@ function powerpressadmin_edit_entry_options($General)
220
  {
221
  ?>
222
  <tr valign="top">
223
- <th scope="row"><?php echo __('Default Media URL'); ?></th>
224
  <td>
225
  <input type="text" style="width: 80%;" name="General[default_url]" value="<?php echo $General['default_url']; ?>" maxlength="250" />
226
- <p><?php echo __('e.g. http://example.com/mediafolder/'); ?></p>
227
- <p><?php echo __('URL above will prefix entered file names that do not start with \'http://\'. URL above must end with a trailing slash. You may leave blank if you always enter the complete URL to your media when creating podcast episodes.'); ?>
228
  </p>
229
  </td>
230
  </tr>
@@ -234,67 +238,67 @@ function powerpressadmin_edit_entry_options($General)
234
  <tr valign="top">
235
  <th scope="row">
236
 
237
- <?php echo __('Podcast Entry Box'); ?></th>
238
  <td>
239
 
240
  <ul>
241
- <li><label><input type="radio" name="General[episode_box_mode]" value="1" <?php if( $General['episode_box_mode'] == 1 ) echo 'checked'; ?> onclick="SelectEntryBox(1);" /> <?php echo __('Simple'); ?></label></li>
242
  <li>
243
  <ul>
244
- <li><?php echo __('Episode entry box includes Media URL field only. File Size and Duration will be auto detected upon saving the post.'); ?></li>
245
  </ul>
246
  </li>
247
 
248
- <li><label><input type="radio" name="General[episode_box_mode]" value="0" <?php if( $General['episode_box_mode'] == 0 ) echo 'checked'; ?> onclick="SelectEntryBox(0);" /> <?php echo __('Normal'); ?></label> (<?php echo __('default'); ?>)</li>
249
  <li>
250
  <ul>
251
- <li><?php echo __('Episode entry box includes Media URL, File Size and Duration fields.'); ?></li>
252
  </ul>
253
  </li>
254
 
255
- <li><label><input type="radio" name="General[episode_box_mode]" value="2" <?php if( $General['episode_box_mode'] == 2 ) echo 'checked'; ?> onclick="SelectEntryBox(2);" /> <?php echo __('Custom'); ?></label></li>
256
  <li>
257
  <ul>
258
- <li><?php echo __('Episode entry box includes Media URL, File Size and Duration fields, plus:'); ?>
259
  <div id="episode_box_mode_adv">
260
- <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'); ?>
261
- (<?php echo __('Enter embed code from sites such as YouTube, Viddler and Blip.tv'); ?>)</p>
262
- <p style="margin-top: 5px; margin-left: 20px; font-size: 90%;"><input id="embed_replace_player" class="episode_box_option" name="General[embed_replace_player]" type="checkbox" value="1"<?php if( !empty($General['embed_replace_player']) ) echo ' checked'; ?> /> <?php echo __('Replace Player with Embed'); ?>
263
- (<?php echo __('Do not display default player if embed present for episode.'); ?>)</p>
264
 
265
- <p style="margin-top: 15px;"><input id="episode_box_player_links_options" class="episode_box_option" name="episode_box_player_links_options" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player_and_links']) || !empty($General['episode_box_no_player']) || !empty($General['episode_box_no_links']) ) echo ' checked'; ?> /> <?php echo __('Display Player and Links Options'); ?>
266
  </p>
267
  <div id="episode_box_player_links_options_div" style="margin-left: 20px;<?php if( empty($General['episode_box_no_player_and_links']) && empty($General['episode_box_no_player']) && empty($General['episode_box_no_links']) ) echo 'display:none;'; ?>">
268
 
269
- <p style="margin-top: 0px; margin-bottom: 5px;"><input id="episode_box_no_player_and_links" class="episode_box_option" name="General[episode_box_no_player_and_links]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player_and_links']) ) echo ' checked'; ?> /> <?php echo htmlspecialchars(__('No Player & Links Option')); ?>
270
- (<?php echo __('Disable media player and links on a per episode basis'); ?>)</p>
271
 
272
- <p style="margin-top: 0; margin-bottom: 0; margin-left: 20px;"><?php echo ('- or -'); ?></p>
273
 
274
- <p style="margin-top: 5px; margin-bottom: 10px;"><input id="episode_box_no_player" class="episode_box_option episode_box_no_player_or_links" name="General[episode_box_no_player]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player']) ) echo ' checked'; ?> /> <?php echo __('No Player Option'); ?>
275
- (<?php echo __('Disable media player on a per episode basis'); ?>)</p>
276
 
277
- <p style="margin-top: 5px; margin-bottom: 20px;"><input id="episode_box_no_links" class="episode_box_option episode_box_no_player_or_links" name="General[episode_box_no_links]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_links']) ) echo ' checked'; ?> /> <?php echo __('No Links Option'); ?>
278
- (<?php echo __('Disable media links on a per episode basis'); ?>)</p>
279
 
280
  </div>
281
 
282
- <p style="margin-top: 15px;"><input id="episode_box_cover_image" class="episode_box_option" name="General[episode_box_cover_image]" type="checkbox" value="1"<?php if( @$General['episode_box_cover_image'] ) echo ' checked'; ?> /> <?php echo __('Video Cover Image'); ?>
283
- (<?php echo __('specify URL to image to display in place of QuickTime video'); ?>)</p>
284
 
285
- <p style="margin-top: 15px;"><input id="episode_box_keywords" class="episode_box_option" name="General[episode_box_keywords]" type="checkbox" value="1"<?php if( !empty($General['episode_box_keywords']) ) echo ' checked'; ?> /> <?php echo __('iTunes Keywords Field'); ?>
286
- (<?php echo __('Leave unchecked to use your blog post tags'); ?>)</p>
287
- <p style="margin-top: 15px;"><input id="episode_box_subtitle" class="episode_box_option" name="General[episode_box_subtitle]" type="checkbox" value="1"<?php if( !empty($General['episode_box_subtitle']) ) echo ' checked'; ?> /> <?php echo __('iTunes Subtitle Field'); ?>
288
- (<?php echo __('Leave unchecked to use the first 250 characters of your blog post'); ?>)</p>
289
- <p style="margin-top: 15px;"><input id="episode_box_summary" class="episode_box_option" name="General[episode_box_summary]" type="checkbox" value="1"<?php if( !empty($General['episode_box_summary']) ) echo ' checked'; ?> /> <?php echo __('iTunes Summary Field'); ?>
290
- (<?php echo __('Leave unchecked to use your blog post'); ?>)</p>
291
- <p style="margin-top: 15px;"><input id="episode_box_author" class="episode_box_option" name="General[episode_box_author]" type="checkbox" value="1"<?php if( !empty($General['episode_box_author']) ) echo ' checked'; ?> /> <?php echo __('iTunes Author Field'); ?>
292
- (<?php echo __('Leave unchecked to the post author name'); ?>)</p>
293
- <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'); ?>
294
- (<?php echo __('Leave unchecked to use your feed\'s explicit setting'); ?>)</p>
295
 
296
- <em><?php echo __('NOTE: An invalid entry into any of the iTunes fields may cause problems with your iTunes listing. It is highly recommended that you validate your feed using feedvalidator.org everytime you modify any of the iTunes fields listed above.'); ?></em><br />
297
- <em><strong><?php echo __('USE THE ITUNES FIELDS ABOVE AT YOUR OWN RISK.'); ?></strong></em>
298
  </div>
299
  </li>
300
  </ul>
@@ -318,33 +322,33 @@ SelectEmbedField(<?php echo $General['episode_box_embed']; ?>);
318
  <tr valign="top">
319
  <th scope="row">
320
 
321
- <?php echo __('File Size Default'); ?></th>
322
  <td>
323
  <select name="General[set_size]" class="bpp_input_med">
324
  <?php
325
- $options = array(0=>__('Auto detect file size'), 1=>__('User specify') );
326
 
327
  while( list($value,$desc) = each($options) )
328
  echo "\t<option value=\"$value\"". ($General['set_size']==$value?' selected':''). ">$desc</option>\n";
329
 
330
  ?>
331
- </select> (<?php echo __('specify default file size option when creating a new episode'); ?>)
332
  </td>
333
  </tr>
334
 
335
  <tr valign="top">
336
  <th scope="row">
337
- <?php echo __('Duration Default'); ?></th>
338
  <td>
339
  <select name="General[set_duration]" class="bpp_input_med">
340
  <?php
341
- $options = array(0=>__('Auto detect duration (mp3\'s only)'), 1=>__('User specify'), -1=>__('Not specified (not recommended)') );
342
 
343
  while( list($value,$desc) = each($options) )
344
  echo "\t<option value=\"$value\"". ($General['set_duration']==$value?' selected':''). ">$desc</option>\n";
345
 
346
  ?>
347
- </select> (<?php echo __('specify default duration option when creating a new episode'); ?>)
348
  </td>
349
  </tr>
350
  </table>
@@ -353,20 +357,20 @@ while( list($value,$desc) = each($options) )
353
  <table class="form-table">
354
  <tr valign="top">
355
  <th scope="row">
356
- <?php echo __("Auto Add Media"); ?></th>
357
  <td>
358
  <select name="General[auto_enclose]" class="bpp_input_med">
359
  <?php
360
- $options = array(0=>__('Disabled (default)'), 1=>__('First media link found in post content'), 2=>__('Last media link found in post content') );
361
 
362
  while( list($value,$desc) = each($options) )
363
  echo "\t<option value=\"$value\"". ($General['auto_enclose']==$value?' selected':''). ">$desc</option>\n";
364
 
365
  ?>
366
  </select>
367
- <p><?php echo __('When enabled, the first or last media link found in the post content is automatically added as your podcast episode.'); ?></p>
368
- <p style="margin-bottom: 0;"><em><?php echo __('NOTE: Use this feature with caution. Links to media files could unintentionally become podcast episodes.'); ?></em></p>
369
- <p><em><?php echo __('WARNING: Episodes created with this feature will <u>not</u> include Duration (total play time) information.'); ?></em></p>
370
  </td>
371
  </tr>
372
  <?php
@@ -376,18 +380,18 @@ while( list($value,$desc) = each($options) )
376
  ?>
377
  <tr valign="top">
378
  <th scope="row">
379
- <?php echo __("Podcast Permalinks"); ?></th>
380
  <td>
381
  <select name="General[permalink_feeds_only]" class="bpp_input_med">
382
  <?php
383
- $options = array(0=>__('Default WordPress Behavior'), 1=>__('Match Feed Name to Page/Category') );
384
 
385
  while( list($value,$desc) = each($options) )
386
  echo "\t<option value=\"$value\"". ($General['permalink_feeds_only']==$value?' selected':''). ">$desc</option>\n";
387
 
388
  ?>
389
  </select>
390
- <p><?php echo sprintf(__('When configured, %s/podcast/ is matched to page/category named \'podcast\'.'), get_bloginfo('home') ); ?></p>
391
  </td>
392
  </tr>
393
  <?php
@@ -409,39 +413,39 @@ function powerpressadmin_edit_podpress_options($General)
409
  $General['podpress_stats'] = 0;
410
  ?>
411
 
412
- <h3><?php echo __('PodPress Options'); ?></h3>
413
  <table class="form-table">
414
  <tr valign="top">
415
  <th scope="row">
416
 
417
- <?php echo __('PodPress Episodes'); ?></th>
418
  <td>
419
  <select name="General[process_podpress]" class="bpp_input_med">
420
  <?php
421
- $options = array(0=>__('Ignore'), 1=>__('Include in Posts and Feeds') );
422
 
423
  while( list($value,$desc) = each($options) )
424
  echo "\t<option value=\"$value\"". ($General['process_podpress']==$value?' selected':''). ">$desc</option>\n";
425
 
426
  ?>
427
- </select> (<?php echo __('includes podcast episodes previously created in PodPress'); ?>)
428
  </td>
429
  </tr>
430
  <?php if( @$General['podpress_stats'] || powerpress_podpress_stats_exist() ) { ?>
431
  <tr valign="top">
432
  <th scope="row">
433
 
434
- <?php echo __('PodPress Stats Archive'); ?></th>
435
  <td>
436
  <select name="General[podpress_stats]" class="bpp_input_sm">
437
  <?php
438
- $options = array(0=>__('Hide'), 1=>__('Display') );
439
 
440
  while( list($value,$desc) = each($options) )
441
  echo "\t<option value=\"$value\"". ($General['podpress_stats']==$value?' selected':''). ">$desc</option>\n";
442
 
443
  ?>
444
- </select> (<?php echo __('display archive of old PodPress statistics'); ?>)
445
  </td>
446
  </tr>
447
  <?php } ?>
@@ -477,13 +481,13 @@ function powerpressadmin_edit_itunes_general($General, $FeedSettings = false, $f
477
  if( $OpenSSLSupport == false )
478
  {
479
  ?>
480
- <div class="error powerpress-error"><?php echo __('Ping iTunes requires OpenSSL in PHP. Please refer to your php.ini to enable the php_openssl module.'); ?></div>
481
  <?php } // End if !$OpenSSLSupport ?>
482
 
483
- <h3><?php echo __('iTunes Listing Information'); ?></h3>
484
  <table class="form-table">
485
  <tr valign="top">
486
- <th scope="row"><?php echo __('iTunes Subscription URL'); ?></th>
487
  <td>
488
  <?php
489
  if( $FeedSettings ) {
@@ -494,11 +498,11 @@ function powerpressadmin_edit_itunes_general($General, $FeedSettings = false, $f
494
  <?php } ?>
495
  <p>e.g. http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=000000000</p>
496
 
497
- <p><?php echo __('Click the following link to'); ?> <a href="https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast" target="_blank" title="<?php echo __('Publish a Podcast on iTunes'); ?>"><?php echo __('Publish a Podcast on iTunes'); ?></a>.
498
- <?php echo __('iTunes will send an email to your <em>iTunes Email</em> entered below when your podcast is accepted into the iTunes Directory.'); ?>
499
  </p>
500
  <p>
501
- <?php echo __('Recommended feed to submit to iTunes: '); ?>
502
  <?php
503
  if( $cat_ID )
504
  {
@@ -521,7 +525,7 @@ function powerpressadmin_edit_itunes_general($General, $FeedSettings = false, $f
521
  <tr valign="top">
522
  <th scope="row">
523
 
524
- <?php echo __('Update iTunes Listing'); ?></th>
525
  <td>
526
  <?php
527
  if( $FeedSettings )
@@ -532,7 +536,7 @@ function powerpressadmin_edit_itunes_general($General, $FeedSettings = false, $f
532
  <select name="General[ping_itunes]"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?> class="bpp_input_sm">
533
  <?php
534
  }
535
- $options = array(0=>__('No'), 1=>__('Yes') );
536
 
537
  $ping_itunes = ($FeedSettings?$FeedSettings['ping_itunes']:$General['ping_itunes']);
538
  if( $OpenSSLSupport == false )
@@ -542,8 +546,8 @@ while( list($value,$desc) = each($options) )
542
  echo "\t<option value=\"$value\"". ($ping_itunes==$value?' selected':''). ">$desc</option>\n";
543
 
544
  ?>
545
- </select> <?php echo __('Notify (ping) iTunes when you publish a new episode.'); ?>
546
- <p><input name="TestiTunesPing" type="checkbox" value="1"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?> /> <?php echo __('Test Update iTunes Listing (recommended)'); ?></p>
547
  <?php
548
  $itunes_subscribe_url = ($FeedSettings?$FeedSettings['itunes_url']:$General['itunes_url']);
549
  if( !empty($itunes_subscribe_url) )
@@ -557,7 +561,7 @@ while( list($value,$desc) = each($options) )
557
  'http://www.itunes.com/podcast?id='),
558
  'https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?id=', $itunes_subscribe_url);
559
  ?>
560
- <p><?php echo __('You may also update your iTunes listing by using the following link:'); ?> <a href="#" onclick="javascript: window.open('<?php echo $ping_url; ?>'); return false;" title="<?php echo __('Ping iTunes in New Window'); ?>"><?php echo __('Ping iTunes in New Window'); ?></a></p>
561
 
562
  <?php
563
  if( preg_match('/id=(\d+)/', $itunes_subscribe_url, $matches) )
@@ -569,27 +573,27 @@ while( list($value,$desc) = each($options) )
569
  {
570
  $PingLog = $Logging['itunes_ping_'. $FEEDID ];
571
  ?>
572
- <h3><?php echo __('Latest Update iTunes Listing Status:'); ?> <?php if( $PingLog['success'] ) echo '<span style="color: #006505;">'. __('Successful') .'</span>'; else echo '<span style="color: #f00;">'. __('Error') .'</span>'; ?></h3>
573
  <div style="font-size: 85%; margin-left: 20px;">
574
  <p>
575
- <?php echo sprintf( __('iTunes notified on %s at %s'), date(get_option('date_format'), $PingLog['timestamp']), date(get_option('time_format'), $PingLog['timestamp'])); ?>
576
  <?php
577
  if( $PingLog['post_id'] )
578
  {
579
  $post = get_post($PingLog['post_id']);
580
  if( $post )
581
- echo ' '. __('for post:') .' '. htmlspecialchars($post->post_title);
582
  }
583
  ?>
584
  </p>
585
  <?php if( $PingLog['success'] ) { ?>
586
- <p><?php echo __('Feed pulled by iTunes:'); ?> <?php echo $PingLog['feed_url']; ?>
587
  </p>
588
  <?php
589
 
590
  ?>
591
  <?php } else { ?>
592
- <p><?php echo __('Error:'); ?> <?php echo htmlspecialchars($PingLog['content']); ?></p>
593
  <?php } ?>
594
  </div>
595
  <?php
@@ -622,39 +626,43 @@ function powerpressadmin_edit_blubrry_services($General)
622
  $StatsInDashboard = false;
623
 
624
  ?>
625
- <h3><?php echo __('Blubrry Services Integration'); ?></h3>
626
  <p>
627
- Adds <a href="http://www.blubrry.com/podcast_statistics/" title="Blubrry Media Statistics" target="_blank">Blubrry Media Statistics</a> to your blog's <a href="<?php echo admin_url(); ?>" title="WordPress Dashboard">dashboard</a> plus
628
- features for <a href="https://secure.blubrry.com/podcast-publishing-premium-with-hosting/" title="Blubrry Media Hosting" target="_blank">Blubrry Media Hosting</a> users to quickly upload and publish media.
 
 
 
 
629
  </p>
630
  <p>
631
- <em>Note: <strong>No membership or service is required</strong> to use this free open source podcasting plugin.</em>
632
  </p>
633
  <table class="form-table">
634
  <tr valign="top">
635
  <th scope="row">
636
- <?php echo __('Blubrry Services'); ?>*
637
  </th>
638
  <td>
639
- <p style="margin-top: 5px;"><span id="service_mode"><?php echo $ModeDesc; ?></span> (<strong><a href="<?php echo admin_url(); echo wp_nonce_url( "admin.php?action=powerpress-jquery-account", 'powerpress-jquery-account'); ?>&amp;KeepThis=true&amp;TB_iframe=true&amp;width=500&amp;height=400&amp;modal=true" target="_blank" class="thickbox" style="color: #3D517E;" title="Blubrry Services Integration">Click here to configure Blubrry Services</a></strong>)</p>
640
  </td>
641
  </tr>
642
 
643
  <tr valign="top">
644
  <th scope="row">
645
- <?php echo __('Dashboard Integration'); ?>
646
  </th>
647
  <td>
648
  <p style="margin-top: 5px;"><input name="StatsInDashboard" type="checkbox" value="1"<?php if( $StatsInDashboard == true ) echo ' checked'; ?> />
649
- <?php echo __('Display Statistics in WordPress Dashboard'); ?></p>
650
  </td>
651
  </tr>
652
  </table>
653
  <p>
654
  *<em>The Blubrry basic statistics service is FREE. Our
655
- <a href="https://secure.blubrry.com/podcast-statistics-premium/" title="Blubrry Premium Statistics Service" target="_blank">Premium Statistics Service</a>,
656
  which includes U.S. downloads, trending and exporting, is available for $5 month. Blubrry
657
- <a href="https://secure.blubrry.com/podcast-publishing-premium-with-hosting/" title="Blubrry Media Hosting" target="_blank">Media Hosting</a>
658
  packages start at $12.</em>
659
  </p>
660
  <?php
@@ -672,16 +680,16 @@ function powerpressadmin_edit_media_statistics($General)
672
  $General['hide_free_stats'] = 0;
673
 
674
  ?>
675
- <h3><?php echo __('Media Statistics'); ?></h3>
676
  <p>
677
- <?php echo __('Enter your Redirect URL issued by your media statistics service provider below.'); ?>
678
  </p>
679
 
680
  <div style="position: relative;">
681
  <table class="form-table">
682
  <tr valign="top">
683
  <th scope="row">
684
- <?php echo __('Redirect URL 1'); ?>
685
  </th>
686
  <td>
687
  <input type="text" style="width: 60%;" name="General[redirect1]" value="<?php echo $General['redirect1']; ?>" onChange="return CheckRedirect(this);" maxlength="250" />
@@ -690,7 +698,7 @@ function powerpressadmin_edit_media_statistics($General)
690
  </table>
691
  <?php if( empty($General['redirect2']) && empty($General['redirect3']) ) { ?>
692
  <div style="position: absolute;bottom: 0px;right: 10px;font-size: 85%;" id="powerpress_redirect2_showlink">
693
- <a href="javascript:void();" 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'); ?></a>
694
  </div>
695
  <?php } ?>
696
  </div>
@@ -699,7 +707,7 @@ function powerpressadmin_edit_media_statistics($General)
699
  <table class="form-table">
700
  <tr valign="top">
701
  <th scope="row">
702
- <?php echo __('Redirect URL 2'); ?>
703
  </th>
704
  <td>
705
  <input type="text" style="width: 60%;" name="General[redirect2]" value="<?php echo $General['redirect2']; ?>" onblur="return CheckRedirect(this);" maxlength="250" />
@@ -708,7 +716,7 @@ function powerpressadmin_edit_media_statistics($General)
708
  </table>
709
  <?php if( $General['redirect3'] == '' ) { ?>
710
  <div style="position: absolute;bottom: 0px;right: 10px;font-size: 85%;" id="powerpress_redirect3_showlink">
711
- <a href="javascript:void();" 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'); ?></a>
712
  </div>
713
  <?php } ?>
714
  </div>
@@ -717,7 +725,7 @@ function powerpressadmin_edit_media_statistics($General)
717
  <table class="form-table">
718
  <tr valign="top">
719
  <th scope="row">
720
- <?php echo __('Redirect URL 3'); ?>
721
  </th>
722
  <td>
723
  <input type="text" style="width: 60%;" name="General[redirect3]" value="<?php echo $General['redirect3']; ?>" onblur="return CheckRedirect(this);" maxlength="250" />
@@ -734,15 +742,16 @@ function powerpressadmin_edit_media_statistics($General)
734
 
735
  <div id="blubrry_stats_box" style="<?php if( !empty($General['hide_free_stats']) ) echo 'display:none;'; ?>">
736
  <div style="font-family: Arial, Helvetica, sans-serif; border: solid 1px #3D517E; background-color:#D2E9FF;padding:10px; margin-left:10px;margin-right:10px;margin-top:10px;">
737
- <div style="color: #3D517E; font-weight: bold; font-size: 18px;">Free Access to the Best Media Statistics!</div>
738
  <div style="font-size: 14px;margin-top: 10px; margin-bottom: 10px;">
739
- Get <span style="color: #990000; font-weight: bold;">Free</span> Media Statistics by taking a few minutes and adding your podcast to Blubrry.com. What's the catch? Nothing!
740
- For many, our free service is all you will need. But if you're looking to further your abilities with media download information, we hope you consider upgrading to our paid Premium Statistics service.
 
741
  </div>
742
- <div style="text-align: center; font-size: 16px; font-weight: bold;"><a href="http://www.blubrry.com/addpodcast.php?feed=<?php echo urlencode(get_feed_link('podcast')); ?>" target="_blank" style="color: #3D517E;">Sign Up For Free Media Statistics Now</a></div>
743
  </div>
744
  <div style="font-size: 10px;margin-left: 10px;">
745
- <a href="javascript:void();" onclick="javascript:document.getElementById('blubrry_stats_box').style.display='none';document.getElementById('hide_free_stats').value=1;document.getElementById('show_free_stats').style.display='block';return false;"><?php echo __('hide'); ?></a>
746
  </div>
747
  </div>
748
 
@@ -753,7 +762,7 @@ function powerpressadmin_edit_media_statistics($General)
753
  &nbsp;
754
  </th>
755
  <td>
756
- <p style="margin: 0;"><a href="javascript:void();" onclick="javascript:document.getElementById('blubrry_stats_box').style.display='block';document.getElementById('hide_free_stats').value=0;document.getElementById('show_free_stats').style.display='none';return false;"><?php echo __('Learn About Free Blubrry Statistics'); ?></a></p>
757
  </td>
758
  </tr>
759
  </table>
@@ -782,7 +791,7 @@ function powerpressadmin_appearance($General=false)
782
  $General['player_width_audio'] = '';
783
 
784
 
785
- $Players = array('podcast'=>__('Default Podcast (podcast)') );
786
  if( isset($General['custom_feeds']) )
787
  {
788
  while( list($podcast_slug, $podcast_title) = each($General['custom_feeds']) )
@@ -795,7 +804,7 @@ function powerpressadmin_appearance($General=false)
795
 
796
  ?>
797
 
798
- <h3><?php echo __('Appearance Settings'); ?></h3>
799
 
800
  <table class="form-table">
801
 
@@ -804,51 +813,51 @@ function powerpressadmin_appearance($General=false)
804
  {
805
  ?>
806
  <tr valign="top">
807
- <th scope="row"><?php echo __('Media Presentation'); ?></th>
808
  <td><select name="General[display_player]" class="bpp_input_sm">
809
  <?php
810
- $displayoptions = array(1=>__('Below Post'), 2=>__('Above Post'), 0=>__('None') );
811
 
812
  while( list($value,$desc) = each($displayoptions) )
813
  echo "\t<option value=\"$value\"". ($General['display_player']==$value?' selected':''). ">$desc</option>\n";
814
 
815
  ?>
816
- </select> (<?php echo __('where media player and download links will be displayed'); ?>)
817
- <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:'); ?> <a href="http://codex.wordpress.org/Template_Tags/the_excerpt" title="<?php echo __('WordPress Excerpts'); ?>" target="_blank"><?php echo __('WordPress Excerpts'); ?></a> (<?php echo __('e.g. search results'); ?>)</p>
818
  </td>
819
  </tr>
820
 
821
  <tr valign="top">
822
  <th scope="row">
823
- <?php echo __('PowerPress Shortcode'); ?></th>
824
  <td>
825
  <p>
826
- <?php echo sprintf(__('The %s shortcode is used to position your media presentation (player and download links) exactly where you want within your Post or Page.'), '<code>[powerpress]</code>'); ?>
827
- <?php echo __('Simply insert the code on a new line in your content like this:'); ?>
828
  </p>
829
  <div style="margin-left: 30px;">
830
  <code>[powerpress]</code>
831
  </div>
832
  <p>
833
- <?php echo sprintf(__('Please visit the %s page for additional options.'), '<a href="http://help.blubrry.com/blubrry-powerpress/shortcode/" target="_blank">'. __('PowerPress Shortcode') .'</a>' ); ?>
834
  </p>
835
  </td>
836
  </tr>
837
 
838
  <tr valign="top">
839
  <th scope="row">
840
- <?php echo __('Display Media Player'); ?></th>
841
  <td><select name="General[player_function]" class="bpp_input_med" onchange="javascript: jQuery('#new_window_settings').css('display', (this.value==1||this.value==3?'block':'none') );">
842
  <?php
843
- $playeroptions = array(1=>__('On Page & New Window'), 2=>__('On Page Only'), 3=>__('New Window Only'), /* 4=>'On Page Link', 5=>'On Page Link & New Window', */ 0=>__('Disable') );
844
 
845
  while( list($value,$desc) = each($playeroptions) )
846
  echo "\t<option value=\"$value\"". ($General['player_function']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
847
 
848
  ?>
849
  </select>
850
- (<?php echo __('select where to display media flash player or embed code'); ?>)
851
- <p><input type="checkbox" name="General[display_player_disable_mobile]" value="1" <?php if( !empty($General['display_player_disable_mobile']) ) echo 'checked '; ?>/> <?php echo __('Disable Media Player for known mobile devices.'); ?></p>
852
  </td>
853
  </tr>
854
  </table>
@@ -861,11 +870,11 @@ while( list($value,$desc) = each($playeroptions) )
861
  <tr valign="top">
862
  <th scope="row">
863
 
864
- <?php echo __('Download Link'); ?></th>
865
  <td>
866
  <select name="General[podcast_link]" class="bpp_input_med">
867
  <?php
868
- $linkoptions = array(1=>__('Display'), 2=>__('Display with file size'), 3=>__('Display with file size and duration'), 0=>__('Disable') );
869
 
870
  while( list($value,$desc) = each($linkoptions) )
871
  echo "\t<option value=\"$value\"". ($General['podcast_link']==$value?' selected':''). ">$desc</option>\n";
@@ -883,11 +892,11 @@ while( list($value,$desc) = each($linkoptions) )
883
  <tr valign="top">
884
  <th scope="row" style="background-image: url(../wp-includes/images/smilies/icon_exclaim.gif); background-position: 10px 10px; background-repeat: no-repeat; ">
885
 
886
- <div style="margin-left: 24px;"><?php echo __('Having Theme Issues?'); ?></div></th>
887
  <td>
888
  <select name="General[player_aggressive]" class="bpp_input_med">
889
  <?php
890
- $linkoptions = array(0=>__('No, everything is working'), 1=>__('Yes, please try to fix') );
891
 
892
  while( list($value,$desc) = each($linkoptions) )
893
  echo "\t<option value=\"$value\"". ($General['player_aggressive']==$value?' selected':''). ">$desc</option>\n";
@@ -895,7 +904,7 @@ while( list($value,$desc) = each($linkoptions) )
895
  ?>
896
  </select>
897
  <p style="margin-top: 5px; margin-bottom:0;">
898
- <?php echo __('Use this option if you are having problems with the players not appearing in your pages.'); ?>
899
  </p>
900
  </td>
901
  </tr>
@@ -906,26 +915,26 @@ while( list($value,$desc) = each($linkoptions) )
906
  {
907
  ?>
908
  <div id="new_window_settings" style="display: <?php echo ( $General['player_function']==1 || $General['player_function']==3 ?'block':'none'); ?>">
909
- <h3><?php echo __('Play in New Window Settings'); ?></h3>
910
  <table class="form-table">
911
 
912
  <tr valign="top">
913
  <th scope="row">
914
- <?php echo __('New Window Width'); ?>
915
  </th>
916
  <td>
917
  <input type="text" name="General[new_window_width]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['new_window_width']; ?>" maxlength="4" />
918
- <?php echo __('Width of new window (leave blank for 320 default)'); ?>
919
  </td>
920
  </tr>
921
 
922
  <tr valign="top">
923
  <th scope="row">
924
- <?php echo __('New Window Height'); ?>
925
  </th>
926
  <td>
927
  <input type="text" name="General[new_window_height]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['new_window_height']; ?>" maxlength="4" />
928
- <?php echo __('Height of new window (leave blank for 240 default)'); ?>
929
  </td>
930
  </tr>
931
  </table>
@@ -934,43 +943,43 @@ while( list($value,$desc) = each($linkoptions) )
934
  }
935
  ?>
936
 
937
- <h3><?php echo __('Video Player Settings'); ?></h3>
938
 
939
  <table class="form-table">
940
  <tr valign="top">
941
  <th scope="row">
942
- <?php echo __('Player Width'); ?>
943
  </th>
944
  <td>
945
  <input type="text" name="General[player_width]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_width']; ?>" maxlength="4" />
946
- <?php echo __('Width of player (leave blank for 320 default)'); ?>
947
  </td>
948
  </tr>
949
 
950
  <tr valign="top">
951
  <th scope="row">
952
- <?php echo __('Player Height'); ?>
953
  </th>
954
  <td>
955
  <input type="text" name="General[player_height]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_height']; ?>" maxlength="4" />
956
- <?php echo __('Height of player (leave blank for 240 default)'); ?>
957
  </td>
958
  </tr>
959
 
960
  <tr valign="top">
961
  <th scope="row">
962
- <?php echo __('QuickTime Scale'); ?></th>
963
  <td>
964
  <select name="General[player_scale]" class="bpp_input_sm" onchange="javascript:jQuery('#player_scale_custom').css('display', (this.value=='tofit'||this.value=='aspect'? 'none':'inline' ))">
965
  <?php
966
- $scale_options = array('tofit'=>__('ToFit (default)'), 'aspect'=>__('Aspect') );
967
  if( !isset($General['player_scale']) )
968
  $General['player_scale'] = 'tofit'; // Tofit works in almost all cases
969
 
970
  if( is_numeric($General['player_scale']) )
971
- $scale_options[ $General['player_scale'] ]= __('Custom');
972
  else
973
- $scale_options['custom']= __('Custom');
974
 
975
 
976
 
@@ -980,25 +989,25 @@ while( list($value,$desc) = each($scale_options) )
980
  ?>
981
  </select>
982
  <span id="player_scale_custom" style="display: <?php echo (is_numeric($General['player_scale'])?'inline':'none'); ?>">
983
- <?php echo __('Scale:'); ?> <input type="text" name="PlayerScaleCustom" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9.]/g, '');" value="<?php echo (is_numeric($General['player_scale'])?$General['player_scale']:''); ?>" maxlength="4" /> <?php echo __('e.g.'); ?> 1.5
984
  </span>
985
  <p style="margin-top: 5px; margin-bottom: 0;">
986
- <?php echo __('If you do not see video, adjust the width, height and scale settings above.'); ?>
987
  </p>
988
  </td>
989
  </tr>
990
 
991
  </table>
992
 
993
- <h3><?php echo __('Audio Player Settings'); ?></h3>
994
  <table class="form-table">
995
  <tr valign="top">
996
  <th scope="row">
997
- <?php echo __('Default Player Width'); ?>
998
  </th>
999
  <td>
1000
  <input type="text" name="General[player_width_audio]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_width_audio']; ?>" maxlength="4" />
1001
- <?php echo __('Width of Audio mp3 player (leave blank for 320 default)'); ?>
1002
  </td>
1003
  </tr>
1004
  </table>
30
  if( obj.value.indexOf('rawvoice') == -1 && obj.value.indexOf('techpodcasts') == -1 &&
31
  obj.value.indexOf('blubrry') == -1 && obj.value.indexOf('podtrac') == -1 )
32
  {
33
+ if( !confirm('<?php echo __('The redirect entered is not recongized as a supported statistics redirect service.', 'powerpress'); ?>\n\n<?php echo __('Are you sure you wish to continue with this redirect url?', 'powerpress'); ?>') )
34
  {
35
  obj.value = '';
36
  return false;
87
 
88
  <input type="hidden" name="action" value="powerpress-save-settings" />
89
 
90
+ <h2><?php echo __('Blubrry PowerPress Settings', 'powerpress'); ?></h2>
91
 
92
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
93
  <ul class="powerpress_settings_tabs">
94
+ <li><a href="#tab1"><span><?php echo __('Basic Settings', 'powerpress'); ?></span></a></li>
95
+ <li><a href="#tab2"><span><?php echo htmlspecialchars(__('Services & Statistics', 'powerpress')); ?></span></a></li>
96
+ <li><a href="#tab3"><span><?php echo __('Appearance', 'powerpress'); ?></span></a></li>
97
+ <li><a href="#tab4"><span><?php echo __('Feeds', 'powerpress'); ?></span></a></li>
98
+ <li><a href="#tab5"><span><?php echo __('iTunes', 'powerpress'); ?></span></a></li>
99
  </ul>
100
 
101
  <div id="tab1" class="powerpress_tab">
138
  <?php
139
  $ChannelsCheckbox = '';
140
  if( !empty($General['custom_feeds']) )
141
+ $ChannelsCheckbox = ' onclick="alert(\''. __('You must delete all of the Podcast Channels to disable this option.', 'powerpress') .'\');return false;"';
142
  $CategoryCheckbox = '';
143
  //if( !empty($General['custom_cat_feeds']) ) // Decided ont to include this warning because it may imply that you have to delete the actual category, which is not true.
144
  // $CategoryCheckbox = ' onclick="alert(\'You must remove podcasting from the categories to disable this option.\');return false;"';
148
  <div style="margin-left: 50px;">
149
  <div>
150
  <input type="checkbox" name="General[advanced_mode]" value="1" <?php echo ($General['advanced_mode']==1?' checked':''); ?> />
151
+ <strong><?php echo __('Advanced Mode', 'powerpress'); ?></strong> -
152
+ <?php echo __('Uncheck to display only the essential settings for podcasting.', 'powerpress'); ?>
153
  </div>
154
  <div>
155
  <input type="checkbox" name="General[player_options]" value="1" <?php echo ($General['player_options']?' checked':''); ?> />
156
+ <strong><?php echo __('Audio Player Options', 'powerpress'); ?></strong> -
157
+ <?php echo __('Select from 5 different web based audio flash players.', 'powerpress'); ?>
158
+ <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled', 'powerpress'); ?>)</span>
159
  </div>
160
  <div>
161
  <input type="checkbox" name="General[channels]" value="1" <?php echo ($General['channels']?' checked':''); echo $ChannelsCheckbox; ?> />
162
+ <strong><?php echo __('Custom Podcast Channels', 'powerpress'); ?></strong> -
163
+ <?php echo __('Manage multiple media files and/or formats to one blog post.', 'powerpress'); ?>
164
+ <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled', 'powerpress'); ?>)</span>
165
  </div>
166
  <div>
167
  <input type="checkbox" name="General[cat_casting]" value="1" <?php echo ($General['cat_casting']?' checked':''); echo $CategoryCheckbox; ?> />
168
+ <strong><?php echo __('Category Podcasting', 'powerpress'); ?></strong> -
169
+ <?php echo __('Manage category podcast feeds.', 'powerpress'); ?>
170
+ <span style="font-size: 85%;">(<?php echo __('feature will appear in left menu when enabled', 'powerpress'); ?>)</span>
171
  </div>
172
  </div>
173
  </div>
177
  {
178
  ?>
179
  <div style="margin-left: 10px;">
180
+ <h3 style="margin-bottom: 5px;"><?php echo __('Like The Plugin?', 'powerpress'); ?></h3>
181
  <p style="margin-top: 0;">
182
+ <?php echo __('This plugin is great, don\'t you think? If you like the plugin we\'d be ever so grateful if you\'d give it your support. Here\'s how:', 'powerpress'); ?>
183
  </p>
184
  <ul id="powerpress_support">
185
+ <li><?php echo sprintf(__('Rate this plugin 5 stars in the %s.', 'powerpress'),
186
+ '<a href="http://wordpress.org/extend/plugins/powerpress/" target="_blank">'. __('WordPress Plugins Directory', 'powerpress') .'</a>');
187
+
188
+ ?>
189
+ </li>
190
+ <li><?php echo __('Tell the world about PowerPress by writing about it on your blog', 'powerpress'); ?>,
191
+ <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>,
192
+ <a href="http://www.facebook.com/share.php?u=<?php echo urlencode('http://www.blubrry.com/powerpress/'); ?>&t=<?php echo urlencode( __('I podcast with Blubrry PowerPress', 'powerpress')); ?>" target="_blank"><?php echo __('Facebook', 'powerpress'); ?></a>,
193
+ <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>,
194
  etc...</li>
195
+ <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>
196
  </ul>
197
  </div>
198
  <?php
216
  if( !isset($General['auto_enclose']) )
217
  $General['auto_enclose'] = 0;
218
  ?>
219
+ <h3><?php echo __('Episode Entry Options', 'powerpress'); ?></h3>
220
 
221
  <table class="form-table">
222
  <?php
224
  {
225
  ?>
226
  <tr valign="top">
227
+ <th scope="row"><?php echo __('Default Media URL', 'powerpress'); ?></th>
228
  <td>
229
  <input type="text" style="width: 80%;" name="General[default_url]" value="<?php echo $General['default_url']; ?>" maxlength="250" />
230
+ <p><?php echo __('e.g. http://example.com/mediafolder/', 'powerpress'); ?></p>
231
+ <p><?php echo __('URL above will prefix entered file names that do not start with \'http://\'. URL above must end with a trailing slash. You may leave blank if you always enter the complete URL to your media when creating podcast episodes.', 'powerpress'); ?>
232
  </p>
233
  </td>
234
  </tr>
238
  <tr valign="top">
239
  <th scope="row">
240
 
241
+ <?php echo __('Podcast Entry Box', 'powerpress'); ?></th>
242
  <td>
243
 
244
  <ul>
245
+ <li><label><input type="radio" name="General[episode_box_mode]" value="1" <?php if( $General['episode_box_mode'] == 1 ) echo 'checked'; ?> onclick="SelectEntryBox(1);" /> <?php echo __('Simple', 'powerpress'); ?></label></li>
246
  <li>
247
  <ul>
248
+ <li><?php echo __('Episode entry box includes Media URL field only. File Size and Duration will be auto detected upon saving the post.', 'powerpress'); ?></li>
249
  </ul>
250
  </li>
251
 
252
+ <li><label><input type="radio" name="General[episode_box_mode]" value="0" <?php if( $General['episode_box_mode'] == 0 ) echo 'checked'; ?> onclick="SelectEntryBox(0);" /> <?php echo __('Normal', 'powerpress'); ?></label> (<?php echo __('default', 'powerpress'); ?>)</li>
253
  <li>
254
  <ul>
255
+ <li><?php echo __('Episode entry box includes Media URL, File Size and Duration fields.', 'powerpress'); ?></li>
256
  </ul>
257
  </li>
258
 
259
+ <li><label><input type="radio" name="General[episode_box_mode]" value="2" <?php if( $General['episode_box_mode'] == 2 ) echo 'checked'; ?> onclick="SelectEntryBox(2);" /> <?php echo __('Custom', 'powerpress'); ?></label></li>
260
  <li>
261
  <ul>
262
+ <li><?php echo __('Episode entry box includes Media URL, File Size and Duration fields, plus:', 'powerpress'); ?>
263
  <div id="episode_box_mode_adv">
264
+ <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'); ?>
265
+ (<?php echo __('Enter embed code from sites such as YouTube, Viddler and Blip.tv', 'powerpress'); ?>)</p>
266
+ <p style="margin-top: 5px; margin-left: 20px; font-size: 90%;"><input id="embed_replace_player" class="episode_box_option" name="General[embed_replace_player]" type="checkbox" value="1"<?php if( !empty($General['embed_replace_player']) ) echo ' checked'; ?> /> <?php echo __('Replace Player with Embed', 'powerpress'); ?>
267
+ (<?php echo __('Do not display default player if embed present for episode.', 'powerpress'); ?>)</p>
268
 
269
+ <p style="margin-top: 15px;"><input id="episode_box_player_links_options" class="episode_box_option" name="episode_box_player_links_options" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player_and_links']) || !empty($General['episode_box_no_player']) || !empty($General['episode_box_no_links']) ) echo ' checked'; ?> /> <?php echo __('Display Player and Links Options', 'powerpress'); ?>
270
  </p>
271
  <div id="episode_box_player_links_options_div" style="margin-left: 20px;<?php if( empty($General['episode_box_no_player_and_links']) && empty($General['episode_box_no_player']) && empty($General['episode_box_no_links']) ) echo 'display:none;'; ?>">
272
 
273
+ <p style="margin-top: 0px; margin-bottom: 5px;"><input id="episode_box_no_player_and_links" class="episode_box_option" name="General[episode_box_no_player_and_links]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player_and_links']) ) echo ' checked'; ?> /> <?php echo htmlspecialchars(__('No Player & Links Option', 'powerpress')); ?>
274
+ (<?php echo __('Disable media player and links on a per episode basis', 'powerpress'); ?>)</p>
275
 
276
+ <p style="margin-top: 0; margin-bottom: 0; margin-left: 20px;"><?php echo __('- or -', 'powerpress'); ?></p>
277
 
278
+ <p style="margin-top: 5px; margin-bottom: 10px;"><input id="episode_box_no_player" class="episode_box_option episode_box_no_player_or_links" name="General[episode_box_no_player]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_player']) ) echo ' checked'; ?> /> <?php echo __('No Player Option', 'powerpress'); ?>
279
+ (<?php echo __('Disable media player on a per episode basis', 'powerpress'); ?>)</p>
280
 
281
+ <p style="margin-top: 5px; margin-bottom: 20px;"><input id="episode_box_no_links" class="episode_box_option episode_box_no_player_or_links" name="General[episode_box_no_links]" type="checkbox" value="1"<?php if( !empty($General['episode_box_no_links']) ) echo ' checked'; ?> /> <?php echo __('No Links Option', 'powerpress'); ?>
282
+ (<?php echo __('Disable media links on a per episode basis', 'powerpress'); ?>)</p>
283
 
284
  </div>
285
 
286
+ <p style="margin-top: 15px;"><input id="episode_box_cover_image" class="episode_box_option" name="General[episode_box_cover_image]" type="checkbox" value="1"<?php if( @$General['episode_box_cover_image'] ) echo ' checked'; ?> /> <?php echo __('Video Cover Image', 'powerpress'); ?>
287
+ (<?php echo __('specify URL to image to display in place of QuickTime video', 'powerpress'); ?>)</p>
288
 
289
+ <p style="margin-top: 15px;"><input id="episode_box_keywords" class="episode_box_option" name="General[episode_box_keywords]" type="checkbox" value="1"<?php if( !empty($General['episode_box_keywords']) ) echo ' checked'; ?> /> <?php echo __('iTunes Keywords Field', 'powerpress'); ?>
290
+ (<?php echo __('Leave unchecked to use your blog post tags', 'powerpress'); ?>)</p>
291
+ <p style="margin-top: 15px;"><input id="episode_box_subtitle" class="episode_box_option" name="General[episode_box_subtitle]" type="checkbox" value="1"<?php if( !empty($General['episode_box_subtitle']) ) echo ' checked'; ?> /> <?php echo __('iTunes Subtitle Field', 'powerpress'); ?>
292
+ (<?php echo __('Leave unchecked to use the first 250 characters of your blog post', 'powerpress'); ?>)</p>
293
+ <p style="margin-top: 15px;"><input id="episode_box_summary" class="episode_box_option" name="General[episode_box_summary]" type="checkbox" value="1"<?php if( !empty($General['episode_box_summary']) ) echo ' checked'; ?> /> <?php echo __('iTunes Summary Field', 'powerpress'); ?>
294
+ (<?php echo __('Leave unchecked to use your blog post', 'powerpress'); ?>)</p>
295
+ <p style="margin-top: 15px;"><input id="episode_box_author" class="episode_box_option" name="General[episode_box_author]" type="checkbox" value="1"<?php if( !empty($General['episode_box_author']) ) echo ' checked'; ?> /> <?php echo __('iTunes Author Field', 'powerpress'); ?>
296
+ (<?php echo __('Leave unchecked to the post author name', 'powerpress'); ?>)</p>
297
+ <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'); ?>
298
+ (<?php echo __('Leave unchecked to use your feed\'s explicit setting', 'powerpress'); ?>)</p>
299
 
300
+ <em><?php echo __('NOTE: An invalid entry into any of the iTunes fields may cause problems with your iTunes listing. It is highly recommended that you validate your feed using feedvalidator.org everytime you modify any of the iTunes fields listed above.', 'powerpress'); ?></em><br />
301
+ <em><strong><?php echo __('USE THE ITUNES FIELDS ABOVE AT YOUR OWN RISK.', 'powerpress'); ?></strong></em>
302
  </div>
303
  </li>
304
  </ul>
322
  <tr valign="top">
323
  <th scope="row">
324
 
325
+ <?php echo __('File Size Default', 'powerpress'); ?></th>
326
  <td>
327
  <select name="General[set_size]" class="bpp_input_med">
328
  <?php
329
+ $options = array(0=>__('Auto detect file size', 'powerpress'), 1=>__('User specify', 'powerpress') );
330
 
331
  while( list($value,$desc) = each($options) )
332
  echo "\t<option value=\"$value\"". ($General['set_size']==$value?' selected':''). ">$desc</option>\n";
333
 
334
  ?>
335
+ </select> (<?php echo __('specify default file size option when creating a new episode', 'powerpress'); ?>)
336
  </td>
337
  </tr>
338
 
339
  <tr valign="top">
340
  <th scope="row">
341
+ <?php echo __('Duration Default', 'powerpress'); ?></th>
342
  <td>
343
  <select name="General[set_duration]" class="bpp_input_med">
344
  <?php
345
+ $options = array(0=>__('Auto detect duration (mp3\'s only)', 'powerpress'), 1=>__('User specify', 'powerpress'), -1=>__('Not specified (not recommended)', 'powerpress') );
346
 
347
  while( list($value,$desc) = each($options) )
348
  echo "\t<option value=\"$value\"". ($General['set_duration']==$value?' selected':''). ">$desc</option>\n";
349
 
350
  ?>
351
+ </select> (<?php echo __('specify default duration option when creating a new episode', 'powerpress'); ?>)
352
  </td>
353
  </tr>
354
  </table>
357
  <table class="form-table">
358
  <tr valign="top">
359
  <th scope="row">
360
+ <?php echo __('Auto Add Media', 'powerpress'); ?></th>
361
  <td>
362
  <select name="General[auto_enclose]" class="bpp_input_med">
363
  <?php
364
+ $options = array(0=>__('Disabled (default)', 'powerpress'), 1=>__('First media link found in post content', 'powerpress'), 2=>__('Last media link found in post content', 'powerpress') );
365
 
366
  while( list($value,$desc) = each($options) )
367
  echo "\t<option value=\"$value\"". ($General['auto_enclose']==$value?' selected':''). ">$desc</option>\n";
368
 
369
  ?>
370
  </select>
371
+ <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>
372
+ <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>
373
+ <p><em><?php echo __('WARNING: Episodes created with this feature will <u>not</u> include Duration (total play time) information.', 'powerpress'); ?></em></p>
374
  </td>
375
  </tr>
376
  <?php
380
  ?>
381
  <tr valign="top">
382
  <th scope="row">
383
+ <?php echo __('Podcast Permalinks', 'powerpress'); ?></th>
384
  <td>
385
  <select name="General[permalink_feeds_only]" class="bpp_input_med">
386
  <?php
387
+ $options = array(0=>__('Default WordPress Behavior', 'powerpress'), 1=>__('Match Feed Name to Page/Category', 'powerpress') );
388
 
389
  while( list($value,$desc) = each($options) )
390
  echo "\t<option value=\"$value\"". ($General['permalink_feeds_only']==$value?' selected':''). ">$desc</option>\n";
391
 
392
  ?>
393
  </select>
394
+ <p><?php echo sprintf(__('When configured, %s/podcast/ is matched to page/category named \'podcast\'.', 'powerpress'), get_bloginfo('home') ); ?></p>
395
  </td>
396
  </tr>
397
  <?php
413
  $General['podpress_stats'] = 0;
414
  ?>
415
 
416
+ <h3><?php echo __('PodPress Options', 'powerpress'); ?></h3>
417
  <table class="form-table">
418
  <tr valign="top">
419
  <th scope="row">
420
 
421
+ <?php echo __('PodPress Episodes', 'powerpress'); ?></th>
422
  <td>
423
  <select name="General[process_podpress]" class="bpp_input_med">
424
  <?php
425
+ $options = array(0=>__('Ignore', 'powerpress'), 1=>__('Include in Posts and Feeds', 'powerpress') );
426
 
427
  while( list($value,$desc) = each($options) )
428
  echo "\t<option value=\"$value\"". ($General['process_podpress']==$value?' selected':''). ">$desc</option>\n";
429
 
430
  ?>
431
+ </select> (<?php echo __('includes podcast episodes previously created in PodPress', 'powerpress'); ?>)
432
  </td>
433
  </tr>
434
  <?php if( @$General['podpress_stats'] || powerpress_podpress_stats_exist() ) { ?>
435
  <tr valign="top">
436
  <th scope="row">
437
 
438
+ <?php echo __('PodPress Stats Archive', 'powerpress'); ?></th>
439
  <td>
440
  <select name="General[podpress_stats]" class="bpp_input_sm">
441
  <?php
442
+ $options = array(0=>__('Hide', 'powerpress'), 1=>__('Display', 'powerpress') );
443
 
444
  while( list($value,$desc) = each($options) )
445
  echo "\t<option value=\"$value\"". ($General['podpress_stats']==$value?' selected':''). ">$desc</option>\n";
446
 
447
  ?>
448
+ </select> (<?php echo __('display archive of old PodPress statistics', 'powerpress'); ?>)
449
  </td>
450
  </tr>
451
  <?php } ?>
481
  if( $OpenSSLSupport == false )
482
  {
483
  ?>
484
+ <div class="error powerpress-error"><?php echo __('Ping iTunes requires OpenSSL in PHP. Please refer to your php.ini to enable the php_openssl module.', 'powerpress'); ?></div>
485
  <?php } // End if !$OpenSSLSupport ?>
486
 
487
+ <h3><?php echo __('iTunes Listing Information', 'powerpress'); ?></h3>
488
  <table class="form-table">
489
  <tr valign="top">
490
+ <th scope="row"><?php echo __('iTunes Subscription URL', 'powerpress'); ?></th>
491
  <td>
492
  <?php
493
  if( $FeedSettings ) {
498
  <?php } ?>
499
  <p>e.g. http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=000000000</p>
500
 
501
+ <p><?php echo sprintf( __('Click the following link to %s.', 'powerpress'), '<a href="https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast" target="_blank">'. __('Publish a Podcast on iTunes', 'powerpress') .'</a>'); ?>
502
+ <?php echo __('iTunes will send an email to your <em>iTunes Email</em> entered below when your podcast is accepted into the iTunes Directory.', 'powerpress'); ?>
503
  </p>
504
  <p>
505
+ <?php echo __('Recommended feed to submit to iTunes: ', 'powerpress'); ?>
506
  <?php
507
  if( $cat_ID )
508
  {
525
  <tr valign="top">
526
  <th scope="row">
527
 
528
+ <?php echo __('Update iTunes Listing', 'powerpress'); ?></th>
529
  <td>
530
  <?php
531
  if( $FeedSettings )
536
  <select name="General[ping_itunes]"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?> class="bpp_input_sm">
537
  <?php
538
  }
539
+ $options = array(0=>__('No', 'powerpress'), 1=>__('Yes', 'powerpress') );
540
 
541
  $ping_itunes = ($FeedSettings?$FeedSettings['ping_itunes']:$General['ping_itunes']);
542
  if( $OpenSSLSupport == false )
546
  echo "\t<option value=\"$value\"". ($ping_itunes==$value?' selected':''). ">$desc</option>\n";
547
 
548
  ?>
549
+ </select> <?php echo __('Notify (ping) iTunes when you publish a new episode.', 'powerpress'); ?>
550
+ <p><input name="TestiTunesPing" type="checkbox" value="1"<?php if( $OpenSSLSupport == false ) echo ' disabled'; ?> /> <?php echo __('Test Update iTunes Listing (recommended)', 'powerpress'); ?></p>
551
  <?php
552
  $itunes_subscribe_url = ($FeedSettings?$FeedSettings['itunes_url']:$General['itunes_url']);
553
  if( !empty($itunes_subscribe_url) )
561
  'http://www.itunes.com/podcast?id='),
562
  'https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?id=', $itunes_subscribe_url);
563
  ?>
564
+ <p><?php echo __('You may also update your iTunes listing by using the following link:', 'powerpress'); ?> <a href="#" onclick="javascript: window.open('<?php echo $ping_url; ?>'); return false;"><?php echo __('Ping iTunes in New Window', 'powerpress'); ?></a></p>
565
 
566
  <?php
567
  if( preg_match('/id=(\d+)/', $itunes_subscribe_url, $matches) )
573
  {
574
  $PingLog = $Logging['itunes_ping_'. $FEEDID ];
575
  ?>
576
+ <h3><?php echo __('Latest Update iTunes Listing Status:', 'powerpress'); ?> <?php if( $PingLog['success'] ) echo '<span style="color: #006505;">'. __('Successful', 'powerpress') .'</span>'; else echo '<span style="color: #f00;">'. __('Error', 'powerpress') .'</span>'; ?></h3>
577
  <div style="font-size: 85%; margin-left: 20px;">
578
  <p>
579
+ <?php echo sprintf( __('iTunes notified on %s at %s', 'powerpress'), date(get_option('date_format'), $PingLog['timestamp']), date(get_option('time_format'), $PingLog['timestamp'])); ?>
580
  <?php
581
  if( $PingLog['post_id'] )
582
  {
583
  $post = get_post($PingLog['post_id']);
584
  if( $post )
585
+ echo ' '. __('for post:', 'powerpress') .' '. htmlspecialchars($post->post_title);
586
  }
587
  ?>
588
  </p>
589
  <?php if( $PingLog['success'] ) { ?>
590
+ <p><?php echo __('Feed pulled by iTunes:', 'powerpress'); ?> <?php echo $PingLog['feed_url']; ?>
591
  </p>
592
  <?php
593
 
594
  ?>
595
  <?php } else { ?>
596
+ <p><?php echo __('Error:', 'powerpress'); ?> <?php echo htmlspecialchars($PingLog['content']); ?></p>
597
  <?php } ?>
598
  </div>
599
  <?php
626
  $StatsInDashboard = false;
627
 
628
  ?>
629
+ <h3><?php echo __('Blubrry Services Integration', 'powerpress'); ?></h3>
630
  <p>
631
+ <?php echo sprintf(
632
+ __('Adds %s to your blog\'s %s plus features for %s users to quickly upload and publish media directly from their blog.', 'powerpress'),
633
+ '<a href="http://www.blubrry.com/podcast_statistics/" target="_blank">'. __('Blubrry Media Statistics', 'powerpress') .'</a>',
634
+ '<a href="'. admin_url() .'">'. __('WordPress Dashboard', 'powerpress') .'</a>',
635
+ '<a href="https://secure.blubrry.com/podcast-publishing-premium-with-hosting/" target="_blank">'. __('Blubrry Media Hosting', 'powerpress') .'</a>' );
636
+ ?>
637
  </p>
638
  <p>
639
+ <em><?php echo __('Note: <b>No membership or service is required</b> to use this free open source podcasting plugin.', 'powerpress'); ?></em>
640
  </p>
641
  <table class="form-table">
642
  <tr valign="top">
643
  <th scope="row">
644
+ <?php echo __('Blubrry Services', 'powerpress'); ?>*
645
  </th>
646
  <td>
647
+ <p style="margin-top: 5px;"><span id="service_mode"><?php echo $ModeDesc; ?></span> (<strong><a href="<?php echo admin_url(); echo wp_nonce_url( "admin.php?action=powerpress-jquery-account", 'powerpress-jquery-account'); ?>&amp;KeepThis=true&amp;TB_iframe=true&amp;width=500&amp;height=400&amp;modal=true" target="_blank" class="thickbox" style="color: #3D517E;"><?php echo __('Click here to configure Blubrry Services', 'powerpress'); ?></a></strong>)</p>
648
  </td>
649
  </tr>
650
 
651
  <tr valign="top">
652
  <th scope="row">
653
+ <?php echo __('Dashboard Integration', 'powerpress'); ?>
654
  </th>
655
  <td>
656
  <p style="margin-top: 5px;"><input name="StatsInDashboard" type="checkbox" value="1"<?php if( $StatsInDashboard == true ) echo ' checked'; ?> />
657
+ <?php echo __('Display Statistics in WordPress Dashboard', 'powerpress'); ?></p>
658
  </td>
659
  </tr>
660
  </table>
661
  <p>
662
  *<em>The Blubrry basic statistics service is FREE. Our
663
+ <a href="https://secure.blubrry.com/podcast-statistics-premium/" target="_blank">Premium Statistics Service</a>,
664
  which includes U.S. downloads, trending and exporting, is available for $5 month. Blubrry
665
+ <a href="https://secure.blubrry.com/podcast-publishing-premium-with-hosting/" target="_blank">Media Hosting</a>
666
  packages start at $12.</em>
667
  </p>
668
  <?php
680
  $General['hide_free_stats'] = 0;
681
 
682
  ?>
683
+ <h3><?php echo __('Media Statistics', 'powerpress'); ?></h3>
684
  <p>
685
+ <?php echo __('Enter your Redirect URL issued by your media statistics service provider below.', 'powerpress'); ?>
686
  </p>
687
 
688
  <div style="position: relative;">
689
  <table class="form-table">
690
  <tr valign="top">
691
  <th scope="row">
692
+ <?php echo __('Redirect URL 1', 'powerpress'); ?>
693
  </th>
694
  <td>
695
  <input type="text" style="width: 60%;" name="General[redirect1]" value="<?php echo $General['redirect1']; ?>" onChange="return CheckRedirect(this);" maxlength="250" />
698
  </table>
699
  <?php if( empty($General['redirect2']) && empty($General['redirect3']) ) { ?>
700
  <div style="position: absolute;bottom: 0px;right: 10px;font-size: 85%;" id="powerpress_redirect2_showlink">
701
+ <a href="javascript:void();" 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>
702
  </div>
703
  <?php } ?>
704
  </div>
707
  <table class="form-table">
708
  <tr valign="top">
709
  <th scope="row">
710
+ <?php echo __('Redirect URL 2', 'powerpress'); ?>
711
  </th>
712
  <td>
713
  <input type="text" style="width: 60%;" name="General[redirect2]" value="<?php echo $General['redirect2']; ?>" onblur="return CheckRedirect(this);" maxlength="250" />
716
  </table>
717
  <?php if( $General['redirect3'] == '' ) { ?>
718
  <div style="position: absolute;bottom: 0px;right: 10px;font-size: 85%;" id="powerpress_redirect3_showlink">
719
+ <a href="javascript:void();" 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>
720
  </div>
721
  <?php } ?>
722
  </div>
725
  <table class="form-table">
726
  <tr valign="top">
727
  <th scope="row">
728
+ <?php echo __('Redirect URL 3', 'powerpress'); ?>
729
  </th>
730
  <td>
731
  <input type="text" style="width: 60%;" name="General[redirect3]" value="<?php echo $General['redirect3']; ?>" onblur="return CheckRedirect(this);" maxlength="250" />
742
 
743
  <div id="blubrry_stats_box" style="<?php if( !empty($General['hide_free_stats']) ) echo 'display:none;'; ?>">
744
  <div style="font-family: Arial, Helvetica, sans-serif; border: solid 1px #3D517E; background-color:#D2E9FF;padding:10px; margin-left:10px;margin-right:10px;margin-top:10px;">
745
+ <div style="color: #3D517E; font-weight: bold; font-size: 18px;"><?php echo __('Free Access to the Best Media Statistics!', 'powerpress'); ?></div>
746
  <div style="font-size: 14px;margin-top: 10px; margin-bottom: 10px;">
747
+ <?php echo sprintf( __('Get %s Media Statistics by taking a few minutes and adding your podcast to Blubrry.com. What\'s the catch? Nothing! For many, our free service is all you will need. But if you\'re looking to further your abilities with media download information, we hope you consider upgrading to our paid Premium Statistics service. ', 'powerpress'),
748
+ '<span style="color: #990000; font-weight: bold;">'. __('FREE', 'powerpress') .'</span>' );
749
+ ?>
750
  </div>
751
+ <div style="text-align: center; font-size: 16px; font-weight: bold;"><a href="http://www.blubrry.com/addpodcast.php?feed=<?php echo urlencode(get_feed_link('podcast')); ?>" target="_blank" style="color: #3D517E;"><?php echo __('Sign Up For Free Media Statistics Now', 'powerpress'); ?></a></div>
752
  </div>
753
  <div style="font-size: 10px;margin-left: 10px;">
754
+ <a href="javascript:void();" onclick="javascript:document.getElementById('blubrry_stats_box').style.display='none';document.getElementById('hide_free_stats').value=1;document.getElementById('show_free_stats').style.display='block';return false;"><?php echo __('hide','powerpress'); ?></a>
755
  </div>
756
  </div>
757
 
762
  &nbsp;
763
  </th>
764
  <td>
765
+ <p style="margin: 0;"><a href="javascript:void();" onclick="javascript:document.getElementById('blubrry_stats_box').style.display='block';document.getElementById('hide_free_stats').value=0;document.getElementById('show_free_stats').style.display='none';return false;"><?php echo __('Learn About Free Blubrry Statistics', 'powerpress'); ?></a></p>
766
  </td>
767
  </tr>
768
  </table>
791
  $General['player_width_audio'] = '';
792
 
793
 
794
+ $Players = array('podcast'=>__('Default Podcast (podcast)', 'powerpress') );
795
  if( isset($General['custom_feeds']) )
796
  {
797
  while( list($podcast_slug, $podcast_title) = each($General['custom_feeds']) )
804
 
805
  ?>
806
 
807
+ <h3><?php echo __('Appearance Settings', 'powerpress'); ?></h3>
808
 
809
  <table class="form-table">
810
 
813
  {
814
  ?>
815
  <tr valign="top">
816
+ <th scope="row"><?php echo __('Media Presentation', 'powerpress'); ?></th>
817
  <td><select name="General[display_player]" class="bpp_input_sm">
818
  <?php
819
+ $displayoptions = array(1=>__('Below Post', 'powerpress'), 2=>__('Above Post', 'powerpress'), 0=>__('None', 'powerpress') );
820
 
821
  while( list($value,$desc) = each($displayoptions) )
822
  echo "\t<option value=\"$value\"". ($General['display_player']==$value?' selected':''). ">$desc</option>\n";
823
 
824
  ?>
825
+ </select> (<?php echo __('where media player and download links will be displayed', 'powerpress'); ?>)
826
+ <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>
827
  </td>
828
  </tr>
829
 
830
  <tr valign="top">
831
  <th scope="row">
832
+ <?php echo __('PowerPress Shortcode', 'powerpress'); ?></th>
833
  <td>
834
  <p>
835
+ <?php echo sprintf(__('The %s shortcode is used to position your media presentation (player and download links) exactly where you want within your Post or Page.', 'powerpress'), '<code>[powerpress]</code>'); ?>
836
+ <?php echo __('Simply insert the code on a new line in your content like this:', 'powerpress'); ?>
837
  </p>
838
  <div style="margin-left: 30px;">
839
  <code>[powerpress]</code>
840
  </div>
841
  <p>
842
+ <?php echo sprintf(__('Please visit the %s page for additional options.', 'powerpress'), '<a href="http://help.blubrry.com/blubrry-powerpress/shortcode/" target="_blank">'. __('PowerPress Shortcode', 'powerpress') .'</a>' ); ?>
843
  </p>
844
  </td>
845
  </tr>
846
 
847
  <tr valign="top">
848
  <th scope="row">
849
+ <?php echo __('Display Media Player', 'powerpress'); ?></th>
850
  <td><select name="General[player_function]" class="bpp_input_med" onchange="javascript: jQuery('#new_window_settings').css('display', (this.value==1||this.value==3?'block':'none') );">
851
  <?php
852
+ $playeroptions = array(1=>__('On Page & New Window', 'powerpress'), 2=>__('On Page Only', 'powerpress'), 3=>__('New Window Only', 'powerpress'), /* 4=>'On Page Link', 5=>'On Page Link & New Window', */ 0=>__('Disable', 'powerpress') );
853
 
854
  while( list($value,$desc) = each($playeroptions) )
855
  echo "\t<option value=\"$value\"". ($General['player_function']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
856
 
857
  ?>
858
  </select>
859
+ (<?php echo __('select where to display media flash player or embed code', 'powerpress'); ?>)
860
+ <p><input type="checkbox" name="General[display_player_disable_mobile]" value="1" <?php if( !empty($General['display_player_disable_mobile']) ) echo 'checked '; ?>/> <?php echo __('Disable Media Player for known mobile devices.', 'powerpress'); ?></p>
861
  </td>
862
  </tr>
863
  </table>
870
  <tr valign="top">
871
  <th scope="row">
872
 
873
+ <?php echo __('Download Link', 'powerpress'); ?></th>
874
  <td>
875
  <select name="General[podcast_link]" class="bpp_input_med">
876
  <?php
877
+ $linkoptions = array(1=>__('Display', 'powerpress'), 2=>__('Display with file size', 'powerpress'), 3=>__('Display with file size and duration', 'powerpress'), 0=>__('Disable', 'powerpress') );
878
 
879
  while( list($value,$desc) = each($linkoptions) )
880
  echo "\t<option value=\"$value\"". ($General['podcast_link']==$value?' selected':''). ">$desc</option>\n";
892
  <tr valign="top">
893
  <th scope="row" style="background-image: url(../wp-includes/images/smilies/icon_exclaim.gif); background-position: 10px 10px; background-repeat: no-repeat; ">
894
 
895
+ <div style="margin-left: 24px;"><?php echo __('Having Theme Issues?', 'powerpress'); ?></div></th>
896
  <td>
897
  <select name="General[player_aggressive]" class="bpp_input_med">
898
  <?php
899
+ $linkoptions = array(0=>__('No, everything is working', 'powerpress'), 1=>__('Yes, please try to fix', 'powerpress') );
900
 
901
  while( list($value,$desc) = each($linkoptions) )
902
  echo "\t<option value=\"$value\"". ($General['player_aggressive']==$value?' selected':''). ">$desc</option>\n";
904
  ?>
905
  </select>
906
  <p style="margin-top: 5px; margin-bottom:0;">
907
+ <?php echo __('Use this option if you are having problems with the players not appearing in your pages.', 'powerpress'); ?>
908
  </p>
909
  </td>
910
  </tr>
915
  {
916
  ?>
917
  <div id="new_window_settings" style="display: <?php echo ( $General['player_function']==1 || $General['player_function']==3 ?'block':'none'); ?>">
918
+ <h3><?php echo __('Play in New Window Settings', 'powerpress'); ?></h3>
919
  <table class="form-table">
920
 
921
  <tr valign="top">
922
  <th scope="row">
923
+ <?php echo __('New Window Width', 'powerpress'); ?>
924
  </th>
925
  <td>
926
  <input type="text" name="General[new_window_width]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['new_window_width']; ?>" maxlength="4" />
927
+ <?php echo __('Width of new window (leave blank for 320 default)', 'powerpress'); ?>
928
  </td>
929
  </tr>
930
 
931
  <tr valign="top">
932
  <th scope="row">
933
+ <?php echo __('New Window Height', 'powerpress'); ?>
934
  </th>
935
  <td>
936
  <input type="text" name="General[new_window_height]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['new_window_height']; ?>" maxlength="4" />
937
+ <?php echo __('Height of new window (leave blank for 240 default)', 'powerpress'); ?>
938
  </td>
939
  </tr>
940
  </table>
943
  }
944
  ?>
945
 
946
+ <h3><?php echo __('Video Player Settings', 'powerpress'); ?></h3>
947
 
948
  <table class="form-table">
949
  <tr valign="top">
950
  <th scope="row">
951
+ <?php echo __('Player Width', 'powerpress'); ?>
952
  </th>
953
  <td>
954
  <input type="text" name="General[player_width]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_width']; ?>" maxlength="4" />
955
+ <?php echo __('Width of player (leave blank for 320 default)', 'powerpress'); ?>
956
  </td>
957
  </tr>
958
 
959
  <tr valign="top">
960
  <th scope="row">
961
+ <?php echo __('Player Height', 'powerpress'); ?>
962
  </th>
963
  <td>
964
  <input type="text" name="General[player_height]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_height']; ?>" maxlength="4" />
965
+ <?php echo __('Height of player (leave blank for 240 default)', 'powerpress'); ?>
966
  </td>
967
  </tr>
968
 
969
  <tr valign="top">
970
  <th scope="row">
971
+ <?php echo __('QuickTime Scale', 'powerpress'); ?></th>
972
  <td>
973
  <select name="General[player_scale]" class="bpp_input_sm" onchange="javascript:jQuery('#player_scale_custom').css('display', (this.value=='tofit'||this.value=='aspect'? 'none':'inline' ))">
974
  <?php
975
+ $scale_options = array('tofit'=>__('ToFit (default)', 'powerpress'), 'aspect'=>__('Aspect', 'powerpress') );
976
  if( !isset($General['player_scale']) )
977
  $General['player_scale'] = 'tofit'; // Tofit works in almost all cases
978
 
979
  if( is_numeric($General['player_scale']) )
980
+ $scale_options[ $General['player_scale'] ]= __('Custom', 'powerpress');
981
  else
982
+ $scale_options['custom']= __('Custom', 'powerpress');
983
 
984
 
985
 
989
  ?>
990
  </select>
991
  <span id="player_scale_custom" style="display: <?php echo (is_numeric($General['player_scale'])?'inline':'none'); ?>">
992
+ <?php echo __('Scale:', 'powerpress'); ?> <input type="text" name="PlayerScaleCustom" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9.]/g, '');" value="<?php echo (is_numeric($General['player_scale'])?$General['player_scale']:''); ?>" maxlength="4" /> <?php echo __('e.g.', 'powerpress'); ?> 1.5
993
  </span>
994
  <p style="margin-top: 5px; margin-bottom: 0;">
995
+ <?php echo __('If you do not see video, adjust the width, height and scale settings above.', 'powerpress'); ?>
996
  </p>
997
  </td>
998
  </tr>
999
 
1000
  </table>
1001
 
1002
+ <h3><?php echo __('Audio Player Settings', 'powerpress'); ?></h3>
1003
  <table class="form-table">
1004
  <tr valign="top">
1005
  <th scope="row">
1006
+ <?php echo __('Default Player Width', 'powerpress'); ?>
1007
  </th>
1008
  <td>
1009
  <input type="text" name="General[player_width_audio]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo $General['player_width_audio']; ?>" maxlength="4" />
1010
+ <?php echo __('Width of Audio mp3 player (leave blank for 320 default)', 'powerpress'); ?>
1011
  </td>
1012
  </tr>
1013
  </table>
powerpressadmin-categoryfeeds.php CHANGED
@@ -5,9 +5,9 @@ if( !function_exists('add_action') )
5
 
6
  function powerpress_admin_customfeeds_columns($data=array())
7
  {
8
- $data['name'] = __('Category Name');
9
- $data['feed-slug'] = __('Slug');
10
- $data['url'] = __('Feed URL');
11
  return $data;
12
  }
13
 
@@ -18,12 +18,12 @@ function powerpress_admin_categoryfeeds()
18
  $General = powerpress_get_settings('powerpress_general');
19
 
20
  ?>
21
- <h2><?php echo __('Category Podcasting'); ?></h2>
22
  <p>
23
- <?php echo __('Category Podcasting adds custom podcast settings to specific blog category feeds, allowing you to organize episodes by topic.'); ?>
24
  </p>
25
  <p>
26
- <?php echo sprintf( __('If you are looking to organize episodes by file or format, please use %s.'),
27
  '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php') .'" title="'. __('Custom Podcast Channels') .'">'. __('Custom Podcast Channels') .'</a>'); ?>
28
  </p>'<style type="text/css">
29
  .column-url {
@@ -53,9 +53,9 @@ function powerpress_admin_categoryfeeds()
53
  else
54
  {
55
  ?>
56
- <th scope="col" id="name" class="manage-column column-name"><?php echo __('Category Name'); ?></th>
57
- <th scope="col" id="feed-slug" class="manage-column column-feed-slug"><?php echo __('Slug'); ?></th>
58
- <th scope="col" id="url" class="manage-column column-url"><?php echo __('Feed URL'); ?></th>
59
  <?php
60
  }
61
  ?>
@@ -72,9 +72,9 @@ function powerpress_admin_categoryfeeds()
72
  else // WordPress 2.6 or older
73
  {
74
  ?>
75
- <th scope="col" class="manage-column column-name"><?php echo __('Category Name'); ?></th>
76
- <th scope="col" class="manage-column column-feed-slug"><?php echo __('Slug'); ?></th>
77
- <th scope="col" class="manage-column column-url"><?php echo __('Feed URL'); ?></th>
78
  <?php
79
  }
80
  ?>
@@ -127,10 +127,10 @@ function powerpress_admin_categoryfeeds()
127
  }; break;
128
  case 'name': {
129
 
130
- echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . attribute_escape(sprintf(__('Edit "%s"'), $feed_title)) . '">'.$feed_title.'</a></strong><br />';
131
  $actions = array();
132
- $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
133
- $actions['remove'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;action=powerpress-delete-category-feed&amp;cat=$cat_ID", 'powerpress-delete-category-feed-' . $cat_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to remove podcast settings for category feed '%s'\n 'Cancel' to stop, 'OK' to delete."), $feed_title )) . "') ) { return true;}return false;\">" . __('Remove') . "</a>";
134
  $action_count = count($actions);
135
  $i = 0;
136
  echo '<div class="row-actions">';
@@ -146,9 +146,9 @@ function powerpress_admin_categoryfeeds()
146
 
147
  case 'url': {
148
 
149
- echo "<td $class><a href='$url' title='". attribute_escape(sprintf(__('Visit %s'), $feed_title))."' target=\"_blank\">$short_url</a>";
150
  echo '<div class="row-actions">';
151
- echo '<span class="'.$action .'"><a href="http://www.feedvalidator.org/check.cgi?url='. urlencode( str_replace('&amp;', '&', $url) ) .'" target="_blank">' . __('Validate Feed') . '</a></span>';
152
  echo '</div>';
153
  echo "</td>";
154
 
@@ -176,7 +176,7 @@ function powerpress_admin_categoryfeeds()
176
  <div id="col-left">
177
  <div class="col-wrap">
178
  <div class="form-wrap">
179
- <h3><?php echo __('Add Podcast Settings to existing Category Feed'); ?></h3>
180
  <input type="hidden" name="action" value="powerpress-addcategoryfeed" />
181
  <?php
182
  //wp_original_referer_field(true, 'previous');
@@ -184,9 +184,9 @@ function powerpress_admin_categoryfeeds()
184
  ?>
185
 
186
  <div class="form-field form-required">
187
- <label for="feed_name"><?php echo __('Category') ?></label>
188
  <select name="cat" id="cat_id" style="width: 100%;">
189
- <option value=""><?php echo __('Select Category'); ?></option>
190
  <?php
191
  wp_dropdown_cats();
192
  ?>
@@ -194,7 +194,7 @@ function powerpress_admin_categoryfeeds()
194
 
195
  </div>
196
 
197
- <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo __('Add Podcast Settings to Category Feed'); ?>" /></p>
198
 
199
  </div>
200
  </div>
@@ -203,12 +203,12 @@ function powerpress_admin_categoryfeeds()
203
 
204
  </div> <!-- col-container -->
205
 
206
- <h3><?php echo __('Example Usage'); ?></h3>
207
  <p>
208
- <?php echo __('Example 1: You have a podcast that covers two topics that sometimes share same posts and sometimes do not. Use your main podcast feed as a combined feed of both topics and use category feeds to distribute topic specific episodes.'); ?>
209
  </p>
210
  <p>
211
- <?php echo __('Example 2: You want to use categories to keep episodes separate from each other. Each category can be used to distribute separate podcasts with the main podcast feed combining all categories to provide a network feed.'); ?>
212
  </p>
213
 
214
  <?php
5
 
6
  function powerpress_admin_customfeeds_columns($data=array())
7
  {
8
+ $data['name'] = __('Category Name', 'powerpress');
9
+ $data['feed-slug'] = __('Slug', 'powerpress');
10
+ $data['url'] = __('Feed URL', 'powerpress');
11
  return $data;
12
  }
13
 
18
  $General = powerpress_get_settings('powerpress_general');
19
 
20
  ?>
21
+ <h2><?php echo __('Category Podcasting', 'powerpress'); ?></h2>
22
  <p>
23
+ <?php echo __('Category Podcasting adds custom podcast settings to specific blog category feeds, allowing you to organize episodes by topic.', 'powerpress'); ?>
24
  </p>
25
  <p>
26
+ <?php echo sprintf( __('If you are looking to organize episodes by file or format, please use %s.', 'powerpress'),
27
  '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php') .'" title="'. __('Custom Podcast Channels') .'">'. __('Custom Podcast Channels') .'</a>'); ?>
28
  </p>'<style type="text/css">
29
  .column-url {
53
  else
54
  {
55
  ?>
56
+ <th scope="col" id="name" class="manage-column column-name"><?php echo __('Category Name', 'powerpress'); ?></th>
57
+ <th scope="col" id="feed-slug" class="manage-column column-feed-slug"><?php echo __('Slug', 'powerpress'); ?></th>
58
+ <th scope="col" id="url" class="manage-column column-url"><?php echo __('Feed URL', 'powerpress'); ?></th>
59
  <?php
60
  }
61
  ?>
72
  else // WordPress 2.6 or older
73
  {
74
  ?>
75
+ <th scope="col" class="manage-column column-name"><?php echo __('Category Name', 'powerpress'); ?></th>
76
+ <th scope="col" class="manage-column column-feed-slug"><?php echo __('Slug', 'powerpress'); ?></th>
77
+ <th scope="col" class="manage-column column-url"><?php echo __('Feed URL', 'powerpress'); ?></th>
78
  <?php
79
  }
80
  ?>
127
  }; break;
128
  case 'name': {
129
 
130
+ echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . attribute_escape(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">'.$feed_title.'</a></strong><br />';
131
  $actions = array();
132
+ $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
133
+ $actions['remove'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;action=powerpress-delete-category-feed&amp;cat=$cat_ID", 'powerpress-delete-category-feed-' . $cat_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to remove podcast settings for category feed '%s'\n 'Cancel' to stop, 'OK' to delete.", 'powerpress'), $feed_title )) . "') ) { return true;}return false;\">" . __('Remove', 'powerpress') . "</a>";
134
  $action_count = count($actions);
135
  $i = 0;
136
  echo '<div class="row-actions">';
146
 
147
  case 'url': {
148
 
149
+ echo "<td $class><a href='$url' title='". attribute_escape(sprintf(__('Visit %s', 'powerpress'), $feed_title))."' target=\"_blank\">$short_url</a>";
150
  echo '<div class="row-actions">';
151
+ echo '<span class="'.$action .'"><a href="http://www.feedvalidator.org/check.cgi?url='. urlencode( str_replace('&amp;', '&', $url) ) .'" target="_blank">' . __('Validate Feed', 'powerpress') . '</a></span>';
152
  echo '</div>';
153
  echo "</td>";
154
 
176
  <div id="col-left">
177
  <div class="col-wrap">
178
  <div class="form-wrap">
179
+ <h3><?php echo __('Add Podcast Settings to existing Category Feed', 'powerpress'); ?></h3>
180
  <input type="hidden" name="action" value="powerpress-addcategoryfeed" />
181
  <?php
182
  //wp_original_referer_field(true, 'previous');
184
  ?>
185
 
186
  <div class="form-field form-required">
187
+ <label for="feed_name"><?php echo __('Category', 'powerpress') ?></label>
188
  <select name="cat" id="cat_id" style="width: 100%;">
189
+ <option value=""><?php echo __('Select Category', 'powerpress'); ?></option>
190
  <?php
191
  wp_dropdown_cats();
192
  ?>
194
 
195
  </div>
196
 
197
+ <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo __('Add Podcast Settings to Category Feed', 'powerpress'); ?>" /></p>
198
 
199
  </div>
200
  </div>
203
 
204
  </div> <!-- col-container -->
205
 
206
+ <h3><?php echo __('Example Usage', 'powerpress'); ?></h3>
207
  <p>
208
+ <?php echo __('Example 1: You have a podcast that covers two topics that sometimes share same posts and sometimes do not. Use your main podcast feed as a combined feed of both topics and use category feeds to distribute topic specific episodes.', 'powerpress'); ?>
209
  </p>
210
  <p>
211
+ <?php echo __('Example 2: You want to use categories to keep episodes separate from each other. Each category can be used to distribute separate podcasts with the main podcast feed combining all categories to provide a network feed.', 'powerpress'); ?>
212
  </p>
213
 
214
  <?php
powerpressadmin-customfeeds.php CHANGED
@@ -5,10 +5,10 @@ if( !function_exists('add_action') )
5
 
6
  function powerpress_admin_customfeeds_columns($data=array())
7
  {
8
- $data['name'] = __('Name');
9
- $data['feed-slug'] = __('Slug');
10
- $data['episode-count'] = __('Episodes');
11
- $data['url'] = __('URL');
12
  return $data;
13
  }
14
 
@@ -20,13 +20,13 @@ function powerpress_admin_customfeeds()
20
 
21
 
22
  ?>
23
- <h2><?php echo __('Custom Podcast Channels'); ?></h2>
24
  <p>
25
- <?php echo __('Custom podcast Channels allow you to associate multiple media files and/or formats to one blog post.'); ?>
26
  </p>
27
  <p>
28
- <?php echo sprintf( __('If you are looking to organize episodes by topic, please use %s.'),
29
- '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php') .'" title="'. __('Category Podcast Feeds') .'">'. __('Category Podcast Feeds') .'</a>'); ?>
30
  </p>
31
 
32
  <style type="text/css">
@@ -58,10 +58,10 @@ function powerpress_admin_customfeeds()
58
  else // WordPress 2.6 or older
59
  {
60
  ?>
61
- <th scope="col" id="name" class="manage-column column-name"><?php echo __('Name'); ?></th>
62
- <th scope="col" id="feed-slug" class="manage-column column-feed-slug"><?php echo __('Slug'); ?></th>
63
- <th scope="col" id="episode-count" class="manage-column column-episode-count"><?php echo __('Episodes'); ?></th>
64
- <th scope="col" id="url" class="manage-column column-url"><?php echo __('URL'); ?></th>
65
  <?php
66
  }
67
  ?>
@@ -78,10 +78,10 @@ function powerpress_admin_customfeeds()
78
  else // WordPress 2.6 or older
79
  {
80
  ?>
81
- <th scope="col" class="manage-column column-name"><?php echo __('Name'); ?></th>
82
- <th scope="col" class="manage-column column-feed-slug"><?php echo __('Slug'); ?></th>
83
- <th scope="col" class="manage-column column-episode-count"><?php echo __('Episodes'); ?></th>
84
- <th scope="col" class="manage-column column-url"><?php echo __('URL'); ?></th>
85
  <?php
86
  }
87
  ?>
@@ -91,7 +91,7 @@ function powerpress_admin_customfeeds()
91
  <?php
92
 
93
 
94
- $Feeds = array('podcast'=>__('Podcast') );
95
  if( isset($General['custom_feeds']['podcast']) )
96
  $Feeds = $General['custom_feeds'];
97
  else if( is_array($General['custom_feeds']) )
@@ -106,7 +106,7 @@ function powerpress_admin_customfeeds()
106
  $columns = powerpress_admin_customfeeds_columns();
107
  $hidden = array();
108
  if( $feed_slug == 'podcast' )
109
- $feed_title = __('Podcast');
110
  $feed_title = wp_specialchars($feed_title);
111
  if( $count % 2 == 0 )
112
  echo '<tr valign="middle" class="alternate">';
@@ -137,10 +137,10 @@ function powerpress_admin_customfeeds()
137
  }; break;
138
  case 'name': {
139
 
140
- echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . attribute_escape(sprintf(__('Edit "%s"'), $feed_title)) . '">'.$feed_title.'</a></strong>'. ( $feed_slug == 'podcast' ?' ('. __('default channel') .')':'').'<br />';
141
  $actions = array();
142
- $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>';
143
- $actions['delete'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-delete-feed&amp;feed_slug=$feed_slug", 'powerpress-delete-feed-' . $feed_slug) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to delete feed '%s'\n 'Cancel' to stop, 'OK' to delete."), $feed_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
144
  if( !isset($General['custom_feeds'][ $feed_slug ]) )
145
  {
146
  unset($actions['delete']);
@@ -160,9 +160,9 @@ function powerpress_admin_customfeeds()
160
 
161
  case 'url': {
162
 
163
- echo "<td $class><a href='$url' title='". attribute_escape(sprintf(__('Visit %s'), $feed_title))."' target=\"_blank\">$short_url</a>";
164
  echo '<div class="row-actions">';
165
- echo '<span class="'.$action .'"><a href="http://www.feedvalidator.org/check.cgi?url='. urlencode($url) .'" target="_blank">' . __('Validate Feed') . '</a></span>';
166
  echo '</div>';
167
  echo "</td>";
168
 
@@ -186,15 +186,15 @@ function powerpress_admin_customfeeds()
186
  </tbody>
187
  </table>
188
  <?php if( !isset($General['custom_feeds'][ $feed_slug ]) ) { ?>
189
- <p><?php echo sprintf( __('Note: The default channel "Podcast" is currently using global PowerPress settings. Click %s to customize the default "Podcast" channel.'),
190
- '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-editfeed&amp;feed_slug=podcast') .'">'. __('Edit') .'</a>'); ?></p>
191
  <?php } ?>
192
  </div> <!-- col-right -->
193
 
194
  <div id="col-left">
195
  <div class="col-wrap">
196
  <div class="form-wrap">
197
- <h3><?php echo __('Add Podcast Channel'); ?></h3>
198
  <div id="ajax-response"></div>
199
  <input type="hidden" name="action" value="powerpress-addfeed" />
200
  <?php
@@ -203,18 +203,18 @@ function powerpress_admin_customfeeds()
203
  ?>
204
 
205
  <div class="form-field form-required">
206
- <label for="feed_name"><?php echo __('Feed Name') ?></label>
207
  <input name="feed_name" id="feed_name" type="text" value="" size="40" />
208
- <p><?php _e('The name is used for use within the administration area only.'); ?></p>
209
  </div>
210
 
211
  <div class="form-field">
212
- <label for="feed_slug"><?php echo __('Feed Slug') ?></label>
213
  <input name="feed_slug" id="feed_slug" type="text" value="" size="40" />
214
- <p><?php echo __('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
215
  </div>
216
 
217
- <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo __('Add Podcast Channel'); ?>" /></p>
218
 
219
  </div>
220
  </div>
@@ -223,15 +223,15 @@ function powerpress_admin_customfeeds()
223
 
224
  </div> <!-- col-container -->
225
 
226
- <h3><?php echo __('Example Usage'); ?></h3>
227
  <p>
228
- <?php echo __('Example 1: You want to distribute both an mp3 and an ogg version of your podcast. Use the default podcast channel for your mp3 media and create a custom channel for your ogg media.'); ?>
229
  </p>
230
  <p>
231
- <?php echo __('Example 2: You have a video podcast with multiple file formats. Use the default podcast channel for the main media that you want to appear on your blog (e.g. m4v). Create additional channels for the remaining formats (e.g. wmv, mov, mpeg).'); ?>
232
  </p>
233
  <p>
234
- <?php echo __('Example 3: You create two versions of your podcast, a 20 minute summary and a full 2 hour episode. Use the default channel for your 20 minute summary episodes and create a new custom channels for your full length episodes.'); ?>
235
  </p>
236
 
237
  <?php
5
 
6
  function powerpress_admin_customfeeds_columns($data=array())
7
  {
8
+ $data['name'] = __('Name', 'powerpress');
9
+ $data['feed-slug'] = __('Slug', 'powerpress');
10
+ $data['episode-count'] = __('Episodes', 'powerpress');
11
+ $data['url'] = __('URL', 'powerpress');
12
  return $data;
13
  }
14
 
20
 
21
 
22
  ?>
23
+ <h2><?php echo __('Custom Podcast Channels', 'powerpress'); ?></h2>
24
  <p>
25
+ <?php echo __('Custom podcast Channels allow you to associate multiple media files and/or formats to one blog post.', 'powerpress'); ?>
26
  </p>
27
  <p>
28
+ <?php echo sprintf( __('If you are looking to organize episodes by topic, please use %s.', 'powerpress'),
29
+ '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php') .'" title="'. __('Category Podcast Feeds', 'powerpress') .'">'. __('Category Podcast Feeds', 'powerpress') .'</a>'); ?>
30
  </p>
31
 
32
  <style type="text/css">
58
  else // WordPress 2.6 or older
59
  {
60
  ?>
61
+ <th scope="col" id="name" class="manage-column column-name"><?php echo __('Name', 'powerpress'); ?></th>
62
+ <th scope="col" id="feed-slug" class="manage-column column-feed-slug"><?php echo __('Slug', 'powerpress'); ?></th>
63
+ <th scope="col" id="episode-count" class="manage-column column-episode-count"><?php echo __('Episodes', 'powerpress'); ?></th>
64
+ <th scope="col" id="url" class="manage-column column-url"><?php echo __('URL', 'powerpress'); ?></th>
65
  <?php
66
  }
67
  ?>
78
  else // WordPress 2.6 or older
79
  {
80
  ?>
81
+ <th scope="col" class="manage-column column-name"><?php echo __('Name', 'powerpress'); ?></th>
82
+ <th scope="col" class="manage-column column-feed-slug"><?php echo __('Slug', 'powerpress'); ?></th>
83
+ <th scope="col" class="manage-column column-episode-count"><?php echo __('Episodes', 'powerpress'); ?></th>
84
+ <th scope="col" class="manage-column column-url"><?php echo __('URL', 'powerpress'); ?></th>
85
  <?php
86
  }
87
  ?>
91
  <?php
92
 
93
 
94
+ $Feeds = array('podcast'=>__('Podcast', 'powerpress') );
95
  if( isset($General['custom_feeds']['podcast']) )
96
  $Feeds = $General['custom_feeds'];
97
  else if( is_array($General['custom_feeds']) )
106
  $columns = powerpress_admin_customfeeds_columns();
107
  $hidden = array();
108
  if( $feed_slug == 'podcast' )
109
+ $feed_title = __('Podcast', 'powerpress');
110
  $feed_title = wp_specialchars($feed_title);
111
  if( $count % 2 == 0 )
112
  echo '<tr valign="middle" class="alternate">';
137
  }; break;
138
  case 'name': {
139
 
140
+ echo '<td '.$class.'><strong><a class="row-title" href="'.$edit_link.'" title="' . attribute_escape(sprintf(__('Edit "%s"', 'powerpress'), $feed_title)) . '">'.$feed_title.'</a></strong>'. ( $feed_slug == 'podcast' ?' ('. __('default channel', 'powerpress') .')':'').'<br />';
141
  $actions = array();
142
+ $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit', 'powerpress') . '</a>';
143
+ $actions['delete'] = "<a class='submitdelete' href='". admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-delete-feed&amp;feed_slug=$feed_slug", 'powerpress-delete-feed-' . $feed_slug) . "' onclick=\"if ( confirm('" . js_escape(sprintf( __("You are about to delete feed '%s'\n 'Cancel' to stop, 'OK' to delete.", 'powerpress'), $feed_title )) . "') ) { return true;}return false;\">" . __('Delete', 'powerpress') . "</a>";
144
  if( !isset($General['custom_feeds'][ $feed_slug ]) )
145
  {
146
  unset($actions['delete']);
160
 
161
  case 'url': {
162
 
163
+ echo "<td $class><a href='$url' title='". attribute_escape(sprintf(__('Visit %s', 'powerpress'), $feed_title))."' target=\"_blank\">$short_url</a>";
164
  echo '<div class="row-actions">';
165
+ echo '<span class="'.$action .'"><a href="http://www.feedvalidator.org/check.cgi?url='. urlencode($url) .'" target="_blank">' . __('Validate Feed', 'powerpress') . '</a></span>';
166
  echo '</div>';
167
  echo "</td>";
168
 
186
  </tbody>
187
  </table>
188
  <?php if( !isset($General['custom_feeds'][ $feed_slug ]) ) { ?>
189
+ <p><?php echo sprintf( __('Note: The default channel "Podcast" is currently using global PowerPress settings. Click %s to customize the default "Podcast" channel.', 'powerpress'),
190
+ '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-editfeed&amp;feed_slug=podcast') .'">'. __('Edit', 'powerpress') .'</a>'); ?></p>
191
  <?php } ?>
192
  </div> <!-- col-right -->
193
 
194
  <div id="col-left">
195
  <div class="col-wrap">
196
  <div class="form-wrap">
197
+ <h3><?php echo __('Add Podcast Channel', 'powerpress'); ?></h3>
198
  <div id="ajax-response"></div>
199
  <input type="hidden" name="action" value="powerpress-addfeed" />
200
  <?php
203
  ?>
204
 
205
  <div class="form-field form-required">
206
+ <label for="feed_name"><?php echo __('Feed Name', 'powerpress') ?></label>
207
  <input name="feed_name" id="feed_name" type="text" value="" size="40" />
208
+ <p><?php echo __('The name is used for use within the administration area only.', 'powerpress'); ?></p>
209
  </div>
210
 
211
  <div class="form-field">
212
+ <label for="feed_slug"><?php echo __('Feed Slug', 'powerpress') ?></label>
213
  <input name="feed_slug" id="feed_slug" type="text" value="" size="40" />
214
+ <p><?php echo __('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.', 'powerpress'); ?></p>
215
  </div>
216
 
217
+ <p class="submit"><input type="submit" class="button" name="submit" value="<?php echo __('Add Podcast Channel', 'powerpress'); ?>" /></p>
218
 
219
  </div>
220
  </div>
223
 
224
  </div> <!-- col-container -->
225
 
226
+ <h3><?php echo __('Example Usage', 'powerpress'); ?></h3>
227
  <p>
228
+ <?php echo __('Example 1: You want to distribute both an mp3 and an ogg version of your podcast. Use the default podcast channel for your mp3 media and create a custom channel for your ogg media.', 'powerpress'); ?>
229
  </p>
230
  <p>
231
+ <?php echo __('Example 2: You have a video podcast with multiple file formats. Use the default podcast channel for the main media that you want to appear on your blog (e.g. m4v). Create additional channels for the remaining formats (e.g. wmv, mov, mpeg).', 'powerpress'); ?>
232
  </p>
233
  <p>
234
+ <?php echo __('Example 3: You create two versions of your podcast, a 20 minute summary and a full 2 hour episode. Use the default channel for your 20 minute summary episodes and create a new custom channels for your full length episodes.', 'powerpress'); ?>
235
  </p>
236
 
237
  <?php
powerpressadmin-dashboard.php CHANGED
@@ -72,12 +72,12 @@ function powerpress_dashboard_stats_content()
72
  {
73
  if( !$UserPass )
74
  {
75
- $content = sprintf('<p>'. __('Wait a sec! This feature is only available to Blubrry Podcast Community members. Join our community to get free podcast statistics and access to other valuable %s.') .'</p>',
76
- '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Services') . '</a>' );
77
  $content .= ' ';
78
- $content .= sprintf('<p>'. __('Our %s integrated PowerPress makes podcast publishing simple. Check out the %s on our exciting three-step publishing system!') .'</p>',
79
- '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Podcast Hosting') .'</a>',
80
- '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Video') .'</a>' );
81
  }
82
  else
83
  {
@@ -88,7 +88,7 @@ function powerpress_dashboard_stats_content()
88
  if( $content )
89
  update_option('powerpress_stats', array('updated'=>time(), 'content'=>$content) );
90
  else
91
- $content = __('Error: An error occurred authenticating user.');
92
  }
93
  }
94
  ?>
@@ -100,7 +100,7 @@ function powerpress_dashboard_stats_content()
100
  {
101
  ?>
102
  <div id="blubrry_stats_media_show">
103
- <a href="<?php echo admin_url(); ?>?action=powerpress-jquery-stats&amp;KeepThis=true&amp;TB_iframe=true&amp;modal=true" title="<?php echo __('Blubrry Media statistics'); ?>" class="thickbox"><?php echo __('more'); ?></a>
104
  </div>
105
  <?php } ?>
106
  </div>
@@ -123,7 +123,7 @@ function powerpress_dashboard_setup()
123
 
124
  if( $Settings )
125
  {
126
- wp_add_dashboard_widget( 'powerpress_dashboard_stats', __( 'Blubrry Podcast Statistics' ), 'powerpress_dashboard_stats_content' );
127
  }
128
  }
129
 
72
  {
73
  if( !$UserPass )
74
  {
75
+ $content = sprintf('<p>'. __('Wait a sec! This feature is only available to Blubrry Podcast Community members. Join our community to get free podcast statistics and access to other valuable %s.', 'powerpress') .'</p>',
76
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Services', 'powerpress') . '</a>' );
77
  $content .= ' ';
78
+ $content .= sprintf('<p>'. __('Our %s integrated PowerPress makes podcast publishing simple. Check out the %s on our exciting three-step publishing system!', 'powerpress') .'</p>',
79
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Podcast Hosting', 'powerpress') .'</a>',
80
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('Video', 'powerpress') .'</a>' );
81
  }
82
  else
83
  {
88
  if( $content )
89
  update_option('powerpress_stats', array('updated'=>time(), 'content'=>$content) );
90
  else
91
+ $content = __('Error: An error occurred authenticating user.', 'powerpress');
92
  }
93
  }
94
  ?>
100
  {
101
  ?>
102
  <div id="blubrry_stats_media_show">
103
+ <a href="<?php echo admin_url(); ?>?action=powerpress-jquery-stats&amp;KeepThis=true&amp;TB_iframe=true&amp;modal=true" title="<?php echo __('Blubrry Media statistics', 'powerpress'); ?>" class="thickbox"><?php echo __('more', 'powerpress'); ?></a>
104
  </div>
105
  <?php } ?>
106
  </div>
123
 
124
  if( $Settings )
125
  {
126
+ wp_add_dashboard_widget( 'powerpress_dashboard_stats', __( 'Blubrry Podcast Statistics', 'powerpress'), 'powerpress_dashboard_stats_content' );
127
  }
128
  }
129
 
powerpressadmin-diagnostics.php CHANGED
@@ -20,34 +20,34 @@
20
 
21
  if( $powerpress_diags['detecting_media']['curl'] )
22
  {
23
- $powerpress_diags['detecting_media']['message'] = __('Your web server supports the PHP cURL library.');
24
  if( $powerpress_diags['detecting_media']['allow_url_fopen'] )
25
- $powerpress_diags['detecting_media']['message'] .= ' '. __('Your web server is also configured with the php.ini setting \'allow_url_fopen\' enabled, but the cURL library takes precedence.');
26
 
27
  if( ini_get('safe_mode') && ini_get('open_basedir') )
28
  {
29
  $powerpress_diags['detecting_media']['warning'] = true;
30
- $powerpress_diags['detecting_media']['message2'] = __('Warning: Both php.ini settings \'safe_mode\' and \'open_basedir\' will prevent the cURL library from following redirects in URLs.');
31
  }
32
  else if( ini_get('safe_mode') )
33
  {
34
  $powerpress_diags['detecting_media']['warning'] = true;
35
- $powerpress_diags['detecting_media']['message2'] = __('Warning: The php.ini setting \'safe_mode\' will prevent the cURL library from following redirects in URLs.');
36
  }
37
  else if( ini_get('open_basedir') )
38
  {
39
  $powerpress_diags['detecting_media']['warning'] = true;
40
- $powerpress_diags['detecting_media']['message2'] = __('Warning: The php.ini setting \'open_basedir\' will prevent the cURL library from following redirects in URLs.');
41
  }
42
  }
43
  else if( $powerpress_diags['detecting_media']['allow_url_fopen'] )
44
  {
45
- $powerpress_diags['detecting_media']['message'] = __('Your web server is configured with the php.ini setting \'allow_url_fopen\' enabled.');
46
  }
47
  else
48
  {
49
  $powerpress_diags['detecting_media']['success'] = false;
50
- $powerpress_diags['detecting_media']['message'] = __('Your server must either have the php.ini setting \'allow_url_fopen\' enabled or have the PHP cURL library installed in order to detect media information.');
51
  }
52
 
53
  // Second, see if we can ping itunes, OpenSSL is required
@@ -68,25 +68,25 @@
68
  if( $powerpress_diags['detecting_media']['success'] == false )
69
  {
70
  $powerpress_diags['pinging_itunes']['success'] = false;
71
- $powerpress_diags['pinging_itunes']['message'] = __('The problem with \'Detecting Media Information\' above needs to be resolved for this test to continue.');
72
  }
73
  else if( $powerpress_diags['detecting_media']['curl'] && $powerpress_diags['pinging_itunes']['curl_ssl'] )
74
  {
75
- $powerpress_diags['pinging_itunes']['message'] = __('Your web server supports secure HTTPS connections.');
76
  }
77
  else if( $powerpress_diags['detecting_media']['curl'] )
78
  {
79
  $powerpress_diags['pinging_itunes']['success'] = false;
80
- $powerpress_diags['pinging_itunes']['message'] = __('Your web server\'s cURL library does not support secure HTTPS connections.');
81
  }
82
  else if( $powerpress_diags['pinging_itunes']['openssl'] && $powerpress_diags['detecting_media']['allow_url_fopen'] )
83
  {
84
- $powerpress_diags['pinging_itunes']['message'] = __('Your web server supports secure HTTPS connections.');
85
  }
86
  else
87
  {
88
  $powerpress_diags['pinging_itunes']['success'] = false;
89
- $powerpress_diags['pinging_itunes']['message'] = __('Pinging iTunes requires the PHP OpenSSL library to be installed.');
90
  }
91
 
92
  // Third, see if the uploads/powerpress folder is writable
@@ -105,7 +105,7 @@
105
 
106
  if( $powerpress_diags['uploading_artwork']['file_uploads'] == false )
107
  {
108
- $powerpress_diags['uploading_artwork']['message'] = __('Your server requires the php.ini setting \'file_uploads\' enabled in order to upload podcast artwork.');
109
  }
110
  else if( $UploadArray['error'] === false )
111
  {
@@ -113,19 +113,19 @@
113
 
114
  if ( !is_dir($powerpress_diags['uploading_artwork']['upload_path']) && ! wp_mkdir_p( rtrim($powerpress_diags['uploading_artwork']['upload_path'], '/') ) )
115
  {
116
- $powerpress_diags['uploading_artwork']['message'] = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), rtrim($powerpress_diags['uploading_artwork']['upload_path'], '/') );
117
  }
118
  else
119
  {
120
  $powerpress_diags['uploading_artwork']['writable'] = powerpressadmin_diagnostics_is_writable($powerpress_diags['uploading_artwork']['upload_path']);
121
  if( $powerpress_diags['uploading_artwork']['writable'] == false )
122
  {
123
- $powerpress_diags['uploading_artwork']['message'] = sprintf(__('PowerPress is unable to write to the %s directory.'), $powerpress_diags['uploading_artwork']['upload_path']);
124
  }
125
  else
126
  {
127
  $powerpress_diags['uploading_artwork']['success'] = true;
128
- $powerpress_diags['uploading_artwork']['message'] = __('You are able to upload and save artwork images for your podcasts.');
129
  }
130
  }
131
  }
@@ -134,7 +134,7 @@
134
  if( strlen($UploadArray['error']) > 2 )
135
  $powerpress_diags['uploading_artwork']['message'] = $UploadArray['error'];
136
  else
137
- $powerpress_diags['uploading_artwork']['message'] = __('An error occurred obtaining the uploads directory from WordPress.');
138
  }
139
 
140
  // Fourth, see if we have enough memory and we're running an appropriate version of PHP
@@ -163,15 +163,15 @@
163
 
164
  if( version_compare($powerpress_diags['system_info']['php_version'], '5.2') > -1 )
165
  {
166
- $powerpress_diags['system_info']['message'] = sprintf( __('Your version of PHP (%s) is OK!'), $powerpress_diags['system_info']['php_version'] );
167
  }
168
  else if( version_compare($powerpress_diags['system_info']['php_version'], '5') > -1 )
169
  {
170
- $powerpress_diags['system_info']['message'] = sprintf( __('Your version of PHP (%s) is OK, though PHP 5.2 or newer is recommended.'), $powerpress_diags['system_info']['php_version'] );
171
  }
172
  else
173
  {
174
- $powerpress_diags['system_info']['message'] = sprintf( __('Your version of PHP (%s) will work, but PHP 5.2 or newer is recommended.'), $powerpress_diags['system_info']['php_version'] );
175
  }
176
 
177
  $used = 0;
@@ -179,7 +179,7 @@
179
 
180
  if( $total == -1 )
181
  {
182
- $powerpress_diags['system_info']['message2'] = __('Your scripts have no limit to the amount of memory they can use.');
183
  $used = (function_exists('memory_get_peak_usage')? memory_get_peak_usage() : ( function_exists('memory_get_usage') ? memory_get_usage() : 0 ) );
184
  if( $used )
185
  $powerpress_diags['system_info']['memory_used'] = round($used / 1024 / 1024, 2);
@@ -189,41 +189,41 @@
189
  $used = round(memory_get_peak_usage() / 1024 / 1024, 2);
190
  $powerpress_diags['system_info']['memory_used'] = $used;
191
  $percent = ($used/$total)*100;
192
- $powerpress_diags['system_info']['message2'] = sprintf(__('You are using %d%% (%.01fM of %.01dM) of available memory.'), $percent, $used, $total);
193
  }
194
  else if( function_exists('memory_get_usage') )
195
  {
196
  $used = round(memory_get_usage() / 1024 / 1024, 2);
197
  $powerpress_diags['system_info']['memory_used'] = $used;
198
  $percent = ($used/$total)*100;
199
- $powerpress_diags['system_info']['message2'] = sprintf(__('You are using %d%% (%.01fM of %dM) of available memory. Versions of PHP 5.2 or newer will give you a more accurate total of memory usage.'), $percent, $used, $total);
200
  }
201
  else
202
  {
203
- $powerpress_diags['system_info']['message2'] = sprintf(__('Your scripts have a total of %dM.'), $total );
204
  }
205
 
206
  if( $total > 0 && ($used + 4) > $total )
207
  {
208
  $powerpress_diags['system_info']['warning'] = true;
209
- $powerpress_diags['system_info']['message2'] = __('Warning:') .' '. $powerpress_diags['system_info']['message2'];
210
  $powerpress_diags['system_info']['message2'] .= ' ';
211
- $powerpress_diags['system_info']['message2'] .= sprintf(__('We recommend that you have at least %dM (4M more that what is currently used) or more memory to accomodate all of your installed plugins.'), ceil($used)+4 );
212
  }
213
 
214
  if( empty($powerpress_diags['system_info']['temp_directory']) )
215
  {
216
  $powerpress_diags['system_info']['success'] = false;
217
- $powerpress_diags['system_info']['message3'] = __('Error:') .' '. __('No temporary directory available.');
218
  }
219
  else if( is_dir($powerpress_diags['system_info']['temp_directory']) && is_writable($powerpress_diags['system_info']['temp_directory']) )
220
  {
221
- $powerpress_diags['system_info']['message3'] = sprintf(__('Temporary directory %s is writable.'), $powerpress_diags['system_info']['temp_directory']);
222
  }
223
  else
224
  {
225
  $powerpress_diags['system_info']['success'] = false;
226
- $powerpress_diags['system_info']['message3'] = __('Error:') .' '. sprintf(__('Temporary directory %s is not writable.'), $powerpress_diags['system_info']['temp_directory']);
227
  }
228
 
229
  if( isset($_GET['Email']) && strlen($_GET['Email']) > 4 )
@@ -231,7 +231,7 @@
231
  check_admin_referer('powerpress-diagnostics');
232
  $email = $_GET['Email'];
233
  powerpressadmin_diagnostics_email($email);
234
- powerpress_page_message_add_notice( sprintf(__('Diagnostic results sent to %s.'), $email) );
235
  }
236
  }
237
 
@@ -241,88 +241,88 @@
241
  $SettingsGeneral = get_option('powerpress_general');
242
 
243
  // First we need some basic information about the blog...
244
- $message = __('Blog Title:') .' '. get_bloginfo('name') . "<br />\n";
245
- $message .= __('Blog URL:') .' '. get_bloginfo('home') . "<br />\n";
246
- $message .= __('WordPress Version:') .' '. $wp_version . "<br />\n";
247
  if( !empty($wpmu_version) )
248
- $message .= __('WordPress MU Version:') .' '. $wpmu_version . "<br />\n";
249
- $message .= __('System:') .' '. $_SERVER['SERVER_SOFTWARE'] . "<br />\n";
250
- $message .= __('Safe node:') .' '. ( ini_get('safe_mode')?'true':'false') ."<br />\n";
251
- $message .= __('Open basedir:') .' '. ini_get('open_basedir') ."<br />\n";
252
 
253
  // Crutial PowerPress Settings
254
  $message .= "<br />\n";
255
- $message .= '<strong>'. __('Important PowerPress Settings') ."</strong><br />\n";
256
- $message .= " &nbsp; \t &nbsp; ". __('PowerPress version:') .' '. POWERPRESS_VERSION ."<br />\n";
257
- $message .= " &nbsp; \t &nbsp; ". __('advanced mode:') .' '. ($SettingsGeneral['advanced_mode']?'true':'false') ."<br />\n";
258
- $message .= " &nbsp; \t &nbsp; ". __('episode box mode:') .' '. ($SettingsGeneral['episode_box_mode']==0?__('normal'): ($SettingsGeneral['episode_box_mode']==1?__('simple'):__('advanced')) ) ."<br />\n";
259
- $message .= " &nbsp; \t &nbsp; ". __('Podcasting capability:') .' '. ($SettingsGeneral['use_caps']==0?__('Disabled (default)'): __('Enabled')) ."<br />\n";
260
- $message .= " &nbsp; \t &nbsp; ". __('Feed capability:') .' '. ($SettingsGeneral['feed_caps']==0?__('Disabled (default)'): __('Enabled')) ."<br />\n";
261
- $message .= " &nbsp; \t &nbsp; ". __('Category Podcasting:') .' '. ($SettingsGeneral['cat_casting']==0?__('Disabled (default)'): __('Enabled')) ."<br />\n";
262
- $message .= " &nbsp; \t &nbsp; ". __('Podcast Channels:') .' '. ($SettingsGeneral['channels']==0?__('Disabled (default)'): __('Enabled')) ."<br />\n";
263
- $message .= " &nbsp; \t &nbsp; ". __('Additional Player Options:') .' '. ($SettingsGeneral['player_options']==0?__('Disabled (default)'): __('Enabled')) ."<br />\n";
264
 
265
  // Detecting Media Information
266
  $message .= "<br />\n";
267
- $message .= '<strong>'.__('Detecting Media Information') ."</strong><br />\n";
268
- $message .= " &nbsp; \t &nbsp; ". __('success:') .' '. ($powerpress_diags['detecting_media']['success']?'true':'false') ."<br />\n";
269
- $message .= " &nbsp; \t &nbsp; ". __('warning:') .' '. ($powerpress_diags['detecting_media']['warning']?'true':'false') ."<br />\n";
270
- $message .= " &nbsp; \t &nbsp; ". __('allow_url_fopen:') .' '. ($powerpress_diags['detecting_media']['allow_url_fopen']?'true':'false') ."<br />\n";
271
- $message .= " &nbsp; \t &nbsp; ". __('curl:') .' '. ($powerpress_diags['detecting_media']['curl']?'true':'false') ."<br />\n";
272
- $message .= " &nbsp; \t &nbsp; ". __('message:') .' '. $powerpress_diags['detecting_media']['message'] ."<br />\n";
273
- $message .= " &nbsp; \t &nbsp; ". __('message 2:') .' '. $powerpress_diags['detecting_media']['message2'] ."<br />\n";
274
 
275
  // Pinging iTunes
276
  $message .= "<br />\n";
277
- $message .= '<strong>'.__('Pinging iTunes') ."</strong><br />\n";
278
- $message .= " &nbsp; \t &nbsp; ". __('success:') .' '. ($powerpress_diags['pinging_itunes']['success']?'true':'false') ."<br />\n";
279
- $message .= " &nbsp; \t &nbsp; ". __('curl_ssl:') .' '. ($powerpress_diags['pinging_itunes']['curl_ssl']?'true':'false') ."<br />\n";
280
- $message .= " &nbsp; \t &nbsp; ". __('openssl:') .' '. ($powerpress_diags['pinging_itunes']['openssl']?'true':'false') ."<br />\n";
281
- $message .= " &nbsp; \t &nbsp; ". __('message:') .' '. $powerpress_diags['pinging_itunes']['message'] ."<br />\n";
282
 
283
  // Uploading Artwork
284
  $message .= "<br />\n";
285
- $message .= '<strong>'.__('Uploading Artwork') ."</strong><br />\n";
286
- $message .= " &nbsp; \t &nbsp; ". __('success:') .' '. ($powerpress_diags['uploading_artwork']['success']?'true':'false') ."<br />\n";
287
- $message .= " &nbsp; \t &nbsp; ". __('file_uploads:') .' '. ($powerpress_diags['uploading_artwork']['file_uploads']?'true':'false') ."<br />\n";
288
- $message .= " &nbsp; \t &nbsp; ". __('writable:') .' '. ($powerpress_diags['uploading_artwork']['writable']?'true':'false') ."<br />\n";
289
- $message .= " &nbsp; \t &nbsp; ". __('upload_path:') .' '. $powerpress_diags['uploading_artwork']['upload_path'] ."<br />\n";
290
- $message .= " &nbsp; \t &nbsp; ". __('message:') .' '. $powerpress_diags['uploading_artwork']['message'] ."<br />\n";
291
 
292
  // System Information
293
  $message .= "<br />\n";
294
- $message .= '<strong>'.__('System Information') ."</strong><br />\n";
295
- $message .= " &nbsp; \t &nbsp; ". __('success:') .' '. ($powerpress_diags['system_info']['success']?'true':'false') ."<br />\n";
296
- $message .= " &nbsp; \t &nbsp; ". __('warning:') .' '. ($powerpress_diags['system_info']['warning']?'yes':'no') ."<br />\n";
297
- $message .= " &nbsp; \t &nbsp; ". __('php_version:') .' '. $powerpress_diags['system_info']['php_version'] ."<br />\n";
298
- $message .= " &nbsp; \t &nbsp; ". __('memory_limit:') .' '. $powerpress_diags['system_info']['memory_limit'] ."M\n";
299
- $message .= " &nbsp; \t &nbsp; ". __('memory_used:') .' '. sprintf('%.01fM',$powerpress_diags['system_info']['memory_used']) ."<br />\n";
300
- $message .= " &nbsp; \t &nbsp; ". __('temp directory:') .' '. $powerpress_diags['system_info']['temp_directory'] ."<br />\n";
301
- $message .= " &nbsp; \t &nbsp; ". __('message:') .' '. $powerpress_diags['system_info']['message'] ."<br />\n";
302
- $message .= " &nbsp; \t &nbsp; ". __('message 2:') .' '. $powerpress_diags['system_info']['message2'] ."<br />\n";
303
- $message .= " &nbsp; \t &nbsp; ". __('message 3:') .' '. $powerpress_diags['system_info']['message3'] ."<br />\n";
304
 
305
  if( isset($_GET['ap']) && $_GET['ap'] )
306
  {
307
  $current_plugins = get_option('active_plugins');
308
  $message .= "<br />\n";
309
- $message .= '<strong>'.__('Active Plugins') ."</strong><br />\n";
310
  while( list($null,$plugin_path) = each($current_plugins) )
311
  {
312
  $plugin_data = get_plugin_data( rtrim(WP_PLUGIN_DIR, '/'). '/'. rtrim($plugin_path, '\\/'), false, false ); //Do not apply markup/translate as it'll be cached.
313
 
314
- $message .= " &nbsp; \t &nbsp; " . __('Title:') .' '. $plugin_data['Title']. "<br />\n";
315
- $message .= " &nbsp; \t &nbsp; " . __('Relative Path:') .' '. $plugin_path. "<br />\n";
316
- $message .= " &nbsp; \t &nbsp; " . __('Version:') .' '. $plugin_data['Version']. "<br />\n";
317
- $message .= " &nbsp; \t &nbsp; " . __('Web Site:') .' '. $plugin_data['PluginURI']. "<br />\n";
318
- //$message .= " &nbsp; \t &nbsp; " . __('Description:') .' '. $plugin_data['Description']. "<br />\n";
319
- //$message .= " &nbsp; \t &nbsp; " . __('Author Name:') .' '. $plugin_data['Author']. "<br />\n";
320
- //$message .= " &nbsp; \t &nbsp; " . __('Author Web Site:') .' '. $plugin_data['AuthorURI']. "<br />\n";
321
  //print_r($plugin_data);
322
  $message .= "<br />\n";
323
  }
324
  }
325
- //$message .= " &nbsp; \t &nbsp; ". __('success:') .' '. ($powerpress_diags['system_info']['success']?'true':'false') ."<br />\n";
326
 
327
  // Now lets loop through each section of diagnostics
328
  $user_info = wp_get_current_user();
@@ -335,7 +335,7 @@
335
  $headers .= 'CC: "'.$from_name.'" <'.$from_email.'>'."\n";
336
  $headers .= "Content-Type: text/html\n";
337
 
338
- @wp_mail($email, sprintf(__('Blubrry PowerPress diagnostic results for %s'), get_bloginfo('name')), $message, $headers);
339
  $powerpress_diag_message = $message;
340
  }
341
 
@@ -353,18 +353,18 @@
353
  {
354
  $img = 'yes.png';
355
  $color = '#458045';
356
- $text = __('Success');
357
  if( $success == false ) // Failed takes precedence over warning
358
  {
359
  $img = 'no.png';
360
  $color = '#CC0000';
361
- $text = __('Failed');
362
  }
363
  else if( $warning )
364
  {
365
  $img = '../../../wp-includes/images/smilies/icon_exclaim.gif';
366
  $color = '#D98500';
367
- $text = __('Warning');
368
  }
369
  ?>
370
  <img src="<?php echo admin_url(); ?>/images/<?php echo $img; ?>" style="vertical-align:text-top;" />
@@ -384,24 +384,24 @@
384
  }
385
  ?>
386
 
387
- <h2><?php echo __('Blubrry PowerPress Diagnostics'); ?></h2>
388
  <p>
389
- <?php echo __('The Diagnostics page checks to see if your server is configured to support all of the available features in Blubrry PowerPress.'); ?>
390
  </p>
391
 
392
  <?php
393
  if( !empty($powerpress_diag_message) )
394
  {
395
  ?>
396
- <h3 style="margin-bottom: 2px;"><?php echo __('Diagnostics Email Message'); ?></h3>
397
  <div style="border: 2px inset #000000; padding: 10px; margin-right: 20px; font-size: 85%;">
398
  <?php echo $powerpress_diag_message; ?>
399
  </div>
400
  <?php } ?>
401
 
402
- <h3 style="margin-bottom: 0;"><?php echo __('Detecting Media Information'); ?></h3>
403
  <p style="margin: 0;">
404
- <?php echo __('The following test checks to see if your web server can make connections with other web servers to obtain file size and media duration information. The test checks to see if either the PHP cURL library is installed or the php.ini setting \'allow_url_fopen\' enabled.'); ?>
405
  </p>
406
  <table class="form-table">
407
  <tr valign="top">
@@ -413,16 +413,16 @@
413
  <?php if( $powerpress_diags['detecting_media']['message2'] ) { ?>
414
  <p><?php echo htmlspecialchars($powerpress_diags['detecting_media']['message2']); ?></p><?php } ?>
415
  <?php if( $powerpress_diags['detecting_media']['success'] ) { ?>
416
- <p><?php echo __('If you are still having problems detecting media information, check with your web hosting provider if there is a firewall blocking your server.'); ?></p>
417
  <?php } else { ?>
418
- <p><?php echo __('Contact your web hosting provider with the information above.'); ?></p>
419
  <?php } ?>
420
  </td>
421
  </tr>
422
  </table>
423
 
424
- <h3 style="margin-bottom: 0;"><?php echo __('Pinging iTunes'); ?></h3>
425
- <p style="margin: 0;"><?php echo __('The following test checks to see that your web server can make connections with Apple\'s secure ping server.'); ?></p>
426
  <table class="form-table">
427
  <tr valign="top">
428
  <th scope="row">
@@ -431,14 +431,14 @@
431
  <td>
432
  <p><?php echo htmlspecialchars($powerpress_diags['pinging_itunes']['message']); ?></p>
433
  <?php if( $powerpress_diags['pinging_itunes']['success'] == false ) { ?>
434
- <p><?php echo __('Contact your web hosting provider with the information above.'); ?></p>
435
  <?php } ?>
436
  </td>
437
  </tr>
438
  </table>
439
 
440
- <h3 style="margin-bottom: 0;"><?php echo __("Uploading Artwork"); ?></h3>
441
- <p style="margin: 0;"><?php echo __('The following test checks to see that you can upload and store files on your web server.'); ?></p>
442
  <table class="form-table">
443
  <tr valign="top">
444
  <th scope="row">
@@ -450,8 +450,8 @@
450
  </tr>
451
  </table>
452
 
453
- <h3 style="margin-bottom: 0;"><?php echo __('System Information'); ?></h3>
454
- <p style="margin: 0;"><?php echo __('The following test checks your version of PHP, memory usage and temporary directory access.'); ?></p>
455
  <table class="form-table">
456
  <tr valign="top">
457
  <th scope="row">
@@ -462,7 +462,7 @@
462
  <p><?php echo htmlspecialchars($powerpress_diags['system_info']['message2']); ?></p>
463
  <p><?php echo htmlspecialchars($powerpress_diags['system_info']['message3']); ?></p>
464
  <?php if( $powerpress_diags['system_info']['warning'] ) { ?>
465
- <p><?php echo __('Contact your web hosting provider to inquire how to increase the PHP memory limit on your web server.'); ?></p>
466
  <?php } ?>
467
  </td>
468
  </tr>
@@ -476,12 +476,12 @@
476
  wp_nonce_field('powerpress-diagnostics');
477
  ?>
478
 
479
- <h3 style="margin-bottom: 0;"><?php echo __('Email Results'); ?></h3>
480
- <p style="margin: 0;"><?php echo __('Send the results above to the specified Email address.'); ?></p>
481
  <table class="form-table">
482
  <tr valign="top">
483
  <th scope="row">
484
- <?php echo __('Email'); ?>
485
  </th>
486
  <td>
487
  <div style="margin-top: 5px;">
@@ -492,7 +492,7 @@
492
  <input type="checkbox" name="CC" value="1" style="vertical-align: text-top;" checked /> CC: <?php $user_info = wp_get_current_user(); echo "&quot;{$user_info->user_nicename}&quot; &lt;{$user_info->user_email}&gt;"; ?>
493
  </div>
494
  <div>