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>
495
- <input type="checkbox" name="ap" value="1" style="vertical-align: text-top;" checked /> Include list of active plugins in diagnostics results.
496
  </div>
497
  </td>
498
  </tr>
20
 
21
  if( $powerpress_diags['detecting_media']['curl'] )
22
  {
23
+ $powerpress_diags['detecting_media']['message'] = __('Your web server supports the PHP cURL library.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
51
  }
52
 
53
  // Second, see if we can ping itunes, OpenSSL is required
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
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.', 'powerpress');
90
  }
91
 
92
  // Third, see if the uploads/powerpress folder is writable
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.', 'powerpress');
109
  }
110
  else if( $UploadArray['error'] === false )
111
  {
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?', 'powerpress'), 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'), $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.', 'powerpress');
129
  }
130
  }
131
  }
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.', 'powerpress');
138
  }
139
 
140
  // Fourth, see if we have enough memory and we're running an appropriate version of PHP
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'), $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'), $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'), $powerpress_diags['system_info']['php_version'] );
175
  }
176
 
177
  $used = 0;
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.', 'powerpress');
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
  $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.', 'powerpress'), $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.', 'powerpress'), $percent, $used, $total);
200
  }
201
  else
202
  {
203
+ $powerpress_diags['system_info']['message2'] = sprintf(__('Your scripts have a total of %dM.', 'powerpress'), $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') .' '. $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.', 'powerpress'), 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:', 'powerpress') .' '. __('No temporary directory available.', 'powerpress');
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'), $powerpress_diags['system_info']['temp_directory']);
222
  }
223
  else
224
  {
225
  $powerpress_diags['system_info']['success'] = false;
226
+ $powerpress_diags['system_info']['message3'] = __('Error:', 'powerpress') .' '. sprintf(__('Temporary directory %s is not writable.', 'powerpress'), $powerpress_diags['system_info']['temp_directory']);
227
  }
228
 
229
  if( isset($_GET['Email']) && strlen($_GET['Email']) > 4 )
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.', 'powerpress'), $email) );
235
  }
236
  }
237
 
241
  $SettingsGeneral = get_option('powerpress_general');
242
 
243
  // First we need some basic information about the blog...
244
+ $message = __('Blog Title:', 'powerpress') .' '. get_bloginfo('name') . "<br />\n";
245
+ $message .= __('Blog URL:', 'powerpress') .' '. get_bloginfo('home') . "<br />\n";
246
+ $message .= __('WordPress Version:', 'powerpress') .' '. $wp_version . "<br />\n";
247
  if( !empty($wpmu_version) )
248
+ $message .= __('WordPress MU Version:', 'powerpress') .' '. $wpmu_version . "<br />\n";
249
+ $message .= __('System:', 'powerpress') .' '. $_SERVER['SERVER_SOFTWARE'] . "<br />\n";
250
+ $message .= __('Safe node:', 'powerpress') .' '. ( ini_get('safe_mode')?'true':'false') ."<br />\n";
251
+ $message .= __('Open basedir:', 'powerpress') .' '. ini_get('open_basedir') ."<br />\n";
252
 
253
  // Crutial PowerPress Settings
254
  $message .= "<br />\n";
255
+ $message .= '<strong>'. __('Important PowerPress Settings', 'powerpress') ."</strong><br />\n";
256
+ $message .= " &nbsp; \t &nbsp; ". __('PowerPress version:', 'powerpress') .' '. POWERPRESS_VERSION ."<br />\n";
257
+ $message .= " &nbsp; \t &nbsp; ". __('advanced mode:', 'powerpress') .' '. ($SettingsGeneral['advanced_mode']?'true':'false') ."<br />\n";
258
+ $message .= " &nbsp; \t &nbsp; ". __('episode box mode:', 'powerpress') .' '. ($SettingsGeneral['episode_box_mode']==0?__('normal', 'powerpress'): ($SettingsGeneral['episode_box_mode']==1?__('simple', 'powerpress'):__('advanced', 'powerpress')) ) ."<br />\n";
259
+ $message .= " &nbsp; \t &nbsp; ". __('Podcasting capability:', 'powerpress') .' '. ($SettingsGeneral['use_caps']==0?__('Disabled (default)', 'powerpress'): __('Enabled', 'powerpress')) ."<br />\n";
260
+ $message .= " &nbsp; \t &nbsp; ". __('Feed capability:', 'powerpress') .' '. ($SettingsGeneral['feed_caps']==0?__('Disabled (default)', 'powerpress'): __('Enabled', 'powerpress')) ."<br />\n";
261
+ $message .= " &nbsp; \t &nbsp; ". __('Category Podcasting:', 'powerpress') .' '. ($SettingsGeneral['cat_casting']==0?__('Disabled (default)', 'powerpress'): __('Enabled', 'powerpress')) ."<br />\n";
262
+ $message .= " &nbsp; \t &nbsp; ". __('Podcast Channels:', 'powerpress') .' '. ($SettingsGeneral['channels']==0?__('Disabled (default)', 'powerpress'): __('Enabled', 'powerpress')) ."<br />\n";
263
+ $message .= " &nbsp; \t &nbsp; ". __('Additional Player Options:', 'powerpress') .' '. ($SettingsGeneral['player_options']==0?__('Disabled (default)', 'powerpress'): __('Enabled', 'powerpress')) ."<br />\n";
264
 
265
  // Detecting Media Information
266
  $message .= "<br />\n";
267
+ $message .= '<strong>'.__('Detecting Media Information', 'powerpress') ."</strong><br />\n";
268
+ $message .= " &nbsp; \t &nbsp; ". __('success:', 'powerpress') .' '. ($powerpress_diags['detecting_media']['success']?'true':'false') ."<br />\n";
269
+ $message .= " &nbsp; \t &nbsp; ". __('warning:', 'powerpress') .' '. ($powerpress_diags['detecting_media']['warning']?'true':'false') ."<br />\n";
270
+ $message .= " &nbsp; \t &nbsp; ". __('allow_url_fopen:', 'powerpress') .' '. ($powerpress_diags['detecting_media']['allow_url_fopen']?'true':'false') ."<br />\n";
271
+ $message .= " &nbsp; \t &nbsp; ". __('curl:', 'powerpress') .' '. ($powerpress_diags['detecting_media']['curl']?'true':'false') ."<br />\n";
272
+ $message .= " &nbsp; \t &nbsp; ". __('message:', 'powerpress') .' '. $powerpress_diags['detecting_media']['message'] ."<br />\n";
273
+ $message .= " &nbsp; \t &nbsp; ". __('message 2:', 'powerpress') .' '. $powerpress_diags['detecting_media']['message2'] ."<br />\n";
274
 
275
  // Pinging iTunes
276
  $message .= "<br />\n";
277
+ $message .= '<strong>'.__('Pinging iTunes', 'powerpress') ."</strong><br />\n";
278
+ $message .= " &nbsp; \t &nbsp; ". __('success:', 'powerpress') .' '. ($powerpress_diags['pinging_itunes']['success']?'true':'false') ."<br />\n";
279
+ $message .= " &nbsp; \t &nbsp; ". __('curl_ssl:', 'powerpress') .' '. ($powerpress_diags['pinging_itunes']['curl_ssl']?'true':'false') ."<br />\n";
280
+ $message .= " &nbsp; \t &nbsp; ". __('openssl:', 'powerpress') .' '. ($powerpress_diags['pinging_itunes']['openssl']?'true':'false') ."<br />\n";
281
+ $message .= " &nbsp; \t &nbsp; ". __('message:', 'powerpress') .' '. $powerpress_diags['pinging_itunes']['message'] ."<br />\n";
282
 
283
  // Uploading Artwork
284
  $message .= "<br />\n";
285
+ $message .= '<strong>'.__('Uploading Artwork', 'powerpress') ."</strong><br />\n";
286
+ $message .= " &nbsp; \t &nbsp; ". __('success:', 'powerpress') .' '. ($powerpress_diags['uploading_artwork']['success']?'true':'false') ."<br />\n";
287
+ $message .= " &nbsp; \t &nbsp; ". __('file_uploads:', 'powerpress') .' '. ($powerpress_diags['uploading_artwork']['file_uploads']?'true':'false') ."<br />\n";
288
+ $message .= " &nbsp; \t &nbsp; ". __('writable:', 'powerpress') .' '. ($powerpress_diags['uploading_artwork']['writable']?'true':'false') ."<br />\n";
289
+ $message .= " &nbsp; \t &nbsp; ". __('upload_path:', 'powerpress') .' '. $powerpress_diags['uploading_artwork']['upload_path'] ."<br />\n";
290
+ $message .= " &nbsp; \t &nbsp; ". __('message:', 'powerpress') .' '. $powerpress_diags['uploading_artwork']['message'] ."<br />\n";
291
 
292
  // System Information
293
  $message .= "<br />\n";
294
+ $message .= '<strong>'.__('System Information', 'powerpress') ."</strong><br />\n";
295
+ $message .= " &nbsp; \t &nbsp; ". __('success:', 'powerpress') .' '. ($powerpress_diags['system_info']['success']?'true':'false') ."<br />\n";
296
+ $message .= " &nbsp; \t &nbsp; ". __('warning:', 'powerpress') .' '. ($powerpress_diags['system_info']['warning']?'yes':'no') ."<br />\n";
297
+ $message .= " &nbsp; \t &nbsp; ". __('php_version:', 'powerpress') .' '. $powerpress_diags['system_info']['php_version'] ."<br />\n";
298
+ $message .= " &nbsp; \t &nbsp; ". __('memory_limit:', 'powerpress') .' '. $powerpress_diags['system_info']['memory_limit'] ."M\n";
299
+ $message .= " &nbsp; \t &nbsp; ". __('memory_used:', 'powerpress') .' '. sprintf('%.01fM',$powerpress_diags['system_info']['memory_used']) ."<br />\n";
300
+ $message .= " &nbsp; \t &nbsp; ". __('temp directory:', 'powerpress') .' '. $powerpress_diags['system_info']['temp_directory'] ."<br />\n";
301
+ $message .= " &nbsp; \t &nbsp; ". __('message:', 'powerpress') .' '. $powerpress_diags['system_info']['message'] ."<br />\n";
302
+ $message .= " &nbsp; \t &nbsp; ". __('message 2:', 'powerpress') .' '. $powerpress_diags['system_info']['message2'] ."<br />\n";
303
+ $message .= " &nbsp; \t &nbsp; ". __('message 3:', 'powerpress') .' '. $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', 'powerpress') ."</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:', 'powerpress') .' '. $plugin_data['Title']. "<br />\n";
315
+ $message .= " &nbsp; \t &nbsp; " . __('Relative Path:', 'powerpress') .' '. $plugin_path. "<br />\n";
316
+ $message .= " &nbsp; \t &nbsp; " . __('Version:', 'powerpress') .' '. $plugin_data['Version']. "<br />\n";
317
+ $message .= " &nbsp; \t &nbsp; " . __('Web Site:', 'powerpress') .' '. $plugin_data['PluginURI']. "<br />\n";
318
+ //$message .= " &nbsp; \t &nbsp; " . __('Description:', 'powerpress') .' '. $plugin_data['Description']. "<br />\n";
319
+ //$message .= " &nbsp; \t &nbsp; " . __('Author Name:', 'powerpress') .' '. $plugin_data['Author']. "<br />\n";
320
+ //$message .= " &nbsp; \t &nbsp; " . __('Author Web Site:', 'powerpress') .' '. $plugin_data['AuthorURI']. "<br />\n";
321
  //print_r($plugin_data);
322
  $message .= "<br />\n";
323
  }
324
  }
325
+ //$message .= " &nbsp; \t &nbsp; ". __('success:', 'powerpress') .' '. ($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
  $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', 'powerpress'), get_bloginfo('name')), $message, $headers);
339
  $powerpress_diag_message = $message;
340
  }
341
 
353
  {
354
  $img = 'yes.png';
355
  $color = '#458045';
356
+ $text = __('Success', 'powerpress');
357
  if( $success == false ) // Failed takes precedence over warning
358
  {
359
  $img = 'no.png';
360
  $color = '#CC0000';
361
+ $text = __('Failed', 'powerpress');
362
  }
363
  else if( $warning )
364
  {
365
  $img = '../../../wp-includes/images/smilies/icon_exclaim.gif';
366
  $color = '#D98500';
367
+ $text = __('Warning', 'powerpress');
368
  }
369
  ?>
370
  <img src="<?php echo admin_url(); ?>/images/<?php echo $img; ?>" style="vertical-align:text-top;" />
384
  }
385
  ?>
386
 
387
+ <h2><?php echo __('Blubrry PowerPress Diagnostics', 'powerpress'); ?></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.', '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', 'powerpress'); ?></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', 'powerpress'); ?></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.', 'powerpress'); ?>
405
  </p>
406
  <table class="form-table">
407
  <tr valign="top">
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.', 'powerpress'); ?></p>
417
  <?php } else { ?>
418
+ <p><?php echo __('Contact your web hosting provider with the information above.', 'powerpress'); ?></p>
419
  <?php } ?>
420
  </td>
421
  </tr>
422
  </table>
423
 
424
+ <h3 style="margin-bottom: 0;"><?php echo __('Pinging iTunes', 'powerpress'); ?></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.', 'powerpress'); ?></p>
426
  <table class="form-table">
427
  <tr valign="top">
428
  <th scope="row">
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.', 'powerpress'); ?></p>
435
  <?php } ?>
436
  </td>
437
  </tr>
438
  </table>
439
 
440
+ <h3 style="margin-bottom: 0;"><?php echo __('Uploading Artwork', 'powerpress'); ?></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.', 'powerpress'); ?></p>
442
  <table class="form-table">
443
  <tr valign="top">
444
  <th scope="row">
450
  </tr>
451
  </table>
452
 
453
+ <h3 style="margin-bottom: 0;"><?php echo __('System Information', 'powerpress'); ?></h3>
454
+ <p style="margin: 0;"><?php echo __('The following test checks your version of PHP, memory usage and temporary directory access.', 'powerpress'); ?></p>
455
  <table class="form-table">
456
  <tr valign="top">
457
  <th scope="row">
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.', 'powerpress'); ?></p>
466
  <?php } ?>
467
  </td>
468
  </tr>
476
  wp_nonce_field('powerpress-diagnostics');
477
  ?>
478
 
479
+ <h3 style="margin-bottom: 0;"><?php echo __('Email Results', 'powerpress'); ?></h3>
480
+ <p style="margin: 0;"><?php echo __('Send the results above to the specified Email address.', 'powerpress'); ?></p>
481
  <table class="form-table">
482
  <tr valign="top">
483
  <th scope="row">
484
+ <?php echo __('Email', 'powerpress'); ?>
485
  </th>
486
  <td>
487
  <div style="margin-top: 5px;">
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>
495
+ <input type="checkbox" name="ap" value="1" style="vertical-align: text-top;" checked /> <?php echo __('Include list of active plugins in diagnostics results.', 'powerpress') ?>
496
  </div>
497
  </td>
498
  </tr>
powerpressadmin-editfeed.php CHANGED
@@ -7,102 +7,102 @@ function powerpress_languages()
7
  {
8
  // List copied from PodPress:
9
  $langs = array();
10
- $langs['af'] = 'Afrikaans';
11
- $langs['sq'] = 'Albanian';
12
- $langs['eu'] = 'Basque';
13
- $langs['be'] = 'Belarusian';
14
- $langs['bg'] = 'Bulgarian';
15
- $langs['ca'] = 'Catalan';
16
- $langs['zh-cn'] = 'Chinese (Simplified)';
17
- $langs['zh-tw'] = 'Chinese (Traditional)';
18
- $langs['hr'] = 'Croatian';
19
- $langs['cs'] = 'Czech';
20
- $langs['da'] = 'Danish';
21
- $langs['nl'] = 'Dutch';
22
- $langs['nl-be'] = 'Dutch (Belgium)';
23
- $langs['nl-nl'] = 'Dutch (Netherlands)';
24
- $langs['en'] = 'English';
25
- $langs['en-au'] = 'English (Australia)';
26
- $langs['en-bz'] = 'English (Belize)';
27
- $langs['en-ca'] = 'English (Canada)';
28
- $langs['en-ie'] = 'English (Ireland)';
29
- $langs['en-jm'] = 'English (Jamaica)';
30
- $langs['en-nz'] = 'English (New Zealand)';
31
- $langs['en-ph'] = 'English (Phillipines)';
32
- $langs['en-za'] = 'English (South Africa)';
33
- $langs['en-tt'] = 'English (Trinidad)';
34
- $langs['en-gb'] = 'English (United Kingdom)';
35
- $langs['en-us'] = 'English (United States)';
36
- $langs['en-zw'] = 'English (Zimbabwe)';
37
- $langs['et'] = 'Estonian';
38
- $langs['fo'] = 'Faeroese';
39
- $langs['fi'] = 'Finnish';
40
- $langs['fr'] = 'French';
41
- $langs['fr-be'] = 'French (Belgium)';
42
- $langs['fr-ca'] = 'French (Canada)';
43
- $langs['fr-fr'] = 'French (France)';
44
- $langs['fr-lu'] = 'French (Luxembourg)';
45
- $langs['fr-mc'] = 'French (Monaco)';
46
- $langs['fr-ch'] = 'French (Switzerland)';
47
- $langs['gl'] = 'Galician';
48
- $langs['gd'] = 'Gaelic';
49
- $langs['de'] = 'German';
50
- $langs['de-at'] = 'German (Austria)';
51
- $langs['de-de'] = 'German (Germany)';
52
- $langs['de-li'] = 'German (Liechtenstein)';
53
- $langs['de-lu'] = 'German (Luxembourg)';
54
- $langs['de-ch'] = 'German (Switzerland)';
55
- $langs['el'] = 'Greek';
56
- $langs['haw'] = 'Hawaiian';
57
- $langs['hu'] = 'Hungarian';
58
- $langs['is'] = 'Icelandic';
59
- $langs['in'] = 'Indonesian';
60
- $langs['ga'] = 'Irish';
61
- $langs['it'] = 'Italian';
62
- $langs['it-it'] = 'Italian (Italy)';
63
- $langs['it-ch'] = 'Italian (Switzerland)';
64
- $langs['ja'] = 'Japanese';
65
- $langs['ko'] = 'Korean';
66
- $langs['mk'] = 'Macedonian';
67
- $langs['no'] = 'Norwegian';
68
- $langs['pl'] = 'Polish';
69
- $langs['pt'] = 'Portuguese';
70
- $langs['pt-br'] = 'Portuguese (Brazil)';
71
- $langs['pt-pt'] = 'Portuguese (Portugal)';
72
- $langs['ro'] = 'Romanian';
73
- $langs['ro-mo'] = 'Romanian (Moldova)';
74
- $langs['ro-ro'] = 'Romanian (Romania)';
75
- $langs['ru'] = 'Russian';
76
- $langs['ru-mo'] = 'Russian (Moldova)';
77
- $langs['ru-ru'] = 'Russian (Russia)';
78
- $langs['sr'] = 'Serbian';
79
- $langs['sk'] = 'Slovak';
80
- $langs['sl'] = 'Slovenian';
81
- $langs['es'] = 'Spanish';
82
- $langs['es-ar'] = 'Spanish (Argentina)';
83
- $langs['es-bo'] = 'Spanish (Bolivia)';
84
- $langs['es-cl'] = 'Spanish (Chile)';
85
- $langs['es-co'] = 'Spanish (Colombia)';
86
- $langs['es-cr'] = 'Spanish (Costa Rica)';
87
- $langs['es-do'] = 'Spanish (Dominican Republic)';
88
- $langs['es-ec'] = 'Spanish (Ecuador)';
89
- $langs['es-sv'] = 'Spanish (El Salvador)';
90
- $langs['es-gt'] = 'Spanish (Guatemala)';
91
- $langs['es-hn'] = 'Spanish (Honduras)';
92
- $langs['es-mx'] = 'Spanish (Mexico)';
93
- $langs['es-ni'] = 'Spanish (Nicaragua)';
94
- $langs['es-pa'] = 'Spanish (Panama)';
95
- $langs['es-py'] = 'Spanish (Paraguay)';
96
- $langs['es-pe'] = 'Spanish (Peru)';
97
- $langs['es-pr'] = 'Spanish (Puerto Rico)';
98
- $langs['es-es'] = 'Spanish (Spain)';
99
- $langs['es-uy'] = 'Spanish (Uruguay)';
100
- $langs['es-ve'] = 'Spanish (Venezuela)';
101
- $langs['sv'] = 'Swedish';
102
- $langs['sv-fi'] = 'Swedish (Finland)';
103
- $langs['sv-se'] = 'Swedish (Sweden)';
104
- $langs['tr'] = 'Turkish';
105
- $langs['uk'] = 'Ukranian';
106
  return $langs;
107
  }
108
 
@@ -164,7 +164,7 @@ function powerpress_admin_editfeed($feed_slug=false, $cat_ID =false)
164
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed_custom');
165
 
166
  if( !isset($General['custom_feeds'][$feed_slug]) )
167
- $General['custom_feeds'][$feed_slug] = 'Podcast (default)';
168
  }
169
  else if( $cat_ID )
170
  {
@@ -177,7 +177,7 @@ function powerpress_admin_editfeed($feed_slug=false, $cat_ID =false)
177
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
178
  }
179
 
180
- $FeedTitle = __('Feed Settings');
181
  if( $feed_slug )
182
  {
183
  $FeedTitle = sprintf( 'Edit Podcast Channel: %s', $General['custom_feeds'][$feed_slug]);
@@ -186,7 +186,7 @@ function powerpress_admin_editfeed($feed_slug=false, $cat_ID =false)
186
  else if( $cat_ID )
187
  {
188
  $category = get_category_to_edit($cat_ID);
189
- $FeedTitle = sprintf( 'Edit Category Feed: %s', $category->name);
190
  echo sprintf('<input type="hidden" name="cat" value="%s" />', $cat_ID);
191
  }
192
 
@@ -200,11 +200,14 @@ function powerpress_admin_editfeed($feed_slug=false, $cat_ID =false)
200
  ?>
201
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
202
  <ul class="powerpress_settings_tabs">
203
- <li><a href="#feed_tab_feed"><span>Feed Settings</span></a></li>
204
- <li><a href="#feed_tab_itunes"><span>iTunes Settings</span></a></li>
205
  <?php if( $feed_slug ) { ?>
206
- <li><a href="#feed_tab_appearance"><span>Appearance</span></a></li>
207
- <li><a href="#feed_tab_other"><span>Other Settings</span></a></li>
 
 
 
208
  <?php } ?>
209
  </ul>
210
 
@@ -241,6 +244,14 @@ function powerpress_admin_editfeed($feed_slug=false, $cat_ID =false)
241
  </div>
242
  <?php } ?>
243
 
 
 
 
 
 
 
 
 
244
  </div>
245
  <div class="clear"></div>
246
  <?php
@@ -262,7 +273,7 @@ function powerpressadmin_edit_podcast_channel($FeedSettings, $General)
262
  ?>
263
  <input type="hidden" name="action" value="powerpress-save-customfeed" />
264
  <p style="margin-bottom: 0;">
265
- <?php _e('Configure your custom podcast feed.'); ?>
266
  </p>
267
  <?php
268
  }
@@ -272,7 +283,7 @@ function powerpressadmin_edit_category_feed($FeedSettings, $General)
272
  ?>
273
  <input type="hidden" name="action" value="powerpress-save-categoryfeedsettings" />
274
  <p style="margin-bottom: 0;">
275
- <?php _e('Configure your category feed to support podcasting.'); ?>
276
  </p>
277
  <?php
278
  }
@@ -291,27 +302,27 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
291
  <tr valign="top">
292
  <th scope="row">
293
 
294
- <?php echo __('Enhance Feeds'); ?></th>
295
  <td>
296
  <ul>
297
- <li><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> Enhance All Feeds</label> (Recommended)</li>
298
  <li>
299
  <ul>
300
- <li>Adds podcasting support to all feeds</li>
301
- <li>Allows for Category Podcasting (Visitors may subscribe to your categories as a podcast)</li>
302
- <li>Allows for Tag/Keyword Casting (Visitors may subscribe to your tags as a podcast)</li>
303
  </ul>
304
  </li>
305
- <li><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> Enhance Main Feed Only</label></li>
306
  <li>
307
  <ul>
308
- <li>Adds podcasting support to your main feed only</li>
309
  </ul>
310
  </li>
311
- <li><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> Do Not Enhance Feeds</label></li>
312
  <li>
313
  <ul>
314
- <li>Feed Settings below will only apply to your podcast channel feeds</li>
315
  </ul>
316
  </li>
317
  </ul>
@@ -321,9 +332,9 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
321
  <tr valign="top">
322
  <th scope="row">
323
 
324
- <?php _e("Main Site Feed"); ?></th>
325
  <td>
326
- <p style="margin-top: 5px; margin-bottom: 0;">Main RSS2 Feed: <a href="<?php echo get_bloginfo('rss2_url'); ?>" title="Main RSS 2 Feed" target="_blank"><?php echo get_bloginfo('rss2_url'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_bloginfo('rss2_url')); ?>" title="Validate Feed" target="_blank">validate</a></p>
327
  </td>
328
  </tr>
329
  <?php
@@ -332,12 +343,12 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
332
  <tr valign="top">
333
  <th scope="row">
334
 
335
- <?php _e("Podcast Channel Feeds"); ?></th>
336
  <td>
337
  <?php
338
 
339
  //$General = get_option('powerpress_general');
340
- $Feeds = array('podcast'=>'Special Podcast only Feed');
341
  if( isset($General['custom_feeds']['podcast']) )
342
  $Feeds = $General['custom_feeds'];
343
  else if( isset($General['custom_feeds'])&& is_array($General['custom_feeds']) )
@@ -348,9 +359,9 @@ function powerpressadmin_edit_feed_general($FeedSettings, $General)
348
  $edit_link = admin_url( 'admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-editfeed&amp;feed_slug=') . $feed_slug;
349
  ?>
350
  <p><?php echo $feed_title; ?>: <a href="<?php echo get_feed_link($feed_slug); ?>" title="<?php echo $feed_title; ?>" target="_blank"><?php echo get_feed_link($feed_slug); ?></a>
351
- | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link($feed_slug)); ?>" title="Validate Feed" target="_blank">validate</a>
352
  <?php if( false && $feed_slug != 'podcast' ) { ?>
353
- | <a href="<?php echo $edit_link; ?>" title="Edit Podcast Channel">edit</a>
354
  <?php } ?>
355
  </p>
356
  <?php } ?>
@@ -373,17 +384,17 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $cat_ID = f
373
  if( $cat_ID || $feed_slug )
374
  {
375
  ?>
376
- <h3>Feed Information</h3>
377
  <table class="form-table">
378
  <tr valign="top">
379
  <th scope="row">
380
- <?php _e("Feed URL"); ?>
381
  </th>
382
  <td>
383
  <?php if( $cat_ID ) { ?>
384
- <p style="margin-top: 0;"><a href="<?php echo get_category_feed_link($cat_ID); ?>" target="_blank"><?php echo get_category_feed_link($cat_ID); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode( str_replace('&amp;', '&', get_category_feed_link($cat_ID))); ?>" target="_blank"><?php _e('validate'); ?></a></p>
385
  <?php } else { ?>
386
- <p style="margin-top: 0;"><a href="<?php echo get_feed_link($feed_slug); ?>" target="_blank"><?php echo get_feed_link($feed_slug); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link($feed_slug)); ?>" target="_blank"><?php _e('validate'); ?></a></p>
387
  <?php } ?>
388
  </td>
389
  </tr>
@@ -391,7 +402,7 @@ function powerpressadmin_edit_feed_settings($FeedSettings, $General, $cat_ID = f
391
  <?php
392
  }
393
  ?>
394
- <h3>Feed Settings</h3>
395
  <table class="form-table">
396
 
397
  <?php
@@ -400,52 +411,52 @@ if( $feed_slug || $cat_ID )
400
  ?>
401
  <tr valign="top">
402
  <th scope="row">
403
- <?php _e("Feed Title"); ?>
404
  </th>
405
  <td>
406
  <input type="text" name="Feed[title]"style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
407
  <?php if( $cat_ID ) { ?>
408
- (leave blank to use default category title)
409
  <?php } else { ?>
410
- (leave blank to use blog title)
411
  <?php } ?>
412
  <?php if( $cat_ID ) {
413
  $category = get_category_to_edit($cat_ID);
414
  $CategoryName = htmlspecialchars($category->name);
415
  ?>
416
- <p><?php echo __('Default Category title:') .' '. get_bloginfo_rss('name') . ' &#187; '. $CategoryName; ?></p>
417
  <?php } else { ?>
418
- <p><?php echo __('Blog title:') .' '. get_bloginfo_rss('name'); ?></p>
419
  <?php } ?>
420
  </td>
421
  </tr>
422
  <tr valign="top">
423
  <th scope="row">
424
- <?php _e("Feed Description"); ?>
425
  </th>
426
  <td>
427
  <input type="text" name="Feed[description]"style="width: 60%;" value="<?php echo $FeedSettings['description']; ?>" maxlength="1000" />
428
  <?php if( $cat_ID ) { ?>
429
- (leave blank to use category description)
430
  <?php } else { ?>
431
- (leave blank to use blog description)
432
  <?php } ?>
433
  </td>
434
  </tr>
435
 
436
  <tr valign="top">
437
  <th scope="row">
438
- <?php _e("Feed Landing Page URL"); ?> <br />
439
  </th>
440
  <td>
441
  <input type="text" name="Feed[url]"style="width: 60%;" value="<?php echo $FeedSettings['url']; ?>" maxlength="250" />
442
  <?php if( $cat_ID ) { ?>
443
- (leave blank to use category page)
444
  <?php } else { ?>
445
- (leave blank to use home page)
446
  <?php } ?>
447
  <?php if( $cat_ID ) { ?>
448
- <p>Category page URL: <?php echo get_category_link($cat_ID); ?></p>
449
  <?php } else { ?>
450
  <p>e.g. <?php echo get_bloginfo('home'); ?>/custom-page/</p>
451
  <?php } ?>
@@ -460,16 +471,16 @@ if( $feed_slug || $cat_ID )
460
  ?>
461
  <tr valign="top">
462
  <th scope="row">
463
- <?php _e("iTunes URL"); ?>
464
  </th>
465
  <td>
466
  <input type="text" style="width: 80%;" name="Feed[itunes_url]" value="<?php echo $FeedSettings['itunes_url']; ?>" maxlength="250" />
467
- <p>Click the following link to <a href="https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast" target="_blank" title="Publish a Podcast on iTunes">Publish a Podcast on iTunes</a>.
468
- Once your podcast is listed on iTunes, enter your one-click subscription URL above.
469
  </p>
470
  <p>e.g. http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=000000000</p>
471
 
472
- <p><input name="TestiTunesPing" type="checkbox" value="1" /> Test Update iTunes Listing (recommended)</p>
473
  <?php if( $FeedSettings['itunes_url'] ) {
474
 
475
  $ping_url = str_replace(
@@ -481,7 +492,7 @@ Once your podcast is listed on iTunes, enter your one-click subscription URL abo
481
  'http://www.itunes.com/podcast?id='),
482
  'https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?id=', $FeedSettings['itunes_url']);
483
  ?>
484
- <p>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="Update iTunes Listing in New Window">Update iTunes Listing in New Window</a></p>
485
 
486
  <?php
487
  if( preg_match('/id=(\d+)/', $FeedSettings['itunes_url'], $matches) )
@@ -493,27 +504,27 @@ Once your podcast is listed on iTunes, enter your one-click subscription URL abo
493
  {
494
  $PingLog = $Logging['itunes_ping_'. $FEEDID ];
495
  ?>
496
- <h3>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>
497
  <div style="font-size: 85%; margin-left: 20px;">
498
  <p>
499
- <?php echo sprintf( __('iTunes notified on %s at %s'), date(get_option('date_format'), $PingLog['timestamp']), date(get_option('time_format'), $PingLog['timestamp'])); ?>
500
  <?php
501
  if( $PingLog['post_id'] )
502
  {
503
  $post = get_post($PingLog['post_id']);
504
  if( $post )
505
- echo __(' for post: ') . htmlspecialchars($post->post_title);
506
  }
507
  ?>
508
  </p>
509
  <?php if( $PingLog['success'] ) { ?>
510
- <p>Feed pulled by iTunes: <?php echo $PingLog['feed_url']; ?>
511
  </p>
512
  <?php
513
 
514
  ?>
515
  <?php } else { ?>
516
- <p>Error: <?php echo htmlspecialchars($PingLog['content']); ?></p>
517
  <?php } ?>
518
  </div>
519
  <?php
@@ -533,11 +544,11 @@ Once your podcast is listed on iTunes, enter your one-click subscription URL abo
533
 
534
  <tr valign="top">
535
  <th scope="row">
536
- <?php _e("FeedBurner Feed URL"); ?>
537
  </th>
538
  <td>
539
- <input type="text" name="Feed[feed_redirect_url]"style="width: 60%;" value="<?php echo $FeedSettings['feed_redirect_url']; ?>" maxlength="100" /> (leave blank to use current feed)
540
- <p>Use this option to redirect this feed to a hosted feed service such as <a href="http://www.feedburner.com/" target="_blank">FeedBurner</a>.</p>
541
  <?php
542
  if( $cat_ID )
543
  $link = get_category_feed_link($cat_ID);
@@ -549,7 +560,7 @@ if( strstr($link, '?') )
549
  else
550
  $link .= "?redirect=no";
551
  ?>
552
- <p>Bypass Redirect URL: <a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a></p>
553
  </td>
554
  </tr>
555
 
@@ -557,31 +568,31 @@ else
557
 
558
  <tr valign="top">
559
  <th scope="row">
560
- <?php _e("Show the most recent"); ?>
561
  </th>
562
  <td>
563
- <input type="text" name="Feed[posts_per_rss]"style="width: 50px;" value="<?php echo $FeedSettings['posts_per_rss']; ?>" maxlength="5" /> episodes / posts per feed (leave blank to use blog default: <?php form_option('posts_per_rss'); ?>)
564
  <?php if( !$feed_slug && !$cat_ID ) { ?>
565
- <p style="margin-top: 5px; margin-bottomd: 0;">Note: Setting above applies only to podcast channel feeds</p>
566
  <?php } ?>
567
  </td>
568
  </tr>
569
 
570
  <tr valign="top">
571
  <th scope="row">
572
- <?php _e("RSS2 Image"); ?> <br />
573
  </th>
574
  <td>
575
  <input type="text" id="rss2_image" name="Feed[rss2_image]" style="width: 60%;" value="<?php echo $FeedSettings['rss2_image']; ?>" maxlength="250" />
576
- <a href="#" onclick="javascript: window.open( document.getElementById('rss2_image').value ); return false;">preview</a>
577
 
578
- <p>Place the URL to the RSS image above. e.g. http://mysite.com/images/rss.jpg</p>
579
- <p>RSS image should be at least 88 and at most 144 pixels wide and at least 31 and at most 400 pixels high in either .gif, .jpg and .png format. A square 144 x 144 pixel image is recommended.</p>
580
 
581
  <?php if( $SupportUploads ) { ?>
582
- <p><input name="rss2_image_checkbox" type="checkbox" onchange="powerpress_show_field('rss_image_upload', this.checked)" value="1" /> Upload new image</p>
583
  <div style="display:none" id="rss_image_upload">
584
- <label for="rss2_image">Choose file:</label><input type="file" name="rss2_image_file" />
585
  </div>
586
  <?php } ?>
587
  </td>
@@ -594,13 +605,13 @@ else
594
  <tr valign="top">
595
  <th scope="row">
596
 
597
- <?php _e("Feed Language"); ?></th>
598
  <td>
599
  <select name="Feed[rss_language]" class="bpp_input_med">
600
  <?php
601
  $Languages = powerpress_languages();
602
 
603
- echo '<option value="">Blog Default Language</option>';
604
  while( list($value,$desc) = each($Languages) )
605
  echo "\t<option value=\"$value\"". ($FeedSettings['rss_language']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
606
  ?>
@@ -610,14 +621,14 @@ while( list($value,$desc) = each($Languages) )
610
  if( isset($Languages[ $rss_language ]) )
611
  {
612
  ?>
613
- Blog Default: <?php echo $Languages[ $rss_language ]; ?>
614
  <?php } ?>
615
  </td>
616
  </tr>
617
 
618
  <tr valign="top">
619
  <th scope="row">
620
- <?php _e("Copyright"); ?>
621
  </th>
622
  <td>
623
  <input type="text" name="Feed[copyright]" style="width: 60%;" value="<?php echo $FeedSettings['copyright']; ?>" maxlength="250" />
@@ -631,15 +642,39 @@ if( isset($Languages[ $rss_language ]) )
631
  }
632
 
633
 
634
- function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug)
635
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
636
  ?>
637
 
638
- <h3>Episode Entry Box</h3>
639
  <table class="form-table">
640
  <tr valign="top">
641
  <th scope="row">
642
- <?php _e("Background Color"); ?>
643
  </th>
644
  <td>
645
  <input type="text" id="episode_background_color" name="EpisodeBoxBGColor[<?php echo $feed_slug; ?>]" style="width: 100px; float:left; border: 1px solid #333333; <?php if( !empty($General['episode_box_background_color'][ $feed_slug ]) ) echo 'background-color: '.$General['episode_box_background_color'][ $feed_slug ]; ?>;" value="<?php if( !empty($General['episode_box_background_color'][ $feed_slug ]) ) echo $General['episode_box_background_color'][ $feed_slug ]; ?>" maxlength="10" onblur="jQuery('#episode_background_color').css({'background-color' : this.value });" />
@@ -651,9 +686,9 @@ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug)
651
  <div style="background-color: #EBFFFF;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#EBFFFF'; jQuery('#episode_background_color').css({'background-color' :'#EBFFFF' });"></div>
652
  <div style="background-color: #D9E0EF;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#D9E0EF'; jQuery('#episode_background_color').css({'background-color' :'#D9E0EF' });"></div>
653
  <div style="background-color: #EBE0EB;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#EBE0EB'; jQuery('#episode_background_color').css({'background-color' :'#EBE0EB' });"></div>
654
- &nbsp; (leave blank for default)
655
 
656
- <p class="clear">Use a distinctive background color for this podcast channel's episode box.</p>
657
  </td>
658
  </tr>
659
  </table>
@@ -661,22 +696,22 @@ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug)
661
  <!-- password protected feed option -->
662
 
663
  <?php
664
- if( @$General['premium_caps'] && $feed_slug && $feed_slug != 'podcast' )
665
- {
666
  ?>
667
- <h3>Password Protect Podcast Channel</h3>
668
  <p>
669
- Require visitors to have membership to your blog in order to gain access to this channel's Premium Content.
670
  </p>
671
  <table class="form-table">
672
  <tr valign="top">
673
  <th scope="row">
674
 
675
- <?php _e("Protect Content"); ?></th>
676
  <td>
677
- <p style="margin-top: 5px;"><input type="checkbox" name="ProtectContent" value="1" <?php echo ($FeedSettings['premium']?'checked ':''); ?> onchange="powerpress_toggle_premium_content(this.checked);" /> Require user to be signed-in to access feed.</p>
678
  <?php ?>
679
- <div style="margin-left: 20px; display: <?php echo ($FeedSettings['premium']?'block':'none'); ?>;" id="premium_role">User must have
680
  <select name="Feed[premium]" class="bpp_input_med">
681
  <?php
682
  $caps = powerpress_admin_capabilities();
@@ -688,7 +723,7 @@ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug)
688
  while( list($value,$desc) = each($caps) )
689
  echo "\t<option value=\"$value\"". ($actual_premium_value==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
690
  ?>
691
- </select> capability.</div>
692
  </td>
693
  </tr>
694
  </table>
@@ -701,11 +736,11 @@ function powerpress_toggle_premium_content(enabled)
701
  }
702
  function powerpress_premium_label_append_signin_link()
703
  {
704
- jQuery('#premium_label').val( jQuery('#premium_label').val() + '<a href="<?php echo get_settings('siteurl'); ?>/wp-login.php" title="Sign In">Sign In<\/a>');
705
  }
706
  function powerpress_default_premium_label(event)
707
  {
708
- if( confirm('Use default label, are you sure?') )
709
  {
710
  jQuery('#premium_label_custom').css('display', (this.checked==false?'block':'none') );
711
  jQuery('#premium_label').val('');
@@ -720,27 +755,26 @@ function powerpress_default_premium_label(event)
720
  <table class="form-table">
721
  <tr valign="top">
722
  <th scope="row">
723
- <?php _e("Unauthorized Label"); ?>
724
  </th>
725
  <td>
726
  <p style="margin-top: 5px;"><input type="radio" name="PremiumLabel" value="0" <?php echo ($FeedSettings['premium_label']==''?'checked ':''); ?> onclick="return powerpress_default_premium_label(this)" />
727
- Use default label:
728
  </p>
729
  <p style="margin-left: 20px;">
730
- <?php echo $FeedSettings['title']; ?>: <a href="<?php echo get_settings('siteurl'); ?>/wp-login.php" target="_blank" title="Protected Content">(Protected Content)</a>
731
  </p>
732
  <p style="margin-top: 5px;"><input type="radio" name="PremiumLabel" id="premium_label_1" value="1" <?php echo ($FeedSettings['premium_label']!=''?'checked ':''); ?> onchange="jQuery('#premium_label_custom').css('display', (this.checked?'block':'none') );" />
733
- Use a custom label:
734
  </p>
735
 
736
  <div id="premium_label_custom" style="margin-left: 20px; display: <?php echo ($FeedSettings['premium_label']!=''?'block':'none'); ?>;">
737
  <textarea name="Feed[premium_label]" id="premium_label" style="width: 80%; height: 65px; margin-bottom: 0; padding-bottom: 0;"><?php echo htmlspecialchars(@$FeedSettings['premium_label']); ?></textarea>
738
  <div style="width: 80%; font-size: 85%; text-align: right;">
739
- <a href="#" onclick="powerpress_premium_label_append_signin_link();return false;">Add sign in link to message</a>
740
  </div>
741
  <p style="width: 80%;">
742
- Label above appears in place of the in-page player and links when
743
- the current signed-in user does not have access to the protected content.
744
  </p>
745
  </div>
746
  </td>
@@ -748,21 +782,22 @@ function powerpress_default_premium_label(event)
748
  </table>
749
  </div>
750
  <?php
751
- }
 
752
  }
753
 
754
  function powerpressadmin_edit_appearance_feed($General, $FeedSettings, $feed_slug)
755
  {
756
  // Appearance Settings
757
  ?>
758
- <h3>Appearance Settings</h3>
759
  <table class="form-table">
760
  <tr valign="top">
761
  <th scope="row">
762
- <?php _e("Disable Player"); ?>
763
  </th>
764
  <td>
765
- <input name="DisablePlayerFor" type="checkbox" <?php if( isset($General['disable_player'][$feed_slug]) ) echo 'checked '; ?> value="1" /> Do not display web player or links for this podcast channel.
766
  <input type="hidden" name="UpdateDisablePlayer" value="<?php echo $feed_slug; ?>" />
767
  </td>
768
  </tr>
@@ -798,7 +833,7 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $feed_slug=fa
798
  $FeedSettings['itunes_new_feed_url'] = '';
799
 
800
  ?>
801
- <h3>iTunes Feed Settings</h3>
802
  <table class="form-table">
803
 
804
  <?php
@@ -807,7 +842,7 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $feed_slug=fa
807
  ?>
808
  <tr valign="top">
809
  <th scope="row">
810
- <?php _e("iTunes Program Subtitle"); ?> <br />
811
  </th>
812
  <td>
813
  <input type="text" name="Feed[itunes_subtitle]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_subtitle']; ?>" maxlength="250" />
@@ -817,9 +852,9 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $feed_slug=fa
817
  <tr valign="top">
818
  <th scope="row">
819
 
820
- <?php _e("iTunes Program Summary"); ?></th>
821
  <td>
822
- <p style="margin-top: 5px;">Your summary may not contain HTML and cannot exceed 4,000 characters in length.</p>
823
 
824
  <textarea name="Feed[itunes_summary]" rows="5" style="width:80%;" ><?php echo $FeedSettings['itunes_summary']; ?></textarea>
825
  </td>
@@ -828,22 +863,22 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $feed_slug=fa
828
  <tr valign="top">
829
  <th scope="row">
830
 
831
- <?php _e("iTunes Episode Summary"); ?></th>
832
  <td>
833
 
834
  <?php if ( version_compare( '5', phpversion(), '<=' ) ) { ?>
835
- <div><input type="checkbox" name="Feed[enhance_itunes_summary]" value="1" <?php echo ( !empty($FeedSettings['enhance_itunes_summary'])?'checked ':''); ?>/> Optimize iTunes Summary from Blog Posts (<a href="http://help.blubrry.com/blubrry-powerpress/settings/enhanced-itunes-summary/" target="_blank">What's this</a>)
836
  </div>
837
  <p>
838
- Creates a friendlier view of your post/episode content by converting web links and images to clickable links in iTunes.
839
  </p>
840
  <?php } else { ?>
841
 
842
- <strong>Option Not Available</strong>
843
 
844
  <p>
845
- This feature requires PHP version 5 or newer.
846
- Your server's version of PHP is <?php echo phpversion(); ?>.
847
  </p>
848
  <?php } ?>
849
  </td>
@@ -853,26 +888,25 @@ function powerpressadmin_edit_itunes_feed($FeedSettings, $General, $feed_slug=fa
853
  ?>
854
  <tr valign="top">
855
  <th scope="row">
856
- <?php _e("iTunes Program Keywords"); ?> <br />
857
  </th>
858
  <td>
859
  <input type="text" name="Feed[itunes_keywords]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_keywords']; ?>" maxlength="250" />
860
- <p>Enter up to 12 keywords separated by commas.</p>
861
  </td>
862
  </tr>
863
 
864
  <tr valign="top">
865
  <th scope="row">
866
- <?php _e("iTunes Category"); ?>
867
  </th>
868
  <td>
869
  <select name="Feed[itunes_cat_1]" style="width: 60%;">
870
  <?php
871
- $linkoptions = array("On page", "Disable");
872
 
873
  $Categories = powerpress_itunes_categories(true);
874
 
875
- echo '<option value="">Select Category</option>';
876
 
877
  while( list($value,$desc) = each($Categories) )
878
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_1']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
@@ -889,14 +923,14 @@ reset($Categories);
889
  ?>
890
  <tr valign="top">
891
  <th scope="row">
892
- <?php _e("iTunes Category 2"); ?>
893
  </th>
894
  <td>
895
  <select name="Feed[itunes_cat_2]" style="width: 60%;">
896
  <?php
897
- $linkoptions = array("On page", "Disable");
898
 
899
- echo '<option value="">Select Category</option>';
 
900
 
901
  while( list($value,$desc) = each($Categories) )
902
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_2']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
@@ -910,14 +944,13 @@ reset($Categories);
910
 
911
  <tr valign="top">
912
  <th scope="row">
913
- <?php _e("iTunes Category 3"); ?>
914
  </th>
915
  <td>
916
  <select name="Feed[itunes_cat_3]" style="width: 60%;">
917
  <?php
918
- $linkoptions = array("On page", "Disable");
919
 
920
- echo '<option value="">Select Category</option>';
921
 
922
  while( list($value,$desc) = each($Categories) )
923
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_3']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
@@ -933,12 +966,12 @@ reset($Categories);
933
 
934
  <tr valign="top">
935
  <th scope="row">
936
- <?php _e("iTunes Explicit"); ?>
937
  </th>
938
  <td>
939
  <select name="Feed[itunes_explicit]" class="bpp_input_med">
940
  <?php
941
- $explicit = array(0=>"no - display nothing", 1=>"yes - explicit content", 2=>"clean - no explicit content");
942
 
943
  while( list($value,$desc) = each($explicit) )
944
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_explicit']==$value?' selected':''). ">$desc</option>\n";
@@ -950,19 +983,21 @@ while( list($value,$desc) = each($explicit) )
950
 
951
  <tr valign="top">
952
  <th scope="row">
953
- <?php _e("iTunes Image"); ?>
954
  </th>
955
  <td>
956
  <input type="text" id="itunes_image" name="Feed[itunes_image]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_image']; ?>" maxlength="250" />
957
  <a href="#" onclick="javascript: window.open( document.getElementById('itunes_image').value ); return false;">preview</a>
958
 
959
- <p>Place the URL to the iTunes image above. e.g. http://mysite.com/images/itunes.jpg<br /><br />iTunes prefers square .jpg or .png images that are at 600 x 600 pixels (prevously 300 x 300), which is different than what is specified for the standard RSS image.</p>
 
960
 
961
- <p>Note: It may take some time (days or even a month) for iTunes to cache modified or replaced iTunes images in the iTunes Podcast Directory. Please contact <a href="http://www.apple.com/support/itunes/">iTunes Support</a> if you are having issues with your image changes not appearing in iTunes.</p>
 
962
  <?php if( $SupportUploads ) { ?>
963
- <p><input name="itunes_image_checkbox" type="checkbox" onchange="powerpress_show_field('itunes_image_upload', this.checked)" value="1" /> Upload new image </p>
964
  <div style="display:none" id="itunes_image_upload">
965
- <label for="itunes_image">Choose file:</label><input type="file" name="itunes_image_file" />
966
  </div>
967
  <?php } ?>
968
  </td>
@@ -974,11 +1009,11 @@ while( list($value,$desc) = each($explicit) )
974
  ?>
975
  <tr valign="top">
976
  <th scope="row">
977
- <?php _e("iTunes Talent Name"); ?> <br />
978
  </th>
979
  <td>
980
  <input type="text" name="Feed[itunes_talent_name]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_talent_name']; ?>" maxlength="250" /><br />
981
- <div><input type="checkbox" name="Feed[itunes_author_post]" value="1" <?php echo ( !empty($FeedSettings['itunes_author_post'])?'checked ':''); ?>/> Use blog post author's name for individual episodes.</div>
982
 
983
  </td>
984
  </tr>
@@ -988,11 +1023,11 @@ while( list($value,$desc) = each($explicit) )
988
 
989
  <tr valign="top">
990
  <th scope="row">
991
- <?php _e("iTunes Email"); ?>
992
  </th>
993
  <td>
994
  <input type="text" name="Feed[email]" style="width: 60%;" value="<?php echo $FeedSettings['email']; ?>" maxlength="250" />
995
- <div>(<?php echo __('iTunes will email this address when your podcast is accepted into the iTunes Directory.'); ?>)</div>
996
  </td>
997
  </tr>
998
 
@@ -1003,25 +1038,25 @@ while( list($value,$desc) = each($explicit) )
1003
  <tr valign="top">
1004
  <th scope="row" >
1005
 
1006
- <?php _e("iTunes New Feed URL"); ?></th>
1007
  <td>
1008
  <div id="new_feed_url_step_1" style="display: <?php echo ( !empty($FeedSettings['itunes_new_feed_url']) || !empty($FeedSettings['itunes_new_feed_url_podcast']) ?'none':'block'); ?>;">
1009
- <p style="margin-top: 5px;"><strong><a href="#" onclick="return powerpress_new_feed_url_prompt();"><?php echo __('Set iTunes New Feed URL'); ?></a></strong></p>
1010
  </div>
1011
  <div id="new_feed_url_step_2" style="display: <?php echo ( !empty($FeedSettings['itunes_new_feed_url']) || !empty($FeedSettings['itunes_new_feed_url_podcast']) ?'block':'none'); ?>;">
1012
- <p style="margin-top: 5px;"><strong><?php echo __('WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.'); ?></strong></p>
1013
- <p><strong><?php echo __('DO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.'); ?></strong></p>
1014
  <p>
1015
- <?php echo htmlspecialchars( __('Apple recommends you maintain the <itunes:new-feed-url> tag in your feed for at least two weeks to ensure that most subscribers will receive the new New Feed URL.') ); ?>
1016
  </p>
1017
  <p>
1018
  <?php
1019
- $FeedName = 'Main RSS2 feed';
1020
  $FeedURL = get_feed_link('rss2');
1021
  if( $cat_ID )
1022
  {
1023
  $category = get_category_to_edit($cat_ID);
1024
- $FeedName = sprintf( __('%s category feed'), htmlspecialchars($category->name) );
1025
  $FeedURL = get_category_feed_link($cat_ID);
1026
  }
1027
  else if( $feed_slug )
@@ -1029,29 +1064,29 @@ while( list($value,$desc) = each($explicit) )
1029
  if( !empty($General['custom_feeds'][ $feed_slug ]) )
1030
  $FeedName = $General['custom_feeds'][ $feed_slug ];
1031
  else
1032
- $FeedName = __('Podcast');
1033
- $FeedName = trim($FeedName).' '.__('feed');
1034
  $FeedURL = get_feed_link($feed_slug);
1035
  }
1036
 
1037
- echo sprintf(__('The New Feed URL value below will be applied to the %s (%s).'), $FeedName, $FeedURL);
1038
  ?>
1039
  </p>
1040
  <p style="margin-bottom: 0;">
1041
- <label style="width: 25%; float:left; display:block; font-weight: bold;">New Feed URL</label>
1042
  <input type="text" name="Feed[itunes_new_feed_url]"style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url']; ?>" maxlength="250" />
1043
  </p>
1044
- <p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(Leave blank for no New Feed URL)</p>
1045
 
1046
- <p>More information regarding the iTunes New Feed URL is available <a href="http://www.apple.com/itunes/whatson/podcasts/specs.html#changing" target="_blank" title="Apple iTunes Podcasting Specificiations">here</a>.</p>
1047
  <p>
1048
  <?php
1049
  if( !$cat_ID && !$feed_slug )
1050
  {
1051
  if( empty($General['channels']) )
1052
- echo sprintf(__('Please activate the \'Custom Podcast Channels\' Advanced Option to set the new-feed-url for your podcast only feed (%s)'), get_feed_link('podcast') );
1053
  else
1054
- echo sprintf(__('Please navigate to the \'Custom Podcast Channels\' section to set the new-feed-url for your podcast only feed (%s)'), get_feed_link('podcast') );
1055
  }
1056
  ?>
1057
  </p>
7
  {
8
  // List copied from PodPress:
9
  $langs = array();
10
+ $langs['af'] = __('Afrikaans', 'powerpress');
11
+ $langs['sq'] = __('Albanian', 'powerpress');
12
+ $langs['eu'] = __('Basque', 'powerpress');
13
+ $langs['be'] = __('Belarusian', 'powerpress');
14
+ $langs['bg'] = __('Bulgarian', 'powerpress');
15
+ $langs['ca'] = __('Catalan', 'powerpress');
16
+ $langs['zh-cn'] = __('Chinese (Simplified)', 'powerpress');
17
+ $langs['zh-tw'] = __('Chinese (Traditional)', 'powerpress');
18
+ $langs['hr'] = __('Croatian', 'powerpress');
19
+ $langs['cs'] = __('Czech', 'powerpress');
20
+ $langs['da'] = __('Danish', 'powerpress');
21
+ $langs['nl'] = __('Dutch', 'powerpress');
22
+ $langs['nl-be'] = __('Dutch (Belgium)', 'powerpress');
23
+ $langs['nl-nl'] = __('Dutch (Netherlands)', 'powerpress');
24
+ $langs['en'] = __('English', 'powerpress');
25
+ $langs['en-au'] = __('English (Australia)', 'powerpress');
26
+ $langs['en-bz'] = __('English (Belize)', 'powerpress');
27
+ $langs['en-ca'] = __('English (Canada)', 'powerpress');
28
+ $langs['en-ie'] = __('English (Ireland)', 'powerpress');
29
+ $langs['en-jm'] = __('English (Jamaica)', 'powerpress');
30
+ $langs['en-nz'] = __('English (New Zealand)', 'powerpress');
31
+ $langs['en-ph'] = __('English (Phillipines)', 'powerpress');
32
+ $langs['en-za'] = __('English (South Africa)', 'powerpress');
33
+ $langs['en-tt'] = __('English (Trinidad)', 'powerpress');
34
+ $langs['en-gb'] = __('English (United Kingdom)', 'powerpress');
35
+ $langs['en-us'] = __('English (United States)', 'powerpress');
36
+ $langs['en-zw'] = __('English (Zimbabwe)', 'powerpress');
37
+ $langs['et'] = __('Estonian', 'powerpress');
38
+ $langs['fo'] = __('Faeroese', 'powerpress');
39
+ $langs['fi'] = __('Finnish', 'powerpress');
40
+ $langs['fr'] = __('French', 'powerpress');
41
+ $langs['fr-be'] = __('French (Belgium)', 'powerpress');
42
+ $langs['fr-ca'] = __('French (Canada)', 'powerpress');
43
+ $langs['fr-fr'] = __('French (France)', 'powerpress');
44
+ $langs['fr-lu'] = __('French (Luxembourg)', 'powerpress');
45
+ $langs['fr-mc'] = __('French (Monaco)', 'powerpress');
46
+ $langs['fr-ch'] = __('French (Switzerland)', 'powerpress');
47
+ $langs['gl'] = __('Galician', 'powerpress');
48
+ $langs['gd'] = __('Gaelic', 'powerpress');
49
+ $langs['de'] = __('German', 'powerpress');
50
+ $langs['de-at'] = __('German (Austria)', 'powerpress');
51
+ $langs['de-de'] = __('German (Germany)', 'powerpress');
52
+ $langs['de-li'] = __('German (Liechtenstein)', 'powerpress');
53
+ $langs['de-lu'] = __('German (Luxembourg)', 'powerpress');
54
+ $langs['de-ch'] = __('German (Switzerland)', 'powerpress');
55
+ $langs['el'] = __('Greek', 'powerpress');
56
+ $langs['haw'] = __('Hawaiian', 'powerpress');
57
+ $langs['hu'] = __('Hungarian', 'powerpress');
58
+ $langs['is'] = __('Icelandic', 'powerpress');
59
+ $langs['in'] = __('Indonesian', 'powerpress');
60
+ $langs['ga'] = __('Irish', 'powerpress');
61
+ $langs['it'] = __('Italian', 'powerpress');
62
+ $langs['it-it'] = __('Italian (Italy)', 'powerpress');
63
+ $langs['it-ch'] = __('Italian (Switzerland)', 'powerpress');
64
+ $langs['ja'] = __('Japanese', 'powerpress');
65
+ $langs['ko'] = __('Korean', 'powerpress');
66
+ $langs['mk'] = __('Macedonian', 'powerpress');
67
+ $langs['no'] = __('Norwegian', 'powerpress');
68
+ $langs['pl'] = __('Polish', 'powerpress');
69
+ $langs['pt'] = __('Portuguese', 'powerpress');
70
+ $langs['pt-br'] = __('Portuguese (Brazil)', 'powerpress');
71
+ $langs['pt-pt'] = __('Portuguese (Portugal)', 'powerpress');
72
+ $langs['ro'] = __('Romanian', 'powerpress');
73
+ $langs['ro-mo'] = __('Romanian (Moldova)', 'powerpress');
74
+ $langs['ro-ro'] = __('Romanian (Romania)', 'powerpress');
75
+ $langs['ru'] = __('Russian', 'powerpress');
76
+ $langs['ru-mo'] = __('Russian (Moldova)', 'powerpress');
77
+ $langs['ru-ru'] = __('Russian (Russia)', 'powerpress');
78
+ $langs['sr'] = __('Serbian', 'powerpress');
79
+ $langs['sk'] = __('Slovak', 'powerpress');
80
+ $langs['sl'] = __('Slovenian', 'powerpress');
81
+ $langs['es'] = __('Spanish', 'powerpress');
82
+ $langs['es-ar'] = __('Spanish (Argentina)', 'powerpress');
83
+ $langs['es-bo'] = __('Spanish (Bolivia)', 'powerpress');
84
+ $langs['es-cl'] = __('Spanish (Chile)', 'powerpress');
85
+ $langs['es-co'] = __('Spanish (Colombia)', 'powerpress');
86
+ $langs['es-cr'] = __('Spanish (Costa Rica)', 'powerpress');
87
+ $langs['es-do'] = __('Spanish (Dominican Republic)', 'powerpress');
88
+ $langs['es-ec'] = __('Spanish (Ecuador)', 'powerpress');
89
+ $langs['es-sv'] = __('Spanish (El Salvador)', 'powerpress');
90
+ $langs['es-gt'] = __('Spanish (Guatemala)', 'powerpress');
91
+ $langs['es-hn'] = __('Spanish (Honduras)', 'powerpress');
92
+ $langs['es-mx'] = __('Spanish (Mexico)', 'powerpress');
93
+ $langs['es-ni'] = __('Spanish (Nicaragua)', 'powerpress');
94
+ $langs['es-pa'] = __('Spanish (Panama)', 'powerpress');
95
+ $langs['es-py'] = __('Spanish (Paraguay)', 'powerpress');
96
+ $langs['es-pe'] = __('Spanish (Peru)', 'powerpress');
97
+ $langs['es-pr'] = __('Spanish (Puerto Rico)', 'powerpress');
98
+ $langs['es-es'] = __('Spanish (Spain)', 'powerpress');
99
+ $langs['es-uy'] = __('Spanish (Uruguay)', 'powerpress');
100
+ $langs['es-ve'] = __('Spanish (Venezuela)', 'powerpress');
101
+ $langs['sv'] = __('Swedish', 'powerpress');
102
+ $langs['sv-fi'] = __('Swedish (Finland)', 'powerpress');
103
+ $langs['sv-se'] = __('Swedish (Sweden)', 'powerpress');
104
+ $langs['tr'] = __('Turkish', 'powerpress');
105
+ $langs['uk'] = __('Ukranian', 'powerpress');
106
  return $langs;
107
  }
108
 
164
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed_custom');
165
 
166
  if( !isset($General['custom_feeds'][$feed_slug]) )
167
+ $General['custom_feeds'][$feed_slug] = __('Podcast (default)', 'powerpress');
168
  }
169
  else if( $cat_ID )
170
  {
177
  $FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
178
  }
179
 
180
+ $FeedTitle = __('Feed Settings', 'powerpress');
181
  if( $feed_slug )
182
  {
183
  $FeedTitle = sprintf( 'Edit Podcast Channel: %s', $General['custom_feeds'][$feed_slug]);
186
  else if( $cat_ID )
187
  {
188
  $category = get_category_to_edit($cat_ID);
189
+ $FeedTitle = sprintf( __('Edit Category Feed: %s', 'powerpress'), $category->name);
190
  echo sprintf('<input type="hidden" name="cat" value="%s" />', $cat_ID);
191
  }
192
 
200
  ?>
201
  <div id="powerpress_settings_page" class="powerpress_tabbed_content">
202
  <ul class="powerpress_settings_tabs">
203
+ <li><a href="#feed_tab_feed"><span><?php echo __('Feed Settings', 'powerpress'); ?></span></a></li>
204
+ <li><a href="#feed_tab_itunes"><span><?php echo __('iTunes Settings', 'powerpress'); ?></span></a></li>
205
  <?php if( $feed_slug ) { ?>
206
+ <li><a href="#feed_tab_appearance"><span><?php echo __('Appearance', 'powerpress'); ?></span></a></li>
207
+ <li><a href="#feed_tab_other"><span><?php echo __('Other Settings', 'powerpress'); ?></span></a></li>
208
+ <?php } ?>
209
+ <?php if( $cat_ID ) { ?>
210
+ <li><a href="#feed_tab_other"><span><?php echo __('Other Settings', 'powerpress'); ?></span></a></li>
211
  <?php } ?>
212
  </ul>
213
 
244
  </div>
245
  <?php } ?>
246
 
247
+ <?php if( $cat_ID ) { ?>
248
+ <div id="feed_tab_other" class="powerpress_tab">
249
+ <?php
250
+ powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug, $cat_ID)
251
+ ?>
252
+ </div>
253
+ <?php } ?>
254
+
255
  </div>
256
  <div class="clear"></div>
257
  <?php
273
  ?>
274
  <input type="hidden" name="action" value="powerpress-save-customfeed" />
275
  <p style="margin-bottom: 0;">
276
+ <?php echo __('Configure your custom podcast feed.', 'powerpress'); ?>
277
  </p>
278
  <?php
279
  }
283
  ?>
284
  <input type="hidden" name="action" value="powerpress-save-categoryfeedsettings" />
285
  <p style="margin-bottom: 0;">
286
+ <?php echo __('Configure your category feed to support podcasting.', 'powerpress'); ?>
287
  </p>
288
  <?php
289
  }
302
  <tr valign="top">
303
  <th scope="row">
304
 
305
+ <?php echo __('Enhance Feeds', 'powerpress'); ?></th>
306
  <td>
307
  <ul>
308
+ <li><label><input type="radio" name="Feed[apply_to]" value="1" <?php if( $FeedSettings['apply_to'] == 1 ) echo 'checked'; ?> /> <?php echo __('Enhance All Feeds', 'powerpress'); ?></label> (<?php echo __('Recommended', 'powerpress'); ?>)</li>
309
  <li>
310
  <ul>
311
+ <li><?php echo __('Adds podcasting support to all feeds', 'powerpress'); ?></li>
312
+ <li><?php echo __('Allows for Category Podcasting', 'powerpress'); ?> (<?php echo __('Visitors may subscribe to your categories as a podcast', 'powerpress'); ?>)</li>
313
+ <li><?php echo __('Allows for Tag/Keyword Casting', 'powerpress'); ?> (<?php echo __('Visitors may subscribe to your tags as a podcast', 'powerpress'); ?>)</li>
314
  </ul>
315
  </li>
316
+ <li><label><input type="radio" name="Feed[apply_to]" value="2" <?php if( $FeedSettings['apply_to'] == 2 ) echo 'checked'; ?> /> <?php echo __('Enhance Main Feed Only', 'powerpress'); ?></label></li>
317
  <li>
318
  <ul>
319
+ <li><?php echo __('Adds podcasting support to your main feed only', 'powerpress'); ?></li>
320
  </ul>
321
  </li>
322
+ <li><label><input type="radio" name="Feed[apply_to]" value="0" <?php if( $FeedSettings['apply_to'] == 0 ) echo 'checked'; ?> /> <?php echo __('Do Not Enhance Feeds', 'powerpress'); ?></label></li>
323
  <li>
324
  <ul>
325
+ <li><?php echo __('Feed Settings below will only apply to your podcast channel feeds', 'powerpress'); ?></li>
326
  </ul>
327
  </li>
328
  </ul>
332
  <tr valign="top">
333
  <th scope="row">
334
 
335
+ <?php echo __('Main Site Feed', 'powerpress'); ?></th>
336
  <td>
337
+ <p style="margin-top: 5px; margin-bottom: 0;"><?php echo __('Main RSS2 Feed', 'powerpress'); ?>: <a href="<?php echo get_bloginfo('rss2_url'); ?>" title="<?php echo __('Main RSS 2 Feed', 'powerpress'); ?>" target="_blank"><?php echo get_bloginfo('rss2_url'); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_bloginfo('rss2_url')); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a></p>
338
  </td>
339
  </tr>
340
  <?php
343
  <tr valign="top">
344
  <th scope="row">
345
 
346
+ <?php echo __('Podcast Channel Feeds', 'powerpress'); ?></th>
347
  <td>
348
  <?php
349
 
350
  //$General = get_option('powerpress_general');
351
+ $Feeds = array('podcast'=> __('Special Podcast only Feed', 'powerpress') );
352
  if( isset($General['custom_feeds']['podcast']) )
353
  $Feeds = $General['custom_feeds'];
354
  else if( isset($General['custom_feeds'])&& is_array($General['custom_feeds']) )
359
  $edit_link = admin_url( 'admin.php?page=powerpress/powerpressadmin_customfeeds.php&amp;action=powerpress-editfeed&amp;feed_slug=') . $feed_slug;
360
  ?>
361
  <p><?php echo $feed_title; ?>: <a href="<?php echo get_feed_link($feed_slug); ?>" title="<?php echo $feed_title; ?>" target="_blank"><?php echo get_feed_link($feed_slug); ?></a>
362
+ | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link($feed_slug)); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a>
363
  <?php if( false && $feed_slug != 'podcast' ) { ?>
364
+ | <a href="<?php echo $edit_link; ?>" title="<?php echo __('Edit Podcast Channel', 'powerpress'); ?>"><?php echo __('edit', 'powerpress'); ?></a>
365
  <?php } ?>
366
  </p>
367
  <?php } ?>
384
  if( $cat_ID || $feed_slug )
385
  {
386
  ?>
387
+ <h3><?php echo __('Feed Information', 'powerpress'); ?></h3>
388
  <table class="form-table">
389
  <tr valign="top">
390
  <th scope="row">
391
+ <?php echo __('Feed URL', 'powerpress'); ?>
392
  </th>
393
  <td>
394
  <?php if( $cat_ID ) { ?>
395
+ <p style="margin-top: 0;"><a href="<?php echo get_category_feed_link($cat_ID); ?>" target="_blank"><?php echo get_category_feed_link($cat_ID); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode( str_replace('&amp;', '&', get_category_feed_link($cat_ID))); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a></p>
396
  <?php } else { ?>
397
+ <p style="margin-top: 0;"><a href="<?php echo get_feed_link($feed_slug); ?>" target="_blank"><?php echo get_feed_link($feed_slug); ?></a> | <a href="http://www.feedvalidator.org/check.cgi?url=<?php echo urlencode(get_feed_link($feed_slug)); ?>" target="_blank"><?php echo __('validate', 'powerpress'); ?></a></p>
398
  <?php } ?>
399
  </td>
400
  </tr>
402
  <?php
403
  }
404
  ?>
405
+ <h3><?php echo __('Feed Settings', 'powerpress'); ?></h3>
406
  <table class="form-table">
407
 
408
  <?php
411
  ?>
412
  <tr valign="top">
413
  <th scope="row">
414
+ <?php echo __('Feed Title', 'powerpress'); ?>
415
  </th>
416
  <td>
417
  <input type="text" name="Feed[title]"style="width: 60%;" value="<?php echo $FeedSettings['title']; ?>" maxlength="250" />
418
  <?php if( $cat_ID ) { ?>
419
+ (<?php echo __('leave blank to use default category title', 'powerpress'); ?>)
420
  <?php } else { ?>
421
+ (<?php echo __('leave blank to use blog title', 'powerpress'); ?>)
422
  <?php } ?>
423
  <?php if( $cat_ID ) {
424
  $category = get_category_to_edit($cat_ID);
425
  $CategoryName = htmlspecialchars($category->name);
426
  ?>
427
+ <p><?php echo __('Default Category title:', 'powerpress') .' '. get_bloginfo_rss('name') . ' &#187; '. $CategoryName; ?></p>
428
  <?php } else { ?>
429
+ <p><?php echo __('Blog title:', 'powerpress') .' '. get_bloginfo_rss('name'); ?></p>
430
  <?php } ?>
431
  </td>
432
  </tr>
433
  <tr valign="top">
434
  <th scope="row">
435
+ <?php echo __('Feed Description', 'powerpress'); ?>
436
  </th>
437
  <td>
438
  <input type="text" name="Feed[description]"style="width: 60%;" value="<?php echo $FeedSettings['description']; ?>" maxlength="1000" />
439
  <?php if( $cat_ID ) { ?>
440
+ (<?php echo __('leave blank to use category description', 'powerpress'); ?>)
441
  <?php } else { ?>
442
+ (<?php echo __('leave blank to use blog description', 'powerpress'); ?>)
443
  <?php } ?>
444
  </td>
445
  </tr>
446
 
447
  <tr valign="top">
448
  <th scope="row">
449
+ <?php echo __('Feed Landing Page URL', 'powerpress'); ?> <br />
450
  </th>
451
  <td>
452
  <input type="text" name="Feed[url]"style="width: 60%;" value="<?php echo $FeedSettings['url']; ?>" maxlength="250" />
453
  <?php if( $cat_ID ) { ?>
454
+ (<?php echo __('leave blank to use category page', 'powerpress'); ?>)
455
  <?php } else { ?>
456
+ (<?php echo __('leave blank to use home page', 'powerpress'); ?>)
457
  <?php } ?>
458
  <?php if( $cat_ID ) { ?>
459
+ <p><?php echo __('Category page URL', 'powerpress'); ?>: <?php echo get_category_link($cat_ID); ?></p>
460
  <?php } else { ?>
461
  <p>e.g. <?php echo get_bloginfo('home'); ?>/custom-page/</p>
462
  <?php } ?>
471
  ?>
472
  <tr valign="top">
473
  <th scope="row">
474
+ <?php echo __('iTunes URL', 'powerpress'); ?>
475
  </th>
476
  <td>
477
  <input type="text" style="width: 80%;" name="Feed[itunes_url]" value="<?php echo $FeedSettings['itunes_url']; ?>" maxlength="250" />
478
+ <p><a href="https://phobos.apple.com/WebObjects/MZFinance.woa/wa/publishPodcast" target="_blank"><?php echo __('Click here to Publish a Podcast on iTunes', 'powerpress'); ?></a>.
479
+ <?php echo __('Once your podcast is listed on iTunes, enter your one-click subscription URL above.', 'powerpress'); ?>
480
  </p>
481
  <p>e.g. http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=000000000</p>
482
 
483
+ <p><input name="TestiTunesPing" type="checkbox" value="1" /> <?php echo __('Test Update iTunes Listing', 'powerpress'); ?> (<?php echo __('recommended', 'powerpress'); ?>)</p>
484
  <?php if( $FeedSettings['itunes_url'] ) {
485
 
486
  $ping_url = str_replace(
492
  'http://www.itunes.com/podcast?id='),
493
  'https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast?id=', $FeedSettings['itunes_url']);
494
  ?>
495
+ <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 __('Update iTunes Listing in New Window', 'powerpress'); ?></a></p>
496
 
497
  <?php
498
  if( preg_match('/id=(\d+)/', $FeedSettings['itunes_url'], $matches) )
504
  {
505
  $PingLog = $Logging['itunes_ping_'. $FEEDID ];
506
  ?>
507
+ <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>
508
  <div style="font-size: 85%; margin-left: 20px;">
509
  <p>
510
+ <?php echo sprintf( __('iTunes notified on %s at %s', 'powerpress'), date(get_option('date_format'), $PingLog['timestamp']), date(get_option('time_format'), $PingLog['timestamp'])); ?>
511
  <?php
512
  if( $PingLog['post_id'] )
513
  {
514
  $post = get_post($PingLog['post_id']);
515
  if( $post )
516
+ echo ' '. __('for post', 'powerpress') .': ' . htmlspecialchars($post->post_title);
517
  }
518
  ?>
519
  </p>
520
  <?php if( $PingLog['success'] ) { ?>
521
+ <p><?php echo __('Feed pulled by iTunes', 'powerpress'); ?>: <?php echo $PingLog['feed_url']; ?>
522
  </p>
523
  <?php
524
 
525
  ?>
526
  <?php } else { ?>
527
+ <p><?php echo __('Error', 'powerpress'); ?>: <?php echo htmlspecialchars($PingLog['content']); ?></p>
528
  <?php } ?>
529
  </div>
530
  <?php
544
 
545
  <tr valign="top">
546
  <th scope="row">
547
+ <?php echo __('FeedBurner Feed URL', 'powerpress'); ?>
548
  </th>
549
  <td>
550
+ <input type="text" name="Feed[feed_redirect_url]"style="width: 60%;" value="<?php echo $FeedSettings['feed_redirect_url']; ?>" maxlength="100" /> (<?php echo __('leave blank to use current feed', 'powerpress'); ?>)
551
+ <p><?php echo __('Use this option to redirect this feed to a hosted feed service such as FeedBurner.', 'powerpress'); ?></p>
552
  <?php
553
  if( $cat_ID )
554
  $link = get_category_feed_link($cat_ID);
560
  else
561
  $link .= "?redirect=no";
562
  ?>
563
+ <p><?php echo __('Bypass Redirect URL', 'powerpress'); ?>: <a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a></p>
564
  </td>
565
  </tr>
566
 
568
 
569
  <tr valign="top">
570
  <th scope="row">
571
+ <?php echo __('Show the most recent', 'powerpress'); ?>
572
  </th>
573
  <td>
574
+ <input type="text" name="Feed[posts_per_rss]"style="width: 50px;" value="<?php echo $FeedSettings['posts_per_rss']; ?>" maxlength="5" /> <?php echo __('episodes / posts per feed (leave blank to use blog default', 'powerpress'); ?>: <?php form_option('posts_per_rss'); ?>)
575
  <?php if( !$feed_slug && !$cat_ID ) { ?>
576
+ <p style="margin-top: 5px; margin-bottomd: 0;"><?php echo __('Note: Setting above applies only to podcast channel feeds', 'powerpress'); ?></p>
577
  <?php } ?>
578
  </td>
579
  </tr>
580
 
581
  <tr valign="top">
582
  <th scope="row">
583
+ <?php echo __('RSS2 Image', 'powerpress'); ?> <br />
584
  </th>
585
  <td>
586
  <input type="text" id="rss2_image" name="Feed[rss2_image]" style="width: 60%;" value="<?php echo $FeedSettings['rss2_image']; ?>" maxlength="250" />
587
+ <a href="#" onclick="javascript: window.open( document.getElementById('rss2_image').value ); return false;"><?php echo __('preview', 'powerpress'); ?></a>
588
 
589
+ <p><?php echo __('Place the URL to the RSS image above.', 'powerpress'); ?> <?php echo __('Example', 'powerpress'); ?> http://mysite.com/images/rss.jpg</p>
590
+ <p><?php echo __('RSS image should be at least 88 and at most 144 pixels wide and at least 31 and at most 400 pixels high in either .gif, .jpg and .png format. A square 144 x 144 pixel image is recommended.', 'powerpress'); ?></p>
591
 
592
  <?php if( $SupportUploads ) { ?>
593
+ <p><input name="rss2_image_checkbox" type="checkbox" onchange="powerpress_show_field('rss_image_upload', this.checked)" value="1" /> <?php echo __('Upload new image', 'powerpress'); ?></p>
594
  <div style="display:none" id="rss_image_upload">
595
+ <label for="rss2_image"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="rss2_image_file" />
596
  </div>
597
  <?php } ?>
598
  </td>
605
  <tr valign="top">
606
  <th scope="row">
607
 
608
+ <?php echo __('Feed Language', 'powerpress'); ?></th>
609
  <td>
610
  <select name="Feed[rss_language]" class="bpp_input_med">
611
  <?php
612
  $Languages = powerpress_languages();
613
 
614
+ echo '<option value="">'. __('Blog Default Language', 'powerpress') .'</option>';
615
  while( list($value,$desc) = each($Languages) )
616
  echo "\t<option value=\"$value\"". ($FeedSettings['rss_language']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
617
  ?>
621
  if( isset($Languages[ $rss_language ]) )
622
  {
623
  ?>
624
+ <?php echo __('Blog Default', 'powerpress'); ?>: <?php echo $Languages[ $rss_language ]; ?>
625
  <?php } ?>
626
  </td>
627
  </tr>
628
 
629
  <tr valign="top">
630
  <th scope="row">
631
+ <?php echo __('Copyright', 'powerpress'); ?>
632
  </th>
633
  <td>
634
  <input type="text" name="Feed[copyright]" style="width: 60%;" value="<?php echo $FeedSettings['copyright']; ?>" maxlength="250" />
642
  }
643
 
644
 
645
+ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug, $cat_ID = false)
646
  {
647
+
648
+ if( $cat_ID )
649
+ {
650
+ ?>
651
+ <h3><?php echo __('Media Statistics', 'powerpress'); ?></h3>
652
+ <p>
653
+ <?php echo __('Enter your Redirect URL issued by your media statistics service provider below.', 'powerpress'); ?>
654
+ </p>
655
+
656
+ <table class="form-table">
657
+ <tr valign="top">
658
+ <th scope="row">
659
+ <?php echo __('Redirect URL', 'powerpress'); ?>
660
+ </th>
661
+ <td>
662
+ <input type="text" style="width: 60%;" name="Feed[redirect]" value="<?php echo $FeedSettings['redirect']; ?>" maxlength="250" />
663
+ <p><?php echo __('Note: Category Media Redirect URL is applied to category feeds and pages only. The redirect will also apply to single pages if this is the only category associated with the blog post.', 'powerpress'); ?></p>
664
+ </td>
665
+ </tr>
666
+ </table>
667
+ <?php
668
+ }
669
+ else // end if category, else channel...
670
+ {
671
  ?>
672
 
673
+ <h3><?php echo __('Episode Entry Box', 'powerpress'); ?></h3>
674
  <table class="form-table">
675
  <tr valign="top">
676
  <th scope="row">
677
+ <?php echo __('Background Color', 'powerpress'); ?>
678
  </th>
679
  <td>
680
  <input type="text" id="episode_background_color" name="EpisodeBoxBGColor[<?php echo $feed_slug; ?>]" style="width: 100px; float:left; border: 1px solid #333333; <?php if( !empty($General['episode_box_background_color'][ $feed_slug ]) ) echo 'background-color: '.$General['episode_box_background_color'][ $feed_slug ]; ?>;" value="<?php if( !empty($General['episode_box_background_color'][ $feed_slug ]) ) echo $General['episode_box_background_color'][ $feed_slug ]; ?>" maxlength="10" onblur="jQuery('#episode_background_color').css({'background-color' : this.value });" />
686
  <div style="background-color: #EBFFFF;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#EBFFFF'; jQuery('#episode_background_color').css({'background-color' :'#EBFFFF' });"></div>
687
  <div style="background-color: #D9E0EF;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#D9E0EF'; jQuery('#episode_background_color').css({'background-color' :'#D9E0EF' });"></div>
688
  <div style="background-color: #EBE0EB;" class="powerpress_color_box" onclick="document.getElementById('episode_background_color').value='#EBE0EB'; jQuery('#episode_background_color').css({'background-color' :'#EBE0EB' });"></div>
689
+ &nbsp; (<?php echo __('leave blank for default', 'powerpress'); ?>)
690
 
691
+ <p class="clear"><?php echo __('Use a distinctive background color for this podcast channel\'s episode box.', 'powerpress'); ?></p>
692
  </td>
693
  </tr>
694
  </table>
696
  <!-- password protected feed option -->
697
 
698
  <?php
699
+ if( @$General['premium_caps'] && $feed_slug && $feed_slug != 'podcast' )
700
+ {
701
  ?>
702
+ <h3><?php echo __('Password Protect Podcast Channel', 'powerpress'); ?></h3>
703
  <p>
704
+ <?php echo __('Require visitors to have membership to your blog in order to gain access to this channel\'s Premium Content.', 'powerpress'); ?>
705
  </p>
706
  <table class="form-table">
707
  <tr valign="top">
708
  <th scope="row">
709
 
710
+ <?php echo __('Protect Content', 'powerpress'); ?></th>
711
  <td>
712
+ <p style="margin-top: 5px;"><input type="checkbox" name="ProtectContent" value="1" <?php echo ($FeedSettings['premium']?'checked ':''); ?> onchange="powerpress_toggle_premium_content(this.checked);" /> <?php echo __('Require user to be signed-in to access feed.', 'powerpress'); ?></p>
713
  <?php ?>
714
+ <div style="margin-left: 20px; display: <?php echo ($FeedSettings['premium']?'block':'none'); ?>;" id="premium_role"><?php echo __('User must have the following capability', 'powerpress'); ?>:
715
  <select name="Feed[premium]" class="bpp_input_med">
716
  <?php
717
  $caps = powerpress_admin_capabilities();
723
  while( list($value,$desc) = each($caps) )
724
  echo "\t<option value=\"$value\"". ($actual_premium_value==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
725
  ?>
726
+ </select></div>
727
  </td>
728
  </tr>
729
  </table>
736
  }
737
  function powerpress_premium_label_append_signin_link()
738
  {
739
+ jQuery('#premium_label').val( jQuery('#premium_label').val() + '<a href="<?php echo get_settings('siteurl'); ?>/wp-login.php" title="<?php echo __('Sign In', 'powerpress'); ?>"><?php echo __('Sign In', 'powerpress'); ?>\/a>');
740
  }
741
  function powerpress_default_premium_label(event)
742
  {
743
+ if( confirm('<?php echo __('Use default label, are you sure?', 'powerpress'); ?>') )
744
  {
745
  jQuery('#premium_label_custom').css('display', (this.checked==false?'block':'none') );
746
  jQuery('#premium_label').val('');
755
  <table class="form-table">
756
  <tr valign="top">
757
  <th scope="row">
758
+ <?php echo __('Unauthorized Label', 'powerpress'); ?>
759
  </th>
760
  <td>
761
  <p style="margin-top: 5px;"><input type="radio" name="PremiumLabel" value="0" <?php echo ($FeedSettings['premium_label']==''?'checked ':''); ?> onclick="return powerpress_default_premium_label(this)" />
762
+ <?php echo __('Use default label', 'powerpress'); ?>:
763
  </p>
764
  <p style="margin-left: 20px;">
765
+ <?php echo $FeedSettings['title']; ?>: <a href="<?php echo get_settings('siteurl'); ?>/wp-login.php" target="_blank" title="Protected Content">(<?php echo __('Protected Content', 'powerpress'); ?>)</a>
766
  </p>
767
  <p style="margin-top: 5px;"><input type="radio" name="PremiumLabel" id="premium_label_1" value="1" <?php echo ($FeedSettings['premium_label']!=''?'checked ':''); ?> onchange="jQuery('#premium_label_custom').css('display', (this.checked?'block':'none') );" />
768
+ <?php echo __('Use a custom label', 'powerpress'); ?>:
769
  </p>
770
 
771
  <div id="premium_label_custom" style="margin-left: 20px; display: <?php echo ($FeedSettings['premium_label']!=''?'block':'none'); ?>;">
772
  <textarea name="Feed[premium_label]" id="premium_label" style="width: 80%; height: 65px; margin-bottom: 0; padding-bottom: 0;"><?php echo htmlspecialchars(@$FeedSettings['premium_label']); ?></textarea>
773
  <div style="width: 80%; font-size: 85%; text-align: right;">
774
+ <a href="#" onclick="powerpress_premium_label_append_signin_link();return false;"><?php echo __('Add sign in link to message', 'powerpress'); ?></a>
775
  </div>
776
  <p style="width: 80%;">
777
+ <?php echo __('Label above appears in place of the in-page player and links when the current signed-in user does not have access to the protected content.', 'powerpress'); ?>
 
778
  </p>
779
  </div>
780
  </td>
782
  </table>
783
  </div>
784
  <?php
785
+ }
786
+ } // else if channel
787
  }
788
 
789
  function powerpressadmin_edit_appearance_feed($General, $FeedSettings, $feed_slug)
790
  {
791
  // Appearance Settings
792
  ?>
793
+ <h3><?php echo __('Appearance Settings', 'powerpress'); ?></h3>
794
  <table class="form-table">
795
  <tr valign="top">
796
  <th scope="row">
797
+ <?php echo __('Disable Player', 'powerpress'); ?>
798
  </th>
799
  <td>
800
+ <input name="DisablePlayerFor" type="checkbox" <?php if( isset($General['disable_player'][$feed_slug]) ) echo 'checked '; ?> value="1" /> <?php echo __('Do not display web player or links for this podcast channel.', 'powerpress'); ?>
801
  <input type="hidden" name="UpdateDisablePlayer" value="<?php echo $feed_slug; ?>" />
802
  </td>
803
  </tr>
833
  $FeedSettings['itunes_new_feed_url'] = '';
834
 
835
  ?>
836
+ <h3><?php echo __('iTunes Feed Settings', 'powerpress'); ?></h3>
837
  <table class="form-table">
838
 
839
  <?php
842
  ?>
843
  <tr valign="top">
844
  <th scope="row">
845
+ <?php echo __('iTunes Program Subtitle', 'powerpress'); ?> <br />
846
  </th>
847
  <td>
848
  <input type="text" name="Feed[itunes_subtitle]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_subtitle']; ?>" maxlength="250" />
852
  <tr valign="top">
853
  <th scope="row">
854
 
855
+ <?php echo __('iTunes Program Summary', 'powerpress'); ?></th>
856
  <td>
857
+ <p style="margin-top: 5px;"><?php echo __('Your summary may not contain HTML and cannot exceed 4,000 characters in length.', 'powerpress'); ?></p>
858
 
859
  <textarea name="Feed[itunes_summary]" rows="5" style="width:80%;" ><?php echo $FeedSettings['itunes_summary']; ?></textarea>
860
  </td>
863
  <tr valign="top">
864
  <th scope="row">
865
 
866
+ <?php echo __('iTunes Episode Summary', 'powerpress'); ?></th>
867
  <td>
868
 
869
  <?php if ( version_compare( '5', phpversion(), '<=' ) ) { ?>
870
+ <div><input type="checkbox" name="Feed[enhance_itunes_summary]" value="1" <?php echo ( !empty($FeedSettings['enhance_itunes_summary'])?'checked ':''); ?>/> <?php echo __('Optimize iTunes Summary from Blog Posts', 'powerpress'); ?> (<a href="http://help.blubrry.com/blubrry-powerpress/settings/enhanced-itunes-summary/" target="_blank"><?php echo __('What\'s this', 'powerpress'); ?></a>)
871
  </div>
872
  <p>
873
+ <?php echo __('Creates a friendlier view of your post/episode content by converting web links and images to clickable links in iTunes.', 'powerpress'); ?>
874
  </p>
875
  <?php } else { ?>
876
 
877
+ <strong><?php echo __('Option Not Available', 'powerpress'); ?></strong>
878
 
879
  <p>
880
+ <?php echo __('This feature requires PHP version 5 or newer.', 'powerpress'); ?>
881
+ <?php echo sprintf( __('Your server\'s version of PHP is %s','powerpress'),phpversion() ); ?>.
882
  </p>
883
  <?php } ?>
884
  </td>
888
  ?>
889
  <tr valign="top">
890
  <th scope="row">
891
+ <?php echo __('iTunes Program Keywords', 'powerpress'); ?> <br />
892
  </th>
893
  <td>
894
  <input type="text" name="Feed[itunes_keywords]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_keywords']; ?>" maxlength="250" />
895
+ <p><?php echo __('Enter up to 12 keywords separated by commas.', 'powerpress'); ?></p>
896
  </td>
897
  </tr>
898
 
899
  <tr valign="top">
900
  <th scope="row">
901
+ <?php echo __('iTunes Category', 'powerpress'); ?>
902
  </th>
903
  <td>
904
  <select name="Feed[itunes_cat_1]" style="width: 60%;">
905
  <?php
 
906
 
907
  $Categories = powerpress_itunes_categories(true);
908
 
909
+ echo '<option value="">'. __('Select Category', 'powerpress') .'</option>';
910
 
911
  while( list($value,$desc) = each($Categories) )
912
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_1']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
923
  ?>
924
  <tr valign="top">
925
  <th scope="row">
926
+ <?php echo __('iTunes Category 2', 'powerpress'); ?>
927
  </th>
928
  <td>
929
  <select name="Feed[itunes_cat_2]" style="width: 60%;">
930
  <?php
 
931
 
932
+
933
+ echo '<option value="">'. __('Select Category', 'powerpress') .'</option>';
934
 
935
  while( list($value,$desc) = each($Categories) )
936
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_2']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
944
 
945
  <tr valign="top">
946
  <th scope="row">
947
+ <?php echo __('iTunes Category 3', 'powerpress'); ?>
948
  </th>
949
  <td>
950
  <select name="Feed[itunes_cat_3]" style="width: 60%;">
951
  <?php
 
952
 
953
+ echo '<option value="">'. __('Select Category', 'powerpress') .'</option>';
954
 
955
  while( list($value,$desc) = each($Categories) )
956
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_cat_3']==$value?' selected':''). ">".htmlspecialchars($desc)."</option>\n";
966
 
967
  <tr valign="top">
968
  <th scope="row">
969
+ <?php echo __('iTunes Explicit', 'powerpress'); ?>
970
  </th>
971
  <td>
972
  <select name="Feed[itunes_explicit]" class="bpp_input_med">
973
  <?php
974
+ $explicit = array(0=> __('No - display nothing', 'powerpress'), 1=>__('Yes - explicit content', 'powerpress'), 2=>__('Clean - no explicit content', 'powerpress'));
975
 
976
  while( list($value,$desc) = each($explicit) )
977
  echo "\t<option value=\"$value\"". ($FeedSettings['itunes_explicit']==$value?' selected':''). ">$desc</option>\n";
983
 
984
  <tr valign="top">
985
  <th scope="row">
986
+ <?php echo __('iTunes Image', 'powerpress'); ?>
987
  </th>
988
  <td>
989
  <input type="text" id="itunes_image" name="Feed[itunes_image]" style="width: 60%;" value="<?php echo $FeedSettings['itunes_image']; ?>" maxlength="250" />
990
  <a href="#" onclick="javascript: window.open( document.getElementById('itunes_image').value ); return false;">preview</a>
991
 
992
+ <p><?php echo __('Place the URL to the iTunes image above.', 'powerpress'); ?> <?php echo __('Example', 'powerpress'); ?>: http://mysite.com/images/itunes.jpg<br /><br />
993
+ <?php echo __('iTunes prefers square .jpg or .png images that are at 600 x 600 pixels (prevously 300 x 300), which is different than what is specified for the standard RSS image.', 'powerpress'); ?></p>
994
 
995
+ <p><?php echo __('Note: It may take some time (days or even a month) for iTunes to cache modified or replaced iTunes images in the iTunes Podcast Directory.', 'powerpress'); ?>
996
+ <?php echo sprintf( __('Please contact %s if you are having issues with your image changes not appearing in iTunes.', 'powerpress'), '<a href="http://www.apple.com/support/itunes/">'. __('iTunes Support', 'powerpress') .'</a>'); ?></p>
997
  <?php if( $SupportUploads ) { ?>
998
+ <p><input name="itunes_image_checkbox" type="checkbox" onchange="powerpress_show_field('itunes_image_upload', this.checked)" value="1" /> <?php echo __('Upload new image', 'powerpress'); ?> </p>
999
  <div style="display:none" id="itunes_image_upload">
1000
+ <label for="itunes_image"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="itunes_image_file" />
1001
  </div>
1002
  <?php } ?>
1003
  </td>
1009
  ?>
1010
  <tr valign="top">
1011
  <th scope="row">
1012
+ <?php echo __('iTunes Talent Name', 'powerpress'); ?> <br />
1013
  </th>
1014
  <td>
1015
  <input type="text" name="Feed[itunes_talent_name]"style="width: 60%;" value="<?php echo $FeedSettings['itunes_talent_name']; ?>" maxlength="250" /><br />
1016
+ <div><input type="checkbox" name="Feed[itunes_author_post]" value="1" <?php echo ( !empty($FeedSettings['itunes_author_post'])?'checked ':''); ?>/> <?php echo __('Use blog post author\'s name for individual episodes.', 'powerpress'); ?></div>
1017
 
1018
  </td>
1019
  </tr>
1023
 
1024
  <tr valign="top">
1025
  <th scope="row">
1026
+ <?php echo __('iTunes Email', 'powerpress'); ?>
1027
  </th>
1028
  <td>
1029
  <input type="text" name="Feed[email]" style="width: 60%;" value="<?php echo $FeedSettings['email']; ?>" maxlength="250" />
1030
+ <div>(<?php echo __('iTunes will email this address when your podcast is accepted into the iTunes Directory.', 'powerpress'); ?>)</div>
1031
  </td>
1032
  </tr>
1033
 
1038
  <tr valign="top">
1039
  <th scope="row" >
1040
 
1041
+ <?php echo __('iTunes New Feed URL', 'powerpress'); ?></th>
1042
  <td>
1043
  <div id="new_feed_url_step_1" style="display: <?php echo ( !empty($FeedSettings['itunes_new_feed_url']) || !empty($FeedSettings['itunes_new_feed_url_podcast']) ?'none':'block'); ?>;">
1044
+ <p style="margin-top: 5px;"><strong><a href="#" onclick="return powerpress_new_feed_url_prompt();"><?php echo __('Set iTunes New Feed URL', 'powerpress'); ?></a></strong></p>
1045
  </div>
1046
  <div id="new_feed_url_step_2" style="display: <?php echo ( !empty($FeedSettings['itunes_new_feed_url']) || !empty($FeedSettings['itunes_new_feed_url_podcast']) ?'block':'none'); ?>;">
1047
+ <p style="margin-top: 5px;"><strong><?php echo __('WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.', 'powerpress'); ?></strong></p>
1048
+ <p><strong><?php echo __('DO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.', 'powerpress'); ?></strong></p>
1049
  <p>
1050
+ <?php echo htmlspecialchars( sprintf(__('Apple recommends you maintain the %s tag in your feed for at least two weeks to ensure that most subscribers will receive the new New Feed URL.', 'powerpress'), '<itunes:new-feed-url>' ) ); ?>
1051
  </p>
1052
  <p>
1053
  <?php
1054
+ $FeedName = __('Main RSS2 feed', 'powerpress');
1055
  $FeedURL = get_feed_link('rss2');
1056
  if( $cat_ID )
1057
  {
1058
  $category = get_category_to_edit($cat_ID);
1059
+ $FeedName = sprintf( __('%s category feed', 'powerpress'), htmlspecialchars($category->name) );
1060
  $FeedURL = get_category_feed_link($cat_ID);
1061
  }
1062
  else if( $feed_slug )
1064
  if( !empty($General['custom_feeds'][ $feed_slug ]) )
1065
  $FeedName = $General['custom_feeds'][ $feed_slug ];
1066
  else
1067
+ $FeedName = __('Podcast', 'powerpress');
1068
+ $FeedName = trim($FeedName).' '.__('feed', 'powerpress');
1069
  $FeedURL = get_feed_link($feed_slug);
1070
  }
1071
 
1072
+ echo sprintf(__('The New Feed URL value below will be applied to the %s (%s).', 'powerpress'), $FeedName, $FeedURL);
1073
  ?>
1074
  </p>
1075
  <p style="margin-bottom: 0;">
1076
+ <label style="width: 25%; float:left; display:block; font-weight: bold;"><?php echo __('New Feed URL', 'powerpress'); ?></label>
1077
  <input type="text" name="Feed[itunes_new_feed_url]"style="width: 55%;" value="<?php echo $FeedSettings['itunes_new_feed_url']; ?>" maxlength="250" />
1078
  </p>
1079
+ <p style="margin-left: 25%;margin-top: 0;font-size: 90%;">(<?php echo __('Leave blank for no New Feed URL', 'powerpress'); ?>)</p>
1080
 
1081
+ <p><a href="http://www.apple.com/itunes/whatson/podcasts/specs.html#changing" target="_blank"><?php echo __('More information regarding the iTunes New Feed URL is available here.', 'powerpress'); ?></a></p>
1082
  <p>
1083
  <?php
1084
  if( !$cat_ID && !$feed_slug )
1085
  {
1086
  if( empty($General['channels']) )
1087
+ echo sprintf(__('Please activate the \'Custom Podcast Channels\' Advanced Option to set the new-feed-url for your podcast only feed (%s)', 'powerpress'), get_feed_link('podcast') );
1088
  else
1089
+ echo sprintf(__('Please navigate to the \'Custom Podcast Channels\' section to set the new-feed-url for your podcast only feed (%s)', 'powerpress'), get_feed_link('podcast') );
1090
  }
1091
  ?>
1092
  </p>
powerpressadmin-find-replace.php CHANGED
@@ -104,18 +104,18 @@
104
  if( $FindReplace['step'] == 3 )
105
  {
106
  if( $success_count > 0 )
107
- powerpress_page_message_add_notice( sprintf(__('%d URLs updated successfully.'), $success_count) );
108
  if( $failed_count > 0 )
109
- powerpress_page_message_add_error( sprintf(__('%d URLs were not updated.'), $failed_count) );
110
  else if( $FindReplace['find_string'] == '' )
111
- powerpress_page_message_add_notice( __('Nothing specified to find.') );
112
  }
113
  }
114
 
115
 
116
  }
117
 
118
- powerpress_page_message_add_notice( __('WARNING: Please backup your database before proceeding. Blubrry PowerPress is not responsibile for any lost or damaged data resulting from this Find and Replace tool.') );
119
  }
120
 
121
  function powerpress_admin_find_replace()
@@ -147,13 +147,13 @@
147
  <script type="text/javascript">
148
  function VerifyCheck(obj)
149
  {
150
- if( !obj.checked && !confirm('<?php echo __('WARNING: Verification prevents changes if the URL entered is invalid.\n\nAre you sure you do not want to verify the URLs?'); ?>') )
151
  obj.checked = true;
152
  }
153
 
154
  function ConfirmReplace()
155
  {
156
- if( confirm('<?php echo __('WARNING: You are about to make permanent changes to your database.\n\nAre you sure you wish to continue?'); ?>') )
157
  {
158
  jQuery('#replace_step').val('3');
159
  return true;
@@ -185,25 +185,25 @@ dt {
185
  <input type="hidden" name="action" value="powerpress-find-replace" />
186
  <input type="hidden" name="FindReplace[step]" value="<?php echo $FindReplace['step']; ?>" id="replace_step" />
187
 
188
- <h2><?php echo __("Find and Replace Episode URLs"); ?></h2>
189
 
190
- <p style="margin-bottom: 0;"><?php echo __('Find and replace complete or partial segments of media URLs. Useful if you move your media to a new web site or service.'); ?></p>
191
 
192
  <table class="form-table">
193
  <tr valign="top">
194
- <th scope="row"><?php echo __("Find in URL"); ?></th>
195
  <td>
196
  <input type="text" id="find_string" name="FindReplace[find_string]" style="width: 50%;" value="<?php echo $FindReplace['find_string']; ?>" maxlength="250" <?php if( $FindReplace['step'] != 1 ) { echo ' readOnly'; } ?> />
197
- <?php if( $FindReplace['step'] != 1 ) { ?><a href="#" onclick="jQuery('#replace_step').val('1');document.forms[0].submit();" title="<?php echo __('Modify'); ?>"><?php echo __('Modify'); ?></a><?php } ?>
198
- <p style="margin: 0; font-size: 90%;"><?php echo __('Example'); ?>: http://www.oldsite.com/</p>
199
  </td>
200
  </tr>
201
  <tr valign="top">
202
- <th scope="row"><?php echo __("Replace with"); ?></th>
203
  <td>
204
  <input type="text" id="replace_string" name="FindReplace[replace_string]" style="width: 50%;" value="<?php echo $FindReplace['replace_string']; ?>" maxlength="250" <?php if( $FindReplace['step'] != 1 ) { echo ' readOnly'; } ?> />
205
- <?php if( $FindReplace['step'] != 1 ) { ?><a href="#" onclick="jQuery('#replace_step').val('1');document.forms[0].submit();" title="<?php echo __('Modify'); ?>"><?php echo __('Modify'); ?></a><?php } ?>
206
- <p style="margin: 0; font-size: 90%;"><?php echo __('Example'); ?>: http://www.newsite.com/</p>
207
  </td>
208
  </tr>
209
  </table>
@@ -215,16 +215,16 @@ dt {
215
  if( $FindReplace['step'] == 2 || $FindReplace['step'] == 3 )
216
  {
217
  ?>
218
- <h2><?php echo ($FindReplace['step'] == 2 ? __('Preview Changes') : __('Change Results') ); ?></h2>
219
 
220
- <p><?php echo sprintf( __('Found %d results with "%s"'), count($FindReplaceResults), "<span class=\"find_string strong\">{$FindReplace['find_string']}</span>" ); ?></p>
221
 
222
  <ol>
223
  <?php
224
  while( list($meta_id, $row) = each($FindReplaceResults) )
225
  {
226
  $post_view_link = '<a href="' . get_permalink($row['post_id']) . '" target="_blank">' . get_the_title($row['post_id']) . '</a>';
227
- $post_edit_link = '<a href="' . get_edit_post_link($row['post_id']) . '" target="_blank">' . __('Edit Post') . '</a>';
228
  ?>
229
  <li>
230
  <?php
@@ -242,11 +242,11 @@ dt {
242
  <span style="font-size: 90%;">(<?php echo $post_edit_link; ?>)</span>
243
  <dl>
244
  <dt>
245
- <?php echo __('Found') .': '. $row['find_readable']; ?>
246
  </dt>
247
  <dd>
248
- <?php echo __('Replace') .': '. $row['replace_readable']; ?>
249
- (<a href="<?php echo $row['new_url']; ?>" target="_blank"><?php echo __('test link'); ?></a>)
250
  </dd>
251
  </dl>
252
  </li>
@@ -265,16 +265,16 @@ dt {
265
  <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="Commit Changes" onclick="return ConfirmReplace()" />
266
  &nbsp;
267
  <input type="checkbox" name="FindReplace[verify]" value="1" <?php if( @$FindReplace['verify'] ) echo 'checked'; ?> onchange="return VerifyCheck(this)" />
268
- <strong><?php echo __("Verify modified URLs"); ?></strong>
269
- (<?php echo __('Does not change media URL if link is not found or invalid'); ?>)</p>
270
  </p>
271
  <?php } else if ( $FindReplace['step'] == 3 || ($FindReplace['step'] == 2 && count($FindReplaceResults) == 0) ) { ?>
272
  <p class="submit">
273
- <strong><a href="<?php echo admin_url('admin.php?page=powerpress/powerpressadmin_tools.php'); ?>"><?php echo __('PowerPress Tools'); ?></a></strong>
274
  </p>
275
  <?php } ?>
276
 
277
- <p style="margin-bottom: 40px; margin-top:0;"><?php echo sprintf( __('We recommend using the %s plugin to backup your database before using this Find and Replace tool.'), '<a href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">'. __('WP-DB-Backup') .'</a>' ); ?></p>
278
  <!-- start footer -->
279
  <?php
280
  }
@@ -283,12 +283,12 @@ dt {
283
  {
284
  $img = 'yes.png';
285
  $color = '#458045';
286
- $text = __('Success');
287
  if( $success == false ) // Failed takes precedence over warning
288
  {
289
  $img = 'no.png';
290
  $color = '#CC0000';
291
- $text = __('Failed');
292
  }
293
  ?>
294
  <img src="<?php echo admin_url(); ?>/images/<?php echo $img; ?>" style="vertical-align:text-top;" />
104
  if( $FindReplace['step'] == 3 )
105
  {
106
  if( $success_count > 0 )
107
+ powerpress_page_message_add_notice( sprintf(__('%d URLs updated successfully.', 'powerpress'), $success_count) );
108
  if( $failed_count > 0 )
109
+ powerpress_page_message_add_error( sprintf(__('%d URLs were not updated.', 'powerpress'), $failed_count) );
110
  else if( $FindReplace['find_string'] == '' )
111
+ powerpress_page_message_add_notice( __('Nothing specified to find.', 'powerpress') );
112
  }
113
  }
114
 
115
 
116
  }
117
 
118
+ powerpress_page_message_add_notice( __('WARNING: Please backup your database before proceeding. Blubrry PowerPress is not responsibile for any lost or damaged data resulting from this Find and Replace tool.', 'powerpress') );
119
  }
120
 
121
  function powerpress_admin_find_replace()
147
  <script type="text/javascript">
148
  function VerifyCheck(obj)
149
  {
150
+ if( !obj.checked && !confirm('<?php echo __('WARNING: Verification prevents changes if the URL entered is invalid.\n\nAre you sure you do not want to verify the URLs?', 'powerpress'); ?>') )
151
  obj.checked = true;
152
  }
153
 
154
  function ConfirmReplace()
155
  {
156
+ if( confirm('<?php echo __('WARNING: You are about to make permanent changes to your database.\n\nAre you sure you wish to continue?', 'powerpress'); ?>') )
157
  {
158
  jQuery('#replace_step').val('3');
159
  return true;
185
  <input type="hidden" name="action" value="powerpress-find-replace" />
186
  <input type="hidden" name="FindReplace[step]" value="<?php echo $FindReplace['step']; ?>" id="replace_step" />
187
 
188
+ <h2><?php echo __("Find and Replace Episode URLs", 'powerpress'); ?></h2>
189
 
190
+ <p style="margin-bottom: 0;"><?php echo __('Find and replace complete or partial segments of media URLs. Useful if you move your media to a new web site or service.', 'powerpress'); ?></p>
191
 
192
  <table class="form-table">
193
  <tr valign="top">
194
+ <th scope="row"><?php echo __("Find in URL", 'powerpress'); ?></th>
195
  <td>
196
  <input type="text" id="find_string" name="FindReplace[find_string]" style="width: 50%;" value="<?php echo $FindReplace['find_string']; ?>" maxlength="250" <?php if( $FindReplace['step'] != 1 ) { echo ' readOnly'; } ?> />
197
+ <?php if( $FindReplace['step'] != 1 ) { ?><a href="#" onclick="jQuery('#replace_step').val('1');document.forms[0].submit();"><?php echo __('Modify', 'powerpress'); ?></a><?php } ?>
198
+ <p style="margin: 0; font-size: 90%;"><?php echo __('Example', 'powerpress'); ?>: http://www.oldsite.com/</p>
199
  </td>
200
  </tr>
201
  <tr valign="top">
202
+ <th scope="row"><?php echo __('Replace with', 'powerpress'); ?></th>
203
  <td>
204
  <input type="text" id="replace_string" name="FindReplace[replace_string]" style="width: 50%;" value="<?php echo $FindReplace['replace_string']; ?>" maxlength="250" <?php if( $FindReplace['step'] != 1 ) { echo ' readOnly'; } ?> />
205
+ <?php if( $FindReplace['step'] != 1 ) { ?><a href="#" onclick="jQuery('#replace_step').val('1');document.forms[0].submit();"><?php echo __('Modify', 'powerpress'); ?></a><?php } ?>
206
+ <p style="margin: 0; font-size: 90%;"><?php echo __('Example', 'powerpress'); ?>: http://www.newsite.com/</p>
207
  </td>
208
  </tr>
209
  </table>
215
  if( $FindReplace['step'] == 2 || $FindReplace['step'] == 3 )
216
  {
217
  ?>
218
+ <h2><?php echo ($FindReplace['step'] == 2 ? __('Preview Changes', 'powerpress') : __('Change Results', 'powerpress') ); ?></h2>
219
 
220
+ <p><?php echo sprintf( __('Found %d results with "%s"', 'powerpress'), count($FindReplaceResults), "<span class=\"find_string strong\">{$FindReplace['find_string']}</span>" ); ?></p>
221
 
222
  <ol>
223
  <?php
224
  while( list($meta_id, $row) = each($FindReplaceResults) )
225
  {
226
  $post_view_link = '<a href="' . get_permalink($row['post_id']) . '" target="_blank">' . get_the_title($row['post_id']) . '</a>';
227
+ $post_edit_link = '<a href="' . get_edit_post_link($row['post_id']) . '" target="_blank">' . __('Edit Post', 'powerpress') . '</a>';
228
  ?>
229
  <li>
230
  <?php
242
  <span style="font-size: 90%;">(<?php echo $post_edit_link; ?>)</span>
243
  <dl>
244
  <dt>
245
+ <?php echo __('Found', 'powerpress') .': '. $row['find_readable']; ?>
246
  </dt>
247
  <dd>
248
+ <?php echo __('Replace', 'powerpress') .': '. $row['replace_readable']; ?>
249
+ (<a href="<?php echo $row['new_url']; ?>" target="_blank"><?php echo __('test link', 'powerpress'); ?></a>)
250
  </dd>
251
  </dl>
252
  </li>
265
  <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="Commit Changes" onclick="return ConfirmReplace()" />
266
  &nbsp;
267
  <input type="checkbox" name="FindReplace[verify]" value="1" <?php if( @$FindReplace['verify'] ) echo 'checked'; ?> onchange="return VerifyCheck(this)" />
268
+ <strong><?php echo __('Verify modified URLs', 'powerpress'); ?></strong>
269
+ (<?php echo __('Does not change media URL if link is not found or invalid', 'powerpress'); ?>)</p>
270
  </p>
271
  <?php } else if ( $FindReplace['step'] == 3 || ($FindReplace['step'] == 2 && count($FindReplaceResults) == 0) ) { ?>
272
  <p class="submit">
273
+ <strong><a href="<?php echo admin_url('admin.php?page=powerpress/powerpressadmin_tools.php'); ?>"><?php echo __('PowerPress Tools', 'powerpress'); ?></a></strong>
274
  </p>
275
  <?php } ?>
276
 
277
+ <p style="margin-bottom: 40px; margin-top:0;"><?php echo sprintf( __('We recommend using the %s plugin to backup your database before using this Find and Replace tool.', 'powerpress'), '<a href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">'. __('WP-DB-Backup', 'powerpress') .'</a>' ); ?></p>
278
  <!-- start footer -->
279
  <?php
280
  }
283
  {
284
  $img = 'yes.png';
285
  $color = '#458045';
286
+ $text = __('Success', 'powerpress');
287
  if( $success == false ) // Failed takes precedence over warning
288
  {
289
  $img = 'no.png';
290
  $color = '#CC0000';
291
+ $text = __('Failed', 'powerpress');
292
  }
293
  ?>
294
  <img src="<?php echo admin_url(); ?>/images/<?php echo $img; ?>" style="vertical-align:text-top;" />
powerpressadmin-jquery.php CHANGED
@@ -75,19 +75,19 @@ function powerpress_admin_jquery_init()
75
  // Make sure users have permission to access this
76
  if( @$Settings['use_caps'] && !current_user_can('view_podcast_stats') )
77
  {
78
- powerpress_admin_jquery_header( __('Blubrry Media Statistics') );
79
  ?>
80
- <h2><?php echo __('Blubrry Media Statistics'); ?></h2>
81
- <p><?php echo __('You do not have sufficient permission to manage options.'); ?></p>
82
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
83
  <?php
84
  powerpress_admin_jquery_footer();
85
  exit;
86
  }
87
  else if( !current_user_can('edit_posts') )
88
  {
89
- powerpress_admin_jquery_header('Blubrry Media Statistics');
90
- powerpress_page_message_add_notice( __('You do not have sufficient permission to view media statistics.') );
91
  powerpress_page_message_print();
92
  powerpress_admin_jquery_footer();
93
  exit;
@@ -95,9 +95,9 @@ function powerpress_admin_jquery_init()
95
 
96
  $StatsCached = get_option('powerpress_stats');
97
 
98
- powerpress_admin_jquery_header( __('Blubrry Media Statistics') );
99
  ?>
100
- <h2><?php echo __('Blubrry Media Statistics'); ?></h2>
101
  <?php
102
  echo $StatsCached['content'];
103
  powerpress_admin_jquery_footer();
@@ -108,7 +108,7 @@ function powerpress_admin_jquery_init()
108
  if( !current_user_can('edit_posts') )
109
  {
110
  powerpress_admin_jquery_header('Uploader');
111
- powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.') );
112
  powerpress_page_message_print();
113
  powerpress_admin_jquery_footer();
114
  exit;
@@ -122,11 +122,11 @@ function powerpress_admin_jquery_init()
122
 
123
  if( !current_user_can('edit_posts') )
124
  {
125
- powerpress_admin_jquery_header( __('Select Media') );
126
  ?>
127
- <h2><?php echo __('Select Media'); ?></h2>
128
- <p><?php echo __('You do not have sufficient permission to manage options.'); ?></p>
129
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
130
  <?php
131
  powerpress_admin_jquery_footer();
132
  exit;
@@ -134,16 +134,22 @@ function powerpress_admin_jquery_init()
134
 
135
  if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' || !isset($Settings['blubrry_hosting']) || $Settings['blubrry_hosting'] == 0 )
136
  {
137
- powerpress_admin_jquery_header( __('Select Media') );
138
  ?>
139
- <h2><?php echo __('Select Media'); ?></h2>
140
- <p><?php echo __('Wait a sec! This feature is only available to Blubrry Podcast paid hosting members.');
141
  if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' )
142
- echo ' '. __('Join our community to get free podcast statistics and access to other valuable').' <a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('services') . '</a>.';
 
143
  ?>
144
  </p>
145
- <p>Our <a href="http://www.blubrry.com/powerpress_services/" target="_blank">podcast-hosting integrated</a> PowerPress makes podcast publishing simple. Check out the <a href="http://www.blubrry.com/powerpress_services/" target="_blank">video</a> on our exciting three-step publishing system!</p>
146
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
 
 
 
 
 
147
  <?php
148
  powerpress_admin_jquery_footer();
149
  exit;
@@ -162,7 +168,7 @@ if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' )
162
  else if( isset($results['error']) )
163
  $Msg = $results['error'];
164
  else
165
- $Msg = __('An unknown error occurred deleting media file.');
166
  }
167
 
168
  $api_url = sprintf('%s/media/%s/index.json?quota=true&published=true', rtrim(POWERPRESS_BLUBRRY_API_URL, '/'), $Settings['blubrry_program_keyword'] );
@@ -171,7 +177,7 @@ if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' )
171
  $results = powerpress_json_decode($json_data);
172
 
173
  $FeedSlug = $_GET['podcast-feed'];
174
- powerpress_admin_jquery_header( __('Select Media'), true );
175
  ?>
176
  <script language="JavaScript" type="text/javascript">
177
 
@@ -193,17 +199,17 @@ function SelectURL(url)
193
  }
194
  function DeleteMedia(File)
195
  {
196
- return confirm('<?php echo __('Delete'); ?>: '+File+'\n\n<?php echo __('Are you sure you want to delete this media file?'); ?>');
197
  }
198
  </script>
199
  <div id="media-header">
200
- <h2><?php echo __('Select Media'); ?></h2>
201
  <?php
202
  if( $Msg )
203
  echo '<p>'. $Msg . '</p>';
204
  ?>
205
- <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox" title="<?php echo __('Upload Media File'); ?>"><?php echo __('Upload Media File'); ?></a></div>
206
- <p><?php echo __('Select from media files uploaded to blubrry.com'); ?>:</p>
207
  </div>
208
  <div id="media-items-container">
209
  <div id="media-items">
@@ -228,7 +234,7 @@ function DeleteMedia(File)
228
  {
229
  ?>
230
  <div id="media-published-title">
231
- <?php echo __('Media Published within the past 30 days'); ?>:
232
  </div>
233
  <?php
234
  $PublishedList = true;
@@ -239,16 +245,16 @@ function DeleteMedia(File)
239
  <strong class="media-name"><?php echo htmlspecialchars($data['name']); ?></strong>
240
  <cite><?php echo powerpress_byte_size($data['length']); ?></cite>
241
  <?php if( !empty($data['published']) ) { ?>
242
- <div class="media-published-date">&middot; <?php echo __('Published on'); ?> <?php echo date(get_option('date_format'), $data['last_modified']); ?></div>
243
  <?php } ?>
244
  <div class="media-item-links">
245
  <?php if( !empty($data['published']) && !empty($data['url']) ) { ?>
246
- <a href="#" onclick="SelectURL('<?php echo $data['url']; ?>'); return false;"><?php echo __('Select'); ?></a>
247
  <?php } else { ?>
248
  <?php if (function_exists('curl_init')) { ?>
249
- <a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-media-delete", 'powerpress-jquery-media-delete'); ?>&amp;podcast-feed=<?php echo $FeedSlug; ?>&amp;delete=<?php echo urlencode($data['name']); ?>" onclick="return DeleteMedia('<?php echo $data['name']; ?>');">Delete</a> |
250
  <?php } ?>
251
- <a href="#" onclick="SelectMedia('<?php echo $data['name']; ?>'); return false;"><?php echo __('Select'); ?></a>
252
  <?php } ?>
253
  </div>
254
  </div>
@@ -259,16 +265,34 @@ function DeleteMedia(File)
259
  </div>
260
  </div>
261
  <div id="media-footer">
262
- <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox" title="Upload Media File">Upload Media File</a></div>
263
  <?php
264
  if( $QuotaData ) {
265
  $NextDate = strtotime( $QuotaData['published']['next_date']);
266
  ?>
267
- <p>You have uploaded <em><?php echo powerpress_byte_size($QuotaData['unpublished']['used']); ?></em> (<em><?php echo powerpress_byte_size($QuotaData['unpublished']['available']); ?></em> available) of your <em><?php echo powerpress_byte_size($QuotaData['unpublished']['total']); ?></em> limit</p>
268
- <p>You are hosting <em><?php echo powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['available']); ?></em> (<em><?php echo powerpress_byte_size($QuotaData['published']['available']); ?></em> available) of your <em><?php echo powerpress_byte_size($QuotaData['published']['total']); ?></em>/month limit.</p>
269
- <p>Your limit will adjust on <?php echo date('m/d/Y', $NextDate); ?> to <em><?php echo powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['next_available']); ?></em> (<em><?php echo powerpress_byte_size($QuotaData['published']['next_available']); ?></em> available).</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  <?php } ?>
271
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
272
  </div>
273
 
274
  <?php
@@ -279,8 +303,8 @@ function DeleteMedia(File)
279
 
280
  if( !current_user_can('manage_options') )
281
  {
282
- powerpress_admin_jquery_header('Blubrry Services Integration');
283
- powerpress_page_message_add_notice( __('You do not have sufficient permission to manage options.') );
284
  powerpress_page_message_print();
285
  powerpress_admin_jquery_footer();
286
  exit;
@@ -328,8 +352,8 @@ function DeleteMedia(File)
328
  if( isset($results['error']) )
329
  {
330
  $Error = $results['error'];
331
- if( strstr($Error, 'currently not available') )
332
- $Error = 'Unable to find podcasts for this account.';
333
  }
334
  else if( !is_array($results) )
335
  {
@@ -353,7 +377,7 @@ function DeleteMedia(File)
353
  }
354
  else if( isset($SaveSettings['blubrry_program_keyword']) )
355
  {
356
- $Error = 'You must select a program to continue.';
357
  }
358
  else if( count($Programs) == 1 )
359
  {
@@ -365,7 +389,7 @@ function DeleteMedia(File)
365
  }
366
  else
367
  {
368
- $Error = 'Please select your podcast program to continue.';
369
  $Step = 2;
370
  $Settings['blubrry_username'] = $SaveSettings['blubrry_username'];
371
  $Settings['blubrry_hosting'] = $SaveSettings['blubrry_hosting'];
@@ -373,7 +397,7 @@ function DeleteMedia(File)
373
  }
374
  else
375
  {
376
- $Error = 'No podcasts for this account are listed on blubrry.com.';
377
  }
378
  }
379
  }
@@ -398,14 +422,14 @@ function DeleteMedia(File)
398
 
399
  if( $Close )
400
  {
401
- powerpress_admin_jquery_header('Blubrry Services Integration');
402
  powerpress_page_message_print();
403
  ?>
404
- <p style="text-align: right; position: absolute; top: 5px; right: 5px; margin: 0; padding:0;"><a href="#" onclick="self.parent.tb_remove(); return false;" title="Close"><img src="<?php echo admin_url(); ?>/images/no.png" alt="Close" /></a></p>
405
- <h2>Blubrry Services Integration</h2>
406
- <p style="text-align: center;"><strong>Settings Saved Successfully!</strong></p>
407
  <p style="text-align: center;">
408
- <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_basic.php"); ?>" target="_top" title="Close">Close</a>
409
  </p>
410
  <?php
411
  powerpress_admin_jquery_footer();
@@ -418,8 +442,8 @@ function DeleteMedia(File)
418
  {
419
  if( !current_user_can('manage_options') )
420
  {
421
- powerpress_admin_jquery_header('Blubrry Services Integration');
422
- powerpress_page_message_add_notice( __('You do not have sufficient permission to manage options.') );
423
  powerpress_page_message_print();
424
  powerpress_admin_jquery_footer();
425
  exit;
@@ -427,8 +451,8 @@ function DeleteMedia(File)
427
 
428
  if( !ini_get( 'allow_url_fopen' ) && !function_exists( 'curl_init' ) )
429
  {
430
- powerpress_admin_jquery_header('Blubrry Services Integration');
431
- powerpress_page_message_add_notice( __('Your server must either have the php.ini setting \'allow_url_fopen\' enabled or have the PHP cURL library installed in order to continue.') );
432
  powerpress_page_message_print();
433
  powerpress_admin_jquery_footer();
434
  exit;
@@ -446,38 +470,38 @@ function DeleteMedia(File)
446
  //if( count($Programs) )
447
  // $Step = 2;
448
 
449
- powerpress_admin_jquery_header('Blubrry Services Integration');
450
  powerpress_page_message_print();
451
  ?>
452
  <form action="<?php echo admin_url(); ?>" enctype="multipart/form-data" method="post">
453
  <?php wp_nonce_field('powerpress-jquery-account'); ?>
454
  <input type="hidden" name="action" value="powerpress-jquery-account-save" />
455
  <div id="accountinfo">
456
- <h2>Blubrry Services Integration</h2>
457
  <?php if( $Step == 1 ) { ?>
458
  <p>
459
- <label for="blubrry_username">Blubrry User Name (Email)</label>
460
  <input type="text" id="blubrry_username" name="Settings[blubrry_username]" value="<?php echo $Settings['blubrry_username']; ?>" />
461
  </p>
462
  <p id="password_row">
463
- <label for="password_password">Blubrry Password</label>
464
  <input type="password" id="password_password" name="Password" value="" />
465
  </p>
466
- <p><strong>Select Blubrry Services</strong></p>
467
  <p style="margin-left: 20px; margin-bottom: 0px;margin-top: 0px;">
468
- <input type="radio" name="Settings[blubrry_hosting]" value="0" <?php echo ($Settings['blubrry_hosting']==0?'checked':''); ?> />Statistics Integration only
469
  </p>
470
  <p style="margin-left: 20px; margin-top: 0px;">
471
- <input type="radio" name="Settings[blubrry_hosting]" value="1" <?php echo ($Settings['blubrry_hosting']==1?'checked':''); ?> />Statistics and Hosting Integration (Requires Blubrry Hosting Account)
472
  </p>
473
  <?php } else { ?>
474
  <input type="hidden" name="Settings[blubrry_username]" value="<?php echo htmlspecialchars($Settings['blubrry_username']); ?>" />
475
  <input type="hidden" name="Password" value="<?php echo htmlspecialchars($Password); ?>" />
476
  <input type="hidden" name="Settings[blubrry_hosting]" value="<?php echo $Settings['blubrry_hosting']; ?>" />
477
  <p>
478
- <label>Blubrry Program Keyword</label>
479
  <select name="Settings[blubrry_program_keyword]">
480
- <option value="">Select Program</option>
481
  <?php
482
  while( list($value,$desc) = each($Programs) )
483
  echo "\t<option value=\"$value\"". ($Settings['blubrry_program_keyword']==$value?' selected':''). ">$desc</option>\n";
@@ -486,9 +510,9 @@ while( list($value,$desc) = each($Programs) )
486
  </p>
487
  <?php } ?>
488
  <p>
489
- <input type="submit" name="Remove" value="Remove" style="float: right;" onclick="return confirm('Remove Blubrry Services Integration, are you sure?');" />
490
- <input type="submit" name="Save" value="Save" />
491
- <input type="button" name="Cancel" value="Cancel" onclick="self.parent.tb_remove();" />
492
  </p>
493
  </div>
494
  </form>
@@ -500,8 +524,8 @@ while( list($value,$desc) = each($Programs) )
500
 
501
  if( !current_user_can('edit_posts') )
502
  {
503
- powerpress_admin_jquery_header('Uploader');
504
- powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.') );
505
  powerpress_page_message_print();
506
  powerpress_admin_jquery_footer();
507
  exit;
@@ -513,7 +537,7 @@ while( list($value,$desc) = each($Programs) )
513
  $Error = false;
514
  if( $Settings['blubrry_hosting'] == 0 )
515
  {
516
- $Error = __('This feature is available to Blubrry Hosting users only.');
517
  }
518
 
519
  if( $Error == false )
@@ -529,7 +553,7 @@ while( list($value,$desc) = each($Programs) )
529
  {
530
  $Error = $results['error'];
531
  if( strstr($Error, 'currently not available') )
532
- $Error = 'Unable to find podcasts for this account.';
533
  }
534
  else if( $results === $json_data )
535
  {
@@ -555,16 +579,16 @@ while( list($value,$desc) = each($Programs) )
555
  }
556
  else if( $Error == false )
557
  {
558
- $Error = __('Unable to obtain upload session.');
559
  }
560
 
561
- powerpress_admin_jquery_header('Uploader');
562
- echo '<h2>'. __('Uploader') .'</h2>';
563
  echo '<p>';
564
  echo $Error;
565
  echo '</p>';
566
  ?>
567
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
568
  <?php
569
  powerpress_admin_jquery_footer();
570
  exit;
@@ -574,7 +598,7 @@ while( list($value,$desc) = each($Programs) )
574
  if( !current_user_can('edit_posts') )
575
  {
576
  powerpress_admin_jquery_header('Uploader');
577
- powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.') );
578
  powerpress_page_message_print();
579
  powerpress_admin_jquery_footer();
580
  exit;
@@ -583,19 +607,19 @@ while( list($value,$desc) = each($Programs) )
583
  $File = (isset($_GET['File'])?$_GET['File']:false);
584
  $Message = (isset($_GET['Message'])?$_GET['Message']:false);
585
 
586
- powerpress_admin_jquery_header('Upload Complete');
587
- echo '<h2>'. __('Uploader') .'</h2>';
588
  echo '<p>';
589
  if( $File )
590
  {
591
- echo 'File: ';
592
  echo $File;
593
  echo ' - ';
594
  }
595
  echo $Message;
596
  echo '</p>';
597
  ?>
598
- <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Close'); ?>"><?php echo __('Close'); ?></a></p>
599
  <?php
600
 
601
  if( $Message == '' )
@@ -625,7 +649,7 @@ function powerpress_admin_jquery_header($title, $jquery = false)
625
  <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
626
  <head>
627
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
628
- <title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title>
629
  <?php
630
 
631
  // In case these functions haven't been included yet...
@@ -648,7 +672,7 @@ echo '<!-- done adding extra stuff -->';
648
  </head>
649
  <body>
650
  <div id="container">
651
- <p style="text-align: right; position: absolute; top: 5px; right: 5px; margin: 0; padding: 0;"><a href="#" onclick="self.parent.tb_remove();" title="Cancel"><img src="<?php echo admin_url(); ?>/images/no.png" /></a></p>
652
  <?php
653
  }
654
 
@@ -665,5 +689,4 @@ function powerpress_admin_jquery_footer($jquery = false)
665
  <?php
666
  }
667
 
668
-
669
  ?>
75
  // Make sure users have permission to access this
76
  if( @$Settings['use_caps'] && !current_user_can('view_podcast_stats') )
77
  {
78
+ powerpress_admin_jquery_header( __('Blubrry Media Statistics', 'powerpress') );
79
  ?>
80
+ <h2><?php echo __('Blubrry Media Statistics', 'powerpress'); ?></h2>
81
+ <p><?php echo __('You do not have sufficient permission to manage options.', 'powerpress'); ?></p>
82
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
83
  <?php
84
  powerpress_admin_jquery_footer();
85
  exit;
86
  }
87
  else if( !current_user_can('edit_posts') )
88
  {
89
+ powerpress_admin_jquery_header( __('Blubrry Media Statistics', 'powerpress') );
90
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to view media statistics.', 'powerpress') );
91
  powerpress_page_message_print();
92
  powerpress_admin_jquery_footer();
93
  exit;
95
 
96
  $StatsCached = get_option('powerpress_stats');
97
 
98
+ powerpress_admin_jquery_header( __('Blubrry Media Statistics', 'powerpress') );
99
  ?>
100
+ <h2><?php echo __('Blubrry Media Statistics', 'powerpress'); ?></h2>
101
  <?php
102
  echo $StatsCached['content'];
103
  powerpress_admin_jquery_footer();
108
  if( !current_user_can('edit_posts') )
109
  {
110
  powerpress_admin_jquery_header('Uploader');
111
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.', 'powerpress') );
112
  powerpress_page_message_print();
113
  powerpress_admin_jquery_footer();
114
  exit;
122
 
123
  if( !current_user_can('edit_posts') )
124
  {
125
+ powerpress_admin_jquery_header( __('Select Media', 'powerpress') );
126
  ?>
127
+ <h2><?php echo __('Select Media', 'powerpress'); ?></h2>
128
+ <p><?php echo __('You do not have sufficient permission to manage options.', 'powerpress'); ?></p>
129
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
130
  <?php
131
  powerpress_admin_jquery_footer();
132
  exit;
134
 
135
  if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' || !isset($Settings['blubrry_hosting']) || $Settings['blubrry_hosting'] == 0 )
136
  {
137
+ powerpress_admin_jquery_header( __('Select Media', 'powerpress') );
138
  ?>
139
+ <h2><?php echo __('Select Media', 'powerpress'); ?></h2>
140
+ <p><?php echo __('Wait a sec! This feature is only available to Blubrry Podcast paid hosting members.', 'powerpress');
141
  if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' )
142
+ echo ' '. sprintf( __('Join our community to get free podcast statistics and access to other valuable %s.', 'powerpress'),
143
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('services', 'powerpress') .'</a>');
144
  ?>
145
  </p>
146
+ <p><?php
147
+ echo sprintf( __('Our %s PowerPress makes podcast publishing simple. Check out the %s on our exciting three-step publishing system!', 'powerpress'),
148
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('podcast-hosting integrated', 'powerpress') .'</a>',
149
+ '<a href="http://www.blubrry.com/powerpress_services/" target="_blank">'. __('video', 'powerpress') .'</a>' );
150
+ ?>
151
+ </p>
152
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
153
  <?php
154
  powerpress_admin_jquery_footer();
155
  exit;
168
  else if( isset($results['error']) )
169
  $Msg = $results['error'];
170
  else
171
+ $Msg = __('An unknown error occurred deleting media file.', 'powerpress');
172
  }
173
 
174
  $api_url = sprintf('%s/media/%s/index.json?quota=true&published=true', rtrim(POWERPRESS_BLUBRRY_API_URL, '/'), $Settings['blubrry_program_keyword'] );
177
  $results = powerpress_json_decode($json_data);
178
 
179
  $FeedSlug = $_GET['podcast-feed'];
180
+ powerpress_admin_jquery_header( __('Select Media', 'powerpress'), true );
181
  ?>
182
  <script language="JavaScript" type="text/javascript">
183
 
199
  }
200
  function DeleteMedia(File)
201
  {
202
+ return confirm('<?php echo __('Delete', 'powerpress'); ?>: '+File+'\n\n<?php echo __('Are you sure you want to delete this media file?', 'powerpress'); ?>');
203
  }
204
  </script>
205
  <div id="media-header">
206
+ <h2><?php echo __('Select Media', 'powerpress'); ?></h2>
207
  <?php
208
  if( $Msg )
209
  echo '<p>'. $Msg . '</p>';
210
  ?>
211
+ <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox"><?php echo __('Upload Media File', 'powerpress'); ?></a></div>
212
+ <p><?php echo __('Select from media files uploaded to blubrry.com', 'powerpress'); ?>:</p>
213
  </div>
214
  <div id="media-items-container">
215
  <div id="media-items">
234
  {
235
  ?>
236
  <div id="media-published-title">
237
+ <?php echo __('Media Published within the past 30 days', 'powerpress'); ?>:
238
  </div>
239
  <?php
240
  $PublishedList = true;
245
  <strong class="media-name"><?php echo htmlspecialchars($data['name']); ?></strong>
246
  <cite><?php echo powerpress_byte_size($data['length']); ?></cite>
247
  <?php if( !empty($data['published']) ) { ?>
248
+ <div class="media-published-date">&middot; <?php echo __('Published on', 'powerpress'); ?> <?php echo date(get_option('date_format'), $data['last_modified']); ?></div>
249
  <?php } ?>
250
  <div class="media-item-links">
251
  <?php if( !empty($data['published']) && !empty($data['url']) ) { ?>
252
+ <a href="#" onclick="SelectURL('<?php echo $data['url']; ?>'); return false;"><?php echo __('Select', 'powerpress'); ?></a>
253
  <?php } else { ?>
254
  <?php if (function_exists('curl_init')) { ?>
255
+ <a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-media-delete", 'powerpress-jquery-media-delete'); ?>&amp;podcast-feed=<?php echo $FeedSlug; ?>&amp;delete=<?php echo urlencode($data['name']); ?>" onclick="return DeleteMedia('<?php echo $data['name']; ?>');"><?php echo __('Delete', 'powerpress'); ?></a> |
256
  <?php } ?>
257
+ <a href="#" onclick="SelectMedia('<?php echo $data['name']; ?>'); return false;"><?php echo __('Select', 'powerpress'); ?></a>
258
  <?php } ?>
259
  </div>
260
  </div>
265
  </div>
266
  </div>
267
  <div id="media-footer">
268
+ <div class="media-upload-link"><a href="<?php echo admin_url() . wp_nonce_url("admin.php?action=powerpress-jquery-upload", 'powerpress-jquery-upload'); ?>&podcast-feed=<?php echo $FeedSlug; ?>&keepThis=true&TB_iframe=true&height=350&width=530&modal=true" class="thickbox"><?php echo __('Upload Media File', 'powerpress'); ?></a></div>
269
  <?php
270
  if( $QuotaData ) {
271
  $NextDate = strtotime( $QuotaData['published']['next_date']);
272
  ?>
273
+ <p><?php
274
+ echo sprintf( __('You have uploaded %s (%s available) of your %s limit.', 'powerpress'),
275
+ '<em>'. powerpress_byte_size($QuotaData['unpublished']['used']) .'</em>',
276
+ '<em>'. powerpress_byte_size($QuotaData['unpublished']['available']) .'</em>',
277
+ '<em>'. powerpress_byte_size($QuotaData['unpublished']['total']) .'</em>' );
278
+ ?>
279
+ </p>
280
+ <p><?php
281
+ echo sprintf( __('You are hosting %s (%s available) of your %s/30 day limit.', 'powerpress'),
282
+ '<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['available']) .'</em>',
283
+ '<em>'. powerpress_byte_size($QuotaData['published']['available']) .'</em>',
284
+ '<em>'. powerpress_byte_size($QuotaData['published']['total']) .'</em>' );
285
+ ?>
286
+ </p>
287
+ <p><?php
288
+ echo sprintf( __('Your limit will adjust on %s to %s (%s available).', 'powerpress'),
289
+ date('m/d/Y', $NextDate),
290
+ '<em>'. powerpress_byte_size($QuotaData['published']['total']-$QuotaData['published']['next_available']) .'</em>',
291
+ '<em>'. powerpress_byte_size($QuotaData['published']['next_available']) .'</em>' );
292
+ ?>
293
+ </p>
294
  <?php } ?>
295
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
296
  </div>
297
 
298
  <?php
303
 
304
  if( !current_user_can('manage_options') )
305
  {
306
+ powerpress_admin_jquery_header('Blubrry Services Integration', 'powerpress');
307
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to manage options.', 'powerpress') );
308
  powerpress_page_message_print();
309
  powerpress_admin_jquery_footer();
310
  exit;
352
  if( isset($results['error']) )
353
  {
354
  $Error = $results['error'];
355
+ if( strstr($Error, __('currently not available', 'powerpress') ) )
356
+ $Error = __('Unable to find podcasts for this account.', 'powerpress');
357
  }
358
  else if( !is_array($results) )
359
  {
377
  }
378
  else if( isset($SaveSettings['blubrry_program_keyword']) )
379
  {
380
+ $Error = __('You must select a program to continue.', 'powerpress');
381
  }
382
  else if( count($Programs) == 1 )
383
  {
389
  }
390
  else
391
  {
392
+ $Error = __('Please select your podcast program to continue.', 'powerpress');
393
  $Step = 2;
394
  $Settings['blubrry_username'] = $SaveSettings['blubrry_username'];
395
  $Settings['blubrry_hosting'] = $SaveSettings['blubrry_hosting'];
397
  }
398
  else
399
  {
400
+ $Error = __('No podcasts for this account are listed on blubrry.com.', 'powerpress');
401
  }
402
  }
403
  }
422
 
423
  if( $Close )
424
  {
425
+ powerpress_admin_jquery_header( __('Blubrry Services Integration', 'powerpress') );
426
  powerpress_page_message_print();
427
  ?>
428
+ <p style="text-align: right; position: absolute; top: 5px; right: 5px; margin: 0; padding:0;"><a href="#" onclick="self.parent.tb_remove(); return false;" title="<?php echo __('Close', 'powerpress'); ?>"><img src="<?php echo admin_url(); ?>/images/no.png" alt="<?php echo __('Close', 'powerpress'); ?>" /></a></p>
429
+ <h2><?php echo __('Blubrry Services Integration', 'powerpress'); ?></h2>
430
+ <p style="text-align: center;"><strong><?php echo __('Settings Saved Successfully!', 'powerpress'); ?></strong></p>
431
  <p style="text-align: center;">
432
+ <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_basic.php"); ?>" target="_top"><?php echo __('Close', 'powerpress'); ?></a>
433
  </p>
434
  <?php
435
  powerpress_admin_jquery_footer();
442
  {
443
  if( !current_user_can('manage_options') )
444
  {
445
+ powerpress_admin_jquery_header( __('Blubrry Services Integration', 'powerpress') );
446
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to manage options.', 'powerpress') );
447
  powerpress_page_message_print();
448
  powerpress_admin_jquery_footer();
449
  exit;
451
 
452
  if( !ini_get( 'allow_url_fopen' ) && !function_exists( 'curl_init' ) )
453
  {
454
+ powerpress_admin_jquery_header( __('Blubrry Services Integration', 'powerpress') );
455
+ powerpress_page_message_add_notice( __('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') );
456
  powerpress_page_message_print();
457
  powerpress_admin_jquery_footer();
458
  exit;
470
  //if( count($Programs) )
471
  // $Step = 2;
472
 
473
+ powerpress_admin_jquery_header( __('Blubrry Services Integration', 'powerpress') );
474
  powerpress_page_message_print();
475
  ?>
476
  <form action="<?php echo admin_url(); ?>" enctype="multipart/form-data" method="post">
477
  <?php wp_nonce_field('powerpress-jquery-account'); ?>
478
  <input type="hidden" name="action" value="powerpress-jquery-account-save" />
479
  <div id="accountinfo">
480
+ <h2><?php echo __('Blubrry Services Integration', 'powerpress'); ?></h2>
481
  <?php if( $Step == 1 ) { ?>
482
  <p>
483
+ <label for="blubrry_username"><?php echo __('Blubrry User Name (Email)', 'powerpress'); ?></label>
484
  <input type="text" id="blubrry_username" name="Settings[blubrry_username]" value="<?php echo $Settings['blubrry_username']; ?>" />
485
  </p>
486
  <p id="password_row">
487
+ <label for="password_password"><?php echo __('Blubrry Password', 'powerpress'); ?></label>
488
  <input type="password" id="password_password" name="Password" value="" />
489
  </p>
490
+ <p><strong><?php echo __('Select Blubrry Services', 'powerpress'); ?></strong></p>
491
  <p style="margin-left: 20px; margin-bottom: 0px;margin-top: 0px;">
492
+ <input type="radio" name="Settings[blubrry_hosting]" value="0" <?php echo ($Settings['blubrry_hosting']==0?'checked':''); ?> /> <?php echo __('Statistics Integration only', 'powerpress'); ?>
493
  </p>
494
  <p style="margin-left: 20px; margin-top: 0px;">
495
+ <input type="radio" name="Settings[blubrry_hosting]" value="1" <?php echo ($Settings['blubrry_hosting']==1?'checked':''); ?> /> <?php echo __('Statistics and Hosting Integration (Requires Blubrry Hosting Account)', 'powerpress'); ?>
496
  </p>
497
  <?php } else { ?>
498
  <input type="hidden" name="Settings[blubrry_username]" value="<?php echo htmlspecialchars($Settings['blubrry_username']); ?>" />
499
  <input type="hidden" name="Password" value="<?php echo htmlspecialchars($Password); ?>" />
500
  <input type="hidden" name="Settings[blubrry_hosting]" value="<?php echo $Settings['blubrry_hosting']; ?>" />
501
  <p>
502
+ <label><?php echo __('Blubrry Program Keyword', 'powerpress'); ?></label>
503
  <select name="Settings[blubrry_program_keyword]">
504
+ <option value=""><?php echo __('Select Program', 'powerpress'); ?></option>
505
  <?php
506
  while( list($value,$desc) = each($Programs) )
507
  echo "\t<option value=\"$value\"". ($Settings['blubrry_program_keyword']==$value?' selected':''). ">$desc</option>\n";
510
  </p>
511
  <?php } ?>
512
  <p>
513
+ <input type="submit" name="Remove" value="Remove" style="float: right;" onclick="return confirm('<?php echo __('Remove Blubrry Services Integration, are you sure?', 'powerpress'); ?>');" />
514
+ <input type="submit" name="Save" value="<?php echo __('Save', 'powerpress'); ?>" />
515
+ <input type="button" name="Cancel" value="<?php echo __('Cancel', 'powerpress'); ?>" onclick="self.parent.tb_remove();" />
516
  </p>
517
  </div>
518
  </form>
524
 
525
  if( !current_user_can('edit_posts') )
526
  {
527
+ powerpress_admin_jquery_header( __('Uploader', 'powerpress') );
528
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.','powerpress') );
529
  powerpress_page_message_print();
530
  powerpress_admin_jquery_footer();
531
  exit;
537
  $Error = false;
538
  if( $Settings['blubrry_hosting'] == 0 )
539
  {
540
+ $Error = __('This feature is available to Blubrry Hosting users only.','powerpress');
541
  }
542
 
543
  if( $Error == false )
553
  {
554
  $Error = $results['error'];
555
  if( strstr($Error, 'currently not available') )
556
+ $Error = __('Unable to find podcasts for this account.','powerpress');
557
  }
558
  else if( $results === $json_data )
559
  {
579
  }
580
  else if( $Error == false )
581
  {
582
+ $Error = __('Unable to obtain upload session.','powerpress');
583
  }
584
 
585
+ powerpress_admin_jquery_header( __('Uploader','powerpress') );
586
+ echo '<h2>'. __('Uploader','powerpress') .'</h2>';
587
  echo '<p>';
588
  echo $Error;
589
  echo '</p>';
590
  ?>
591
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
592
  <?php
593
  powerpress_admin_jquery_footer();
594
  exit;
598
  if( !current_user_can('edit_posts') )
599
  {
600
  powerpress_admin_jquery_header('Uploader');
601
+ powerpress_page_message_add_notice( __('You do not have sufficient permission to upload media.', 'powerpress') );
602
  powerpress_page_message_print();
603
  powerpress_admin_jquery_footer();
604
  exit;
607
  $File = (isset($_GET['File'])?$_GET['File']:false);
608
  $Message = (isset($_GET['Message'])?$_GET['Message']:false);
609
 
610
+ powerpress_admin_jquery_header( __('Upload Complete', 'powerpress') );
611
+ echo '<h2>'. __('Uploader', 'powerpress') .'</h2>';
612
  echo '<p>';
613
  if( $File )
614
  {
615
+ echo __('File', 'powerpress') .': ';
616
  echo $File;
617
  echo ' - ';
618
  }
619
  echo $Message;
620
  echo '</p>';
621
  ?>
622
+ <p style="text-align: center;"><a href="#" onclick="self.parent.tb_remove();"><?php echo __('Close', 'powerpress'); ?></a></p>
623
  <?php
624
 
625
  if( $Message == '' )
649
  <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
650
  <head>
651
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
652
+ <title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; <?php echo __('WordPress', 'powerpress'); ?></title>
653
  <?php
654
 
655
  // In case these functions haven't been included yet...
672
  </head>
673
  <body>
674
  <div id="container">
675
+ <p style="text-align: right; position: absolute; top: 5px; right: 5px; margin: 0; padding: 0;"><a href="#" onclick="self.parent.tb_remove();" title="<?php echo __('Cancel', 'powerpress'); ?>"><img src="<?php echo admin_url(); ?>/images/no.png" /></a></p>
676
  <?php
677
  }
678
 
689
  <?php
690
  }
691
 
 
692
  ?>
powerpressadmin-metabox.php CHANGED
@@ -98,7 +98,8 @@ function powerpress_meta_box($object, $box)
98
  {
99
  ?>
100
  <div>
101
- <input type="checkbox" name="Powerpress[<?php echo $FeedSlug; ?>][change_podcast]" id="powerpress_change" value="1" onchange="javascript:document.getElementById('powerpress_podcast_box_<?php echo $FeedSlug; ?>').style.display=(this.checked?'block':'none');" /> Modify existing podcast episode
 
102
  </div>
103
  <?php
104
  }
@@ -117,7 +118,7 @@ function powerpress_meta_box($object, $box)
117
  <label>Remove</label>
118
  <div class="powerpress_row_content">
119
  <input type="checkbox" name="Powerpress[<?php echo $FeedSlug; ?>][remove_podcast]" id="powerpress_remove" value="1" onchange="javascript:document.getElementById('powerpress_podcast_edit_<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');" />
120
- <?php echo __('Podcast episode will be removed from this post upon save'); ?>
121
  </div>
122
  </div>
123
  <?php
@@ -127,18 +128,18 @@ function powerpress_meta_box($object, $box)
127
  <div class="error below-h2" id="powerpress_warning_<?php echo $FeedSlug; ?>" style="display:none;"></div>
128
  <div class="success below-h2" id="powerpress_success_<?php echo $FeedSlug; ?>" style="display:none;"></div>
129
  <div class="powerpress_row">
130
- <label for="Powerpress[<?php echo $FeedSlug; ?>][url]"><?php echo __('Media URL'); ?></label>
131
  <div class="powerpress_row_content">
132
  <input id="powerpress_url_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][url]" value="<?php echo $EnclosureURL; ?>" onchange="powerpress_check_url(this.value,'powerpress_warning_<?php echo $FeedSlug; ?>')" <?php echo (@$ExtraData['hosting']==1?'readOnly':''); ?> style="width: 70%; font-size: 90%;" />
133
  <?php if( @$GeneralSettings['blubrry_hosting'] == 1 ) { ?>
134
- <a href="<?php echo admin_url(); ?>?action=powerpress-jquery-media&podcast-feed=<?php echo $FeedSlug; ?>&KeepThis=true&TB_iframe=true&modal=true" title="<?php echo __('Browse Media File'); ?>" class="thickbox"><img src="<?php echo powerpress_get_root_url(); ?>/images/blubrry_folder.png" alt="<?php echo __('Browse Media Files'); ?>" /></a>
135
  <?php } ?>
136
- <input type="button" id="powerpress_check_<?php echo $FeedSlug; ?>_button" name="powerpress_check_<?php echo $FeedSlug; ?>_button" value="<?php echo __('Verify'); ?>" onclick="powerpress_get_media_info('<?php echo $FeedSlug; ?>');" alt="<?php echo __('Verify Media'); ?>" />
137
- <img id="powerpress_check_<?php echo $FeedSlug; ?>" src="<?php echo admin_url(); ?>images/loading.gif" style="vertical-align:text-top; display: none;" alt="<?php echo __('Checking Media'); ?>" />
138
 
139
  <input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][hosting]" value="<?php echo (@$ExtraData['hosting']==1?'1':'0'); ?>" />
140
- <div id="powerpress_hosting_note_<?php echo $FeedSlug; ?>" style="margin-left: 2px; padding-bottom: 2px; padding-top: 2px; display: <?php echo (@$ExtraData['hosting']==1?'block':'none'); ?>"><em><?php echo __('Media file hosted by blubrry.com.'); ?>
141
- (<a href="javascript:void();" title="Remove blubrry hosted media file" onclick="powerpress_remove_hosting('<?php echo $FeedSlug; ?>');return false;"><?php echo __('remove'); ?></a>)
142
  </em></div>
143
  <?php
144
 
@@ -150,19 +151,19 @@ function powerpress_meta_box($object, $box)
150
  if( $GeneralSettings['episode_box_no_player_and_links'] )
151
  {
152
  ?>
153
- <span><input id="powerpress_no_player_and_links_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_player_and_links]" value="1" type="checkbox" <?php echo ($NoPlayer==1&&$NoLinks==1?'checked':''); ?> /> <?php echo __('Do not display player and media links'); ?></span>
154
  <?php
155
  }
156
  if( $GeneralSettings['episode_box_no_player'] )
157
  {
158
  ?>
159
- <span style="margin-right: 20px;"><input id="powerpress_no_player_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_player]" value="1" type="checkbox" <?php echo ($NoPlayer==1?'checked':''); ?> /> <?php echo __('Do not display player'); ?></span>
160
  <?php
161
  }
162
  if( @$GeneralSettings['episode_box_no_links'] )
163
  {
164
  ?>
165
- <span><input id="powerpress_no_links_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_links]" value="1" type="checkbox" <?php echo ($NoLinks==1?'checked':''); ?> /> <?php echo __('Do not display media links'); ?></span>
166
  <?php
167
  }
168
  ?>
@@ -177,31 +178,37 @@ function powerpress_meta_box($object, $box)
177
  {
178
  ?>
179
  <div class="powerpress_row">
180
- <label><?php echo __('File Size'); ?></label>
181
  <div class="powerpress_row_content">
182
  <div style="margin-bottom: 4px;">
183
- <input id="powerpress_set_size_0_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_size]" value="0" type="radio" <?php echo ($GeneralSettings['set_size']==0?'checked':''); ?> /> Auto detect file size
 
184
  </div>
185
  <div>
186
- <input id="powerpress_set_size_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_size]" value="1" type="radio" <?php echo ($GeneralSettings['set_size']==1?'checked':''); ?> /> Specify:
187
- <input id="powerpress_size_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][size]" value="<?php echo $EnclosureLength; ?>" style="width: 110px; font-size: 90%;" onchange="javascript:jQuery('#powerpress_set_size_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /> in bytes
 
 
188
  </div>
189
  </div>
190
  </div>
191
  <div class="powerpress_row">
192
- <label><?php echo __('Duration'); ?></label>
193
  <div class="powerpress_row_content">
194
  <div style="margin-bottom: 4px;">
195
- <input id="powerpress_set_duration_0_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="0" type="radio" <?php echo ($GeneralSettings['set_duration']==0?'checked':''); ?> /> Auto detect duration (mp3's only)
 
196
  </div>
197
  <div style="margin-bottom: 4px;">
198
- <input id="powerpress_set_duration_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="1" type="radio" <?php echo ($GeneralSettings['set_duration']==1?'checked':''); ?> /> Specify:
 
199
  <input id="powerpress_duration_hh_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
200
  <input id="powerpress_duration_mm_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
201
  <input id="powerpress_duration_ss_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_ss]" maxlength="10" value="<?php echo $DurationSS; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /> HH:MM:SS
202
  </div>
203
  <div>
204
- <input id="powerpress_set_duration_2_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="-1" type="radio" <?php echo ($GeneralSettings['set_duration']==-1?'checked':''); ?> /> Not specified
 
205
  </div>
206
  </div>
207
  </div>
@@ -223,7 +230,7 @@ function powerpress_meta_box($object, $box)
223
  {
224
  ?>
225
  <div class="powerpress_row">
226
- <label for "Powerpress[<?php echo $FeedSlug; ?>][embed]"><?php echo __('Media Embed'); ?></label>
227
  <div class="powerpress_row_content">
228
  <textarea id="powerpress_embed_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][embed]" style="width: 90%; height: 80px; font-size: 90%;" onfocus="this.select();"><?php echo htmlspecialchars($Embed); ?></textarea>
229
  </div>
@@ -235,12 +242,12 @@ function powerpress_meta_box($object, $box)
235
  {
236
  ?>
237
  <div class="powerpress_row">
238
- <label for "Powerpress[<?php echo $FeedSlug; ?>][image]"><?php echo __('Cover Image'); ?></label>
239
  <div class="powerpress_row_content">
240
  <input id="powerpress_image_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][image]" value="<?php echo htmlspecialchars($CoverImage); ?>" style="width: 90%; font-size: 90%;" size="250" />
241
  </div>
242
  <div class="powerpress_row_content">
243
- <em><?php echo __('Cover image for Quicktime (m4v, mov, etc..) video only. e.g. http://example.com/path/to/image.jpg'); ?></em>
244
  </div>
245
  </div>
246
  <?php
@@ -250,12 +257,12 @@ function powerpress_meta_box($object, $box)
250
  {
251
  ?>
252
  <div class="powerpress_row">
253
- <label for "Powerpress[<?php echo $FeedSlug; ?>][keywords]"><?php echo __('iTunes Keywords'); ?></label>
254
  <div class="powerpress_row_content">
255
  <input id="powerpress_keywords_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][keywords]" value="<?php echo htmlspecialchars($iTunesKeywords); ?>" style="width: 90%; font-size: 90%;" size="250" />
256
  </div>
257
  <div class="powerpress_row_content">
258
- <em><?php echo __('Enter up to 12 keywords separated by commas. Leave blank to use your blog post tags.'); ?></em>
259
  </div>
260
  </div>
261
  <?php
@@ -265,12 +272,12 @@ function powerpress_meta_box($object, $box)
265
  {
266
  ?>
267
  <div class="powerpress_row">
268
- <label for "Powerpress[<?php echo $FeedSlug; ?>][subtitle]"><?php echo __('iTunes Subtitle'); ?></label>
269
  <div class="powerpress_row_content">
270
  <input id="powerpress_subtitle_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][subtitle]" value="<?php echo htmlspecialchars($iTunesSubtitle); ?>" style="width: 90%; font-size: 90%;" size="250" />
271
  </div>
272
  <div class="powerpress_row_content">
273
- <em><?php echo __('Your subtitle may not contain HTML and cannot exceed 250 characters in length. Leave blank to use the first 250 characters of your blog post.'); ?></em>
274
  </div>
275
  </div>
276
  <?php
@@ -280,12 +287,12 @@ function powerpress_meta_box($object, $box)
280
  {
281
  ?>
282
  <div class="powerpress_row">
283
- <label for "Powerpress[<?php echo $FeedSlug; ?>][summary]"><?php echo __('iTunes Summary'); ?></label>
284
  <div class="powerpress_row_content">
285
  <textarea id="powerpress_summary_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][summary]" style="width: 90%; height: 80px; font-size: 90%;"><?php echo htmlspecialchars($iTunesSummary); ?></textarea>
286
  </div>
287
  <div class="powerpress_row_content">
288
- <em><?php echo __('Your summary may not contain HTML and cannot exceed 4,000 characters in length. Leave blank to use your blog post.'); ?></em>
289
  </div>
290
  </div>
291
  <?php
@@ -295,12 +302,12 @@ function powerpress_meta_box($object, $box)
295
  {
296
  ?>
297
  <div class="powerpress_row">
298
- <label for "Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo __('iTunes Author'); ?></label>
299
  <div class="powerpress_row_content">
300
  <input id="powerpress_author_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][author]" value="<?php echo htmlspecialchars($iTunesAuthor); ?>" style="width: 60%; font-size: 90%;" size="250" />
301
  </div>
302
  <div class="powerpress_row_content">
303
- <em><?php echo __('Leave blank to use post author name.'); ?></em>
304
  </div>
305
  </div>
306
  <?php
@@ -310,11 +317,11 @@ function powerpress_meta_box($object, $box)
310
  {
311
  ?>
312
  <div class="powerpress_row">
313
- <label for "Powerpress[<?php echo $FeedSlug; ?>][summary]"><?php echo __('iTunes Explicit'); ?></label>
314
  <div class="powerpress_row_content">
315
  <select id="powerpress_explicit_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][explicit]" style="width: 200px;">
316
  <?php
317
- $explicit_array = array(''=>__('Use feed\'s explicit setting'), 0=>__('no - display nothing'), 1=>__('yes - explicit content'), 2=>__('clean - no explicit content') );
318
 
319
  while( list($value,$desc) = each($explicit_array) )
320
  echo "\t<option value=\"$value\"". ($iTunesExplicit==$value?' selected':''). ">$desc</option>\n";
98
  {
99
  ?>
100
  <div>
101
+ <input type="checkbox" name="Powerpress[<?php echo $FeedSlug; ?>][change_podcast]" id="powerpress_change" value="1" onchange="javascript:document.getElementById('powerpress_podcast_box_<?php echo $FeedSlug; ?>').style.display=(this.checked?'block':'none');" />
102
+ <?php echo __('Modify existing podcast episode', 'powerpress'); ?>
103
  </div>
104
  <?php
105
  }
118
  <label>Remove</label>
119
  <div class="powerpress_row_content">
120
  <input type="checkbox" name="Powerpress[<?php echo $FeedSlug; ?>][remove_podcast]" id="powerpress_remove" value="1" onchange="javascript:document.getElementById('powerpress_podcast_edit_<?php echo $FeedSlug; ?>').style.display=(this.checked?'none':'block');" />
121
+ <?php echo __('Podcast episode will be removed from this post upon save', 'powerpress'); ?>
122
  </div>
123
  </div>
124
  <?php
128
  <div class="error below-h2" id="powerpress_warning_<?php echo $FeedSlug; ?>" style="display:none;"></div>
129
  <div class="success below-h2" id="powerpress_success_<?php echo $FeedSlug; ?>" style="display:none;"></div>
130
  <div class="powerpress_row">
131
+ <label for="Powerpress[<?php echo $FeedSlug; ?>][url]"><?php echo __('Media URL', 'powerpress'); ?></label>
132
  <div class="powerpress_row_content">
133
  <input id="powerpress_url_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][url]" value="<?php echo $EnclosureURL; ?>" onchange="powerpress_check_url(this.value,'powerpress_warning_<?php echo $FeedSlug; ?>')" <?php echo (@$ExtraData['hosting']==1?'readOnly':''); ?> style="width: 70%; font-size: 90%;" />
134
  <?php if( @$GeneralSettings['blubrry_hosting'] == 1 ) { ?>
135
+ <a href="<?php echo admin_url(); ?>?action=powerpress-jquery-media&podcast-feed=<?php echo $FeedSlug; ?>&KeepThis=true&TB_iframe=true&modal=true" title="<?php echo __('Browse Media File', 'powerpress'); ?>" class="thickbox"><img src="<?php echo powerpress_get_root_url(); ?>/images/blubrry_folder.png" alt="<?php echo __('Browse Media Files', 'powerpress'); ?>" /></a>
136
  <?php } ?>
137
+ <input type="button" id="powerpress_check_<?php echo $FeedSlug; ?>_button" name="powerpress_check_<?php echo $FeedSlug; ?>_button" value="<?php echo __('Verify', 'powerpress'); ?>" onclick="powerpress_get_media_info('<?php echo $FeedSlug; ?>');" alt="<?php echo __('Verify Media', 'powerpress'); ?>" />
138
+ <img id="powerpress_check_<?php echo $FeedSlug; ?>" src="<?php echo admin_url(); ?>images/loading.gif" style="vertical-align:text-top; display: none;" alt="<?php echo __('Checking Media', 'powerpress'); ?>" />
139
 
140
  <input type="hidden" id="powerpress_hosting_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][hosting]" value="<?php echo (@$ExtraData['hosting']==1?'1':'0'); ?>" />
141
+ <div id="powerpress_hosting_note_<?php echo $FeedSlug; ?>" style="margin-left: 2px; padding-bottom: 2px; padding-top: 2px; display: <?php echo (@$ExtraData['hosting']==1?'block':'none'); ?>"><em><?php echo __('Media file hosted by blubrry.com.', 'powerpress'); ?>
142
+ (<a href="javascript:void();" title="<?php echo __('Remove Blubrry.com hosted media file', 'powerpress'); ?>" onclick="powerpress_remove_hosting('<?php echo $FeedSlug; ?>');return false;"><?php echo __('remove', 'powerpress'); ?></a>)
143
  </em></div>
144
  <?php
145
 
151
  if( $GeneralSettings['episode_box_no_player_and_links'] )
152
  {
153
  ?>
154
+ <span><input id="powerpress_no_player_and_links_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_player_and_links]" value="1" type="checkbox" <?php echo ($NoPlayer==1&&$NoLinks==1?'checked':''); ?> /> <?php echo __('Do not display player and media links', 'powerpress'); ?></span>
155
  <?php
156
  }
157
  if( $GeneralSettings['episode_box_no_player'] )
158
  {
159
  ?>
160
+ <span style="margin-right: 20px;"><input id="powerpress_no_player_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_player]" value="1" type="checkbox" <?php echo ($NoPlayer==1?'checked':''); ?> /> <?php echo __('Do not display player', 'powerpress'); ?></span>
161
  <?php
162
  }
163
  if( @$GeneralSettings['episode_box_no_links'] )
164
  {
165
  ?>
166
+ <span><input id="powerpress_no_links_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][no_links]" value="1" type="checkbox" <?php echo ($NoLinks==1?'checked':''); ?> /> <?php echo __('Do not display media links', 'powerpress'); ?></span>
167
  <?php
168
  }
169
  ?>
178
  {
179
  ?>
180
  <div class="powerpress_row">
181
+ <label><?php echo __('File Size', 'powerpress'); ?></label>
182
  <div class="powerpress_row_content">
183
  <div style="margin-bottom: 4px;">
184
+ <input id="powerpress_set_size_0_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_size]" value="0" type="radio" <?php echo ($GeneralSettings['set_size']==0?'checked':''); ?> />
185
+ <?php echo __('Auto detect file size', 'powerpress'); ?>
186
  </div>
187
  <div>
188
+ <input id="powerpress_set_size_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_size]" value="1" type="radio" <?php echo ($GeneralSettings['set_size']==1?'checked':''); ?> />
189
+ <?php echo __('Specify', 'powerpress').': '; ?>
190
+ <input id="powerpress_size_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][size]" value="<?php echo $EnclosureLength; ?>" style="width: 110px; font-size: 90%;" onchange="javascript:jQuery('#powerpress_set_size_1_<?php echo $FeedSlug; ?>').attr('checked', true);" />
191
+ <?php echo __('in bytes', 'powerpress'); ?>
192
  </div>
193
  </div>
194
  </div>
195
  <div class="powerpress_row">
196
+ <label><?php echo __('Duration', 'powerpress'); ?></label>
197
  <div class="powerpress_row_content">
198
  <div style="margin-bottom: 4px;">
199
+ <input id="powerpress_set_duration_0_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="0" type="radio" <?php echo ($GeneralSettings['set_duration']==0?'checked':''); ?> />
200
+ <?php echo __('Auto detect duration (mp3\'s only)', 'powerpress'); ?>
201
  </div>
202
  <div style="margin-bottom: 4px;">
203
+ <input id="powerpress_set_duration_1_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="1" type="radio" <?php echo ($GeneralSettings['set_duration']==1?'checked':''); ?> />
204
+ <?php echo __('Specify', 'powerpress').': '; ?>
205
  <input id="powerpress_duration_hh_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_hh]" maxlength="2" value="<?php echo $DurationHH; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
206
  <input id="powerpress_duration_mm_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_mm]" maxlength="2" value="<?php echo $DurationMM; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /><strong>:</strong>
207
  <input id="powerpress_duration_ss_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][duration_ss]" maxlength="10" value="<?php echo $DurationSS; ?>" style="width: 24px; font-size: 90%; text-align: right;" onchange="javascript:jQuery('#powerpress_set_duration_1_<?php echo $FeedSlug; ?>').attr('checked', true);" /> HH:MM:SS
208
  </div>
209
  <div>
210
+ <input id="powerpress_set_duration_2_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][set_duration]" value="-1" type="radio" <?php echo ($GeneralSettings['set_duration']==-1?'checked':''); ?> />
211
+ <?php echo __('Not specified', 'powerpress'); ?>
212
  </div>
213
  </div>
214
  </div>
230
  {
231
  ?>
232
  <div class="powerpress_row">
233
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][embed]"><?php echo __('Media Embed', 'powerpress'); ?></label>
234
  <div class="powerpress_row_content">
235
  <textarea id="powerpress_embed_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][embed]" style="width: 90%; height: 80px; font-size: 90%;" onfocus="this.select();"><?php echo htmlspecialchars($Embed); ?></textarea>
236
  </div>
242
  {
243
  ?>
244
  <div class="powerpress_row">
245
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][image]"><?php echo __('Cover Image', 'powerpress'); ?></label>
246
  <div class="powerpress_row_content">
247
  <input id="powerpress_image_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][image]" value="<?php echo htmlspecialchars($CoverImage); ?>" style="width: 90%; font-size: 90%;" size="250" />
248
  </div>
249
  <div class="powerpress_row_content">
250
+ <em><?php echo __('Cover image for Quicktime (m4v, mov, etc..) video only. e.g. http://example.com/path/to/image.jpg', 'powerpress'); ?></em>
251
  </div>
252
  </div>
253
  <?php
257
  {
258
  ?>
259
  <div class="powerpress_row">
260
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][keywords]"><?php echo __('iTunes Keywords', 'powerpress'); ?></label>
261
  <div class="powerpress_row_content">
262
  <input id="powerpress_keywords_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][keywords]" value="<?php echo htmlspecialchars($iTunesKeywords); ?>" style="width: 90%; font-size: 90%;" size="250" />
263
  </div>
264
  <div class="powerpress_row_content">
265
+ <em><?php echo __('Enter up to 12 keywords separated by commas. Leave blank to use your blog post tags.', 'powerpress'); ?></em>
266
  </div>
267
  </div>
268
  <?php
272
  {
273
  ?>
274
  <div class="powerpress_row">
275
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][subtitle]"><?php echo __('iTunes Subtitle', 'powerpress'); ?></label>
276
  <div class="powerpress_row_content">
277
  <input id="powerpress_subtitle_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][subtitle]" value="<?php echo htmlspecialchars($iTunesSubtitle); ?>" style="width: 90%; font-size: 90%;" size="250" />
278
  </div>
279
  <div class="powerpress_row_content">
280
+ <em><?php echo __('Your subtitle may not contain HTML and cannot exceed 250 characters in length. Leave blank to use the first 250 characters of your blog post.', 'powerpress'); ?></em>
281
  </div>
282
  </div>
283
  <?php
287
  {
288
  ?>
289
  <div class="powerpress_row">
290
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][summary]"><?php echo __('iTunes Summary', 'powerpress'); ?></label>
291
  <div class="powerpress_row_content">
292
  <textarea id="powerpress_summary_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][summary]" style="width: 90%; height: 80px; font-size: 90%;"><?php echo htmlspecialchars($iTunesSummary); ?></textarea>
293
  </div>
294
  <div class="powerpress_row_content">
295
+ <em><?php echo __('Your summary may not contain HTML and cannot exceed 4,000 characters in length. Leave blank to use your blog post.', 'powerpress'); ?></em>
296
  </div>
297
  </div>
298
  <?php
302
  {
303
  ?>
304
  <div class="powerpress_row">
305
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][author]"><?php echo __('iTunes Author', 'powerpress'); ?></label>
306
  <div class="powerpress_row_content">
307
  <input id="powerpress_author_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][author]" value="<?php echo htmlspecialchars($iTunesAuthor); ?>" style="width: 60%; font-size: 90%;" size="250" />
308
  </div>
309
  <div class="powerpress_row_content">
310
+ <em><?php echo __('Leave blank to use post author name.', 'powerpress'); ?></em>
311
  </div>
312
  </div>
313
  <?php
317
  {
318
  ?>
319
  <div class="powerpress_row">
320
+ <label for "Powerpress[<?php echo $FeedSlug; ?>][summary]"><?php echo __('iTunes Explicit', 'powerpress'); ?></label>
321
  <div class="powerpress_row_content">
322
  <select id="powerpress_explicit_<?php echo $FeedSlug; ?>" name="Powerpress[<?php echo $FeedSlug; ?>][explicit]" style="width: 200px;">
323
  <?php
324
+ $explicit_array = array(''=>__('Use feed\'s explicit setting', 'powerpress'), 0=>__('no - display nothing', 'powerpress'), 1=>__('yes - explicit content', 'powerpress'), 2=>__('clean - no explicit content', 'powerpress') );
325
 
326
  while( list($value,$desc) = each($explicit_array) )
327
  echo "\t<option value=\"$value\"". ($iTunesExplicit==$value?' selected':''). ">$desc</option>\n";
powerpressadmin-mode.php CHANGED
@@ -7,32 +7,31 @@
7
 
8
 
9
  <input type="hidden" name="action" value="powerpress-save-mode" />
10
- <h2><?php echo __("Welcome to Blubrry PowerPress"); ?></h2>
11
 
12
  <p style="margin-bottom: 0;">
13
- Welcome to Blubrry PowerPress. In order to give each user the best experience, we designed two modes; Simple and Advanced. Please select the mode that is most appropriate for your needs.
14
  </p>
15
 
16
  <table class="form-table">
17
  <tr valign="top">
18
- <th scope="row"><?php echo __("Select Mode"); ?></th>
19
  <td>
20
 
21
- <p><input name="General[advanced_mode]" type="radio" value="0" /> <strong>Simple Mode</strong></p>
22
- <p>Simple Mode is intended for podcasters who are just starting out and feel a bit intimidated by all of the possible options and settings. This mode is perfect for someone who is recording in one format (e.g. mp3) and wants to keep things simple.</p>
23
- <ul><li>Features Include:<ul>
24
- <li>Only the bare essential settings</li>
25
- <li>Important feed and iTunes settings</li>
26
- <li>Player and download links added to bottom of episode posts</li>
27
  </ul></li></ul>
28
 
29
- <p><input name="General[advanced_mode]" type="radio" value="1" /> <strong>Advanced Mode</strong></p>
30
- <p>Advanced Mode gives you all of the features packaged in Blubrry PowerPress. This mode is perfect for someone who may want to distribute multiple versions of their podcast, customize the web player &amp; download links,
31
- or import data from a previous podcasting platform.</p>
32
- <ul><li>Features Include:<ul>
33
- <li><em>Advanced Settings</em> - Tweak additional settings.</li>
34
- <li><em>Presentation Settings</em> - Customize web player and media download links</li>
35
- <li><em>Extensive Feed Settings</em> - Tweak all available feed settings</li>
36
  </ul></li></ul>
37
 
38
  </td>
@@ -40,7 +39,7 @@
40
 
41
  </table>
42
  <p class="submit">
43
- <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="Set Mode and Continue" />
44
  </p>
45
 
46
  <!-- start footer -->
7
 
8
 
9
  <input type="hidden" name="action" value="powerpress-save-mode" />
10
+ <h2><?php echo __('Welcome to Blubrry PowerPress', 'powerpress'); ?></h2>
11
 
12
  <p style="margin-bottom: 0;">
13
+ <?php echo __('Welcome to Blubrry PowerPress. In order to give each user the best experience, we designed two modes; Simple and Advanced. Please select the mode that is most appropriate for your needs.', 'powerpress'); ?>
14
  </p>
15
 
16
  <table class="form-table">
17
  <tr valign="top">
18
+ <th scope="row"><?php echo __('Select Mode', 'powerpress'); ?></th>
19
  <td>
20
 
21
+ <p><input name="General[advanced_mode]" type="radio" value="0" /> <strong><?php echo __('Simple Mode', 'powerpress'); ?></strong></p>
22
+ <p><?php echo __('Simple Mode is intended for podcasters who are just starting out and feel a bit intimidated by all of the possible options and settings. This mode is perfect for someone who is recording in one format (e.g. mp3) and wants to keep things simple.', 'powerpress'); ?></p>
23
+ <ul><li><?php echo __('Features Include', 'powerpress').':'; ?><ul>
24
+ <li><?php echo __('Only the bare essential settings', 'powerpress'); ?></li>
25
+ <li><?php echo __('Important feed and iTunes settings', 'powerpress'); ?></li>
26
+ <li><?php echo __('Player and download links added to bottom of episode posts', 'powerpress'); ?></li>
27
  </ul></li></ul>
28
 
29
+ <p><input name="General[advanced_mode]" type="radio" value="1" /> <strong><?php echo __('Advanced Mode', 'powerpress'); ?></strong></p>
30
+ <p><?php echo __('Advanced Mode gives you all of the features packaged in Blubrry PowerPress. This mode is perfect for someone who may want to distribute multiple versions of their podcast, customize the web player and download links, or import data from a previous podcasting platform.', 'powerpress'); ?></p>
31
+ <ul><li><?php echo __('Features Include', 'powerpress').':'; ?><ul>
32
+ <li><em><?php echo __('Advanced Settings', 'powerpress'); ?></em> - <?php echo __('Tweak additional settings.', 'powerpress'); ?></li>
33
+ <li><em><?php echo __('Presentation Settings', 'powerpress'); ?></em> - <?php echo __('Customize web player and media download links', 'powerpress'); ?></li>
34
+ <li><em><?php echo __('Extensive Feed Settings', 'powerpress'); ?></em> - <?php echo __('Tweak all available feed settings', 'powerpress'); ?></li>
 
35
  </ul></li></ul>
36
 
37
  </td>
39
 
40
  </table>
41
  <p class="submit">
42
+ <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="<?php echo __('Set Mode and Continue', 'powerpress'); ?>" />
43
  </p>
44
 
45
  <!-- start footer -->
powerpressadmin-mt.php CHANGED
@@ -205,7 +205,7 @@ if( !function_exists('add_action') )
205
  }
206
  else
207
  {
208
- powerpressadmin_mt_import_log($Titles[ $post_id ], $EpisodeData['url'], $feed_slug, 'HTTP return code '. $response['response']['code'] .'.');
209
  }
210
  }
211
  }
@@ -217,9 +217,22 @@ if( !function_exists('add_action') )
217
  $filename = substr($episode_url, strrpos($episode_url, '/')+1);
218
  $g_mt_import_log .= '<p style="font-weight: normal; margin-top: 2px; margin-bottom: 2px; margin-left: 20px;">';
219
  if( $error )
220
- $g_mt_import_log .= '<div class="error-mt">Error importing "<a href="'. $episode_url .'">'. htmlspecialchars($filename) .'</a>" for blog post "'. htmlspecialchars($post_title) .": $error</div>\n";
 
 
 
 
 
 
 
221
  else
222
- $g_mt_import_log .= 'Episode "<a href="'. $episode_url .'">'. htmlspecialchars($filename) .'</a>" for blog post "'. htmlspecialchars($post_title) .'" imported to feed "'. $feed_slug ."\".\n";
 
 
 
 
 
 
223
 
224
  $g_mt_import_log .= '</p>';
225
  if( $error )
@@ -248,34 +261,34 @@ if( !function_exists('add_action') )
248
  $DetectDuration = ($_POST['DetectDuration']?$_POST['DetectDuration']:0);
249
  if( $DetectDuration )
250
  {
251
- echo "<p style=\"font-weight: normal;\">Duration of each mp3 detected.</p>";
252
  }
253
 
254
  echo $g_mt_import_log;
255
  $g_mt_import_log='';
256
- echo "<p style=\"font-weight: normal;\">Imported $g_mt_import_count episode(s).</p>";
257
  if( $g_mt_error_count )
258
- echo "<p style=\"font-weight: normal;\">Found $g_mt_error_count error(s).</p>";
259
  echo '</div>';
260
  }
261
 
262
  function powerpressadmin_importmt_columns($data=array())
263
  {
264
  $Settings = powerpress_get_settings('powerpress_general', false);
265
- $data['post-title'] = 'Episode Title';
266
- $data['post-date'] = 'Date';
267
 
268
- $data['feed-podcast'] = 'Feed: (podcast)';
269
 
270
  if( is_array($Settings['custom_feeds']) )
271
  {
272
  while( list($feed_slug,$value) = each($Settings['custom_feeds']) )
273
  {
274
  if( $feed_slug != 'podcast' )
275
- $data['feed-'.$feed_slug] = 'Feed: ('.$feed_slug.')';
276
  }
277
  }
278
- $data['exclude'] = '<a href="#" onclick="no_import_all();return false;">No Import</a>';
279
 
280
  return $data;
281
  }
@@ -299,15 +312,15 @@ if( !function_exists('add_action') )
299
  $results = powerpress_get_mt_episodes();
300
  $Settings = powerpress_get_settings('powerpress_general', false);
301
  if( !isset($Settings['custom_feeds']['podcast']) && !empty($Settings['custom_feeds']) )
302
- $Settings['custom_feeds'] = array_merge( array('podcast'=> 'Podcast Feed (default)'), $Settings['custom_feeds'] );
303
  else if( empty($Settings['custom_feeds']) )
304
- $Settings['custom_feeds'] = array('podcast'=> 'Podcast Feed (default)');
305
 
306
  if( $results )
307
  {
308
  if( $results['feeds_required'] > count($Settings['custom_feeds']) )
309
  {
310
- powerpress_page_message_add_error( sprintf(__('We found blog posts that have as many as %d media files. You may need to create %d more Custom Feed%s in order to import all of the media.'), $results['feeds_required'], $results['feeds_required'] - count($Settings['custom_feeds']), (( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 )?'s':'') ) );
311
  powerpress_page_message_print();
312
  }
313
  }
@@ -365,7 +378,7 @@ function check_radio_selection(obj, PostID, FileIndex)
365
  {
366
  if (CheckObj[i].type == 'radio' && CheckObj[i].checked && CheckObj[i].value == obj.value )
367
  {
368
- alert("Sorry, you may only select one media file per post per feed. ");
369
  return false;
370
  }
371
  }
@@ -379,7 +392,7 @@ function check_radio_selection(obj, PostID, FileIndex)
379
 
380
  function no_import_all()
381
  {
382
- if( !confirm('Select "No Import" option for all media files?') )
383
  return;
384
 
385
  var Inputs = document.getElementsByTagName('input');
@@ -422,20 +435,20 @@ function select_all(index,value)
422
  }
423
 
424
  </script>
425
- <h2><?php echo __("Import Episodes"); ?></h2>
426
  <?php
427
 
428
  if( count($results) == 0 || count($results) == 1 )
429
  {
430
  ?>
431
- <p>No episodes found to import.</p>
432
  <?php
433
  }
434
  else
435
  {
436
  ?>
437
  <input type="hidden" name="action" value="powerpress-importmt" />
438
- <p>Select the media file under each feed for each episode you wish to import.</p>
439
  <table class="widefat fixed" cellspacing="0">
440
  <thead>
441
  <tr>
@@ -531,7 +544,7 @@ else
531
  }
532
 
533
  if( $feed_slug == 'podcast' )
534
- $feed_title = 'Podcast Feed (default)';
535
  $feed_title = wp_specialchars($feed_title);
536
  if( $count % 2 == 0 )
537
  echo '<tr valign="middle" class="alternate">';
@@ -552,7 +565,7 @@ else
552
  echo '<td '.$class.'><strong>';
553
  if ( current_user_can( 'edit_post', $post_id ) )
554
  {
555
- ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $import_data['post_title'])); ?>"><?php echo $import_data['post_title'] ?></a><?php
556
  }
557
  else
558
  {
@@ -636,9 +649,9 @@ else
636
  if( $CurrentEnclosures[$feed_slug]['url'] == $episode_data['url'] )
637
  {
638
  if( $CurrentEnclosures[$feed_slug]['present'] )
639
- echo '<strong style="color: green;">present</strong>';
640
  else
641
- echo '<strong style="color: green;">imported</strong>';
642
  }
643
  else
644
  echo 'X';
@@ -694,8 +707,12 @@ else
694
  </tbody>
695
  </table>
696
 
697
- <p>Importable episodes highlighted in <span style="color: #CC0000; font-weight: bold;">red</span> with asterisks *.</p>
698
- <p style="margin-bottom: 0; padding-bottom: 0;">Select Only:</p>
 
 
 
 
699
  <?php
700
  if( $results['feeds_required'] < 1 )
701
  $results['feeds_required'] = 1;
@@ -704,7 +721,7 @@ else
704
  {
705
  ?>
706
  <p style="margin: 0 0 0 40px; padding: 0;">
707
- File <?php echo ($number+1); ?>:
708
  <?php
709
  while( list($feed_slug,$feed_title) = each($Settings['custom_feeds']) )
710
  {
@@ -712,12 +729,12 @@ else
712
  }
713
  reset($Settings['custom_feeds']);
714
  ?>
715
- <a href="javascript:void()" onclick="select_all(<?php echo $number; ?>,'');return false;">No Import</a>
716
  </p>
717
  <?php
718
  }
719
  ?>
720
- <p>Types of media found:
721
  <?php
722
  $comma = false;
723
  global $g_import_mt_extensions;
@@ -740,27 +757,32 @@ else
740
  {
741
  reset($results);
742
  ?>
743
- <p>
744
- There are <?php echo $StrandedEpisodes; ?> media files that can be imported with a total of <?php echo (count($results) -1); ?> blog post podcast episodes.
 
 
 
 
745
  </p>
746
  <?php
747
  }
748
  ?>
749
  <p class="submit">
750
  <input type="submit" name="Submit" id="powerpress_import_button" class="button-primary" value="Import Episodes" onclick="return confirm('Import selected episodes, are you sure?');" />
751
- &nbsp; <input type="checkbox" name="DetectDuration" value="1" /> Detect duration for mp3 media. (expect script to take a while with this option)</p>
752
  </p>
753
  </form>
754
  <hr />
755
  <form enctype="enctype" method="get" action="<?php echo admin_url('admin.php') ?>">
756
  <input type="hidden" name="page" value="powerpress/powerpressadmin_tools.php" />
757
  <input type="hidden" name="action" value="powerpress-mt-epiosdes" />
758
- <h2>Filter Results</h2>
759
- <p><label>Include Only</label><input type="text" name="include_only_ext" value="<?php if( $_GET['include_only_ext'] ) echo htmlspecialchars($_GET['include_only_ext']); ?>" style="width: 240px;" /> (leave blank for all media) <br />
760
- <label>&nbsp;</label>specify the file extensions to include separated by commas (e.g. mp3, m4v).
 
761
  </p>
762
  <p class="submit">
763
- <input type="submit" name="Submit" class="button-primary" value="Filter Episodes" />
764
  </p>
765
  <!-- start footer -->
766
  <?php
205
  }
206
  else
207
  {
208
+ powerpressadmin_mt_import_log($Titles[ $post_id ], $EpisodeData['url'], $feed_slug, __('HTTP return code', 'powerpress') .' '. $response['response']['code'] .'.');
209
  }
210
  }
211
  }
217
  $filename = substr($episode_url, strrpos($episode_url, '/')+1);
218
  $g_mt_import_log .= '<p style="font-weight: normal; margin-top: 2px; margin-bottom: 2px; margin-left: 20px;">';
219
  if( $error )
220
+ {
221
+ $g_mt_import_log .= '<div class="error-mt">';
222
+ $g_mt_import_log .= sprintf( __('Error importing %s for blog post %s:', 'powerpress'),
223
+ '"<a href="'. $episode_url .'">'. htmlspecialchars($filename) .'</a>"',
224
+ '<em>'. htmlspecialchars($post_title) .'</em>' );
225
+ $g_mt_import_log .= ' '.$error;
226
+ $g_mt_import_log .= "</div>\n";
227
+ }
228
  else
229
+ {
230
+ $g_mt_import_log .= sprintf( __('Episode %s for blog post %s imported to feed %s.', 'powerpress'),
231
+ '"<a href="'. $episode_url .'">'. htmlspecialchars($filename) .'</a>"',
232
+ '<em>'. htmlspecialchars($post_title) .'</em>',
233
+ '<em>'. $feed_slug .'</em>' );
234
+ $g_mt_import_log .= "\n";
235
+ }
236
 
237
  $g_mt_import_log .= '</p>';
238
  if( $error )
261
  $DetectDuration = ($_POST['DetectDuration']?$_POST['DetectDuration']:0);
262
  if( $DetectDuration )
263
  {
264
+ echo '<p style="font-weight: normal;">'. __('Duration of each mp3 detected.', 'powerpress') .'</p>';
265
  }
266
 
267
  echo $g_mt_import_log;
268
  $g_mt_import_log='';
269
+ echo '<p style="font-weight: normal;">'. sprintf( __('Imported %d episode(s).', 'powerpress'), $g_mt_import_count ) .'</p>';
270
  if( $g_mt_error_count )
271
+ echo '<p style="font-weight: normal;">'. sprintf( __('Found %d error(s).', 'powerpress'), $g_mt_error_count ) .'</p>';
272
  echo '</div>';
273
  }
274
 
275
  function powerpressadmin_importmt_columns($data=array())
276
  {
277
  $Settings = powerpress_get_settings('powerpress_general', false);
278
+ $data['post-title'] = __('Episode Title', 'powerpress');
279
+ $data['post-date'] = __('Date', 'powerpress');
280
 
281
+ $data['feed-podcast'] = __('Feed: (podcast)', 'powerpress');
282
 
283
  if( is_array($Settings['custom_feeds']) )
284
  {
285
  while( list($feed_slug,$value) = each($Settings['custom_feeds']) )
286
  {
287
  if( $feed_slug != 'podcast' )
288
+ $data['feed-'.$feed_slug] = __('Feed', 'powerpress') .': ('.$feed_slug.')';
289
  }
290
  }
291
+ $data['exclude'] = '<a href="#" onclick="no_import_all();return false;">'. __('No Import', 'powerpress') .'</a>';
292
 
293
  return $data;
294
  }
312
  $results = powerpress_get_mt_episodes();
313
  $Settings = powerpress_get_settings('powerpress_general', false);
314
  if( !isset($Settings['custom_feeds']['podcast']) && !empty($Settings['custom_feeds']) )
315
+ $Settings['custom_feeds'] = array_merge( array('podcast'=> __('Podcast Feed (default)', 'powerpress') ), $Settings['custom_feeds'] );
316
  else if( empty($Settings['custom_feeds']) )
317
+ $Settings['custom_feeds'] = array('podcast'=> __('Podcast Feed (default)', 'powerpress'));
318
 
319
  if( $results )
320
  {
321
  if( $results['feeds_required'] > count($Settings['custom_feeds']) )
322
  {
323
+ powerpress_page_message_add_error( sprintf(__('We found blog posts that have as many as %d media files. You may need to create %d more Custom Feed%s in order to import all of the media.', 'powerpress'), $results['feeds_required'], $results['feeds_required'] - count($Settings['custom_feeds']), (( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 )?'s':'') ) );
324
  powerpress_page_message_print();
325
  }
326
  }
378
  {
379
  if (CheckObj[i].type == 'radio' && CheckObj[i].checked && CheckObj[i].value == obj.value )
380
  {
381
+ alert("<?php echo __('Sorry, you may only select one media file per post per feed.', 'powerpress'); ?>");
382
  return false;
383
  }
384
  }
392
 
393
  function no_import_all()
394
  {
395
+ if( !confirm('<?php echo __('Select "No Import" option for all media files?', 'powerpress'); ?>') )
396
  return;
397
 
398
  var Inputs = document.getElementsByTagName('input');
435
  }
436
 
437
  </script>
438
+ <h2><?php echo __('Import Episodes', 'powerpress'); ?></h2>
439
  <?php
440
 
441
  if( count($results) == 0 || count($results) == 1 )
442
  {
443
  ?>
444
+ <p><?php echo __('No episodes found to import.', 'powerpress'); ?></p>
445
  <?php
446
  }
447
  else
448
  {
449
  ?>
450
  <input type="hidden" name="action" value="powerpress-importmt" />
451
+ <p><?php echo __('Select the media file under each feed for each episode you wish to import.', 'powerpress'); ?></p>
452
  <table class="widefat fixed" cellspacing="0">
453
  <thead>
454
  <tr>
544
  }
545
 
546
  if( $feed_slug == 'podcast' )
547
+ $feed_title = __('Podcast Feed (default)', 'powerpress');
548
  $feed_title = wp_specialchars($feed_title);
549
  if( $count % 2 == 0 )
550
  echo '<tr valign="middle" class="alternate">';
565
  echo '<td '.$class.'><strong>';
566
  if ( current_user_can( 'edit_post', $post_id ) )
567
  {
568
+ ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"', 'powerpress'), $import_data['post_title'])); ?>"><?php echo $import_data['post_title'] ?></a><?php
569
  }
570
  else
571
  {
649
  if( $CurrentEnclosures[$feed_slug]['url'] == $episode_data['url'] )
650
  {
651
  if( $CurrentEnclosures[$feed_slug]['present'] )
652
+ echo '<strong style="color: green;">'. __('present', 'powerpress') .'</strong>';
653
  else
654
+ echo '<strong style="color: green;">'. __('imported', 'powerpress') .'</strong>';
655
  }
656
  else
657
  echo 'X';
707
  </tbody>
708
  </table>
709
 
710
+ <p><?php
711
+ echo sprintf( __('Importable episodes highlighted in %s with asterisks *.', 'powerpress'),
712
+ '<span style="color: #CC0000; font-weight: bold;">'. __('red', 'powerpress') .'</span>' );
713
+ ?>
714
+ </p>
715
+ <p style="margin-bottom: 0; padding-bottom: 0;"><?php echo __('Select Only:', 'powerpress'); ?></p>
716
  <?php
717
  if( $results['feeds_required'] < 1 )
718
  $results['feeds_required'] = 1;
721
  {
722
  ?>
723
  <p style="margin: 0 0 0 40px; padding: 0;">
724
+ <?php echo __('File', 'powerpress'); ?> <?php echo ($number+1); ?>:
725
  <?php
726
  while( list($feed_slug,$feed_title) = each($Settings['custom_feeds']) )
727
  {
729
  }
730
  reset($Settings['custom_feeds']);
731
  ?>
732
+ <a href="javascript:void()" onclick="select_all(<?php echo $number; ?>,'');return false;"><?php echo __('No Import', 'powerpress'); ?></a>
733
  </p>
734
  <?php
735
  }
736
  ?>
737
+ <p><?php echo __('Types of media found:', 'powerpress'); ?>
738
  <?php
739
  $comma = false;
740
  global $g_import_mt_extensions;
757
  {
758
  reset($results);
759
  ?>
760
+ <p><?php
761
+ echo sprintf( __('There are %s media files that can be imported with a total of %d blog post podcast episodes.', 'powerpress'),
762
+ $StrandedEpisodes,
763
+ (count($results) -1) );
764
+
765
+ ?>
766
  </p>
767
  <?php
768
  }
769
  ?>
770
  <p class="submit">
771
  <input type="submit" name="Submit" id="powerpress_import_button" class="button-primary" value="Import Episodes" onclick="return confirm('Import selected episodes, are you sure?');" />
772
+ &nbsp; <input type="checkbox" name="DetectDuration" value="1" /> <?php echo __('Detect duration for mp3 media. (expect script to take a while with this option)', 'powerpress'); ?></p>
773
  </p>
774
  </form>
775
  <hr />
776
  <form enctype="enctype" method="get" action="<?php echo admin_url('admin.php') ?>">
777
  <input type="hidden" name="page" value="powerpress/powerpressadmin_tools.php" />
778
  <input type="hidden" name="action" value="powerpress-mt-epiosdes" />
779
+ <h2><?php echo __('Filter Results', 'powerpress'); ?></h2>
780
+ <p><label><?php echo __('Include Only', 'powerpress'); ?></label><input type="text" name="include_only_ext" value="<?php if( $_GET['include_only_ext'] ) echo htmlspecialchars($_GET['include_only_ext']); ?>" style="width: 240px;" />
781
+ (<?php echo __('leave blank for all media', 'powerpress'); ?>) <br />
782
+ <label>&nbsp;</label><?php echo __('Specify the file extensions to include separated by commas (e.g. mp3, m4v).', 'powerpress'); ?>
783
  </p>
784
  <p class="submit">
785
+ <input type="submit" name="Submit" class="button-primary" value="<?php echo __('Filter Episodes', 'powerpress'); ?>" />
786
  </p>
787
  <!-- start footer -->
788
  <?php
powerpressadmin-ping-sites.php CHANGED
@@ -12,23 +12,23 @@
12
  $ping_site_data = trim($ping_site_data)."\r\n$url";
13
 
14
  update_option('ping_sites', $ping_site_data);
15
- powerpress_page_message_add_notice( __('Update services added successfully.') );
16
  }
17
  else
18
  {
19
- powerpress_page_message_add_notice( __('No update services selected to add.') );
20
  }
21
  }
22
 
23
  function powerpress_admin_ping_sites()
24
  {
25
  $ping_sites = get_option('ping_sites');
26
- $BlogSites = array('http://rpc.pingomatic.com/'=>'Ping-o-Matic!',
27
- 'http://blogsearch.google.com/ping/RPC2'=>'Google Blog Search',
28
- 'http://rssrpc.weblogs.com/RPC2'=>'WebLogs',
29
- 'http://rpc.technorati.com/rpc/ping'=>'Technorati');
30
 
31
- $PodcastSites = array('http://audiorpc.weblogs.com/RPC2'=>'WebLogs Audio',
32
  'http://www.allpodcasts.com/Ping.aspx'=>'AllPodcasts.com',
33
  'http://www.podnova.com/xmlrpc.srf'=>'PodNova.com',
34
  'http://ping.podcast.com/ping.php'=>'Podcasts.com',
@@ -37,15 +37,15 @@
37
 
38
 
39
  <input type="hidden" name="action" value="powerpress-ping-sites" />
40
- <h2><?php echo __("Add Update services / Ping Sites"); ?></h2>
41
 
42
- <p style="margin-bottom: 0;">Notify the following Update Services / Ping Sites when you create a new blog post / podcast episode.</p>
43
 
44
  <table class="form-table">
45
  <tr valign="top">
46
- <th scope="row"><?php echo __("Update Blog Searvices"); ?></th>
47
  <td>
48
- <p>Select the blog service you would like to notify.</p>
49
  <?php
50
  while( list($url,$name) = each($BlogSites) )
51
  {
@@ -67,9 +67,9 @@
67
  </tr>
68
 
69
  <tr valign="top">
70
- <th scope="row"><?php echo __("Update Podcast Searvices"); ?></th>
71
  <td>
72
- <p>Select the podcasting service you would like to notify.</p>
73
  <?php
74
  while( list($url,$name) = each($PodcastSites) )
75
  {
@@ -92,10 +92,10 @@
92
 
93
  </table>
94
  <p>
95
- You can manually add ping services by going to the to the "Update Services" section found in the <strong>WordPress Settings</strong> &gt; <strong>Writing</strong> page.
96
  </p>
97
  <p class="submit">
98
- <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="Add Selected Update Services" />
99
  </p>
100
 
101
  <!-- start footer -->
12
  $ping_site_data = trim($ping_site_data)."\r\n$url";
13
 
14
  update_option('ping_sites', $ping_site_data);
15
+ powerpress_page_message_add_notice( __('Update services added successfully.', 'powerpress') );
16
  }
17
  else
18
  {
19
+ powerpress_page_message_add_notice( __('No update services selected to add.', 'powerpress') );
20
  }
21
  }
22
 
23
  function powerpress_admin_ping_sites()
24
  {
25
  $ping_sites = get_option('ping_sites');
26
+ $BlogSites = array('http://rpc.pingomatic.com/'=> __('Ping-o-Matic!', 'powerpress'),
27
+ 'http://blogsearch.google.com/ping/RPC2'=> __('Google Blog Search', 'powerpress'),
28
+ 'http://rssrpc.weblogs.com/RPC2'=> __('WebLogs', 'powerpress'),
29
+ 'http://rpc.technorati.com/rpc/ping'=> __('Technorati', 'powerpress') );
30
 
31
+ $PodcastSites = array('http://audiorpc.weblogs.com/RPC2'=> __('WebLogs Audio', 'powerpress'),
32
  'http://www.allpodcasts.com/Ping.aspx'=>'AllPodcasts.com',
33
  'http://www.podnova.com/xmlrpc.srf'=>'PodNova.com',
34
  'http://ping.podcast.com/ping.php'=>'Podcasts.com',
37
 
38
 
39
  <input type="hidden" name="action" value="powerpress-ping-sites" />
40
+ <h2><?php echo __('Add Update services / Ping Sites', 'powerpress'); ?></h2>
41
 
42
+ <p style="margin-bottom: 0;"><?php echo __('Notify the following Update Services / Ping Sites when you create a new blog post / podcast episode.', 'powerpress'); ?></p>
43
 
44
  <table class="form-table">
45
  <tr valign="top">
46
+ <th scope="row"><?php echo __('Update Blog Searvices', 'powerpress'); ?></th>
47
  <td>
48
+ <p><?php echo __('Select the blog service you would like to notify.', 'powerpress'); ?></p>
49
  <?php
50
  while( list($url,$name) = each($BlogSites) )
51
  {
67
  </tr>
68
 
69
  <tr valign="top">
70
+ <th scope="row"><?php echo __('Update Podcast Searvices', 'powerpress'); ?></th>
71
  <td>
72
+ <p><?php echo __('Select the podcasting service you would like to notify.', 'powerpress'); ?></p>
73
  <?php
74
  while( list($url,$name) = each($PodcastSites) )
75
  {
92
 
93
  </table>
94
  <p>
95
+ <?php echo __('You can manually add ping services by going to the to the "Update Services" section found in the <b>WordPress Settings</b> &gt; <b>Writing</b> page.', 'powerpress'); ?>
96
  </p>
97
  <p class="submit">
98
+ <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="<?php echo __('Add Selected Update Services', 'powerpress'); ?>" />
99
  </p>
100
 
101
  <!-- start footer -->
powerpressadmin-player-page.php CHANGED
@@ -122,16 +122,17 @@ function powerpress_activate_player(Player)
122
  }
123
  </script>
124
  <input type="hidden" name="action" value="powerpress-select-player" />
125
- <h2><?php echo __('Blubrry PowerPress Player Options'); ?></h2>
126
- <p style="margin-bottom: 0;"><?php echo __('Select the media player you would like to use.'); ?></p>
127
  <table class="form-table">
128
  <tr valign="top">
129
- <th scope="row"><?php echo __('Select Player'); ?></th>
130
  <td>
131
 
132
  <ul>
133
- <li><label><input type="radio" name="Player[player]" id="player_default" value="default" <?php if( $General['player'] == 'default' || !isset($General['default']) ) echo 'checked'; ?> /> Flow Player Classic (default)</label>
134
- <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('default');" title="Activate and Configure Flow Player Classic">Activate and Configure Now</a></strong>
 
135
  </li>
136
  <li style="margin-left: 30px; margin-bottom:16px;">
137
  <p>
@@ -150,17 +151,15 @@ function powerpress_activate_player(Player)
150
  ?>
151
  </p>
152
  <p>
153
- Flow Player Classic is an open source flash player that supports both audio (mp3 only) and video (flv only) media files.
154
- It includes all the necessary features for playback including a play/pause button, scrollable position bar, ellapsed time,
155
- total time, mute button and volume control.
156
  </p>
157
  <p>
158
- Flow Player Classic was chosen as the default player in Blubrry PowerPress because if its backwards compatibility with older versions of Flash and support for both audio and flash video.
159
  </p>
160
  </li>
161
 
162
- <li><label><input type="radio" name="Player[player]" id="player_audio_player" value="audio-player" <?php if( $General['player'] == 'audio-player' ) echo 'checked'; ?> /> 1 Pixel Out Audio Player</label>
163
- <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('audio_player');" title="Activate and Configure 1 Pixel Out Audio Player">Activate and Configure Now</a></strong>
164
  </li>
165
  <li style="margin-left: 30px; margin-bottom:16px;">
166
  <p>
@@ -173,13 +172,12 @@ function powerpress_activate_player(Player)
173
  <param name="wmode" value="transparent" />
174
  </object> </p>
175
  <p>
176
- 1 Pixel Out Audio Player is a popular customizable audio (mp3 only) flash player.
177
- Features include an animated play/pause button, scrollable position bar, ellapsed/remaining time, volume control and color styling options.
178
  </p>
179
  </li>
180
 
181
- <li><label><input type="radio" name="Player[player]" id="player_flashmp3_maxi" value="flashmp3-maxi" <?php if( $General['player'] == 'flashmp3-maxi' ) echo 'checked'; ?> /> Mp3 Player Maxi</label>
182
- <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('flashmp3_maxi');" title="Activate and Configure Mp3 Player Maxi">Activate and Configure Now</a></strong>
183
  </li>
184
  <li style="margin-left: 30px; margin-bottom:16px;">
185
  <p>
@@ -190,12 +188,12 @@ function powerpress_activate_player(Player)
190
  </object>
191
  </p>
192
  <p>
193
- Flash Mp3 Maxi Player is a customizable open source audio (mp3 only) flash player. Features include pause/play/stop/file info buttons, scrollable position bar, volume control and color styling options.
194
  </p>
195
  </li>
196
 
197
- <li><label><input type="radio" name="Player[player]" id="player_simple_flash" value="simple_flash" <?php if( $General['player'] == 'simple_flash' ) echo 'checked'; ?> /> Simple Flash MP3 Player</label>
198
- <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('simple_flash');" title="Activate and Configure Simple Flash MP3 Player">Activate and Configure Now</a></strong>
199
  </li>
200
  <li style="margin-left: 30px; margin-bottom:16px;">
201
  <p>
@@ -209,12 +207,12 @@ function powerpress_activate_player(Player)
209
  </object>
210
  </p>
211
  <p>
212
- Simple Flash MP3 Player is a free and simple audio (mp3 only) flash player. Features include play/pause and stop buttons.
213
  </p>
214
  </li>
215
 
216
- <li><label><input type="radio" name="Player[player]" id="player_audioplay" value="audioplay" <?php if( $General['player'] == 'audioplay' ) echo 'checked'; ?> /> AudioPlay</label>
217
- <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('audioplay');" title="Activate and Configure AudioPlay">Activate and Configure Now</a></strong>
218
  </li>
219
  <li style="margin-left: 30px; margin-bottom:16px;">
220
  <p>
@@ -233,7 +231,7 @@ function powerpress_activate_player(Player)
233
 
234
  </p>
235
  <p>
236
- AudioPlay is one button freeware audio (mp3 only) flash player. Features include a play/stop or play/pause button available in two sizes in either black or white.
237
  </p>
238
  </li>
239
 
@@ -243,14 +241,14 @@ function powerpress_activate_player(Player)
243
  </td>
244
  </tr>
245
  </table>
246
- <h4 style="margin-bottom: 0;">Click 'Save Changes' to activate and configure selected player.</h4>
247
  <?php
248
  }
249
  else
250
  {
251
  ?>
252
- <h2><?php _e("Configure Player"); ?></h2>
253
- <p style="margin-bottom: 20px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_player.php&amp;sp=1"); ?>" title="Select a different flash player">Select a different flash player</a></strong></p>
254
  <?php
255
  // Start adding logic here to display options based on the player selected...
256
  switch( $General['player'] )
@@ -371,7 +369,7 @@ function update_audio_player()
371
 
372
  function audio_player_defaults()
373
  {
374
- if( confirm('Set defaults, are you sure?\n\nAll of the current settings will be overwritten!') )
375
  {
376
  jQuery('#player_width').val('290');
377
  UpdatePlayerPreview('player_width',jQuery('#player_width').val() );
@@ -463,14 +461,14 @@ function audio_player_defaults()
463
 
464
  </script>
465
  <input type="hidden" name="action" value="powerpress-audio-player" />
466
- Configure the 1 pixel out Audio Player
467
 
468
 
469
  <table class="form-table">
470
 
471
  <tr valign="top">
472
  <th scope="row">
473
- <?php _e("Preview of Player"); ?>
474
  </th>
475
  <td>
476
  <div id="player_preview">
@@ -488,21 +486,21 @@ function audio_player_defaults()
488
 
489
  <div id="powerpress_settings_page" class="powerpress_tabbed_content" style="position: relative;">
490
  <div style="position: absolute; top: 6px; right:0px;">
491
- <a href="#" onclick="audio_player_defaults();return false;">Set Defaults</a>
492
  </div>
493
  <ul class="powerpress_settings_tabs">
494
- <li><a href="#tab_general"><span>Basic Settings</span></a></li>
495
- <li><a href="#tab_progress"><span>Progress Bar</span></a></li>
496
- <li><a href="#tab_volume"><span>Volume Button</span></a></li>
497
- <li><a href="#tab_play"><span>Play / Pause Button</span></a></li>
498
  </ul>
499
 
500
  <div id="tab_general" class="powerpress_tab">
501
- <h3>General Settings</h3>
502
  <table class="form-table">
503
  <tr valign="top">
504
  <th scope="row">
505
- <?php _e("Page Background Color"); ?>
506
 
507
  </th>
508
  <td>
@@ -510,11 +508,11 @@ function audio_player_defaults()
510
  <input type="text" style="width: 100px;" id="pagebg" name="Player[pagebg]" class="color_field" value="<?php echo $PlayerSettings['pagebg']; ?>" maxlength="20" />
511
  <img id="pagebg_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['pagebg']; ?>;" class="color_preview" />
512
  </div>
513
- <small>(<?php _e('leave blank for transparent'); ?>)</small>
514
  </td>
515
  </tr> <tr valign="top">
516
  <th scope="row">
517
- <?php _e("Player Background Color"); ?>
518
  </th>
519
  <td>
520
  <div class="color_control">
@@ -525,16 +523,16 @@ function audio_player_defaults()
525
  </tr>
526
  <tr valign="top">
527
  <th scope="row">
528
- <?php _e("Width (in pixels)"); ?>
529
  </th>
530
  <td>
531
  <input type="text" style="width: 50px;" id="player_width" name="Player[width]" class="other_field" value="<?php echo $PlayerSettings['width']; ?>" maxlength="20" />
532
- width of the player. e.g. 290 (290 pixels) or 100%
533
  </td>
534
  </tr>
535
  <tr valign="top">
536
  <th scope="row">
537
- <?php _e("Right-to-Left"); ?>
538
  </th>
539
  <td>
540
  <select style="width: 50px;" id="rtl" name="Player[rtl]" class="other_field">
@@ -548,13 +546,13 @@ function audio_player_defaults()
548
  endif;
549
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
550
  }?>
551
- </select> switches the layout to animate from the right to the left
552
  </td>
553
  </tr>
554
 
555
  <tr valign="top">
556
  <th scope="row">
557
- <?php _e("Loading Bar Color"); ?>
558
  </th>
559
  <td>
560
  <div class="color_control">
@@ -566,7 +564,7 @@ function audio_player_defaults()
566
 
567
  <tr valign="top">
568
  <th scope="row">
569
- <?php _e("Text Color"); ?>
570
  </th>
571
  <td>
572
  <div class="color_control">
@@ -578,23 +576,23 @@ function audio_player_defaults()
578
 
579
  <tr valign="top">
580
  <th scope="row">
581
- <?php _e("Text In Player"); ?>
582
  </th>
583
  <td>
584
  <div><input type="text" style="width: 60%;" id="titles" name="Player[titles]" class="other_field" value="<?php echo $PlayerSettings['titles']; ?>" maxlength="100" /></div>
585
- <small><?php _e('Enter \'TRACK\' to display track name from mp3. Only works if media is hosted on same server as blog.'); ?></small>
586
  </td>
587
  </tr>
588
 
589
  <tr valign="top">
590
  <th scope="row">
591
- <?php _e("Play Animation"); ?>
592
  </th>
593
  <td>
594
  <div class="color_control">
595
  <select style="width: 50px;" id="animation" name="Player[animation]" class="other_field">
596
  <?php
597
- $option = array('yes','no');
598
  foreach($option as $option){
599
  if($PlayerSettings['animation'] == $option):
600
  $selected = " selected";
@@ -603,19 +601,19 @@ function audio_player_defaults()
603
  endif;
604
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
605
  }?>
606
- </select> if no, player is always open</div>
607
  </td>
608
  </tr>
609
 
610
  <tr valign="top">
611
  <th scope="row">
612
- <?php _e("Display Remaining Time"); ?>
613
  </th>
614
  <td>
615
  <div class="color_control">
616
  <select style="width: 50px;" id="remaining" name="Player[remaining]" class="other_field">
617
  <?php
618
- $options = array('yes','no');
619
  foreach($options as $option){
620
  if($PlayerSettings['remaining'] == $option):
621
  $selected = " selected";
@@ -624,19 +622,19 @@ function audio_player_defaults()
624
  endif;
625
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
626
  }?>
627
- </select> if yes, shows remaining track time rather than ellapsed time (default: no)</div>
628
  </td>
629
  </tr>
630
 
631
  <tr valign="top">
632
  <th scope="row">
633
- <?php _e("Buffering Time"); ?>
634
  </th>
635
  <td>
636
  <div class="color_control">
637
  <select style="width: 200px;" id="buffer" name="Player[buffer]" class="other_field">
638
  <?php
639
- $options = array('0'=>'No buffering', ''=>'Default (5 seconds)','10'=>'10 seconds','15'=>'15 seconds','20'=>'20 seconds','30'=>'30 seconds','60'=>'60 seconds');
640
 
641
  while( list($key,$value) = each($options) ) {
642
  if( $PlayerSettings['buffer'] == $key )
@@ -646,7 +644,7 @@ function audio_player_defaults()
646
 
647
  echo '<option value="'. $key .'"'. $selected .' >'. $value .'</option>';
648
  }?>
649
- </select> buffering time in seconds</div>
650
  </td>
651
  </tr>
652
 
@@ -655,11 +653,11 @@ function audio_player_defaults()
655
  </div>
656
 
657
  <div id="tab_progress" class="powerpress_tab">
658
- <h3>Progress Bar</h3>
659
  <table class="form-table">
660
  <tr valign="top">
661
  <th scope="row">
662
- <?php _e("Progress Bar Background"); ?>
663
  </th>
664
  <td>
665
  <div class="color_control">
@@ -670,7 +668,7 @@ function audio_player_defaults()
670
  </tr>
671
  <tr valign="top">
672
  <th scope="row">
673
- <?php _e("Progress Bar Color"); ?>
674
  </th>
675
  <td>
676
  <div class="color_control">
@@ -681,7 +679,7 @@ function audio_player_defaults()
681
  </tr>
682
  <tr valign="top">
683
  <th scope="row">
684
- <?php _e("Progress Bar Border"); ?>
685
  </th>
686
  <td>
687
  <div class="color_control">
@@ -695,11 +693,11 @@ function audio_player_defaults()
695
 
696
 
697
  <div id="tab_volume" class="powerpress_tab">
698
- <h3>Volume Button Settings</h3>
699
  <table class="form-table">
700
  <tr valign="top">
701
  <th scope="row">
702
- <?php _e("Initial Volume"); ?>
703
  </th>
704
  <td>
705
  <select style="width: 100px;" id="initialvolume" name="Player[initialvolume]" class="other_field">
@@ -709,13 +707,13 @@ function audio_player_defaults()
709
  {
710
  echo '<option value="'. $x .'"'. ($PlayerSettings['initialvolume'] == $x?' selected':'') .'>'. $x .'%</option>';
711
  }?>
712
- </select> initial volume level (default: 60)
713
  </td>
714
  </tr>
715
 
716
  <tr valign="top">
717
  <th scope="row">
718
- <?php _e("Volumn Background Color"); ?>
719
  </th>
720
  <td>
721
  <div class="color_control">
@@ -726,7 +724,7 @@ function audio_player_defaults()
726
  </tr>
727
  <tr valign="top">
728
  <th scope="row">
729
- <?php _e("Speaker Icon Color"); ?>
730
  </th>
731
  <td>
732
  <div class="color_control">
@@ -737,7 +735,7 @@ function audio_player_defaults()
737
  </tr>
738
  <tr valign="top">
739
  <th scope="row">
740
- <?php _e("Volume Icon Background"); ?>
741
  </th>
742
  <td>
743
  <div class="color_control">
@@ -748,7 +746,7 @@ function audio_player_defaults()
748
  </tr>
749
  <tr valign="top">
750
  <th scope="row">
751
- <?php _e("Volume Slider Color"); ?>
752
  </th>
753
  <td>
754
  <div class="color_control">
@@ -761,11 +759,11 @@ function audio_player_defaults()
761
  </div>
762
 
763
  <div id="tab_play" class="powerpress_tab">
764
- <h3>Play / Pause Button Settings</h3>
765
  <table class="form-table">
766
  <tr valign="top">
767
  <th scope="row">
768
- <?php _e("Play/Pause Background Color"); ?>
769
  </th>
770
  <td>
771
  <div class="color_control">
@@ -776,7 +774,7 @@ function audio_player_defaults()
776
  </tr>
777
  <tr valign="top">
778
  <th scope="row">
779
- <?php _e("Play/Pause Hover Color"); ?>
780
  </th>
781
  <td>
782
  <div class="color_control">
@@ -787,7 +785,7 @@ function audio_player_defaults()
787
  </tr>
788
  <tr valign="top">
789
  <th scope="row">
790
- <?php _e("Play/Pause Icon Color"); ?>
791
  </th>
792
  <td>
793
  <div class="color_control">
@@ -798,7 +796,7 @@ function audio_player_defaults()
798
  </tr>
799
  <tr valign="top">
800
  <th scope="row">
801
- <?php _e("Play/Pause Icon Hover Color"); ?>
802
  </th>
803
  <td>
804
  <div class="color_control">
@@ -818,7 +816,7 @@ function audio_player_defaults()
818
  <table class="form-table">
819
  <tr valign="top">
820
  <th scope="row">
821
- <?php _e("Preview of Player"); ?>
822
  </th>
823
  <td>
824
  <p>
@@ -839,7 +837,7 @@ function audio_player_defaults()
839
  &nbsp;
840
  </th>
841
  <td>
842
- <p>Simple Flash Player has no additional settings.</p>
843
  </td>
844
  </tr>
845
  </table>
@@ -954,7 +952,7 @@ function audio_player_defaults()
954
 
955
  function audio_player_defaults()
956
  {
957
- if( confirm('Set defaults, are you sure?\n\nAll of the current settings will be overwritten!') )
958
  {
959
  jQuery('#bgcolor1').val('#7c7c7c');
960
  UpdatePlayerPreview('bgcolor1',jQuery('#bgcolor1').val() );
@@ -1044,7 +1042,7 @@ function audio_player_defaults()
1044
 
1045
  <tr valign="top">
1046
  <th scope="row">
1047
- <?php _e("Preview of Player"); ?>
1048
  </th>
1049
  <td>
1050
  <div id="player_preview">
@@ -1070,7 +1068,7 @@ $content .= '</object>'.PHP_EOL;
1070
 
1071
  <div id="powerpress_settings_page" class="powerpress_tabbed_content" style="position: relative;">
1072
  <div style="position: absolute; top: 6px; right:0px;">
1073
- <a href="#" onclick="audio_player_defaults();return false;">Set Defaults</a>
1074
  </div>
1075
  <ul class="powerpress_settings_tabs">
1076
  <li><a href="#tab_general"><span>Basic Settings</span></a></li>
@@ -1080,17 +1078,17 @@ $content .= '</object>'.PHP_EOL;
1080
  </ul>
1081
 
1082
  <div id="tab_general" class="powerpress_tab">
1083
- <h3><?php _e('General Settings'); ?></h3>
1084
  <table class="form-table">
1085
  <tr valign="top">
1086
  <td colspan="2">
1087
 
1088
- <?php _e('leave blank for default values'); ?>
1089
  </td>
1090
  </tr>
1091
  <tr valign="top">
1092
  <th scope="row">
1093
- <?php _e("Player Gradient Color Top"); ?>
1094
  </th>
1095
  <td>
1096
  <div class="color_control">
@@ -1101,7 +1099,7 @@ $content .= '</object>'.PHP_EOL;
1101
  </tr>
1102
  <tr valign="top">
1103
  <th scope="row">
1104
- <?php _e("Player Gradient Color Bottom"); ?>
1105
  </th>
1106
  <td>
1107
  <div class="color_control">
@@ -1112,7 +1110,7 @@ $content .= '</object>'.PHP_EOL;
1112
  </tr>
1113
  <tr valign="top">
1114
  <th scope="row">
1115
- <?php _e("Background Color"); ?>
1116
 
1117
  </th>
1118
  <td>
@@ -1120,12 +1118,12 @@ $content .= '</object>'.PHP_EOL;
1120
  <input type="text" style="width: 100px;" id="bgcolor" name="Player[bgcolor]" class="color_field" value="<?php echo $PlayerSettings['bgcolor']; ?>" maxlength="20" />
1121
  <img id="bgcolor_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['bgcolor']; ?>;" class="color_preview" />
1122
  </div>
1123
- <small><?php _e("leave blank for transparent");?></small>
1124
  </td>
1125
  </tr>
1126
  <tr valign="top">
1127
  <th scope="row">
1128
- <?php _e("Text Color"); ?>
1129
  </th>
1130
  <td>
1131
  <div class="color_control">
@@ -1137,7 +1135,7 @@ $content .= '</object>'.PHP_EOL;
1137
 
1138
  <tr valign="top">
1139
  <th scope="row">
1140
- <?php _e("Player Height (in pixels)"); ?>
1141
  </th>
1142
  <td>
1143
  <div class="color_control">
@@ -1147,7 +1145,7 @@ $content .= '</object>'.PHP_EOL;
1147
  </tr>
1148
  <tr valign="top">
1149
  <th scope="row">
1150
- <?php _e("Player Width (in pixels)"); ?>
1151
  </th>
1152
  <td>
1153
  <div class="color_control">
@@ -1159,11 +1157,11 @@ $content .= '</object>'.PHP_EOL;
1159
  </div>
1160
 
1161
  <div id="tab_buttons" class="powerpress_tab">
1162
- <h3><?php _e('Button Settings'); ?></h3>
1163
  <table class="form-table">
1164
  <tr valign="top">
1165
  <th scope="row">
1166
- <?php _e("Button Color"); ?>
1167
  </th>
1168
  <td>
1169
  <div class="color_control">
@@ -1174,7 +1172,7 @@ $content .= '</object>'.PHP_EOL;
1174
  </tr>
1175
  <tr valign="top">
1176
  <th scope="row">
1177
- <?php _e("Button Hover Color"); ?>
1178
  </th>
1179
  <td>
1180
  <div class="color_control">
@@ -1185,7 +1183,7 @@ $content .= '</object>'.PHP_EOL;
1185
  </tr>
1186
  <tr valign="top">
1187
  <th scope="row">
1188
- <?php _e("Button Width (in pixels)"); ?>
1189
  </th>
1190
  <td>
1191
  <div class="color_control">
@@ -1195,7 +1193,7 @@ $content .= '</object>'.PHP_EOL;
1195
  </tr>
1196
  <tr valign="top">
1197
  <th scope="row">
1198
- <?php _e("Show Stop Button"); ?>
1199
  </th>
1200
  <td>
1201
  <div class="color_control">
@@ -1219,7 +1217,7 @@ $content .= '</object>'.PHP_EOL;
1219
  </tr>
1220
  <tr valign="top">
1221
  <th scope="row">
1222
- <?php _e("Show Info"); ?>
1223
  </th>
1224
  <td>
1225
  <div class="color_control">
@@ -1245,12 +1243,12 @@ $content .= '</object>'.PHP_EOL;
1245
  </div>
1246
 
1247
  <div id="tab_volume" class="powerpress_tab">
1248
- <h3><?php _e('Volume Settings'); ?></h3>
1249
  <table class="form-table">
1250
 
1251
  <tr valign="top">
1252
  <th scope="row">
1253
- <?php _e("Show Volume"); ?>
1254
  </th>
1255
  <td>
1256
  <div class="color_control">
@@ -1274,7 +1272,7 @@ $content .= '</object>'.PHP_EOL;
1274
  </tr>
1275
  <tr valign="top">
1276
  <th scope="row">
1277
- <?php _e("Volume"); ?>
1278
  </th>
1279
  <td>
1280
  <div class="color_control">
@@ -1293,7 +1291,7 @@ $content .= '</object>'.PHP_EOL;
1293
  </tr>
1294
  <tr valign="top">
1295
  <th scope="row">
1296
- <?php _e("Volume Height (in pixels)"); ?>
1297
  </th>
1298
  <td>
1299
  <div class="color_control">
@@ -1303,7 +1301,7 @@ $content .= '</object>'.PHP_EOL;
1303
  </tr>
1304
  <tr valign="top">
1305
  <th scope="row">
1306
- <?php _e("Volume Width (in pixels)"); ?>
1307
  </th>
1308
  <td>
1309
  <div class="color_control">
@@ -1316,12 +1314,12 @@ $content .= '</object>'.PHP_EOL;
1316
  </div>
1317
 
1318
  <div id="tab_slider" class="powerpress_tab">
1319
- <h3><?php _e('Slider Settings'); ?></h3>
1320
  <table class="form-table">
1321
 
1322
  <tr valign="top">
1323
  <th scope="row">
1324
- <?php _e("Show Slider"); ?>
1325
  </th>
1326
  <td>
1327
  <div class="color_control">
@@ -1346,7 +1344,7 @@ $content .= '</object>'.PHP_EOL;
1346
 
1347
  <tr valign="top">
1348
  <th scope="row">
1349
- <?php _e("Slider Color Top"); ?>
1350
  </th>
1351
  <td>
1352
  <div class="color_control">
@@ -1357,7 +1355,7 @@ $content .= '</object>'.PHP_EOL;
1357
  </tr>
1358
  <tr valign="top">
1359
  <th scope="row">
1360
- <?php _e("Slider Color Bottom"); ?>
1361
  </th>
1362
  <td>
1363
  <div class="color_control">
@@ -1369,7 +1367,7 @@ $content .= '</object>'.PHP_EOL;
1369
 
1370
  <tr valign="top">
1371
  <th scope="row">
1372
- <?php _e("Slider Hover Color"); ?>
1373
  </th>
1374
  <td>
1375
  <div class="color_control">
@@ -1380,7 +1378,7 @@ $content .= '</object>'.PHP_EOL;
1380
  </tr>
1381
  <tr valign="top">
1382
  <th scope="row">
1383
- <?php _e("Slider Height (in pixels)"); ?>
1384
  </th>
1385
  <td>
1386
  <div class="color_control">
@@ -1390,7 +1388,7 @@ $content .= '</object>'.PHP_EOL;
1390
  </tr>
1391
  <tr valign="top">
1392
  <th scope="row">
1393
- <?php _e("Slider Width (in pixels)"); ?>
1394
  </th>
1395
  <td>
1396
  <div class="color_control">
@@ -1401,7 +1399,7 @@ $content .= '</object>'.PHP_EOL;
1401
 
1402
  <tr valign="top">
1403
  <th scope="row">
1404
- <?php _e("Show Loading Buffer"); ?>
1405
  </th>
1406
  <td>
1407
  <div class="color_control">
@@ -1420,7 +1418,7 @@ $content .= '</object>'.PHP_EOL;
1420
  </tr>
1421
  <tr valign="top">
1422
  <th scope="row">
1423
- <?php _e("Loading Buffer Color"); ?>
1424
  </th>
1425
  <td>
1426
  <div class="color_control">
@@ -1507,13 +1505,13 @@ $content .= '</object>'.PHP_EOL;
1507
 
1508
  ?>
1509
  <input type="hidden" name="action" value="powerpress-audioplay" />
1510
- Configure the AudioPlay Player<br clear="all" />
1511
 
1512
  <table class="form-table">
1513
 
1514
  <tr valign="top">
1515
  <th scope="row">
1516
- <?php _e("Preview of Player"); ?>
1517
  </th>
1518
  <td colspan="2">
1519
  <div id="player_preview">
@@ -1534,11 +1532,11 @@ print $content;
1534
  </tr>
1535
  </table>
1536
 
1537
- <h2>General Settings</h2>
1538
  <table class="form-table">
1539
  <tr valign="top">
1540
  <th scope="row">
1541
- <?php _e("Background Color"); ?>
1542
 
1543
  </th>
1544
  <td valign="top">
@@ -1546,12 +1544,12 @@ print $content;
1546
  <input type="text" style="width: 100px;" id="bgcolor" name="Player[bgcolor]" class="color_field" value="<?php echo $PlayerSettings['bgcolor']; ?>" maxlength="20" />
1547
  <img id="bgcolor_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['bgcolor']; ?>;" class="color_preview" />
1548
  </div>
1549
- <small><?php _e("leave blank for transparent");?></small>
1550
  </td>
1551
  </tr>
1552
  <tr valign="top">
1553
  <th scope="row">
1554
- <?php _e("Player Mode"); ?>
1555
  </th>
1556
  <td valign="top">
1557
  <div class="color_control">
@@ -1564,9 +1562,9 @@ print $content;
1564
  $selected = "";
1565
  endif;
1566
  if($option == "playpause"):
1567
- $name = "Play/Pause";
1568
  else:
1569
- $name = "Play/Stop";
1570
  endif;
1571
  echo '<option value="'. $option .'"'. $selected .' >'. $name .'</option>';
1572
  }?>
@@ -1577,7 +1575,7 @@ print $content;
1577
  </tr>
1578
  <tr valign="top">
1579
  <th scope="row">
1580
- <?php _e("Player Button"); ?>
1581
  </th>
1582
  <td valign="top">
1583
  <div class="color_control">
@@ -1593,18 +1591,18 @@ print $content;
1593
  $td = '<td style="background: #999;" align="center">';
1594
  $warning = "(ideal for dark backgrounds)";
1595
  if($option == "classic_small") {
1596
- $name = "Small White";
1597
  }else{
1598
- $name = "Large White";
1599
  }
1600
  }
1601
  else {
1602
  $td = '<td align="center">';
1603
  $warning = "";
1604
  if($option == "negative_small") {
1605
- $name = "Small Black";
1606
  }else{
1607
- $name = "Large Black";
1608
  }
1609
 
1610
  }
@@ -1627,7 +1625,7 @@ print $content;
1627
  <table class="form-table">
1628
  <tr valign="top">
1629
  <th scope="row">
1630
- <?php _e("Preview of Player"); ?>
1631
  </th>
1632
  <td>
1633
  <p>
@@ -1653,7 +1651,7 @@ print $content;
1653
  &nbsp;
1654
  </th>
1655
  <td>
1656
- <p>Flow Player Classic has no additional settings.</p>
1657
  </td>
1658
  </tr>
1659
  </table>
122
  }
123
  </script>
124
  <input type="hidden" name="action" value="powerpress-select-player" />
125
+ <h2><?php echo __('Blubrry PowerPress Player Options', 'powerpress'); ?></h2>
126
+ <p style="margin-bottom: 0;"><?php echo __('Select the media player you would like to use.', 'powerpress'); ?></p>
127
  <table class="form-table">
128
  <tr valign="top">
129
+ <th scope="row"><?php echo __('Select Player', 'powerpress'); ?></th>
130
  <td>
131
 
132
  <ul>
133
+ <li><label><input type="radio" name="Player[player]" id="player_default" value="default" <?php if( $General['player'] == 'default' || !isset($General['default']) ) echo 'checked'; ?> />
134
+ <?php echo __('Flow Player Classic (default)', 'powerpress'); ?></label>
135
+ <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('default');"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
136
  </li>
137
  <li style="margin-left: 30px; margin-bottom:16px;">
138
  <p>
151
  ?>
152
  </p>
153
  <p>
154
+ <?php echo __('Flow Player Classic is an open source flash player that supports both audio (mp3 only) and video (flv only) media files. It includes all the necessary features for playback including a play/pause button, scrollable position bar, ellapsed time, total time, mute button and volume control.', 'powerpress'); ?>
 
 
155
  </p>
156
  <p>
157
+ <?php echo __('Flow Player Classic was chosen as the default player in Blubrry PowerPress because if its backwards compatibility with older versions of Flash and support for both audio and flash video.', 'powerpress'); ?>
158
  </p>
159
  </li>
160
 
161
+ <li><label><input type="radio" name="Player[player]" id="player_audio_player" value="audio-player" <?php if( $General['player'] == 'audio-player' ) echo 'checked'; ?> /> <?php echo __('1 Pixel Out Audio Player', 'powerpress'); ?></label>
162
+ <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('audio_player');"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
163
  </li>
164
  <li style="margin-left: 30px; margin-bottom:16px;">
165
  <p>
172
  <param name="wmode" value="transparent" />
173
  </object> </p>
174
  <p>
175
+ <?php echo __('1 Pixel Out Audio Player is a popular customizable audio (mp3 only) flash player. Features include an animated play/pause button, scrollable position bar, ellapsed/remaining time, volume control and color styling options.', 'powerpress'); ?>
 
176
  </p>
177
  </li>
178
 
179
+ <li><label><input type="radio" name="Player[player]" id="player_flashmp3_maxi" value="flashmp3-maxi" <?php if( $General['player'] == 'flashmp3-maxi' ) echo 'checked'; ?> /> <?php echo __('Mp3 Player Maxi', 'powerpress'); ?></label>
180
+ <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('flashmp3_maxi');"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
181
  </li>
182
  <li style="margin-left: 30px; margin-bottom:16px;">
183
  <p>
188
  </object>
189
  </p>
190
  <p>
191
+ <?php echo __('Flash Mp3 Maxi Player is a customizable open source audio (mp3 only) flash player. Features include pause/play/stop/file info buttons, scrollable position bar, volume control and color styling options.', 'powerpress'); ?>
192
  </p>
193
  </li>
194
 
195
+ <li><label><input type="radio" name="Player[player]" id="player_simple_flash" value="simple_flash" <?php if( $General['player'] == 'simple_flash' ) echo 'checked'; ?> /> <?php echo __('Simple Flash MP3 Player', 'powerpress'); ?></label>
196
+ <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('simple_flash');"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
197
  </li>
198
  <li style="margin-left: 30px; margin-bottom:16px;">
199
  <p>
207
  </object>
208
  </p>
209
  <p>
210
+ <?php echo __('Simple Flash MP3 Player is a free and simple audio (mp3 only) flash player. Features include play/pause and stop buttons.', 'powerpress'); ?>
211
  </p>
212
  </li>
213
 
214
+ <li><label><input type="radio" name="Player[player]" id="player_audioplay" value="audioplay" <?php if( $General['player'] == 'audioplay' ) echo 'checked'; ?> /> <?php echo __('AudioPlay', 'powerpress'); ?></label>
215
+ <strong style="padding-top: 8px; margin-left: 20px;"><a href="#" onclick="return powerpress_activate_player('audioplay');"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
216
  </li>
217
  <li style="margin-left: 30px; margin-bottom:16px;">
218
  <p>
231
 
232
  </p>
233
  <p>
234
+ <?php echo __('AudioPlay is one button freeware audio (mp3 only) flash player. Features include a play/stop or play/pause button available in two sizes in either black or white.', 'powerpress'); ?>
235
  </p>
236
  </li>
237
 
241
  </td>
242
  </tr>
243
  </table>
244
+ <h4 style="margin-bottom: 0;"><?php echo __('Click \'Save Changes\' to activate and configure selected player.', 'powerpress'); ?></h4>
245
  <?php
246
  }
247
  else
248
  {
249
  ?>
250
+ <h2><?php echo __('Configure Player', 'powerpress'); ?></h2>
251
+ <p style="margin-bottom: 20px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_player.php&amp;sp=1"); ?>"><?php echo __('Select a different flash player', 'powerpress'); ?></a></strong></p>
252
  <?php
253
  // Start adding logic here to display options based on the player selected...
254
  switch( $General['player'] )
369
 
370
  function audio_player_defaults()
371
  {
372
+ if( confirm('<?php echo __("Set defaults, are you sure?\n\nAll of the current settings will be overwritten!", 'powerpress'); ?>') )
373
  {
374
  jQuery('#player_width').val('290');
375
  UpdatePlayerPreview('player_width',jQuery('#player_width').val() );
461
 
462
  </script>
463
  <input type="hidden" name="action" value="powerpress-audio-player" />
464
+ <?php echo __('Configure the 1 pixel out Audio Player', 'powerpress'); ?>
465
 
466
 
467
  <table class="form-table">
468
 
469
  <tr valign="top">
470
  <th scope="row">
471
+ <?php echo __('Preview of Player', 'powerpress'); ?>
472
  </th>
473
  <td>
474
  <div id="player_preview">
486
 
487
  <div id="powerpress_settings_page" class="powerpress_tabbed_content" style="position: relative;">
488
  <div style="position: absolute; top: 6px; right:0px;">
489
+ <a href="#" onclick="audio_player_defaults();return false;"><?php echo __('Set Defaults', 'powerpress'); ?></a>
490
  </div>
491
  <ul class="powerpress_settings_tabs">
492
+ <li><a href="#tab_general"><span><?php echo __('Basic Settings', 'powerpress'); ?></span></a></li>
493
+ <li><a href="#tab_progress"><span><?php echo __('Progress Bar', 'powerpress'); ?></span></a></li>
494
+ <li><a href="#tab_volume"><span><?php echo __('Volume Button', 'powerpress'); ?></span></a></li>
495
+ <li><a href="#tab_play"><span><?php echo __('Play / Pause Button', 'powerpress'); ?></span></a></li>
496
  </ul>
497
 
498
  <div id="tab_general" class="powerpress_tab">
499
+ <h3><?php echo __('General Settings', 'powerpress'); ?></h3>
500
  <table class="form-table">
501
  <tr valign="top">
502
  <th scope="row">
503
+ <?php echo __('Page Background Color', 'powerpress'); ?>
504
 
505
  </th>
506
  <td>
508
  <input type="text" style="width: 100px;" id="pagebg" name="Player[pagebg]" class="color_field" value="<?php echo $PlayerSettings['pagebg']; ?>" maxlength="20" />
509
  <img id="pagebg_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['pagebg']; ?>;" class="color_preview" />
510
  </div>
511
+ <small>(<?php echo __('leave blank for transparent', 'powerpress'); ?>)</small>
512
  </td>
513
  </tr> <tr valign="top">
514
  <th scope="row">
515
+ <?php echo __('Player Background Color', 'powerpress'); ?>
516
  </th>
517
  <td>
518
  <div class="color_control">
523
  </tr>
524
  <tr valign="top">
525
  <th scope="row">
526
+ <?php echo __('Width (in pixels)', 'powerpress'); ?>
527
  </th>
528
  <td>
529
  <input type="text" style="width: 50px;" id="player_width" name="Player[width]" class="other_field" value="<?php echo $PlayerSettings['width']; ?>" maxlength="20" />
530
+ <?php echo __('width of the player. e.g. 290 (290 pixels) or 100%', 'powerpress'); ?>
531
  </td>
532
  </tr>
533
  <tr valign="top">
534
  <th scope="row">
535
+ <?php echo __('Right-to-Left', 'powerpress'); ?>
536
  </th>
537
  <td>
538
  <select style="width: 50px;" id="rtl" name="Player[rtl]" class="other_field">
546
  endif;
547
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
548
  }?>
549
+ </select> <?php echo __('switches the layout to animate from the right to the left', 'powerpress'); ?>
550
  </td>
551
  </tr>
552
 
553
  <tr valign="top">
554
  <th scope="row">
555
+ <?php echo __('Loading Bar Color', 'powerpress'); ?>
556
  </th>
557
  <td>
558
  <div class="color_control">
564
 
565
  <tr valign="top">
566
  <th scope="row">
567
+ <?php echo __('Text Color', 'powerpress'); ?>
568
  </th>
569
  <td>
570
  <div class="color_control">
576
 
577
  <tr valign="top">
578
  <th scope="row">
579
+ <?php echo __('Text In Player', 'powerpress'); ?>
580
  </th>
581
  <td>
582
  <div><input type="text" style="width: 60%;" id="titles" name="Player[titles]" class="other_field" value="<?php echo $PlayerSettings['titles']; ?>" maxlength="100" /></div>
583
+ <small><?php echo sprintf(__('Enter \'%s\' to display track name from mp3. Only works if media is hosted on same server as blog.', 'powerpress'), __('TRACK', 'powerpress') ); ?></small>
584
  </td>
585
  </tr>
586
 
587
  <tr valign="top">
588
  <th scope="row">
589
+ <?php echo __('Play Animation', 'powerpress'); ?>
590
  </th>
591
  <td>
592
  <div class="color_control">
593
  <select style="width: 50px;" id="animation" name="Player[animation]" class="other_field">
594
  <?php
595
+ $option = array( __('yes', 'powerpress'), __('no', 'powerpress') );
596
  foreach($option as $option){
597
  if($PlayerSettings['animation'] == $option):
598
  $selected = " selected";
601
  endif;
602
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
603
  }?>
604
+ </select> <?php echo __('if no, player is always open', 'powerpress'); ?></div>
605
  </td>
606
  </tr>
607
 
608
  <tr valign="top">
609
  <th scope="row">
610
+ <?php echo __('Display Remaining Time', 'powerpress'); ?>
611
  </th>
612
  <td>
613
  <div class="color_control">
614
  <select style="width: 50px;" id="remaining" name="Player[remaining]" class="other_field">
615
  <?php
616
+ $option = array( __('yes', 'powerpress'), __('no', 'powerpress') );
617
  foreach($options as $option){
618
  if($PlayerSettings['remaining'] == $option):
619
  $selected = " selected";
622
  endif;
623
  echo '<option value="'. $option .'"'. $selected .' >'. ucwords($option) .'</option>';
624
  }?>
625
+ </select> <?php echo __('if yes, shows remaining track time rather than ellapsed time (default: no)', 'powerpress'); ?></div>
626
  </td>
627
  </tr>
628
 
629
  <tr valign="top">
630
  <th scope="row">
631
+ <?php echo __('Buffering Time', 'powerpress'); ?>
632
  </th>
633
  <td>
634
  <div class="color_control">
635
  <select style="width: 200px;" id="buffer" name="Player[buffer]" class="other_field">
636
  <?php
637
+ $options = array('0'=>__('No buffering', 'powerpress'), ''=>__('Default (5 seconds)', 'powerpress'),'10'=>__('10 seconds', 'powerpress'),'15'=>__('15 seconds', 'powerpress'),'20'=>__('20 seconds', 'powerpress'),'30'=>__('30 seconds', 'powerpress'),'60'=>__('60 seconds', 'powerpress'));
638
 
639
  while( list($key,$value) = each($options) ) {
640
  if( $PlayerSettings['buffer'] == $key )
644
 
645
  echo '<option value="'. $key .'"'. $selected .' >'. $value .'</option>';
646
  }?>
647
+ </select> <?php echo __('buffering time in seconds', 'powerpress'); ?></div>
648
  </td>
649
  </tr>
650
 
653
  </div>
654
 
655
  <div id="tab_progress" class="powerpress_tab">
656
+ <h3><?php echo __('Progress Bar', 'powerpress'); ?></h3>
657
  <table class="form-table">
658
  <tr valign="top">
659
  <th scope="row">
660
+ <?php echo __('Progress Bar Background', 'powerpress'); ?>
661
  </th>
662
  <td>
663
  <div class="color_control">
668
  </tr>
669
  <tr valign="top">
670
  <th scope="row">
671
+ <?php echo __('Progress Bar Color', 'powerpress'); ?>
672
  </th>
673
  <td>
674
  <div class="color_control">
679
  </tr>
680
  <tr valign="top">
681
  <th scope="row">
682
+ <?php echo __('Progress Bar Border', 'powerpress'); ?>
683
  </th>
684
  <td>
685
  <div class="color_control">
693
 
694
 
695
  <div id="tab_volume" class="powerpress_tab">
696
+ <h3><?php echo __('Volume Button Settings', 'powerpress'); ?></h3>
697
  <table class="form-table">
698
  <tr valign="top">
699
  <th scope="row">
700
+ <?php echo __('Initial Volume', 'powerpress'); ?>
701
  </th>
702
  <td>
703
  <select style="width: 100px;" id="initialvolume" name="Player[initialvolume]" class="other_field">
707
  {
708
  echo '<option value="'. $x .'"'. ($PlayerSettings['initialvolume'] == $x?' selected':'') .'>'. $x .'%</option>';
709
  }?>
710
+ </select> <?php echo __('initial volume level (default: 60)', 'powerpress'); ?>
711
  </td>
712
  </tr>
713
 
714
  <tr valign="top">
715
  <th scope="row">
716
+ <?php echo __('Volumn Background Color', 'powerpress'); ?>
717
  </th>
718
  <td>
719
  <div class="color_control">
724
  </tr>
725
  <tr valign="top">
726
  <th scope="row">
727
+ <?php echo __('Speaker Icon Color', 'powerpress'); ?>
728
  </th>
729
  <td>
730
  <div class="color_control">
735
  </tr>
736
  <tr valign="top">
737
  <th scope="row">
738
+ <?php echo __('Volume Icon Background', 'powerpress'); ?>
739
  </th>
740
  <td>
741
  <div class="color_control">
746
  </tr>
747
  <tr valign="top">
748
  <th scope="row">
749
+ <?php echo __('Volume Slider Color', 'powerpress'); ?>
750
  </th>
751
  <td>
752
  <div class="color_control">
759
  </div>
760
 
761
  <div id="tab_play" class="powerpress_tab">
762
+ <h3><?php echo __('Play / Pause Button Settings', 'powerpress'); ?></h3>
763
  <table class="form-table">
764
  <tr valign="top">
765
  <th scope="row">
766
+ <?php echo __('Play/Pause Background Color', 'powerpress'); ?>
767
  </th>
768
  <td>
769
  <div class="color_control">
774
  </tr>
775
  <tr valign="top">
776
  <th scope="row">
777
+ <?php echo __('Play/Pause Hover Color', 'powerpress'); ?>
778
  </th>
779
  <td>
780
  <div class="color_control">
785
  </tr>
786
  <tr valign="top">
787
  <th scope="row">
788
+ <?php echo __('Play/Pause Icon Color', 'powerpress'); ?>
789
  </th>
790
  <td>
791
  <div class="color_control">
796
  </tr>
797
  <tr valign="top">
798
  <th scope="row">
799
+ <?php echo __('Play/Pause Icon Hover Color', 'powerpress'); ?>
800
  </th>
801
  <td>
802
  <div class="color_control">
816
  <table class="form-table">
817
  <tr valign="top">
818
  <th scope="row">
819
+ <?php echo __('Preview of Player', 'powerpress'); ?>
820
  </th>
821
  <td>
822
  <p>
837
  &nbsp;
838
  </th>
839
  <td>
840
+ <p><?php echo __('Simple Flash Player has no additional settings.', 'powerpress'); ?></p>
841
  </td>
842
  </tr>
843
  </table>
952
 
953
  function audio_player_defaults()
954
  {
955
+ if( confirm('<?php echo __("Set defaults, are you sure?\n\nAll of the current settings will be overwritten!'", 'powerpress'); ?>) )
956
  {
957
  jQuery('#bgcolor1').val('#7c7c7c');
958
  UpdatePlayerPreview('bgcolor1',jQuery('#bgcolor1').val() );
1042
 
1043
  <tr valign="top">
1044
  <th scope="row">
1045
+ <?php echo __('Preview of Player', 'powerpress'); ?>
1046
  </th>
1047
  <td>
1048
  <div id="player_preview">
1068
 
1069
  <div id="powerpress_settings_page" class="powerpress_tabbed_content" style="position: relative;">
1070
  <div style="position: absolute; top: 6px; right:0px;">
1071
+ <a href="#" onclick="audio_player_defaults();return false;"><?php echo __('Set Defaults', 'powerpress'); ?></a>
1072
  </div>
1073
  <ul class="powerpress_settings_tabs">
1074
  <li><a href="#tab_general"><span>Basic Settings</span></a></li>
1078
  </ul>
1079
 
1080
  <div id="tab_general" class="powerpress_tab">
1081
+ <h3><?php echo __('General Settings'); ?></h3>
1082
  <table class="form-table">
1083
  <tr valign="top">
1084
  <td colspan="2">
1085
 
1086
+ <?php echo __('leave blank for default values', 'powerpress'); ?>
1087
  </td>
1088
  </tr>
1089
  <tr valign="top">
1090
  <th scope="row">
1091
+ <?php echo __('Player Gradient Color Top', 'powerpress'); ?>
1092
  </th>
1093
  <td>
1094
  <div class="color_control">
1099
  </tr>
1100
  <tr valign="top">
1101
  <th scope="row">
1102
+ <?php echo __('Player Gradient Color Bottom', 'powerpress'); ?>
1103
  </th>
1104
  <td>
1105
  <div class="color_control">
1110
  </tr>
1111
  <tr valign="top">
1112
  <th scope="row">
1113
+ <?php echo __('Background Color', 'powerpress'); ?>
1114
 
1115
  </th>
1116
  <td>
1118
  <input type="text" style="width: 100px;" id="bgcolor" name="Player[bgcolor]" class="color_field" value="<?php echo $PlayerSettings['bgcolor']; ?>" maxlength="20" />
1119
  <img id="bgcolor_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['bgcolor']; ?>;" class="color_preview" />
1120
  </div>
1121
+ <small><?php echo __('leave blank for transparent', 'powerpress'); ?></small>
1122
  </td>
1123
  </tr>
1124
  <tr valign="top">
1125
  <th scope="row">
1126
+ <?php echo __('Text Color', 'powerpress'); ?>
1127
  </th>
1128
  <td>
1129
  <div class="color_control">
1135
 
1136
  <tr valign="top">
1137
  <th scope="row">
1138
+ <?php echo __('Player Height (in pixels)', 'powerpress'); ?>
1139
  </th>
1140
  <td>
1141
  <div class="color_control">
1145
  </tr>
1146
  <tr valign="top">
1147
  <th scope="row">
1148
+ <?php echo __('Player Width (in pixels)', 'powerpress'); ?>
1149
  </th>
1150
  <td>
1151
  <div class="color_control">
1157
  </div>
1158
 
1159
  <div id="tab_buttons" class="powerpress_tab">
1160
+ <h3><?php echo __('Button Settings', 'powerpress'); ?></h3>
1161
  <table class="form-table">
1162
  <tr valign="top">
1163
  <th scope="row">
1164
+ <?php echo __('Button Color', 'powerpress'); ?>
1165
  </th>
1166
  <td>
1167
  <div class="color_control">
1172
  </tr>
1173
  <tr valign="top">
1174
  <th scope="row">
1175
+ <?php echo __('Button Hover Color', 'powerpress'); ?>
1176
  </th>
1177
  <td>
1178
  <div class="color_control">
1183
  </tr>
1184
  <tr valign="top">
1185
  <th scope="row">
1186
+ <?php echo __('Button Width (in pixels)', 'powerpress'); ?>
1187
  </th>
1188
  <td>
1189
  <div class="color_control">
1193
  </tr>
1194
  <tr valign="top">
1195
  <th scope="row">
1196
+ <?php echo __('Show Stop Button', 'powerpress'); ?>
1197
  </th>
1198
  <td>
1199
  <div class="color_control">
1217
  </tr>
1218
  <tr valign="top">
1219
  <th scope="row">
1220
+ <?php echo __('Show Info', 'powerpress'); ?>
1221
  </th>
1222
  <td>
1223
  <div class="color_control">
1243
  </div>
1244
 
1245
  <div id="tab_volume" class="powerpress_tab">
1246
+ <h3><?php echo __('Volume Settings', 'powerpress'); ?></h3>
1247
  <table class="form-table">
1248
 
1249
  <tr valign="top">
1250
  <th scope="row">
1251
+ <?php echo __('Show Volume', 'powerpress'); ?>
1252
  </th>
1253
  <td>
1254
  <div class="color_control">
1272
  </tr>
1273
  <tr valign="top">
1274
  <th scope="row">
1275
+ <?php echo __('Volume', 'powerpress'); ?>
1276
  </th>
1277
  <td>
1278
  <div class="color_control">
1291
  </tr>
1292
  <tr valign="top">
1293
  <th scope="row">
1294
+ <?php echo __('Volume Height (in pixels)', 'powerpress'); ?>
1295
  </th>
1296
  <td>
1297
  <div class="color_control">
1301
  </tr>
1302
  <tr valign="top">
1303
  <th scope="row">
1304
+ <?php echo __('Volume Width (in pixels)', 'powerpress'); ?>
1305
  </th>
1306
  <td>
1307
  <div class="color_control">
1314
  </div>
1315
 
1316
  <div id="tab_slider" class="powerpress_tab">
1317
+ <h3><?php echo __('Slider Settings', 'powerpress'); ?></h3>
1318
  <table class="form-table">
1319
 
1320
  <tr valign="top">
1321
  <th scope="row">
1322
+ <?php echo __('Show Slider', 'powerpress'); ?>
1323
  </th>
1324
  <td>
1325
  <div class="color_control">
1344
 
1345
  <tr valign="top">
1346
  <th scope="row">
1347
+ <?php echo __('Slider Color Top', 'powerpress'); ?>
1348
  </th>
1349
  <td>
1350
  <div class="color_control">
1355
  </tr>
1356
  <tr valign="top">
1357
  <th scope="row">
1358
+ <?php echo __('Slider Color Bottom', 'powerpress'); ?>
1359
  </th>
1360
  <td>
1361
  <div class="color_control">
1367
 
1368
  <tr valign="top">
1369
  <th scope="row">
1370
+ <?php echo __('Slider Hover Color', 'powerpress'); ?>
1371
  </th>
1372
  <td>
1373
  <div class="color_control">
1378
  </tr>
1379
  <tr valign="top">
1380
  <th scope="row">
1381
+ <?php echo __('Slider Height (in pixels)', 'powerpress'); ?>
1382
  </th>
1383
  <td>
1384
  <div class="color_control">
1388
  </tr>
1389
  <tr valign="top">
1390
  <th scope="row">
1391
+ <?php echo __('Slider Width (in pixels)', 'powerpress'); ?>
1392
  </th>
1393
  <td>
1394
  <div class="color_control">
1399
 
1400
  <tr valign="top">
1401
  <th scope="row">
1402
+ <?php echo __('Show Loading Buffer', 'powerpress'); ?>
1403
  </th>
1404
  <td>
1405
  <div class="color_control">
1418
  </tr>
1419
  <tr valign="top">
1420
  <th scope="row">
1421
+ <?php echo __('Loading Buffer Color', 'powerpress'); ?>
1422
  </th>
1423
  <td>
1424
  <div class="color_control">
1505
 
1506
  ?>
1507
  <input type="hidden" name="action" value="powerpress-audioplay" />
1508
+ <?php echo __('Configure the AudioPlay Player', 'powerpress'); ?><br clear="all" />
1509
 
1510
  <table class="form-table">
1511
 
1512
  <tr valign="top">
1513
  <th scope="row">
1514
+ <?php echo __('Preview of Player', 'powerpress'); ?>
1515
  </th>
1516
  <td colspan="2">
1517
  <div id="player_preview">
1532
  </tr>
1533
  </table>
1534
 
1535
+ <h2><?php echo __('General Settings', 'powerpress'); ?></h2>
1536
  <table class="form-table">
1537
  <tr valign="top">
1538
  <th scope="row">
1539
+ <?php echo __('Background Color', 'powerpress'); ?>
1540
 
1541
  </th>
1542
  <td valign="top">
1544
  <input type="text" style="width: 100px;" id="bgcolor" name="Player[bgcolor]" class="color_field" value="<?php echo $PlayerSettings['bgcolor']; ?>" maxlength="20" />
1545
  <img id="bgcolor_prev" src="<?php echo powerpress_get_root_url(); ?>images/color_preview.gif" width="14" height="14" style="background-color: <?php echo $PlayerSettings['bgcolor']; ?>;" class="color_preview" />
1546
  </div>
1547
+ <small><?php echo __('leave blank for transparent', 'powerpress'); ?></small>
1548
  </td>
1549
  </tr>
1550
  <tr valign="top">
1551
  <th scope="row">
1552
+ <?php echo __('Player Mode', 'powerpress'); ?>
1553
  </th>
1554
  <td valign="top">
1555
  <div class="color_control">
1562
  $selected = "";
1563
  endif;
1564
  if($option == "playpause"):
1565
+ $name = __('Play/Pause', 'powerpress');
1566
  else:
1567
+ $name = __('Play/Stop', 'powerpress');
1568
  endif;
1569
  echo '<option value="'. $option .'"'. $selected .' >'. $name .'</option>';
1570
  }?>
1575
  </tr>
1576
  <tr valign="top">
1577
  <th scope="row">
1578
+ <?php echo __('Player Button', 'powerpress'); ?>
1579
  </th>
1580
  <td valign="top">
1581
  <div class="color_control">
1591
  $td = '<td style="background: #999;" align="center">';
1592
  $warning = "(ideal for dark backgrounds)";
1593
  if($option == "classic_small") {
1594
+ $name = __('Small White', 'powerpress');
1595
  }else{
1596
+ $name = __('Large White', 'powerpress');
1597
  }
1598
  }
1599
  else {
1600
  $td = '<td align="center">';
1601
  $warning = "";
1602
  if($option == "negative_small") {
1603
+ $name = __('Small Black', 'powerpress');
1604
  }else{
1605
+ $name = __('Large Black', 'powerpress');
1606
  }
1607
 
1608
  }
1625
  <table class="form-table">
1626
  <tr valign="top">
1627
  <th scope="row">
1628
+ <?php echo __('Preview of Player', 'powerpress'); ?>
1629
  </th>
1630
  <td>
1631
  <p>
1651
  &nbsp;
1652
  </th>
1653
  <td>
1654
+ <p><?php echo __('Flow Player Classic has no additional settings.', 'powerpress'); ?></p>
1655
  </td>
1656
  </tr>
1657
  </table>
powerpressadmin-player.php CHANGED
@@ -22,28 +22,28 @@ function powerpress_admin_players_init()
22
  $SaveSettings = array();
23
  $SaveSettings = $_POST['Player'];
24
  powerpress_save_settings($SaveSettings, 'powerpress_general');
25
- powerpress_page_message_add_notice('Player activated successfully.');
26
 
27
  }; break;
28
  case 'powerpress-audio-player': {
29
 
30
  $SaveSettings = $_POST['Player'];
31
  powerpress_save_settings($SaveSettings, 'powerpress_audio-player');
32
- powerpress_page_message_add_notice('Audio Player settings saved successfully.');
33
 
34
  }; break;
35
  case 'powerpress-flashmp3-maxi': {
36
 
37
  $SaveSettings = $_POST['Player'];
38
  powerpress_save_settings($SaveSettings, 'powerpress_flashmp3-maxi');
39
- powerpress_page_message_add_notice('Flash Mp3 Maxi settings saved successfully.');
40
 
41
  } ; break;
42
  case 'powerpress-audioplay':
43
  {
44
  $SaveSettings = $_POST['Player'];
45
  powerpress_save_settings($SaveSettings, 'powerpress_audioplay');
46
- powerpress_page_message_add_notice('AudioPlay settings saved successfully.');
47
  }; break;
48
  }
49
  }
@@ -63,8 +63,8 @@ function powerpress_admin_page_player()
63
  {
64
  // Print an error message here..
65
  ?>
66
- <h2><?php echo __("Blubrry PowerPress Player Options"); ?></h2>
67
- <p>You must have the Blubrry PowerPress version 1.0 or newer installed for this plugin to work.</p>
68
  <?php
69
  return;
70
  }
@@ -74,8 +74,8 @@ function powerpress_admin_page_player()
74
  {
75
  // Print an error message here..
76
  ?>
77
- <h2><?php echo __("Blubrry PowerPress Player Options"); ?></h2>
78
- <p>Your copy of Blubrry PowerPress is out of date. You must have Blubrry PowerPress version 1.0 or newer installed for this plugin to work.</p>
79
  <?php
80
  return;
81
  }
22
  $SaveSettings = array();
23
  $SaveSettings = $_POST['Player'];
24
  powerpress_save_settings($SaveSettings, 'powerpress_general');
25
+ powerpress_page_message_add_notice( __('Player activated successfully.', 'powerpress') );
26
 
27
  }; break;
28
  case 'powerpress-audio-player': {
29
 
30
  $SaveSettings = $_POST['Player'];
31
  powerpress_save_settings($SaveSettings, 'powerpress_audio-player');
32
+ powerpress_page_message_add_notice( __('Audio Player settings saved successfully.', 'powerpress') );
33
 
34
  }; break;
35
  case 'powerpress-flashmp3-maxi': {
36
 
37
  $SaveSettings = $_POST['Player'];
38
  powerpress_save_settings($SaveSettings, 'powerpress_flashmp3-maxi');
39
+ powerpress_page_message_add_notice( __('Flash Mp3 Maxi settings saved successfully.', 'powerpress') );
40
 
41
  } ; break;
42
  case 'powerpress-audioplay':
43
  {
44
  $SaveSettings = $_POST['Player'];
45
  powerpress_save_settings($SaveSettings, 'powerpress_audioplay');
46
+ powerpress_page_message_add_notice( __('AudioPlay settings saved successfully.', 'powerpress') );
47
  }; break;
48
  }
49
  }
63
  {
64
  // Print an error message here..
65
  ?>
66
+ <h2><?php echo __('Blubrry PowerPress Player Options', 'powerpress'); ?></h2>
67
+ <p><?php echo __('You must have the Blubrry PowerPress version 1.0 or newer installed for this plugin to work.', 'powerpress'); ?></p>
68
  <?php
69
  return;
70
  }
74
  {
75
  // Print an error message here..
76
  ?>
77
+ <h2><?php echo __('Blubrry PowerPress Player Options', 'powerpress'); ?></h2>
78
+ <p><?php echo __('Your copy of Blubrry PowerPress is out of date. You must have Blubrry PowerPress version 1.0 or newer installed for this plugin to work.', 'powerpress'); ?></p>
79
  <?php
80
  return;
81
  }
powerpressadmin-podpress-stats.php CHANGED
@@ -16,16 +16,16 @@ function powerpress_admin_podpress_stats()
16
  $start = 0;
17
 
18
  ?>
19
- <h2><?php echo __("Archive of PodPress Stats"); ?></h2>
20
- <p><?php echo sprintf(__('Displaying %d - %d of %d total'), $start+1, ($start+$limit<$total?$start+$limit:$total), $total); ?></p>
21
  <table class="widefat">
22
  <thead><tr>
23
- <th><?php echo __("File"); ?></th><th colspan="2"><?php echo __("Feed");?></th><th colspan="2"><?php echo __("Web");?></th>
24
- <th colspan="2"><?php echo __("Play");?></th><th><?php echo __("Total");?></th>
25
  </tr></thead>
26
  <tfoot><tr>
27
- <th><?php echo __("File"); ?></th><th colspan="2"><?php echo __("Feed");?></th><th colspan="2"><?php echo __("Web");?></th>
28
- <th colspan="2"><?php echo __("Play");?></th><th><?php echo __("Total");?></th>
29
  </tr></tfoot>
30
  <tbody>
31
  <?php
@@ -48,12 +48,12 @@ function powerpress_admin_podpress_stats()
48
  </tbody>
49
  </table>
50
  <div style="width: 100px; float: left;">
51
- <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=0"); ?>">first</a> |
52
- <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($start-$limit); ?>">prev</a>
53
  </div>
54
  <div style="width: 100px; float: right; text-align: right;">
55
- <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($start+$limit); ?>">next</a> |
56
- <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($total%$limit==0? $total - $limit : floor($total/$limit)*$limit ); ?>">last</a>
57
  </div>
58
  <div class="clear"></div>
59
  <?php
16
  $start = 0;
17
 
18
  ?>
19
+ <h2><?php echo __('Archive of PodPress Stats', 'powerpress'); ?></h2>
20
+ <p><?php echo sprintf(__('Displaying %d - %d of %d total', 'powerpress'), $start+1, ($start+$limit<$total?$start+$limit:$total), $total); ?></p>
21
  <table class="widefat">
22
  <thead><tr>
23
+ <th><?php echo __('File', 'powerpress'); ?></th><th colspan="2"><?php echo __('Feed', 'powerpress'); ?></th><th colspan="2"><?php echo __('Web', 'powerpress'); ?></th>
24
+ <th colspan="2"><?php echo __('Play', 'powerpress'); ?></th><th><?php echo __('Total', 'powerpress'); ?></th>
25
  </tr></thead>
26
  <tfoot><tr>
27
+ <th><?php echo __('File', 'powerpress'); ?></th><th colspan="2"><?php echo __('Feed', 'powerpress'); ?></th><th colspan="2"><?php echo __('Web', 'powerpress'); ?></th>
28
+ <th colspan="2"><?php echo __('Play', 'powerpress'); ?></th><th><?php echo __('Total', 'powerpress'); ?></th>
29
  </tr></tfoot>
30
  <tbody>
31
  <?php
48
  </tbody>
49
  </table>
50
  <div style="width: 100px; float: left;">
51
+ <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=0"); ?>"><?php echo __('first', 'powerpress'); ?></a> |
52
+ <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($start-$limit); ?>"><?php echo __('prev', 'powerpress'); ?></a>
53
  </div>
54
  <div style="width: 100px; float: right; text-align: right;">
55
+ <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($start+$limit); ?>"><?php echo __('next', 'powerpress'); ?></a> |
56
+ <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_podpress-stats.php&amp;start=") . ($total%$limit==0? $total - $limit : floor($total/$limit)*$limit ); ?>"><?php echo __('last', 'powerpress'); ?></a>
57
  </div>
58
  <div class="clear"></div>
59
  <?php
powerpressadmin-podpress.php CHANGED
@@ -44,12 +44,12 @@ if( !function_exists('add_action') )
44
  if( !empty($powerpress_settings['default_url']) )
45
  {
46
  $PodpressSettings['mediaWebPath'] = $powerpress_settings['default_url'];
47
- powerpress_page_message_add_notice( sprintf(__('Unable to detect PodPress media URL setting. Using the PowerPress setting "Default Media URL" (%s) instead.'), $PodpressSettings['mediaWebPath']) );
48
  }
49
  else
50
  {
51
  // We need to print a warning that they need to configure their podPress settings as the settings are no longer found in the database.
52
- powerpress_page_message_add_error( __('Unable to detect PodPress media URL setting. Please set the "Default Media URL" setting in PowerPress to properly import podcast episodes.') );
53
  }
54
  }
55
 
@@ -113,7 +113,7 @@ if( !function_exists('add_action') )
113
  {
114
  // display a warning here...
115
  if( $hide_errors == false )
116
- powerpress_page_message_add_error( sprintf('Error decoding PodPress data for post "%s"', $row['post_title']) );
117
  continue;
118
  }
119
 
@@ -226,7 +226,7 @@ if( !function_exists('add_action') )
226
  // Delete podpress data from database...
227
  $query = "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE 'podPress%'";
228
  $deleted_count = $wpdb->query($query);
229
- powerpress_page_message_add_notice( sprintf(__('PodPress data deleted from database successfully. (%d database records removed)'), $deleted_count) );
230
  }
231
 
232
  function powerpressadmin_podpress_do_import()
@@ -274,7 +274,10 @@ if( !function_exists('add_action') )
274
  global $g_podpress_import_log, $g_podpress_import_count;
275
  $filename = substr($episode_url, strrpos($episode_url, '/')+1);
276
  $g_podpress_import_log .= '<p style="font-weight: normal; margin-top: 2px; margin-bottom: 2px; margin-left: 20px;">';
277
- $g_podpress_import_log .= 'Podpress Episode "'. htmlspecialchars($filename) .'" for blog post "'. htmlspecialchars($post_title) .'" imported to feed "'. $feed_slug ."\".\n";
 
 
 
278
 
279
  $g_podpress_import_log .= '</p>';
280
 
@@ -290,16 +293,16 @@ if( !function_exists('add_action') )
290
  if( !$g_podpress_import_log )
291
  {
292
  echo '<div style="" class="updated powerpress-notice">';
293
- echo '<p>If you are unsure about importing your PodPress data, try the option under Basic Settings titled \'PodPress Episodes\' and set to \'Include in posts and feeds\'.</p>';
294
- echo '<p>Once you feel comfortable with PowerPress, you can use this screen to import your PodPress data.</p>';
295
  echo '</div>';
296
  return;
297
  }
298
  echo '<div style="" class="updated powerpress-notice">';
299
- echo '<h3 style="margin-top: 2px; margin-bottom: 2px;">PodPress Import Log</h3>';
300
  echo $g_podpress_import_log;
301
  $g_podpress_import_log='';
302
- echo "<p style=\"font-weight: normal;\">Imported $g_podpress_import_count PodPress episode(s).</p>";
303
  echo '</div>';
304
  }
305
 
@@ -309,17 +312,17 @@ if( !function_exists('add_action') )
309
  $data['post-title'] = 'Episode Title';
310
  $data['post-date'] = 'Date';
311
 
312
- $data['feed-podcast'] = 'Feed: (podcast)';
313
 
314
  if( is_array($Settings['custom_feeds']) )
315
  {
316
  while( list($feed_slug,$value) = each($Settings['custom_feeds']) )
317
  {
318
  if( $feed_slug != 'podcast' )
319
- $data['feed-'.$feed_slug] = 'Feed: ('.$feed_slug.')';
320
  }
321
  }
322
- $data['exclude'] = '<a href="#" onclick="no_import_all();return false;">No Import</a>';
323
 
324
  return $data;
325
  }
@@ -343,7 +346,7 @@ if( !function_exists('add_action') )
343
  $results = powerpress_get_podpress_episodes(false);
344
  $Settings = powerpress_get_settings('powerpress_general', false);
345
  if( !isset($Settings['custom_feeds']['podcast']) )
346
- $Settings['custom_feeds']['podcast'] = 'Podcast Feed (default)';
347
 
348
  $AllowImport = false;
349
  $AllowCleanup = true;
@@ -352,7 +355,7 @@ if( !function_exists('add_action') )
352
  {
353
  if( $results['feeds_required'] > count($Settings['custom_feeds']) )
354
  {
355
- powerpress_page_message_add_error( sprintf(__('We found blog posts that have %d media files. You will need to create %d more Custom Feed%s in order to continue.'), $results['feeds_required'], $results['feeds_required'] - count($Settings['custom_feeds']), (( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 )?'s':'') ) );
356
  }
357
  else
358
  {
@@ -403,7 +406,7 @@ function check_radio_selection(obj, PostID, FileIndex)
403
  {
404
  if (CheckObj[i].type == 'radio' && CheckObj[i].checked && CheckObj[i].value == obj.value )
405
  {
406
- alert("Sorry, you may only select one media file per post per feed. ");
407
  return false;
408
  }
409
  }
@@ -417,7 +420,7 @@ function check_radio_selection(obj, PostID, FileIndex)
417
 
418
  function no_import_all()
419
  {
420
- if( !confirm('Select "No Import" option for all media files?') )
421
  return;
422
 
423
  var Inputs = document.getElementsByTagName('input');
@@ -460,7 +463,7 @@ function select_all(index,value)
460
  }
461
 
462
  </script>
463
- <h2><?php echo __("Import PodPress Episodes"); ?></h2>
464
  <?php
465
 
466
  //echo "<pre id=\"podpress_debug_info\" style=\"display: none;\">";
@@ -471,14 +474,14 @@ function select_all(index,value)
471
  if( count($results) == 0 || count($results) == 1 )
472
  {
473
  ?>
474
- <p>No PodPress episodes found to import.</p>
475
  <?php
476
  }
477
  else
478
  {
479
  ?>
480
  <input type="hidden" name="action" value="powerpress-importpodpress" />
481
- <p>Select the media file under each feed for each episode you wish to import.</p>
482
  <table class="widefat fixed" cellspacing="0">
483
  <thead>
484
  <tr>
@@ -592,7 +595,7 @@ function select_all(index,value)
592
  echo '<td '.$class.'><strong>';
593
  if ( current_user_can( 'edit_post', $post_id ) )
594
  {
595
- ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"'), $import_data['post_title'])); ?>"><?php echo $import_data['post_title'] ?></a><?php
596
  }
597
  else
598
  {
@@ -610,12 +613,12 @@ function select_all(index,value)
610
 
611
  if( empty($episode_data['not_podpress']) && empty($episode_data['imported']) )
612
  {
613
- echo '<span style="color: #CC0000; font-weight: bold; cursor:pointer;" onclick="alert(\'File: '. $filename .'\nURL: '. $episode_data['url'] .'\')">';
614
  $AllowCleanup = false;
615
  $StrandedEpisodes++;
616
  }
617
  else if( empty($episode_data['not_podpress']) && $episode_data['imported'] )
618
- echo '<span style="color: green; font-weight: bold; cursor:pointer;" onclick="alert(\'File: '. $filename .'\nURL: '. $episode_data['url'] .'\')">';
619
 
620
  if( empty($episode_data['not_podpress']) && empty($episode_data['imported']) )
621
  echo '*';
@@ -664,9 +667,9 @@ function select_all(index,value)
664
  if( $CurrentEnclosures[$feed_slug]['url'] == $episode_data['url'] )
665
  {
666
  if( !empty($CurrentEnclosures[$feed_slug]['present']) )
667
- echo '<strong style="color: green;">present</strong>';
668
  else
669
- echo '<strong style="color: green;">imported</strong>';
670
  }
671
  else
672
  echo 'X';
@@ -680,7 +683,7 @@ function select_all(index,value)
680
  $index = 1;
681
  while( list($episode_index,$episode_data) = each($import_data['podpress_data']) )
682
  {
683
- echo "File&nbsp;$index:&nbsp;";
684
  if( @$episode_data['imported'] )
685
  {
686
  echo '&nbsp;X';
@@ -721,8 +724,11 @@ function select_all(index,value)
721
  ?>
722
  </tbody>
723
  </table>
724
- <p>Importable PodPress episodes highlighted in <span style="color: #CC0000; font-weight: bold;">red</span> with asterisks *.</p>
725
- <p style="margin-bottom: 0; padding-bottom: 0;">Select Only:</p>
 
 
 
726
  <?php
727
  if( $results['feeds_required'] < 1 )
728
  $results['feeds_required'] = 1;
@@ -738,7 +744,7 @@ function select_all(index,value)
738
  echo '<a href="javascript:void()" onclick="select_all('. $number .',\''. $feed_slug .'\');return false;">'. htmlspecialchars($feed_title) .'</a> | ';
739
  }
740
  ?>
741
- <a href="javascript:void()" onclick="select_all(<?php echo $number; ?>,'');return false;">No Import</a>
742
  </p>
743
  <?php
744
  break;
@@ -749,8 +755,8 @@ function select_all(index,value)
749
  if( $StrandedEpisodes )
750
  {
751
  ?>
752
- <p>
753
- There are <?php echo $StrandedEpisodes; ?> PodPress media files that can be imported.
754
  </p>
755
  <?php
756
  }
@@ -761,7 +767,7 @@ function select_all(index,value)
761
  {
762
  ?>
763
  <p class="submit">
764
- <input type="submit" name="Submit" id="powerpress_import_button" class="button-primary" value="Import Episodes" />
765
  </p>
766
  <?php
767
  }
@@ -769,7 +775,7 @@ function select_all(index,value)
769
  {
770
  ?>
771
  <p class="submit">
772
- <input type="button" name="Submit" id="powerpress_import_button" class="button-primary" value="Import Episodes" onclick="alert('There are no PodPress episodes found to import.');" />
773
  </p>
774
  <?php
775
  }
@@ -803,29 +809,42 @@ function select_all(index,value)
803
  {
804
  ?>
805
  <div class="error powerpress-error">
806
- We found blog posts that have <?php echo $results['feeds_required']; ?> media files.
807
-
808
- You will need to create <?php echo ( $results['feeds_required'] - count($Settings['custom_feeds']) ); ?> more Custom Feed<?php if( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 ) echo 's'; ?> in order to continue.
 
 
 
 
 
809
  </div>
810
  <p>
811
- Blubrry PowerPress does not allow you to include multiple media files for one feed item (blog post).
812
- This is because each podcatcher handles multiple enclosures in feeds differently. iTunes will download
813
- the first enclosure that it sees in the feed ignoring the rest. Other podcatchers and podcasting directories
814
- either pick up the first enclosure or the last in each post item. This inconsistency combined with the fact that
815
- <a href="http://www.reallysimplesyndication.com/2004/12/21" target="_blank">Dave Winer does not recommend multiple enclosures</a>
816
- and the
817
- <a href="http://www.feedvalidator.org/docs/warning/DuplicateEnclosure.html" target="_blank">FeedValidator.org recommendation against it</a>
818
- is why Blubrry PowerPress does not support them.
819
  </p>
820
- <p>
821
- As a alternative, PowerPress allows you to create additional <a href="<?php echo admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php'); ?>">Custom Podcast Channels</a> to associate additional media files in a blog post to specific feed channels.
 
 
 
 
822
  </p>
823
  <p class="submit">
824
- <input type="button" name="Submit" id="powerpress_import_button" class="button-primary" value="Import Episodes" onclick="alert('We found blog posts that have <?php echo $results['feeds_required']; ?> media files.\n\nYou will need to create <?php echo ( $results['feeds_required'] - count($Settings['custom_feeds']) ); ?> more Custom Feed<?php if( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 ) echo 's'; ?> in order to continue. ');" />
 
 
 
 
 
 
825
  </p>
826
 
827
-
828
-
829
  <?php
830
  }
831
  ?>
@@ -834,9 +853,9 @@ function select_all(index,value)
834
  <form enctype="enctype" method="get" action="<?php echo admin_url('admin.php') ?>">
835
  <input type="hidden" name="page" value="powerpress/powerpressadmin_tools.php" />
836
  <input type="hidden" name="action" value="powerpress-podpress-epiosdes" />
837
- <h2>Filter Results</h2>
838
- <p><label>Include Only</label><input type="text" name="include_only_ext" value="<?php if( !empty($_GET['include_only_ext']) ) echo htmlspecialchars($_GET['include_only_ext']); ?>" style="width: 240px;" /> (leave blank for all media) <br />
839
- <label>&nbsp;</label>specify the file extensions to include separated by commas (e.g. mp3, m4v).
840
  </p>
841
  <p class="submit">
842
  <input type="submit" name="Submit" class="button-primary" value="Filter Episodes" />
44
  if( !empty($powerpress_settings['default_url']) )
45
  {
46
  $PodpressSettings['mediaWebPath'] = $powerpress_settings['default_url'];
47
+ powerpress_page_message_add_notice( sprintf(__('Unable to detect PodPress media URL setting. Using the PowerPress setting "Default Media URL" (%s) instead.', 'powerpress'), $PodpressSettings['mediaWebPath']) );
48
  }
49
  else
50
  {
51
  // We need to print a warning that they need to configure their podPress settings as the settings are no longer found in the database.
52
+ powerpress_page_message_add_error( __('Unable to detect PodPress media URL setting. Please set the "Default Media URL" setting in PowerPress to properly import podcast episodes.', 'powerpress') );
53
  }
54
  }
55
 
113
  {
114
  // display a warning here...
115
  if( $hide_errors == false )
116
+ powerpress_page_message_add_error( sprintf( __('Error decoding PodPress data for post "%s"', 'powerpress'), $row['post_title']) );
117
  continue;
118
  }
119
 
226
  // Delete podpress data from database...
227
  $query = "DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE 'podPress%'";
228
  $deleted_count = $wpdb->query($query);
229
+ powerpress_page_message_add_notice( sprintf(__('PodPress data deleted from database successfully. (%d database records removed)', 'powerpress'), $deleted_count) );
230
  }
231
 
232
  function powerpressadmin_podpress_do_import()
274
  global $g_podpress_import_log, $g_podpress_import_count;
275
  $filename = substr($episode_url, strrpos($episode_url, '/')+1);
276
  $g_podpress_import_log .= '<p style="font-weight: normal; margin-top: 2px; margin-bottom: 2px; margin-left: 20px;">';
277
+ $g_podpress_import_log .= sprintf( __('Podpress Episode "%s" for blog post "%s" imported to feed "%s"', 'powerpress'),
278
+ htmlspecialchars($filename),
279
+ htmlspecialchars($post_title),
280
+ $feed_slug );
281
 
282
  $g_podpress_import_log .= '</p>';
283
 
293
  if( !$g_podpress_import_log )
294
  {
295
  echo '<div style="" class="updated powerpress-notice">';
296
+ echo '<p>'. __('If you are unsure about importing your PodPress data, try the option under Basic Settings titled \'PodPress Episodes\' and set to \'Include in posts and feeds\'.', 'powerpress') .'</p>';
297
+ echo '<p>'. __('Once you feel comfortable with PowerPress, you can use this screen to import your PodPress data.', 'powerpress') .'</p>';
298
  echo '</div>';
299
  return;
300
  }
301
  echo '<div style="" class="updated powerpress-notice">';
302
+ echo '<h3 style="margin-top: 2px; margin-bottom: 2px;">'. __('PodPress Import Log', 'powerpress') .'</h3>';
303
  echo $g_podpress_import_log;
304
  $g_podpress_import_log='';
305
+ echo "<p style=\"font-weight: normal;\">". sprintf( __('Imported %d PodPress episode(s).', 'powerpress'), $g_podpress_import_count) ."</p>";
306
  echo '</div>';
307
  }
308
 
312
  $data['post-title'] = 'Episode Title';
313
  $data['post-date'] = 'Date';
314
 
315
+ $data['feed-podcast'] = __('Feed: (podcast)', 'powerpress');
316
 
317
  if( is_array($Settings['custom_feeds']) )
318
  {
319
  while( list($feed_slug,$value) = each($Settings['custom_feeds']) )
320
  {
321
  if( $feed_slug != 'podcast' )
322
+ $data['feed-'.$feed_slug] = __('Feed', 'powerpress') .': ('.$feed_slug.')';
323
  }
324
  }
325
+ $data['exclude'] = '<a href="#" onclick="no_import_all();return false;">'. __('No Import', 'powerpress') .'</a>';
326
 
327
  return $data;
328
  }
346
  $results = powerpress_get_podpress_episodes(false);
347
  $Settings = powerpress_get_settings('powerpress_general', false);
348
  if( !isset($Settings['custom_feeds']['podcast']) )
349
+ $Settings['custom_feeds']['podcast'] = __('Podcast Feed (default)', 'powerpress');
350
 
351
  $AllowImport = false;
352
  $AllowCleanup = true;
355
  {
356
  if( $results['feeds_required'] > count($Settings['custom_feeds']) )
357
  {
358
+ powerpress_page_message_add_error( sprintf(__('We found blog posts that have %d media files. You will need to create %d more Custom Feed%s in order to continue.', 'powerpress'), $results['feeds_required'], $results['feeds_required'] - count($Settings['custom_feeds']), (( ( $results['feeds_required'] - count($Settings['custom_feeds']) ) > 1 )?'s':'') ) );
359
  }
360
  else
361
  {
406
  {
407
  if (CheckObj[i].type == 'radio' && CheckObj[i].checked && CheckObj[i].value == obj.value )
408
  {
409
+ alert("<?php echo __('Sorry, you may only select one media file per post per feed.', 'powerpress'); ?>");
410
  return false;
411
  }
412
  }
420
 
421
  function no_import_all()
422
  {
423
+ if( !confirm('<?php echo __('Select "No Import" option for all media files?', 'powerpress'); ?>') )
424
  return;
425
 
426
  var Inputs = document.getElementsByTagName('input');
463
  }
464
 
465
  </script>
466
+ <h2><?php echo __('Import PodPress Episodes', 'powerpress'); ?></h2>
467
  <?php
468
 
469
  //echo "<pre id=\"podpress_debug_info\" style=\"display: none;\">";
474
  if( count($results) == 0 || count($results) == 1 )
475
  {
476
  ?>
477
+ <p><?php echo __('No PodPress episodes found to import.', 'powerpress'); ?></p>
478
  <?php
479
  }
480
  else
481
  {
482
  ?>
483
  <input type="hidden" name="action" value="powerpress-importpodpress" />
484
+ <p><?php echo __('Select the media file under each feed for each episode you wish to import.', 'powerpress'); ?></p>
485
  <table class="widefat fixed" cellspacing="0">
486
  <thead>
487
  <tr>
595
  echo '<td '.$class.'><strong>';
596
  if ( current_user_can( 'edit_post', $post_id ) )
597
  {
598
+ ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attribute_escape(sprintf(__('Edit "%s"', 'powerpress'), $import_data['post_title'])); ?>"><?php echo $import_data['post_title'] ?></a><?php
599
  }
600
  else
601
  {
613
 
614
  if( empty($episode_data['not_podpress']) && empty($episode_data['imported']) )
615
  {
616
+ echo '<span style="color: #CC0000; font-weight: bold; cursor:pointer;" onclick="alert(\''. __('File', 'powerpress') . ': '. $filename .'\n'. __('URL', 'powerpress') . ': '. $episode_data['url'] .'\')">';
617
  $AllowCleanup = false;
618
  $StrandedEpisodes++;
619
  }
620
  else if( empty($episode_data['not_podpress']) && $episode_data['imported'] )
621
+ echo '<span style="color: green; font-weight: bold; cursor:pointer;" onclick="alert(\''. __('File', 'powerpress') . ' '. $filename .'\n'. __('URL', 'powerpress') . ': '. $episode_data['url'] .'\')">';
622
 
623
  if( empty($episode_data['not_podpress']) && empty($episode_data['imported']) )
624
  echo '*';
667
  if( $CurrentEnclosures[$feed_slug]['url'] == $episode_data['url'] )
668
  {
669
  if( !empty($CurrentEnclosures[$feed_slug]['present']) )
670
+ echo '<strong style="color: green;">'. __('present', 'powerpress') .'</strong>';
671
  else
672
+ echo '<strong style="color: green;">'. __('imported', 'powerpress') .'</strong>';
673
  }
674
  else
675
  echo 'X';
683
  $index = 1;
684
  while( list($episode_index,$episode_data) = each($import_data['podpress_data']) )
685
  {
686
+ echo __('File', 'powerpress') ."&nbsp;$index:&nbsp;";
687
  if( @$episode_data['imported'] )
688
  {
689
  echo '&nbsp;X';
724
  ?>
725
  </tbody>
726
  </table>
727
+ <p><?php
728
+ echo sprintf( __('Importable episodes highlighted in %s with asterisks *.', 'powerpress'),
729
+ '<span style="color: #CC0000; font-weight: bold;">'. __('red', 'powerpress') .'</span>' );
730
+ ?></p>
731
+ <p style="margin-bottom: 0; padding-bottom: 0;"><?php echo __('Select Only', 'powerpress'); ?>:</p>
732
  <?php
733
  if( $results['feeds_required'] < 1 )
734
  $results['feeds_required'] = 1;
744
  echo '<a href="javascript:void()" onclick="select_all('. $number .',\''. $feed_slug .'\');return false;">'. htmlspecialchars($feed_title) .'</a> | ';
745
  }
746
  ?>
747
+ <a href="javascript:void()" onclick="select_all(<?php echo $number; ?>,'');return false;"><?php echo __('No Import', 'powerpress'); ?></a>
748
  </p>
749
  <?php
750
  break;
755
  if( $StrandedEpisodes )
756
  {
757
  ?>
758
+ <p><?php echo sprintf(__('There are %d PodPress media files that can be imported.', 'powerpress'),
759
+ $StrandedEpisodes ); ?>
760
  </p>
761
  <?php
762
  }
767
  {
768
  ?>
769
  <p class="submit">
770
+ <input type="submit" name="Submit" id="powerpress_import_button" class="button-primary" value="<?php echo __('Import Episodes', 'powerpress'); ?>" />
771
  </p>
772
  <?php
773
  }
775
  {
776
  ?>
777
  <p class="submit">
778
+ <input type="button" name="Submit" id="powerpress_import_button" class="button-primary" value="<?php echo __('Import Episodes', 'powerpress'); ?>" onclick="alert('<?php echo __('There are no PodPress episodes found to import.', 'powerpress'); ?>');" />
779
  </p>
780
  <?php
781
  }
809
  {
810
  ?>
811
  <div class="error powerpress-error">
812
+ <?php
813
+ echo sprintf(__('We found blog posts that have %d media files.', 'powerpress'),
814
+ $results['feeds_required'] );
815
+
816
+ echo sprintf(__('You will need to create %d Podcast Channels to continue.', 'powerpress'),
817
+ $results['feeds_required'] - count($Settings['custom_feeds'])
818
+ );
819
+ ?>
820
  </div>
821
  <p>
822
+ <?php
823
+ echo __('Blubrry PowerPress does not allow you to include multiple media files for one feed item (blog post).', 'powerpress');
824
+ echo __('This is because each podcatcher handles multiple enclosures in feeds differently. iTunes will download the first enclosure that it sees in the feed ignoring the rest.', 'powerpress');
825
+ echo __('Other podcatchers and podcasting directories either pick up the first enclosure or the last in each post item.', 'powerpress');
826
+ echo sprintf( __('This inconsistency combined with the fact that Dave Winer does not recommend multiple enclosures (%s) and FeedValidator.org (%s) recommendation against it is why Blubrry PowerPress does not support them.', 'powerpress'),
827
+ '<a href="http://www.reallysimplesyndication.com/2004/12/21" target="_blank">'. __('Link', 'powerpress') .'</a>',
828
+ '<a href="http://www.feedvalidator.org/docs/warning/DuplicateEnclosure.html" target="_blank">'. __('Link', 'powerpress') .'</a>' );
829
+ ?>
830
  </p>
831
+ <p><?php
832
+ echo sprintf( __('As a alternative, PowerPress allows you to create additional %s to associate additional media files in a blog post to specific feed channels.', 'powerpress'),
833
+ '<a href="'. admin_url('admin.php?page=powerpress/powerpressadmin_customfeeds.php') .'">'. __('Custom Podcast Channels', 'powerpress') .'</a>');
834
+ ?>
835
+
836
+
837
  </p>
838
  <p class="submit">
839
+ <input type="button" name="Submit" id="powerpress_import_button" class="button-primary" value="<?php echo __('Import Episodes', 'powerpress'); ?>" onclick="alert('<?php
840
+ echo __('We found blog posts that have %d media files.', 'powerpress');
841
+ echo '\n\n';
842
+ echo sprintf( __('You will need to create %d additional Podcast Channels in order to continue.', 'powerpress').
843
+ $results['feeds_required'],
844
+ $results['feeds_required'] - count($Settings['custom_feeds']) );
845
+ ?>');" />
846
  </p>
847
 
 
 
848
  <?php
849
  }
850
  ?>
853
  <form enctype="enctype" method="get" action="<?php echo admin_url('admin.php') ?>">
854
  <input type="hidden" name="page" value="powerpress/powerpressadmin_tools.php" />
855
  <input type="hidden" name="action" value="powerpress-podpress-epiosdes" />
856
+ <h2><?php echo __('Filter Results', 'powerpress'); ?></h2>
857
+ <p><label><?php echo __('Include Only', 'powerpress'); ?></label><input type="text" name="include_only_ext" value="<?php if( !empty($_GET['include_only_ext']) ) echo htmlspecialchars($_GET['include_only_ext']); ?>" style="width: 240px;" /> <?php echo __('(leave blank for all media)', 'powerpress'); ?><br />
858
+ <label>&nbsp;</label><?php echo __('specify the file extensions to include separated by commas (e.g. mp3, m4v).', 'powerpress'); ?>
859
  </p>
860
  <p class="submit">
861
  <input type="submit" name="Submit" class="button-primary" value="Filter Episodes" />
powerpressadmin-tags.php CHANGED
@@ -15,29 +15,19 @@ function ToggleID3Tags(Obj)
15
  }
16
 
17
  </script>
18
- <style type="text/css">
19
- items {
20
-
21
- }
22
-
23
- .item-row {
24
- . border-bottom-style: solid;
25
- border-bottom-width: 1px;
26
- min-height: 36px;
27
- position: relative;
28
- width: 100%;
29
- }
30
- </style>
31
  <input type="hidden" name="action" value="powerpress-save-tags" />
32
- <h2><?php echo __("MP3 Tags"); ?></h2>
33
 
34
- <p >Blubrry Hosting users can configure how to have the service write their MP3 ID3 Tags before publishing episodes.</p>
35
 
36
  <p style="margin-bottomd: 0;">
37
- ID3 tags contain useful information (title, artist, album, year, etc...) about your podcast as well as an image for display during playback in most media players.
38
- Please visit the <a href="http://www.podcastfaq.com/creating-podcast/audio/edit-id3-tags/" title="PodcastFAQ.com" target="_blank">ID3 Tags</a>
39
- section on <a href="http://www.podcastfaq.com/" title="PodcastFAQ.com" target="_blank">PodcastFAQ.com</a>
40
- to learn more about MP3 ID3 tags.
 
 
 
41
  </p>
42
  <?php
43
  if( !@$General['blubrry_hosting'] )
@@ -45,11 +35,11 @@ items {
45
  ?>
46
  <table class="form-table">
47
  <tr valign="top">
48
- <th scope="row"><?php echo __("Write Tags"); ?></th>
49
  <td>
50
  <p>
51
- <input name="NotAvailable" type="checkbox" value="1" onchange="alert('You must configure your Blubrry Services Account in the Blubrry PowerPress > Basic Settings page in order to utilize this feature.'); this.checked=false; return false;" />
52
- Use Blubrry Hosting services to write MP3 ID3 tags to your media.
53
  </p>
54
  </td>
55
  </tr>
@@ -62,11 +52,11 @@ items {
62
  ?>
63
  <table class="form-table">
64
  <tr valign="top">
65
- <th scope="row"><?php echo __("Write Tags"); ?></th>
66
  <td>
67
  <p>
68
  <input name="General[write_tags]" type="checkbox" value="1" <?php if($General['write_tags']) echo 'checked '; ?> onchange="ToggleID3Tags(this);" />
69
- Use Blubrry Hosting services to write MP3 ID3 tags to your media.
70
  </p>
71
  </td>
72
  </tr>
@@ -76,17 +66,17 @@ items {
76
 
77
  <?php
78
 
79
- powerpressadmin_tag_option('tag_title', $General['tag_title'], 'Title Tag', 'Use blog post title' );
80
- powerpressadmin_tag_option('tag_artist', $General['tag_artist'], 'Artist Tag', 'Use Feed Talent Name' );
81
- powerpressadmin_tag_option('tag_album', $General['tag_album'], 'Album Tag', 'Use blog title: '. get_bloginfo('name') .'' );
82
- powerpressadmin_tag_option('tag_genre', $General['tag_genre'], 'Genre Tag', 'Use genre \'Podcast\'' );
83
- powerpressadmin_tag_option('tag_year', $General['tag_year'], 'Year Tag', 'Use current year' );
84
  //powerpressadmin_tag_option('tag_comment', $General['tag_comment'], 'Comment Tag', 'Use iTunes subtitle' ); // too compilcated at this point
85
- powerpressadmin_tag_option('tag_track', $General['tag_track'], 'Track Tag', 'Do not specify track number' );
86
- powerpressadmin_tag_option('tag_composer', $General['tag_composer'], 'Composer Tag', 'Use Feed Talent Name' );
87
- powerpressadmin_tag_option('tag_copyright', $General['tag_copyright'], 'Copyright Tag', 'Use &copy; Talent Name' );
88
- powerpressadmin_tag_option('tag_url', $General['tag_url'], 'URL Tag', 'Use main blog URL: '. get_bloginfo('url') .'' );
89
- powerpressadmin_tag_option('tag_coverart', $General['tag_coverart'], 'Coverart Tag', '' );
90
 
91
  ?>
92
 
@@ -147,25 +137,25 @@ function powerpressadmin_tag_option($tag, $value, $label, $default_desc )
147
  }
148
  ?>
149
  <input type="radio" name="General[<?php echo $tag; ?>]" value="0" <?php if( $value == '' ) echo 'checked'; ?> />
150
- Do not add a coverart image.<br />
151
  <input type="radio" id="<?php echo $tag; ?>_specify" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> />
152
 
153
  <input type="text" id="coverart_image" name="TagValues[<?php echo $tag; ?>]" style="width: 50%;" value="<?php echo $value; ?>" maxlength="250" />
154
- <a href="#" onclick="javascript: window.open( document.getElementById('coverart_image').value ); return false;">preview</a>
155
 
156
- <p>Place the URL to the Coverart image above. e.g. http://mysite.com/images/coverart.jpg<br /><br />Coverart images may be saved as either .gif, .jpg or .png images of any size,
157
- though 300 x 300 or 600 x 600 in either png or jpg format is recommended.
158
  </p>
159
  <p>
160
  <?php if( $FeedSettings['itunes_image'] ) { ?>
161
- <a href="#" title="" onclick="document.getElementById('coverart_image').value='<?php echo $FeedSettings['itunes_image']; ?>';document.getElementById('tag_coverart_specify').checked=true;return false;">Click here</a>
162
- to use your current iTunes image.
163
  <?php } ?>
164
  </p>
165
  <?php if( $SupportUploads ) { ?>
166
- <p><input name="coverart_image_checkbox" type="checkbox" onchange="powerpress_show_field('coverart_image_upload', this.checked)" value="1" /> Upload new image </p>
167
  <div style="display:none" id="coverart_image_upload">
168
- <label for="coverart_image_file">Choose file:</label> <input type="file" name="coverart_image_file" />
169
  </div>
170
  <?php } ?>
171
 
@@ -175,16 +165,16 @@ to use your current iTunes image.
175
  if( $track )
176
  {
177
  ?><br />
178
- <input type="radio" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> /> Specify:
179
  <input type="text" name="TagValues[<?php echo $tag; ?>]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo ($value?$value:'1'); ?>" maxlength="5" />
180
  <?php
181
- echo __('(value entered increments every episode)');
182
  }
183
 
184
  if( $other )
185
  {
186
  ?><br />
187
- <input type="radio" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> /> Specify:
188
  <input type="text" name="TagValues[<?php echo $tag; ?>]" style="width: 300px" value="<?php echo htmlspecialchars($value); ?>" maxlength="250" />
189
  <?php
190
  }
@@ -193,9 +183,6 @@ to use your current iTunes image.
193
  </td>
194
  </tr>
195
  <?php
196
-
197
-
198
-
199
  }
200
 
201
  ?>
15
  }
16
 
17
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <input type="hidden" name="action" value="powerpress-save-tags" />
19
+ <h2><?php echo __('MP3 Tags', 'powerpress'); ?></h2>
20
 
21
+ <p><?PHP echo __('Blubrry Hosting users can configure how to have the service write their MP3 ID3 Tags before publishing episodes.', 'powerpress'); ?></p>
22
 
23
  <p style="margin-bottomd: 0;">
24
+ <?php
25
+ echo __('ID3 tags contain useful information (title, artist, album, year, etc...) about your podcast as well as an image for display during playback in most media players.', 'powerpress');
26
+ echo ' ';
27
+ echo sprintf( __('Please visit the ID3 Tags (%s) section on PodcastFAQ.com to learn more about MP3 ID3 tags.', 'powerpress'),
28
+ '<a href="http://www.podcastfaq.com/creating-podcast/audio/edit-id3-tags/" title="PodcastFAQ.com" target="_blank">'. __('link', 'powerpress') .'</a>' );
29
+
30
+ ?>
31
  </p>
32
  <?php
33
  if( !@$General['blubrry_hosting'] )
35
  ?>
36
  <table class="form-table">
37
  <tr valign="top">
38
+ <th scope="row"><?php echo __('Write Tags', 'powerpress'); ?></th>
39
  <td>
40
  <p>
41
+ <input name="NotAvailable" type="checkbox" value="1" onchange="alert('<?php echo __('You must configure your Blubrry Services Account in the Blubrry PowerPress > Basic Settings page in order to utilize this feature.', 'powerpress'); ?>'); this.checked=false; return false;" />
42
+ <?php echo __('Use Blubrry Hosting services to write MP3 ID3 tags to your media.', 'powerpress'); ?>
43
  </p>
44
  </td>
45
  </tr>
52
  ?>
53
  <table class="form-table">
54
  <tr valign="top">
55
+ <th scope="row"><?php echo __('Write Tags', 'powerpress'); ?></th>
56
  <td>
57
  <p>
58
  <input name="General[write_tags]" type="checkbox" value="1" <?php if($General['write_tags']) echo 'checked '; ?> onchange="ToggleID3Tags(this);" />
59
+ <?php echo __('Use Blubrry Hosting services to write MP3 ID3 tags to your media.', 'powerpress'); ?>
60
  </p>
61
  </td>
62
  </tr>
66
 
67
  <?php
68
 
69
+ powerpressadmin_tag_option('tag_title', $General['tag_title'], __('Title Tag', 'powerpress'), __('Use blog post title', 'powerpress') );
70
+ powerpressadmin_tag_option('tag_artist', $General['tag_artist'], __('Artist Tag', 'powerpress'), __('Use Feed Talent Name', 'powerpress') );
71
+ powerpressadmin_tag_option('tag_album', $General['tag_album'], __('Album Tag', 'powerpress'), __('Use blog title', 'powerpress') .': '. get_bloginfo('name') .'' );
72
+ powerpressadmin_tag_option('tag_genre', $General['tag_genre'], __('Genre Tag', 'powerpress'), __('Use genre \'Podcast\'', 'powerpress') );
73
+ powerpressadmin_tag_option('tag_year', $General['tag_year'], __('Year Tag', 'powerpress'), __('Use current year', 'powerpress') );
74
  //powerpressadmin_tag_option('tag_comment', $General['tag_comment'], 'Comment Tag', 'Use iTunes subtitle' ); // too compilcated at this point
75
+ powerpressadmin_tag_option('tag_track', $General['tag_track'], __('Track Tag', 'powerpress'), __('Do not specify track number', 'powerpress') );
76
+ powerpressadmin_tag_option('tag_composer', $General['tag_composer'], __('Composer Tag', 'powerpress'), __('Use Feed Talent Name', 'powerpress') );
77
+ powerpressadmin_tag_option('tag_copyright', $General['tag_copyright'], __('Copyright Tag', 'powerpress'), __('Use &copy; Talent Name', 'powerpress') );
78
+ powerpressadmin_tag_option('tag_url', $General['tag_url'], __('URL Tag', 'powerpress'), __('Use main blog URL', 'powerpress') .': '. get_bloginfo('url') .'' );
79
+ powerpressadmin_tag_option('tag_coverart', $General['tag_coverart'], __('Coverart Tag', 'powerpress'), '' );
80
 
81
  ?>
82
 
137
  }
138
  ?>
139
  <input type="radio" name="General[<?php echo $tag; ?>]" value="0" <?php if( $value == '' ) echo 'checked'; ?> />
140
+ <?php echo __('Do not add a coverart image.', 'powerpress'); ?><br />
141
  <input type="radio" id="<?php echo $tag; ?>_specify" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> />
142
 
143
  <input type="text" id="coverart_image" name="TagValues[<?php echo $tag; ?>]" style="width: 50%;" value="<?php echo $value; ?>" maxlength="250" />
144
+ <a href="#" onclick="javascript: window.open( document.getElementById('coverart_image').value ); return false;"><?php echo __('preview', 'powerpress'); ?></a>
145
 
146
+ <p><?php echo __('Place the URL to the Coverart image above. e.g. http://mysite.com/images/coverart.jpg', 'powerpress'); ?></P>
147
+ <P><?php echo __('Coverart images may be saved as either .gif, .jpg or .png images of any size, though 300 x 300 or 600 x 600 in either png or jpg format is recommended.', 'powerpress'); ?>
148
  </p>
149
  <p>
150
  <?php if( $FeedSettings['itunes_image'] ) { ?>
151
+ <a href="#" title="" onclick="document.getElementById('coverart_image').value='<?php echo $FeedSettings['itunes_image']; ?>';document.getElementById('tag_coverart_specify').checked=true;return false;"><?php echo __('Click here to use your current iTunes image.', 'powerpress'); ?></a>
152
+
153
  <?php } ?>
154
  </p>
155
  <?php if( $SupportUploads ) { ?>
156
+ <p><input name="coverart_image_checkbox" type="checkbox" onchange="powerpress_show_field('coverart_image_upload', this.checked)" value="1" /> <?php echo __('Upload new image', 'powerpress'); ?> </p>
157
  <div style="display:none" id="coverart_image_upload">
158
+ <label for="coverart_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label> <input type="file" name="coverart_image_file" />
159
  </div>
160
  <?php } ?>
161
 
165
  if( $track )
166
  {
167
  ?><br />
168
+ <input type="radio" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> /> <?php echo __('Specify', 'powerpress'); ?>:
169
  <input type="text" name="TagValues[<?php echo $tag; ?>]" style="width: 50px;" onkeyup="javascript:this.value=this.value.replace(/[^0-9]/g, '');" value="<?php echo ($value?$value:'1'); ?>" maxlength="5" />
170
  <?php
171
+ echo __('(value entered increments every episode)', 'powerpress');
172
  }
173
 
174
  if( $other )
175
  {
176
  ?><br />
177
+ <input type="radio" name="General[<?php echo $tag; ?>]" value="1" <?php if( $value != '' ) echo 'checked'; ?> /> <?php echo __('Specify', 'powerpress'); ?>:
178
  <input type="text" name="TagValues[<?php echo $tag; ?>]" style="width: 300px" value="<?php echo htmlspecialchars($value); ?>" maxlength="250" />
179
  <?php
180
  }
183
  </td>
184
  </tr>
185
  <?php
 
 
 
186
  }
187
 
188
  ?>
powerpressadmin-tools.php CHANGED
@@ -5,74 +5,74 @@
5
  {
6
  $General = get_option('powerpress_general');
7
  ?>
8
- <h2><?php echo __("PowerPress Tools"); ?></h2>
9
 
10
- <p style="margin-bottom: 0;"><?php echo __('Useful utilities and tools.'); ?></p>
11
 
12
 
13
  <table class="form-table">
14
  <tr valign="top">
15
- <th scope="row"><?php echo __("Podcasting Resources"); ?></th>
16
  <td>
17
- <p style="margin-top: 5px;"><strong><a href="http://www.podcastfaq.com"><?php echo __('PodcastFAQ.com'); ?></a></strong>
18
- - <?php echo __('everything you need to know about podcasting.'); ?></p>
19
 
20
- <p style="margin-top: 5px;"><strong><a href="http://help.blubrry.com/blubrry-powerpress/"><?php echo __('PowerPress Documentation'); ?></a></strong>
21
- - <?php echo __('learn more about PowerPress.'); ?></p>
22
 
23
- <p style="margin-top: 5px;"><strong><a href="http://forum.blubrry.com/"><?php echo __('Blubrry Forum'); ?></a></strong>
24
- - <?php echo __('interact with other podcasters.'); ?></p>
25
  </td>
26
  </tr>
27
 
28
  <tr valign="top">
29
- <th scope="row"><?php echo __("Import Settings"); ?></th>
30
  <td>
31
  <p style="margin-top: 5px;"><strong>
32
  <a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podpress-settings", 'powerpress-podpress-settings'); ?>"
33
- onclick="return confirm('<?php echo __('Import PodPress settings, are you sure?\n\nExisting PowerPress settings will be overwritten.'); ?>');"><?php echo __('Import PodPress Settings'); ?></a></strong></p>
34
- <p><?php echo __('Import settings from PodPress into PowerPress.'); ?></p>
35
 
36
  <p style="margin-top: 5px;"><strong>
37
  <a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podcasting-settings", 'powerpress-podcasting-settings'); ?>"
38
- onclick="return confirm('<?php echo __('Import Podcasting plugin settings, are you sure?\n\nExisting PowerPress settings will be overwritten.'); ?>');"><?php echo htmlspecialchars(__('Import plugin "Podcasting" Settings')); ?></a></strong></p>
39
- <p><?php echo htmlspecialchars(__('Import settings from the plugin "Podcasting" into PowerPress.')); ?></p>
40
- <p><?php echo htmlspecialchars(__('Note: Episodes created using the plugin "Podcasting" do not require importing.')); ?></p>
41
  </td>
42
  </tr>
43
 
44
  <tr valign="top">
45
- <th scope="row"><?php echo __("Import Episodes"); ?></th>
46
  <td>
47
 
48
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podpress-epiosdes"); ?>"><?php echo __('Import PodPress Episodes'); ?></a></strong> </p>
49
- <p><?php echo __('Import PodPress created episodes to PowerPress.'); ?></p>
50
 
51
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-mt-epiosdes"); ?>"><?php echo __('Import from other Blogging Platform'); ?></a></strong> <?php echo __('(media linked in blog posts)'); ?></p>
52
- <p><?php echo __('Import from podcast episodes from blogging platforms such as Movable Type/Blogger/Joomla/TypePad (and most other blogging systems) to PowerPress.'); ?></p>
53
 
54
  </td>
55
  </tr>
56
 
57
  <!-- ping_sites -->
58
  <tr valign="top">
59
- <th scope="row"><?php echo __("Add Update Services"); ?></th>
60
  <td>
61
 
62
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-ping-sites"); ?>"><?php echo __('Add Update Services / Ping Sites'); ?></a></strong> <?php echo __('(notify podcast directories when you publish new episodes)'); ?></p>
63
- <p><?php echo __('Add Update Services / Ping Sites geared towards podcasting.</p>'); ?>
64
 
65
  </td>
66
  </tr>
67
 
68
  <!-- find_replace -->
69
  <tr valign="top">
70
- <th scope="row"><?php echo __("Find and Replace Media"); ?></th>
71
  <td>
72
 
73
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-find-replace"); ?>"><?php echo __('Find and Replace for Episode URLs'); ?></a></strong></p>
74
  <p>
75
- <?php echo __('Find and replace complete or partial segments of media URLs. Useful if you move your media to a new web site or service.'); ?>
76
  </p>
77
 
78
  </td>
@@ -80,18 +80,18 @@
80
 
81
  <!-- use_caps -->
82
  <tr valign="top">
83
- <th scope="row"><?php echo __("User Capabilities"); ?></th>
84
  <td>
85
  <?php
86
  if( !empty($General['use_caps']) )
87
  {
88
  ?>
89
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-remove-caps", 'powerpress-remove-caps'); ?>"><?php _e('Remove PowerPress Podcasting Capabilities for User Role Management'); ?></a></strong></p>
90
  <p>
91
  <?php echo __('Podcasting capability allows administrators, editors and authors access to create and configure podcast episodes.
92
  Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
93
  custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
94
- complexity, it is not supported by Blubrry.com.'); ?>
95
  </p>
96
 
97
  <?php
@@ -100,12 +100,12 @@
100
  {
101
  ?>
102
  <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-add-caps", 'powerpress-add-caps'); ?>">
103
- <?php _e('Add PowerPress Podcasting Capabilities for User Role Management'); ?></a></strong></p>
104
  <p>
105
  <?php echo __('Adding podcasting capability will allow administrators, editors and authors access to create and configure podcast episodes.
106
  Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
107
  custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
108
- complexity, it is not supported by Blubrry.com.'); ?>
109
  </p>
110
  <?php
111
  }
@@ -113,45 +113,45 @@
113
  if( @$General['premium_caps'] )
114
  {
115
  ?>
116
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-remove-feed-caps", 'powerpress-remove-feed-caps'); ?>"><?php _e('Remove Password Protection Capabilities for Control of Which Users can Access Your Podcasts'); ?></a></strong> (Also kown as Premium Content)</p>
117
  <p>
118
  <?php
119
- echo sprintf( __("To use this feature, go to %s and create a new custom podcast channel. In the Edit Podcast Channel page, click the last tab labeled 'Other Settings'. Place a check in the box labled 'Protect Content' and then click 'Save Changes'."),
120
- '<a href="'. admin_url("admin.php?page=powerpressadmin_customfeeds.php") .'" title="'. __('Podcast Channels') .'">'. __('Podcast Channels') .'</a>' );
121
  ?>
122
  </p>
123
  <p>
124
  <?php echo __('Password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
125
  podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
126
  Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
127
- channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.'); ?>
128
  </p>
129
  <?php
130
  }
131
  else
132
  {
133
  ?>
134
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-add-feed-caps", 'powerpress-add-feed-caps'); ?>"><?php _e('Add Password Protection Capabilities for Control of Which Users can Access Your Podcasts'); ?></a></strong> (Also kown as Premium Content)</p>
135
  <p>
136
  <?php echo __('Adding password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
137
  podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
138
  Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
139
- channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.'); ?>
140
  </p>
141
  <?php
142
  }
143
  ?>
144
 
145
- <p><strong><?php echo __('What are Roles and Capabilities?'); ?></strong></p>
146
  <p>
147
  <?php
148
  echo sprintf( __("The WordPress %s feature gives the blog owner the ability to control what users can and
149
  cannot do in the blog. You will most likely need a roles and capabilities plugin such as %s, %s, or %s
150
- to take advantage of these features. Due to this feature's complexity, it is not supported by Blubrry.com."),
151
- '<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">'. __('Roles and Capabilities') .'</a>',
152
- '<a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">'. __('Role Manager') .'</a>',
153
- '<a href="http://alkivia.org/wordpress/capsman/" target="_blank">'. __('Capability Manager') .'</a>',
154
- '<a href="http://agapetry.net/category/plugins/role-scoper/" target="_blank">'. __('Role Scoper') .'</a>'
155
  );
156
  ?>
157
  </p>
@@ -161,48 +161,64 @@
161
 
162
 
163
  <tr valign="top">
164
- <th scope="row"><?php echo __("Update Plugins Cache"); ?></th>
165
  <td>
166
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-clear-update_plugins", 'powerpress-clear-update_plugins'); ?>"><?php _e('Clear Plugins Update Cache'); ?></a></strong></p>
167
  <p>
168
  <?php
169
- echo sprintf( __("The list of plugins on the plugins page will cache the plugin version numbers for up to 24 hours.
170
- Click the link above to clear the cache to get the latest versions of plugins listed on your %s
171
-
172
- "),
173
- '<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">'. __('Roles and Capabilities') .'</a>',
174
- '<a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">'. __('Role Manager') .'</a>',
175
- '<a href="http://alkivia.org/wordpress/capsman/" target="_blank">'. __('Capability Manager') .'</a>',
176
- '<a href="http://agapetry.net/category/plugins/role-scoper/" target="_blank">'. __('Role Scoper') .'</a>'
177
- );
178
-
179
  ?>
180
- <a href="<?php echo admin_url(). 'plugins.php'; ?>" title="Plugins">plugins</a> page.
181
  </p>
182
  </td>
183
  </tr>
184
 
185
-
186
  <tr valign="top">
187
- <th scope="row"><?php echo __("Diagnostics"); ?></th>
188
  <td>
189
- <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-diagnostics"); ?>"><?php _e('Diagnose Your PowerPress Installation'); ?></a></strong></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  <p>
191
- <?php echo __('The Diagnostics page checks to see if your server is configured to support all of the available features in Blubrry PowerPress.'); ?>
 
192
  </p>
193
  </td>
194
  </tr>
195
 
196
- <!--
197
  <tr valign="top">
198
- <th scope="row">Plugin Translation</th>
199
  <td>
200
- <p style="margin-top: 5px;">
201
- Coming soon.
 
202
  </p>
203
  </td>
204
  </tr>
205
- -->
206
 
207
  </table>
208
  <?php
5
  {
6
  $General = get_option('powerpress_general');
7
  ?>
8
+ <h2><?php echo __('PowerPress Tools', 'powerpress'); ?></h2>
9
 
10
+ <p style="margin-bottom: 0;"><?php echo __('Useful utilities and tools.', 'powerpress'); ?></p>
11
 
12
 
13
  <table class="form-table">
14
  <tr valign="top">
15
+ <th scope="row"><?php echo __('Podcasting Resources', 'powerpress'); ?></th>
16
  <td>
17
+ <p style="margin-top: 5px;"><strong><a href="http://www.podcastfaq.com">PodcastFAQ.com</a></strong>
18
+ - <?php echo __('everything you need to know about podcasting.', 'powerpress'); ?></p>
19
 
20
+ <p style="margin-top: 5px;"><strong><a href="http://help.blubrry.com/blubrry-powerpress/"><?php echo __('PowerPress Documentation', 'powerpress'); ?></a></strong>
21
+ - <?php echo __('learn more about PowerPress.', 'powerpress'); ?></p>
22
 
23
+ <p style="margin-top: 5px;"><strong><a href="http://forum.blubrry.com/"><?php echo __('Blubrry Forum', 'powerpress'); ?></a></strong>
24
+ - <?php echo __('interact with other podcasters.', 'powerpress'); ?></p>
25
  </td>
26
  </tr>
27
 
28
  <tr valign="top">
29
+ <th scope="row"><?php echo __('Import Settings', 'powerpress'); ?></th>
30
  <td>
31
  <p style="margin-top: 5px;"><strong>
32
  <a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podpress-settings", 'powerpress-podpress-settings'); ?>"
33
+ onclick="return confirm('<?php echo __('Import PodPress settings, are you sure?\n\nExisting PowerPress settings will be overwritten.', 'powerpress'); ?>');"><?php echo __('Import PodPress Settings', 'powerpress'); ?></a></strong></p>
34
+ <p><?php echo __('Import settings from PodPress into PowerPress.', 'powerpress'); ?></p>
35
 
36
  <p style="margin-top: 5px;"><strong>
37
  <a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podcasting-settings", 'powerpress-podcasting-settings'); ?>"
38
+ onclick="return confirm('<?php echo __('Import Podcasting plugin settings, are you sure?', 'powerpress') .'\n\n'. __('Existing PowerPress settings will be overwritten.', 'powerpress'); ?>');"><?php echo htmlspecialchars(__('Import plugin "Podcasting" Settings', 'powerpress')); ?></a></strong></p>
39
+ <p><?php echo htmlspecialchars(__('Import settings from the plugin "Podcasting" into PowerPress.', 'powerpress')); ?></p>
40
+ <p><?php echo htmlspecialchars(__('Note: Episodes created using the plugin "Podcasting" do not require importing.', 'powerpress')); ?></p>
41
  </td>
42
  </tr>
43
 
44
  <tr valign="top">
45
+ <th scope="row"><?php echo __('Import Episodes', 'powerpress'); ?></th>
46
  <td>
47
 
48
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-podpress-epiosdes"); ?>"><?php echo __('Import PodPress Episodes', 'powerpress'); ?></a></strong> </p>
49
+ <p><?php echo __('Import PodPress created episodes to PowerPress.', 'powerpress'); ?></p>
50
 
51
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-mt-epiosdes"); ?>"><?php echo __('Import from other Blogging Platform', 'powerpress'); ?></a></strong> <?php echo __('(media linked in blog posts)', 'powerpress'); ?></p>
52
+ <p><?php echo __('Import from podcast episodes from blogging platforms such as Movable Type/Blogger/Joomla/TypePad (and most other blogging systems) to PowerPress.', 'powerpress'); ?></p>
53
 
54
  </td>
55
  </tr>
56
 
57
  <!-- ping_sites -->
58
  <tr valign="top">
59
+ <th scope="row"><?php echo __('Add Update Services', 'powerpress'); ?></th>
60
  <td>
61
 
62
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-ping-sites"); ?>"><?php echo __('Add Update Services / Ping Sites', 'powerpress'); ?></a></strong> <?php echo __('(notify podcast directories when you publish new episodes)', 'powerpress'); ?></p>
63
+ <p><?php echo __('Add Update Services / Ping Sites geared towards podcasting.', 'powerpress'); ?></p>
64
 
65
  </td>
66
  </tr>
67
 
68
  <!-- find_replace -->
69
  <tr valign="top">
70
+ <th scope="row"><?php echo __('Find and Replace Media', 'powerpress'); ?></th>
71
  <td>
72
 
73
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-find-replace"); ?>"><?php echo __('Find and Replace for Episode URLs', 'powerpress'); ?></a></strong></p>
74
  <p>
75
+ <?php echo __('Find and replace complete or partial segments of media URLs. Useful if you move your media to a new web site or service.', 'powerpress'); ?>
76
  </p>
77
 
78
  </td>
80
 
81
  <!-- use_caps -->
82
  <tr valign="top">
83
+ <th scope="row"><?php echo __('User Capabilities', 'powerpress'); ?></th>
84
  <td>
85
  <?php
86
  if( !empty($General['use_caps']) )
87
  {
88
  ?>
89
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-remove-caps", 'powerpress-remove-caps'); ?>"><?php echo __('Remove PowerPress Podcasting Capabilities for User Role Management', 'powerpress'); ?></a></strong></p>
90
  <p>
91
  <?php echo __('Podcasting capability allows administrators, editors and authors access to create and configure podcast episodes.
92
  Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
93
  custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
94
+ complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
95
  </p>
96
 
97
  <?php
100
  {
101
  ?>
102
  <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-add-caps", 'powerpress-add-caps'); ?>">
103
+ <?php echo __('Add PowerPress Podcasting Capabilities for User Role Management', 'powerpress'); ?></a></strong></p>
104
  <p>
105
  <?php echo __('Adding podcasting capability will allow administrators, editors and authors access to create and configure podcast episodes.
106
  Only administrators will be able to view media statistics from the WordPress Dashboard. Contributors, subscribers and other
107
  custom users will not have access to create podcast episodes or view statistics from the dashboard. Due to this feature\'s
108
+ complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
109
  </p>
110
  <?php
111
  }
113
  if( @$General['premium_caps'] )
114
  {
115
  ?>
116
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-remove-feed-caps", 'powerpress-remove-feed-caps'); ?>"><?php echo __('Remove Password Protection Capabilities for Control of Which Users can Access Your Podcasts', 'powerpress'); ?></a></strong> (<?php echo __('Also kown as Premium Content', 'powerpress'); ?>)</p>
117
  <p>
118
  <?php
119
+ echo sprintf( __("To use this feature, go to %s and create a new custom podcast channel. In the Edit Podcast Channel page, click the last tab labeled 'Other Settings'. Place a check in the box labled 'Protect Content' and then click 'Save Changes'.", 'powerpress'),
120
+ '<a href="'. admin_url("admin.php?page=powerpressadmin_customfeeds.php") .'" title="'. __('Podcast Channels', 'powerpress') .'">'. __('Podcast Channels', 'powerpress') .'</a>' );
121
  ?>
122
  </p>
123
  <p>
124
  <?php echo __('Password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
125
  podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
126
  Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
127
+ channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
128
  </p>
129
  <?php
130
  }
131
  else
132
  {
133
  ?>
134
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-add-feed-caps", 'powerpress-add-feed-caps'); ?>"><?php echo __('Add Password Protection Capabilities for Control of Which Users can Access Your Podcasts', 'powerpress'); ?></a></strong> (<?php echo __('Also kown as Premium Content', 'powerpress'); ?>)</p>
135
  <p>
136
  <?php echo __('Adding password protection capabilities for custom podcast channel feeds lets you control who can listen and view your
137
  podcast. This feature allows you to password-protect custom podcast channels by adding a new role called "Premium
138
  Subscriber." Only users with the "Premium Subscriber" role have access to your password protected custom podcast
139
+ channels. Due to this feature\'s complexity, it is not supported by Blubrry.com.', 'powerpress'); ?>
140
  </p>
141
  <?php
142
  }
143
  ?>
144
 
145
+ <p><strong><?php echo __('What are Roles and Capabilities?', 'powerpress'); ?></strong></p>
146
  <p>
147
  <?php
148
  echo sprintf( __("The WordPress %s feature gives the blog owner the ability to control what users can and
149
  cannot do in the blog. You will most likely need a roles and capabilities plugin such as %s, %s, or %s
150
+ to take advantage of these features. Due to this feature's complexity, it is not supported by Blubrry.com.", 'powerpress'),
151
+ '<a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">'. __('Roles and Capabilities', 'powerpress') .'</a>',
152
+ '<a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">'. __('Role Manager', 'powerpress') .'</a>',
153
+ '<a href="http://alkivia.org/wordpress/capsman/" target="_blank">'. __('Capability Manager', 'powerpress') .'</a>',
154
+ '<a href="http://agapetry.net/category/plugins/role-scoper/" target="_blank">'. __('Role Scoper', 'powerpress') .'</a>'
155
  );
156
  ?>
157
  </p>
161
 
162
 
163
  <tr valign="top">
164
+ <th scope="row"><?php echo __('Update Plugins Cache', 'powerpress'); ?></th>
165
  <td>
166
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-clear-update_plugins", 'powerpress-clear-update_plugins'); ?>"><?php echo __('Clear Plugins Update Cache', 'powerpress'); ?></a></strong></p>
167
  <p>
168
  <?php
169
+ echo sprintf( __('The list of plugins on the plugins page will cache the plugin version numbers for up to 24 hours. Click the link above to clear the cache to get the latest versions of plugins listed on your %s page.', 'powerpress'),
170
+ '<a href="'. admin_url(). 'plugins.php' .'" title="Plugins">'. __('plugins', 'powerpress') .'</a>');
 
 
 
 
 
 
 
 
171
  ?>
 
172
  </p>
173
  </td>
174
  </tr>
175
 
 
176
  <tr valign="top">
177
+ <th scope="row"><?php echo __('Translations', 'powerpress'); ?></th>
178
  <td>
179
+ <p style="margin-top: 5px;">
180
+ <?php echo __('Blubrry would like to thank the following for translating PowerPress.', 'powerpress'); ?>
181
+ </p>
182
+ <ul style="margin-left: 50px;">
183
+ <li>
184
+ <p>
185
+ <?php echo __('Translations coming soon', 'powerpress'); ?>
186
+ </p>
187
+ </li>
188
+ <!--
189
+ <li>
190
+ <p>
191
+ <b><?php echo __('German', 'powerpress'); ?></b> -
192
+ <?php echo sprintf( __('versions %s by', 'powerpress'), '1.1'); ?>
193
+ <a href="" target="_blank">Optional Link</a>
194
+ </p>
195
+ </li>
196
+ <li>
197
+ <p>
198
+ <b><?php echo __('Italian', 'powerpress'); ?></b> -
199
+ <?php echo sprintf( __('versions %s by', 'powerpress'), '1.1, 1.2'); ?>
200
+ Anonymous
201
+ </p>
202
+ </li>
203
+ -->
204
+ </ul>
205
  <p>
206
+ <!-- Do not translate the following, we need translators to communicate with us in our native language (English) -->
207
+ Please <a href="http://www.blubrry.com/contact.php" target="_blank">contact Blubrry</a> if you are interested in translating PowerPress to a language not listed above.
208
  </p>
209
  </td>
210
  </tr>
211
 
212
+
213
  <tr valign="top">
214
+ <th scope="row"><?php echo __('Diagnostics', 'powerpress'); ?></th>
215
  <td>
216
+ <p style="margin-top: 5px;"><strong><a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_tools.php&amp;action=powerpress-diagnostics"); ?>"><?php echo __('Diagnose Your PowerPress Installation', 'powerpress'); ?></a></strong></p>
217
+ <p>
218
+ <?php echo __('The Diagnostics page checks to see if your server is configured to support all of the available features in Blubrry PowerPress.', 'powerpress'); ?>
219
  </p>
220
  </td>
221
  </tr>
 
222
 
223
  </table>
224
  <?php
powerpressadmin.php CHANGED
@@ -50,24 +50,26 @@ function powerpress_admin_init()
50
  wp_enqueue_script('jquery');
51
  wp_enqueue_script('jquery-ui-core');
52
  wp_enqueue_script('jquery-ui-tabs');
 
 
53
 
54
  if( function_exists('powerpress_admin_jquery_init') )
55
  powerpress_admin_jquery_init();
56
 
57
  if( !current_user_can('manage_options') )
58
  {
59
- powerpress_page_message_add_error( __('You do not have sufficient permission to manage options.') );
60
  return;
61
  }
62
 
63
  // Check for other podcasting plugin
64
  if( defined('PODPRESS_VERSION') || isset($GLOBALS['podcasting_player_id']) || isset($GLOBALS['podcast_channel_active']) || defined('PODCASTING_VERSION') )
65
- powerpress_page_message_add_error( __('Another podcasting plugin has been detected, PowerPress is currently disabled.') );
66
 
67
  global $wp_version;
68
  $VersionDiff = version_compare($wp_version, 2.6);
69
  if( $VersionDiff < 0 )
70
- powerpress_page_message_add_error( __('Blubrry PowerPress requires Wordpress version 2.6 or greater.') );
71
 
72
 
73
  // Save settings here
@@ -114,7 +116,7 @@ function powerpress_admin_init()
114
  }
115
  else
116
  {
117
- powerpress_page_message_add_error( 'Invalid iTunes image ' . htmlspecialchars($_FILES['itunes_image_file']['name']) );
118
  }
119
  }
120
 
@@ -140,7 +142,7 @@ function powerpress_admin_init()
140
  }
141
  else
142
  {
143
- powerpress_page_message_add_error( __('Invalid RSS image') .': '. htmlspecialchars($_FILES['rss2_image_file']['name']) );
144
  }
145
  }
146
 
@@ -166,7 +168,7 @@ function powerpress_admin_init()
166
  }
167
  else
168
  {
169
- powerpress_page_message_add_error( __('Invalid Coverat image') .': ' . htmlspecialchars($_FILES['coverart_image_file']['name']) );
170
  }
171
  }
172
 
@@ -287,17 +289,17 @@ function powerpress_admin_init()
287
  }
288
  else if( isset($results['error']) )
289
  {
290
- $error = __('Blubrry Hosting Error (updating coverart)') .': '. $results['error'];
291
  }
292
  else
293
  {
294
- $error = __('An error occurred updating the coverart with your Blubrry Services Account.');
295
  }
296
 
297
  }
298
  else
299
  {
300
- powerpress_page_message_add_error( __('Coverart Image was not uploaded to your Blubrry Services Account. It will <u>NOT</u> be added to your mp3s.') );
301
  }
302
  }
303
  }
@@ -342,29 +344,29 @@ function powerpress_admin_init()
342
  switch( $_POST['action'] )
343
  {
344
  case 'powerpress-save-settings': {
345
- powerpress_page_message_add_notice( __('Blubrry PowerPress settings saved successfully.') );
346
  }; break;
347
  case 'powerpress-save-customfeed': {
348
- powerpress_page_message_add_notice( __('Blubrry PowerPress Custom Feed settings saved.') );
349
  }; break;
350
  case 'powerpress-save-categoryfeedsettings': {
351
- powerpress_page_message_add_notice( __('Blubrry PowerPress Category Feed settings saved.') );
352
  }; break;
353
  case 'powerpress-save-tags': {
354
  $General = get_option('powerpress_general');
355
  if( !@$General['blubrry_hosting'] )
356
- powerpress_page_message_add_notice( __('ATTENTION: You must configure your Blubrry Services in the Blubrry PowerPress &gt; Basic Settings page in order to utilize this feature.') );
357
  else
358
- powerpress_page_message_add_notice( __('Blubrry PowerPress MP3 Tag settings saved.') );
359
  }; break;
360
  case 'powerpress-save-mode': {
361
  if( $General['advanced_mode'] == 1 )
362
- powerpress_page_message_add_notice( __('You are now in Advanced Mode.') );
363
  else
364
- powerpress_page_message_add_notice( __('You are now in Simple Mode.') );
365
  }; break;
366
  default: {
367
- powerpress_page_message_add_notice( __('Blubrry PowerPress settings saved.') );
368
  }; break;
369
  }
370
 
@@ -379,7 +381,7 @@ function powerpress_admin_init()
379
 
380
  if( @$PingResults['success'] )
381
  {
382
- powerpress_page_message_add_notice( __('iTunes Ping Successful. Podcast Feed URL') .': '. $PingResults['feed_url'] );
383
  }
384
  else
385
  {
@@ -408,11 +410,11 @@ function powerpress_admin_init()
408
  } else */
409
  if( $key == '' )
410
  {
411
- powerpress_page_message_add_error( sprintf(__('Feed slug "%s" is not valid.'), $_POST['feed_slug']) );
412
  }
413
  else if( in_array($key, $wp_rewrite->feeds) && !isset($Settings['custom_feeds'][ $key ]) ) // If it is a system feed or feed created by something else
414
  {
415
- powerpress_page_message_add_error( sprintf(__('Feed slug "%s" is not available.'), $key) );
416
  }
417
  else
418
  {
@@ -422,7 +424,7 @@ function powerpress_admin_init()
422
  add_feed($key, 'powerpress_do_podcast_feed'); // Before we flush the rewrite rules we need to add the new custom feed...
423
  $wp_rewrite->flush_rules();
424
 
425
- powerpress_page_message_add_notice( sprintf(__('Podcast Feed "%s" added, please configure your new feed now.'), $value) );
426
  $_GET['action'] = 'powerpress-editfeed';
427
  $_GET['feed_slug'] = $key;
428
  }
@@ -444,9 +446,13 @@ function powerpress_admin_init()
444
  {
445
  powerpress_page_message_add_error( sprintf(__('Feed slug "%s" already exists.'), $key) );
446
  } else */
447
- if( $category == false )
448
  {
449
- powerpress_page_message_add_error( __('Error obtaining category information.') );
 
 
 
 
450
  }
451
  else
452
  {
@@ -459,7 +465,7 @@ function powerpress_admin_init()
459
  powerpress_save_settings($Settings);
460
  }
461
 
462
- powerpress_page_message_add_notice( __('Please configure your category podcast feed now.') );
463
 
464
  $_GET['action'] = 'powerpress-editcategoryfeed';
465
  $_GET['cat'] = $cat_ID;
@@ -507,7 +513,7 @@ function powerpress_admin_init()
507
  case 'powerpress-save-mode': {
508
 
509
  if( !isset($_POST['General']['advanced_mode']) )
510
- powerpress_page_message_add_notice( __('You must select a Mode to continue.') );
511
 
512
  }; break;
513
  }
@@ -525,7 +531,10 @@ function powerpress_admin_init()
525
  $Settings['cat_casting'] = 1;
526
  powerpress_save_settings($Settings);
527
 
528
- wp_redirect('categories.php?message=3');
 
 
 
529
  exit;
530
 
531
  }; break;
@@ -537,7 +546,7 @@ function powerpress_admin_init()
537
  $category = get_category($cat_ID);
538
  if( $category == false )
539
  {
540
- powerpress_page_message_add_error( __('Error obtaining category information.') );
541
  }
542
  else
543
  {
@@ -550,7 +559,7 @@ function powerpress_admin_init()
550
  powerpress_save_settings($Settings);
551
  }
552
 
553
- powerpress_page_message_add_notice( __('Please configure your category podcast feed now.') );
554
 
555
  $_GET['action'] = 'powerpress-editcategoryfeed';
556
  $_GET['cat'] = $cat_ID;
@@ -565,11 +574,11 @@ function powerpress_admin_init()
565
 
566
  if( false && $delete_slug == 'podcast' && $force_deletion == false ) // Feature disabled, you can now delete podcast specific settings
567
  {
568
- powerpress_page_message_add_error( __('Cannot delete default podcast feed.') );
569
  }
570
  else if( $delete_slug != 'podcast' && $Episodes > 0 && $force_deletion == false )
571
  {
572
- powerpress_page_message_add_error( sprintf(__('Cannot delete feed. Feed contains %d episode(s).'), $Episodes) );
573
  }
574
  else
575
  {
@@ -591,7 +600,7 @@ function powerpress_admin_init()
591
  remove_action($hook, $hook, 10, 1); // This may not be necessary
592
  $wp_rewrite->flush_rules(); // This is definitely necessary
593
 
594
- powerpress_page_message_add_notice( __('Feed deleted successfully.') );
595
  }
596
  }; break;
597
  case 'powerpress-delete-category-feed': {
@@ -607,16 +616,16 @@ function powerpress_admin_init()
607
  }
608
  delete_option('powerpress_cat_feed_'.$cat_ID); // Delete the actual feed settings
609
 
610
- powerpress_page_message_add_notice( __('Removed podcast settings for category feed successfully.') );
611
  }; break;
612
  case 'powerpress-podpress-settings': {
613
  check_admin_referer('powerpress-podpress-settings');
614
 
615
  // Import settings here..
616
  if( powerpress_admin_import_podpress_settings() )
617
- powerpress_page_message_add_notice( __('Podpress settings imported successfully.') );
618
  else
619
- powerpress_page_message_add_error( __('No Podpress settings found.') );
620
 
621
  }; break;
622
  case 'powerpress-podcasting-settings': {
@@ -624,9 +633,9 @@ function powerpress_admin_init()
624
 
625
  // Import settings here..
626
  if( powerpress_admin_import_podcasting_settings() )
627
- powerpress_page_message_add_notice( __('Settings imported from the plugin "Podcasting" successfully.') );
628
  else
629
- powerpress_page_message_add_error( __('No settings found for the plugin "Podcasting".') );
630
 
631
  }; break;
632
  case 'powerpress-add-caps': {
@@ -644,7 +653,7 @@ function powerpress_admin_init()
644
 
645
  $General = array('use_caps'=>true);
646
  powerpress_save_settings($General);
647
- powerpress_page_message_add_notice( __('PowerPress Roles and Capabilities added to WordPress Blog.') );
648
 
649
  }; break;
650
  case 'powerpress-remove-caps': {
@@ -661,7 +670,7 @@ function powerpress_admin_init()
661
  }
662
  $General = array('use_caps'=>false);
663
  powerpress_save_settings($General);
664
- powerpress_page_message_add_notice( __('PowerPress Roles and Capabilities removed from WordPress Blog') );
665
 
666
  }; break;
667
  case 'powerpress-add-feed-caps': {
@@ -670,7 +679,7 @@ function powerpress_admin_init()
670
  $ps_role = get_role('premium_subscriber');
671
  if(!$ps_role)
672
  {
673
- add_role('premium_subscriber', 'Premium Subscriber', $caps);
674
  $ps_role = get_role('premium_subscriber');
675
  $ps_role->add_cap('read');
676
  $ps_role->add_cap('premium_content');
@@ -686,13 +695,13 @@ function powerpress_admin_init()
686
 
687
  $General = array('premium_caps'=>true);
688
  powerpress_save_settings($General);
689
- powerpress_page_message_add_notice( __('Podcast Password Protection Capabilities for Custom Channel Feeds added successfully.') );
690
 
691
  }; break;
692
  case 'powerpress-remove-feed-caps': {
693
  check_admin_referer('powerpress-remove-feed-caps');
694
 
695
- $users = array('administrator','editor', 'author', 'contributor', 'subscriber', 'premium_subscriber');
696
  while( list($null,$user) = each($users) )
697
  {
698
  $role = get_role($user);
@@ -704,14 +713,14 @@ function powerpress_admin_init()
704
 
705
  $General = array('premium_caps'=>false);
706
  powerpress_save_settings($General);
707
- powerpress_page_message_add_notice( __('Podcast Password Protection Capabilities for Custom Channel Feeds removed successfully.') );
708
 
709
  }; break;
710
  case 'powerpress-clear-update_plugins': {
711
  check_admin_referer('powerpress-clear-update_plugins');
712
 
713
  delete_option('update_plugins');
714
- powerpress_page_message_add_notice( __('Plugins Update Cache cleared successfully. You may now to go the <a href="'. admin_url() .'plugins.php" title="Manage Plugins">Manage Plugins</a> page to see the latest plugin versions.') );
715
 
716
  }; break;
717
  }
@@ -720,7 +729,10 @@ function powerpress_admin_init()
720
  // Handle edit from category page
721
  if( isset($_POST['from_categories']) )
722
  {
723
- wp_redirect('categories.php?message=3');
 
 
 
724
  exit;
725
  }
726
 
@@ -826,22 +838,22 @@ function powerpress_admin_menu()
826
  { // Otherwise we're using a version of wordpress that is not supported.
827
 
828
  require_once( POWERPRESS_ABSPATH .'/powerpressadmin-metabox.php');
829
- add_meta_box('powerpress-podcast', __('Podcast Episode'), 'powerpress_meta_box', 'page', 'normal');
830
 
831
  if( isset($Powerpress['custom_feeds']) )
832
  {
833
- add_meta_box('powerpress-podcast', __('Podcast Episode (default)'), 'powerpress_meta_box', 'post', 'normal');
834
 
835
  while( list($feed_slug, $feed_title) = each($Powerpress['custom_feeds']) )
836
  {
837
  if( $feed_slug == 'podcast' )
838
  continue;
839
- add_meta_box('powerpress-'.$feed_slug, __('Podcast Episode for Custom Channel') .': '.$feed_title, 'powerpress_meta_box', 'post', 'normal');
840
  }
841
  }
842
  else
843
  {
844
- add_meta_box('powerpress-podcast', __('Podcast Episode'), 'powerpress_meta_box', 'post', 'normal');
845
  }
846
  }
847
 
@@ -849,22 +861,22 @@ function powerpress_admin_menu()
849
  {
850
  $Powerpress = powerpress_default_settings($Powerpress, 'basic');
851
 
852
- add_menu_page(__('PowerPress'), __('PowerPress'), 1, 'powerpress/powerpressadmin_basic.php', 'powerpress_admin_page_basic', powerpress_get_root_url() . 'powerpress_ico.png');
853
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Settings'), __('Settings'), 1, 'powerpress/powerpressadmin_basic.php', 'powerpress_admin_page_basic' );
854
  if( @$Powerpress['player_options'] )
855
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Audio Player Options'), __('Audio Player'), 1, 'powerpress/powerpressadmin_player.php', 'powerpress_admin_page_players');
856
 
857
  if( $Powerpress['channels'] )
858
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Custom Podcast Channels'), __('Podcast Channels'), 1, 'powerpress/powerpressadmin_customfeeds.php', 'powerpress_admin_page_customfeeds');
859
  if( $Powerpress['cat_casting'] )
860
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Category Podcasting'), __('Category Podcasting'), 1, 'powerpress/powerpressadmin_categoryfeeds.php', 'powerpress_admin_page_categoryfeeds');
861
  if( @$Powerpress['podpress_stats'] )
862
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PodPress Stats'), __('PodPress Stats'), 1, 'powerpress/powerpressadmin_podpress-stats.php', 'powerpress_admin_page_podpress_stats');
863
 
864
 
865
  if( isset($Powerpress['blubrry_hosting']) && $Powerpress['blubrry_hosting'] )
866
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress MP3 Tags'), __('MP3 Tags'), 1, 'powerpress/powerpressadmin_tags.php', 'powerpress_admin_page_tags');
867
- add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Tools'), __('Tools'), 1, 'powerpress/powerpressadmin_tools.php', 'powerpress_admin_page_tools');
868
  }
869
  }
870
 
@@ -942,7 +954,7 @@ function powerpress_edit_post($post_ID, $post)
942
 
943
  if( !$ContentType )
944
  {
945
- $error = __('Error') ." [{$Powerpress['url']}]: " .__('Unable to determine content type of media (e.g. audio/mpeg). Verify file extension is correct and try again.');
946
  powerpress_add_error($error);
947
  continue;
948
  }
@@ -975,7 +987,7 @@ function powerpress_edit_post($post_ID, $post)
975
  }
976
  else
977
  {
978
- $error = __('Error') ." ({$Powerpress['url']}): {$MediaInfo['error']}";
979
  powerpress_add_error($error);
980
  continue;
981
  }
@@ -990,13 +1002,13 @@ function powerpress_edit_post($post_ID, $post)
990
 
991
  if( isset($MediaInfo['error']) )
992
  {
993
- $error = __('Error') ." ({$MediaURL}): {$MediaInfo['error']}";
994
  powerpress_add_error($error);
995
  continue;
996
  }
997
  else if( empty($MediaInfo['length']) )
998
  {
999
- $error = __('Error') ." ({$MediaURL}): ". __('Unable to obtain size of media.');
1000
  powerpress_add_error($error);
1001
  continue;
1002
  }
@@ -1171,7 +1183,7 @@ function powerpress_show_field(id, show) {
1171
  document.getElementById(id).style.display = (show?"block":"none");
1172
  }
1173
  function powerpress_new_feed_url_prompt() {
1174
- var Msg = '<?php echo __('WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.\n\nDO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.\n\nAre you sure you want to continue?'); ?>';
1175
  if( confirm(Msg) ) {
1176
  powerpress_show_field('new_feed_url_step_1', false);
1177
  powerpress_show_field('new_feed_url_step_2', true);
@@ -1281,7 +1293,7 @@ function powerpress_check_url(url)
1281
  {
1282
  if( validChars.indexOf( url.charAt(x) ) == -1 )
1283
  {
1284
- jQuery( '#'+DestDiv ).text('<?php echo __('Media URL contains characters that may cause problems for some clients. For maximum compatibility, only use letters, numbers, dash - and underscore _ characters only.'); ?>');
1285
  jQuery( '#'+DestDiv ).css('display', 'block');
1286
  return false;
1287
  }
@@ -1296,7 +1308,7 @@ function powerpress_check_url(url)
1296
  ?>
1297
  if( url.charAt(0) == 'h' && url.charAt(1) == 't' && url.charAt(2) == 't' && url.charAt(3) == 'p' && url.charAt(4) == 's' )
1298
  {
1299
- jQuery( '#'+DestDiv ).html('<?php echo __('PowerPress will not accept media URLs starting with https://.<br />Not all podcatching (podcast downloading) applications support secure http.<br />Please enter a different URL beginning with http://.'); ?>');
1300
  jQuery( '#'+DestDiv ).css('display', 'block');
1301
  return false;
1302
  }
@@ -1305,7 +1317,7 @@ function powerpress_check_url(url)
1305
  ?>
1306
  if( url.charAt(0) == 'h' && url.charAt(1) == 't' && url.charAt(2) == 't' && url.charAt(3) == 'p' && url.charAt(4) == 's' )
1307
  {
1308
- jQuery( '#'+DestDiv ).html('<?php echo __('Media URL should not start with https://.<br />Not all podcatching (podcast downloading) applications support secure http.<br />By using https://, you may limit the size of your audience.'); ?>');
1309
  jQuery( '#'+DestDiv ).css('display', 'block');
1310
  return false;
1311
  }
@@ -1347,11 +1359,11 @@ function powerpress_get_media_info(FeedSlug)
1347
  echo "\t\t\t\talert(response);\n";
1348
  ?>
1349
  var Parts = response.split("\n", 5);
1350
- var FeedSlug = Parts[0];
1351
 
1352
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
1353
 
1354
- if( Parts[1] == 'OK' )
1355
  {
1356
  jQuery('#powerpress_set_size_1_'+FeedSlug).attr('checked', true);
1357
  jQuery('#powerpress_size_'+FeedSlug).val( Parts[2] );
@@ -1380,18 +1392,23 @@ function powerpress_get_media_info(FeedSlug)
1380
  }
1381
  else
1382
  {
1383
- jQuery( '#powerpress_success_'+FeedSlug ).html( '<?php echo __('Media verified successfully.'); ?> <a href="#" onclick="jQuery( \'#powerpress_success_'+ FeedSlug +'\' ).fadeOut(1000);return false;" title="Close" class="close">X<\/a>' );
1384
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'block');
1385
  // setTimeout( function() { jQuery( '#powerpress_success_'+FeedSlug ).fadeOut(1000); }, 10000 );
1386
  }
1387
  }
1388
  else
1389
  {
1390
- var Parts = response.split("\n", 3);
1391
- if( Parts[1] )
 
 
 
 
 
1392
  jQuery( '#powerpress_warning_'+FeedSlug ).html( Parts[1] );
1393
  else
1394
- jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Unknown error occurred while checking Media URL.'); ?>' );
1395
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
1396
  }
1397
  },
@@ -1404,13 +1421,13 @@ function powerpress_get_media_info(FeedSlug)
1404
 
1405
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
1406
  if( strError == 'timeout' )
1407
- jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Operation timed out.'); ?>' );
1408
  else if( errorMsg )
1409
- jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error') .': '; ?>'+errorMsg );
1410
  else if( strError != null )
1411
- jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error') .': '; ?>'+strError );
1412
  else
1413
- jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error') .': '. __('Unknown'); ?>' );
1414
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
1415
  }
1416
  });
@@ -1420,7 +1437,7 @@ function powerpress_get_media_info(FeedSlug)
1420
 
1421
  function powerpress_remove_hosting(FeedSlug)
1422
  {
1423
- if( confirm('<?php echo __('Are you sure you want to remove this media file?'); ?>') )
1424
  {
1425
  jQuery( '#powerpress_url_'+FeedSlug ).attr("readOnly", false);
1426
  jQuery( '#powerpress_url_'+FeedSlug ).val('');
@@ -1490,7 +1507,7 @@ function powerpress_media_info_ajax()
1490
  if( $MediaInfo['error'] )
1491
  echo $MediaInfo['error'];
1492
  else
1493
- echo __('Unknown error occurred looking up media information.');
1494
  echo "\n";
1495
  exit;
1496
  }
@@ -1498,26 +1515,46 @@ function powerpress_media_info_ajax()
1498
  add_action('wp_ajax_powerpress_media_info', 'powerpress_media_info_ajax');
1499
 
1500
 
1501
- function powerpress_cat_row_actions($actions, $category)
1502
  {
1503
  $General = get_option('powerpress_general');
1504
- if( !isset($General['cat_casting']) || $General['cat_casting'] == 0 )
 
 
 
 
 
 
 
 
 
 
 
 
 
1505
  return $actions;
1506
 
1507
- if( isset($General['custom_cat_feeds']) && is_array($General['custom_cat_feeds']) && in_array($category->cat_ID, $General['custom_cat_feeds']) )
 
 
 
 
 
1508
  {
1509
- $edit_link = admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;from_categories=1&amp;action=powerpress-editcategoryfeed&amp;cat=') . $category->cat_ID;
1510
- $actions['powerpress'] = '<a href="' . $edit_link . '" title="'. __('Edit Blubrry PowerPress Podcast Settings') .'">' . str_replace(' ', '&nbsp;', __('Podcast Settings')) . '</a>';
1511
  }
1512
  else
1513
  {
1514
- $edit_link = admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;from_categories=1&amp;action=powerpress-addcategoryfeed&amp;cat=".$category->cat_ID, 'powerpress-add-category-feed');
1515
- $actions['powerpress'] = '<a href="' . $edit_link . '" title="'. __('Add Blubrry PowerPress Podcasting Settings') .'">' . str_replace(' ', '&nbsp;', __('Add Podcasting')) . '</a>';
1516
  }
1517
  return $actions;
1518
  }
1519
 
1520
  add_filter('cat_row_actions', 'powerpress_cat_row_actions', 1,2);
 
 
1521
 
1522
  function powerpress_delete_category($cat_ID)
1523
  {
@@ -1544,17 +1581,20 @@ function powerpress_edit_category_form($cat)
1544
  $General = get_option('powerpress_general');
1545
  if( !isset($General['cat_casting']) || $General['cat_casting'] == 0 )
1546
  {
1547
- $enable_link = admin_url() . wp_nonce_url('categories.php?action=powerpress-enable-categorypodcasting', 'powerpress-enable-categorypodcasting');
 
 
 
1548
  ?>
1549
  <h2><?php echo __('PowerPress Category Podcasting'); ?></h2>
1550
- <p><a href="<?php echo $enable_link; ?>" title="<?php echo __('Enable Category Podcasting'); ?>"><?php echo __('Enable Category Podcasting'); ?></a> <?php echo __('if you would like to add specific podcasting settings to your blog categories.'); ?></p>
1551
  <?php
1552
  }
1553
  else
1554
  {
1555
  ?>
1556
- <h2><?php echo __('PowerPress Category Podcasting'); ?></h2>
1557
- <p><?php echo __('PowerPress Category Podcasting is enabled. Select <u>Add Podcasting</u> to add podcasting settings. Select <u>Podcast Settings</u> to edit existing podcast settings.'); ?></p>
1558
  <?php
1559
  }
1560
  ?>
@@ -1588,15 +1628,15 @@ function powerpress_admin_page_footer($SaveButton=true, $form=true)
1588
  {
1589
  if( $SaveButton ) { ?>
1590
  <p class="submit">
1591
- <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="<?php echo __('Save Changes' ) ?>" />
1592
  </p>
1593
  <?php } ?>
1594
  <p style="font-size: 85%; text-align: center; padding-bottom: 25px;">
1595
- <a href="http://www.blubrry.com/powerpress/" title="Blubrry PowerPress" target="_blank"><?php echo __('Blubrry PowerPress'); ?></a> <?php echo POWERPRESS_VERSION; ?> &#8212;
1596
- <a href="http://www.podcastfaq.com/" target="_blank" title="<?php echo __('PodcastFAQ.com'); ?>"><?php echo __('PodcastFAQ.com'); ?></a> |
1597
- <a href="http://help.blubrry.com/blubrry-powerpress/" target="_blank" title="<?php echo __('Blubrry PowerPress Documentation'); ?>"><?php echo __('Documentation'); ?></a> |
1598
- <a href="http://forum.blubrry.com/" target="_blank" title="<?php echo __('Blubrry Forum'); ?>"><?php echo __('Forum'); ?></a> |
1599
- <a href="http://twitter.com/blubrry" target="_blank" title="<?php echo __('Follow Blubrry on Twitter'); ?>"><?php echo __('Follow Blubrry on Twitter'); ?></a>
1600
  </p>
1601
  <?php if( $form ) { ?>
1602
  </form><?php } ?>
@@ -1836,7 +1876,7 @@ function powerpress_ping_itunes($iTunes_url)
1836
  {
1837
  // Pull the iTunes FEEDID from the URL...
1838
  if( !preg_match('/id=(\d+)/', $iTunes_url, $matches) )
1839
- return array('error'=>true, 'content'=>__('iTunes URL required to ping iTunes.'), 'podcast_id'=>0 );
1840
 
1841
  $FEEDID = $matches[1];
1842
 
@@ -1853,11 +1893,11 @@ function powerpress_ping_itunes($iTunes_url)
1853
  sleep(1); // wait just a second :)
1854
  $tempdata = powerpress_remote_fopen($ping_url);
1855
  if( $tempdata == false )
1856
- return array('error'=>true, 'content'=>__('Unable to connect to iTunes ping server.'), 'podcast_id'=>trim($PodcastID));
1857
  }
1858
 
1859
  if( stristr($tempdata, 'No Podcast Found') )
1860
- return array('error'=>true, 'content'=>__('No Podcast Found from iTunes ping request.'), 'podcast_id'=>trim($PodcastID));
1861
 
1862
  // Parse the data into something readable
1863
  $results = trim( str_replace('Podcast Ping Received', '', strip_tags($tempdata) ) );
@@ -2097,14 +2137,14 @@ function powerpress_process_hosting($post_ID, $post_title)
2097
  }
2098
  else if( isset($results['error']) )
2099
  {
2100
- $error = __('Blubrry Hosting Error (media info)') .': '. $results['error'];
2101
  powerpress_add_error($error);
2102
  }
2103
  else
2104
  {
2105
- $error = sprintf( __('Blubrry Hosting Error (media info): An error occurred publishing media %s.'), $EnclosureURL);
2106
  $error .= ' ';
2107
- $error .= '<a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\');this.style.display=\'none\';return false;">Display Error</a>';
2108
  $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">'. $json_data .'</div>';
2109
  powerpress_add_error($error);
2110
  }
@@ -2127,14 +2167,14 @@ function powerpress_process_hosting($post_ID, $post_title)
2127
  }
2128
  else if( isset($results['error']) )
2129
  {
2130
- $error = 'Blubrry Hosting Error (publish): '. $results['error'];
2131
  powerpress_add_error($error);
2132
  }
2133
  else
2134
  {
2135
  $rand_id = rand(100,2000);
2136
- $error = 'Blubrry Hosting Error (publish): An error occurred publishing media <em>'. $EnclosureURL .'</em>. ';
2137
- $error .= '<a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\');this.style.display=\'none\';return false;">Display Error</a>';
2138
  $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">'. $json_data .'</div>';
2139
  powerpress_add_error($error);
2140
  }
@@ -2551,7 +2591,7 @@ function powerpress_write_tags($file, $post_title)
2551
  return $Results;
2552
  }
2553
 
2554
- return array('error'=>'Error occurred writing MP3 ID3 Tags.');
2555
  }
2556
 
2557
  function powerpress_get_media_info($file)
@@ -2568,7 +2608,7 @@ function powerpress_get_media_info($file)
2568
  return $Results;
2569
  }
2570
 
2571
- return array('error'=>'Error occurred obtaining media information.');
2572
  }
2573
 
2574
  // Call this function when there is no enclosure currently detected for the post but users set the option to auto-add first media file linked within post option is checked.
@@ -2619,7 +2659,7 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2619
  $content_type = powerpress_get_contenttype($media_file);
2620
 
2621
  if( $content_type == '' )
2622
- return array('error'=>'Unable to detect content type.');
2623
 
2624
  $get_duration_info = ($content_type == 'audio/mpeg' && $duration === '');
2625
  // Lets use the mp3info class:
@@ -2631,8 +2671,8 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2631
  if( $Mp3Info->GetRedirectCount() > 5 )
2632
  {
2633
  // Add a warning that the redirect count exceeded 5, which may prevent some podcatchers from downloading the media.
2634
- $warning = sprintf( __('Warning, the Media URL %s contains %d redirects.'), $media_file, $Mp3Info->GetRedirectCount() );
2635
- $warning .= ' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help') .'</a>]';
2636
  if( $return_warnings )
2637
  $warning_msg .= $warning;
2638
  else
@@ -2650,7 +2690,7 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2650
  $Warnings = $Mp3Info->GetWarnings();
2651
  while( list($null, $warning) = each($Warnings) )
2652
  {
2653
- $warning = sprintf( __('Warning, Media URL %s:'), $media_file) .' '. $warning .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help') .'</a>]';
2654
  if( $return_warnings )
2655
  $warning_msg .= $warning;
2656
  else
@@ -2660,14 +2700,14 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2660
  }
2661
  else
2662
  {
2663
- if( $Mp3Info->GetError() )
2664
  return array('error'=>$Mp3Info->GetError() );
2665
  else
2666
- return array('error'=>'Error occurred obtaining media information.');
2667
  }
2668
 
2669
  if( $file_size == 0 )
2670
- return array('error'=>'Error occurred obtaining media file size.' );
2671
 
2672
  if( $return_warnings && $warning_msg != '' )
2673
  return array('content-type'=>$content_type, 'length'=>$file_size, 'duration'=>$duration, 'warnings'=>$warning_msg);
@@ -2685,8 +2725,8 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2685
  if( $Mp3Info->GetRedirectCount() > 5 )
2686
  {
2687
  // Add a warning that the redirect count exceeded 5, which may prevent some podcatchers from downloading the media.
2688
- powerpress_add_error( sprintf( __('Warning, the Media URL %s contains %d redirects.'), $media_file, $Mp3Info->GetRedirectCount() )
2689
- .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help') .'</a>]'
2690
  );
2691
  }
2692
 
@@ -2699,7 +2739,7 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2699
  {
2700
  $Warnings = $Mp3Info->GetWarnings();
2701
  while( list($null, $warning) = each($Warnings) )
2702
- powerpress_add_error( sprintf( __('Warning, Media URL %s:'), $media_file) .' '. $warning .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help') .'</a>]' );
2703
  }
2704
  }
2705
  else
@@ -2707,7 +2747,7 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2707
  if( $Mp3Info->GetError() )
2708
  return array('error'=>$Mp3Info->GetError() );
2709
  else
2710
- return array('error'=>'Error occurred obtaining media information.');
2711
  }
2712
  }
2713
 
@@ -2721,7 +2761,7 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2721
 
2722
  if( isset($response['response']['code']) && $response['response']['code'] < 200 || $response['response']['code'] > 290 )
2723
  {
2724
- return array('error'=>trim('Error, HTTP '.$response['response']['code']) );
2725
  }
2726
 
2727
  $headers = wp_remote_retrieve_headers( $response );
@@ -2729,11 +2769,11 @@ function powerpress_get_media_info_local($media_file, $content_type='', $file_si
2729
  if( $headers && $headers['content-length'] )
2730
  $file_size = (int) $headers['content-length'];
2731
  else
2732
- return array('error'=>'Unable to obtain file size of media file.' );
2733
  }
2734
 
2735
  if( $file_size == 0 )
2736
- return array('error'=>'Error occurred obtaining media file size.' );
2737
 
2738
  return array('content-type'=>$content_type, 'length'=>$file_size, 'duration'=>$duration);
2739
  }
50
  wp_enqueue_script('jquery');
51
  wp_enqueue_script('jquery-ui-core');
52
  wp_enqueue_script('jquery-ui-tabs');
53
+
54
+
55
 
56
  if( function_exists('powerpress_admin_jquery_init') )
57
  powerpress_admin_jquery_init();
58
 
59
  if( !current_user_can('manage_options') )
60
  {
61
+ powerpress_page_message_add_error( __('You do not have sufficient permission to manage options.', 'powerpress') );
62
  return;
63
  }
64
 
65
  // Check for other podcasting plugin
66
  if( defined('PODPRESS_VERSION') || isset($GLOBALS['podcasting_player_id']) || isset($GLOBALS['podcast_channel_active']) || defined('PODCASTING_VERSION') )
67
+ powerpress_page_message_add_error( __('Another podcasting plugin has been detected, PowerPress is currently disabled.', 'powerpress') );
68
 
69
  global $wp_version;
70
  $VersionDiff = version_compare($wp_version, 2.6);
71
  if( $VersionDiff < 0 )
72
+ powerpress_page_message_add_error( __('Blubrry PowerPress requires Wordpress version 2.6 or greater.', 'powerpress') );
73
 
74
 
75
  // Save settings here
116
  }
117
  else
118
  {
119
+ powerpress_page_message_add_error( __('Invalid iTunes image', 'powerpress') .': ' . htmlspecialchars($_FILES['itunes_image_file']['name']) );
120
  }
121
  }
122
 
142
  }
143
  else
144
  {
145
+ powerpress_page_message_add_error( __('Invalid RSS image', 'powerpress') .': '. htmlspecialchars($_FILES['rss2_image_file']['name']) );
146
  }
147
  }
148
 
168
  }
169
  else
170
  {
171
+ powerpress_page_message_add_error( __('Invalid Coverat image', 'powerpress') .': ' . htmlspecialchars($_FILES['coverart_image_file']['name']) );
172
  }
173
  }
174
 
289
  }
290
  else if( isset($results['error']) )
291
  {
292
+ $error = __('Blubrry Hosting Error (updating coverart)', 'powerpress') .': '. $results['error'];
293
  }
294
  else
295
  {
296
+ $error = __('An error occurred updating the coverart with your Blubrry Services Account.', 'powerpress');
297
  }
298
 
299
  }
300
  else
301
  {
302
+ powerpress_page_message_add_error( __('Coverart Image was not uploaded to your Blubrry Services Account. It will NOT be added to your mp3s.', 'powerpress') );
303
  }
304
  }
305
  }
344
  switch( $_POST['action'] )
345
  {
346
  case 'powerpress-save-settings': {
347
+ powerpress_page_message_add_notice( __('Blubrry PowerPress settings saved successfully.', 'powerpress') );
348
  }; break;
349
  case 'powerpress-save-customfeed': {
350
+ powerpress_page_message_add_notice( __('Blubrry PowerPress Custom Feed settings saved.', 'powerpress') );
351
  }; break;
352
  case 'powerpress-save-categoryfeedsettings': {
353
+ powerpress_page_message_add_notice( __('Blubrry PowerPress Category Feed settings saved.', 'powerpress') );
354
  }; break;
355
  case 'powerpress-save-tags': {
356
  $General = get_option('powerpress_general');
357
  if( !@$General['blubrry_hosting'] )
358
+ powerpress_page_message_add_notice( __('ATTENTION: You must configure your Blubrry Services in the Blubrry PowerPress &gt; Basic Settings page in order to utilize this feature.', 'powerpress') );
359
  else
360
+ powerpress_page_message_add_notice( __('Blubrry PowerPress MP3 Tag settings saved.', 'powerpress') );
361
  }; break;
362
  case 'powerpress-save-mode': {
363
  if( $General['advanced_mode'] == 1 )
364
+ powerpress_page_message_add_notice( __('You are now in Advanced Mode.', 'powerpress') );
365
  else
366
+ powerpress_page_message_add_notice( __('You are now in Simple Mode.', 'powerpress') );
367
  }; break;
368
  default: {
369
+ powerpress_page_message_add_notice( __('Blubrry PowerPress settings saved.', 'powerpress') );
370
  }; break;
371
  }
372
 
381
 
382
  if( @$PingResults['success'] )
383
  {
384
+ powerpress_page_message_add_notice( __('iTunes Ping Successful. Podcast Feed URL', 'powerpress') .': '. $PingResults['feed_url'] );
385
  }
386
  else
387
  {
410
  } else */
411
  if( $key == '' )
412
  {
413
+ powerpress_page_message_add_error( sprintf(__('Feed slug "%s" is not valid.', 'powerpress'), $_POST['feed_slug']) );
414
  }
415
  else if( in_array($key, $wp_rewrite->feeds) && !isset($Settings['custom_feeds'][ $key ]) ) // If it is a system feed or feed created by something else
416
  {
417
+ powerpress_page_message_add_error( sprintf(__('Feed slug "%s" is not available.', 'powerpress'), $key) );
418
  }
419
  else
420
  {
424
  add_feed($key, 'powerpress_do_podcast_feed'); // Before we flush the rewrite rules we need to add the new custom feed...
425
  $wp_rewrite->flush_rules();
426
 
427
+ powerpress_page_message_add_notice( sprintf(__('Podcast Feed "%s" added, please configure your new feed now.', 'powerpress'), $value) );
428
  $_GET['action'] = 'powerpress-editfeed';
429
  $_GET['feed_slug'] = $key;
430
  }
446
  {
447
  powerpress_page_message_add_error( sprintf(__('Feed slug "%s" already exists.'), $key) );
448
  } else */
449
+ if( $cat_ID == false )
450
  {
451
+ powerpress_page_message_add_error( __('You must select a category to continue.', 'powerpress') );
452
+ }
453
+ else if( $category == false )
454
+ {
455
+ powerpress_page_message_add_error( __('Error obtaining category information.', 'powerpress') );
456
  }
457
  else
458
  {
465
  powerpress_save_settings($Settings);
466
  }
467
 
468
+ powerpress_page_message_add_notice( __('Please configure your category podcast feed now.', 'powerpress') );
469
 
470
  $_GET['action'] = 'powerpress-editcategoryfeed';
471
  $_GET['cat'] = $cat_ID;
513
  case 'powerpress-save-mode': {
514
 
515
  if( !isset($_POST['General']['advanced_mode']) )
516
+ powerpress_page_message_add_notice( __('You must select a Mode to continue.', 'powerpress') );
517
 
518
  }; break;
519
  }
531
  $Settings['cat_casting'] = 1;
532
  powerpress_save_settings($Settings);
533
 
534
+ if( version_compare($GLOBALS['wp_version'], '3.0', '<') )
535
+ wp_redirect('categories.php?message=3');
536
+ else
537
+ wp_redirect('edit-tags.php?taxonomy=category&message=3');
538
  exit;
539
 
540
  }; break;
546
  $category = get_category($cat_ID);
547
  if( $category == false )
548
  {
549
+ powerpress_page_message_add_error( __('Error obtaining category information.', 'powerpress') );
550
  }
551
  else
552
  {
559
  powerpress_save_settings($Settings);
560
  }
561
 
562
+ powerpress_page_message_add_notice( __('Please configure your category podcast feed now.', 'powerpress') );
563
 
564
  $_GET['action'] = 'powerpress-editcategoryfeed';
565
  $_GET['cat'] = $cat_ID;
574
 
575
  if( false && $delete_slug == 'podcast' && $force_deletion == false ) // Feature disabled, you can now delete podcast specific settings
576
  {
577
+ powerpress_page_message_add_error( __('Cannot delete default podcast feed.', 'powerpress') );
578
  }
579
  else if( $delete_slug != 'podcast' && $Episodes > 0 && $force_deletion == false )
580
  {
581
+ powerpress_page_message_add_error( sprintf(__('Cannot delete feed. Feed contains %d episode(s).', 'powerpress'), $Episodes) );
582
  }
583
  else
584
  {
600
  remove_action($hook, $hook, 10, 1); // This may not be necessary
601
  $wp_rewrite->flush_rules(); // This is definitely necessary
602
 
603
+ powerpress_page_message_add_notice( __('Feed deleted successfully.', 'powerpress') );
604
  }
605
  }; break;
606
  case 'powerpress-delete-category-feed': {
616
  }
617
  delete_option('powerpress_cat_feed_'.$cat_ID); // Delete the actual feed settings
618
 
619
+ powerpress_page_message_add_notice( __('Removed podcast settings for category feed successfully.', 'powerpress') );
620
  }; break;
621
  case 'powerpress-podpress-settings': {
622
  check_admin_referer('powerpress-podpress-settings');
623
 
624
  // Import settings here..
625
  if( powerpress_admin_import_podpress_settings() )
626
+ powerpress_page_message_add_notice( __('Podpress settings imported successfully.', 'powerpress') );
627
  else
628
+ powerpress_page_message_add_error( __('No Podpress settings found.', 'powerpress') );
629
 
630
  }; break;
631
  case 'powerpress-podcasting-settings': {
633
 
634
  // Import settings here..
635
  if( powerpress_admin_import_podcasting_settings() )
636
+ powerpress_page_message_add_notice( __('Settings imported from the plugin "Podcasting" successfully.', 'powerpress') );
637
  else
638
+ powerpress_page_message_add_error( __('No settings found for the plugin "Podcasting".', 'powerpress') );
639
 
640
  }; break;
641
  case 'powerpress-add-caps': {
653
 
654
  $General = array('use_caps'=>true);
655
  powerpress_save_settings($General);
656
+ powerpress_page_message_add_notice( __('PowerPress Roles and Capabilities added to WordPress Blog.', 'powerpress') );
657
 
658
  }; break;
659
  case 'powerpress-remove-caps': {
670
  }
671
  $General = array('use_caps'=>false);
672
  powerpress_save_settings($General);
673
+ powerpress_page_message_add_notice( __('PowerPress Roles and Capabilities removed from WordPress Blog', 'powerpress') );
674
 
675
  }; break;
676
  case 'powerpress-add-feed-caps': {
679
  $ps_role = get_role('premium_subscriber');
680
  if(!$ps_role)
681
  {
682
+ add_role('premium_subscriber', __('Premium Subscriber', 'powerpress'), $caps);
683
  $ps_role = get_role('premium_subscriber');
684
  $ps_role->add_cap('read');
685
  $ps_role->add_cap('premium_content');
695
 
696
  $General = array('premium_caps'=>true);
697
  powerpress_save_settings($General);
698
+ powerpress_page_message_add_notice( __('Podcast Password Protection Capabilities for Custom Channel Feeds added successfully.', 'powerpress') );
699
 
700
  }; break;
701
  case 'powerpress-remove-feed-caps': {
702
  check_admin_referer('powerpress-remove-feed-caps');
703
 
704
+ $users = array('administrator','editor', 'author', 'contributor', 'subscriber', 'premium_subscriber', 'powerpress');
705
  while( list($null,$user) = each($users) )
706
  {
707
  $role = get_role($user);
713
 
714
  $General = array('premium_caps'=>false);
715
  powerpress_save_settings($General);
716
+ powerpress_page_message_add_notice( __('Podcast Password Protection Capabilities for Custom Channel Feeds removed successfully.', 'powerpress') );
717
 
718
  }; break;
719
  case 'powerpress-clear-update_plugins': {
720
  check_admin_referer('powerpress-clear-update_plugins');
721
 
722
  delete_option('update_plugins');
723
+ powerpress_page_message_add_notice( sprintf( __('Plugins Update Cache cleared successfully. You may now to go the %s page to see the latest plugin versions.', 'powerpress'), '<a href="'. admin_url() .'plugins.php" title="'. __('Manage Plugins', 'powerpress') .'">'. __('Manage Plugins', 'powerpress') .'</a>') );
724
 
725
  }; break;
726
  }
729
  // Handle edit from category page
730
  if( isset($_POST['from_categories']) )
731
  {
732
+ if( version_compare($GLOBALS['wp_version'], '3.0', '<') )
733
+ wp_redirect('categories.php?message=3');
734
+ else
735
+ wp_redirect('edit-tags.php?taxonomy=category&message=3');
736
  exit;
737
  }
738
 
838
  { // Otherwise we're using a version of wordpress that is not supported.
839
 
840
  require_once( POWERPRESS_ABSPATH .'/powerpressadmin-metabox.php');
841
+ add_meta_box('powerpress-podcast', __('Podcast Episode', 'powerpress'), 'powerpress_meta_box', 'page', 'normal');
842
 
843
  if( isset($Powerpress['custom_feeds']) )
844
  {
845
+ add_meta_box('powerpress-podcast', __('Podcast Episode (default)', 'powerpress'), 'powerpress_meta_box', 'post', 'normal');
846
 
847
  while( list($feed_slug, $feed_title) = each($Powerpress['custom_feeds']) )
848
  {
849
  if( $feed_slug == 'podcast' )
850
  continue;
851
+ add_meta_box('powerpress-'.$feed_slug, __('Podcast Episode for Custom Channel', 'powerpress') .': '.$feed_title, 'powerpress_meta_box', 'post', 'normal');
852
  }
853
  }
854
  else
855
  {
856
+ add_meta_box('powerpress-podcast', __('Podcast Episode', 'powerpress'), 'powerpress_meta_box', 'post', 'normal');
857
  }
858
  }
859
 
861
  {
862
  $Powerpress = powerpress_default_settings($Powerpress, 'basic');
863
 
864
+ add_menu_page(__('PowerPress', 'powerpress'), __('PowerPress', 'powerpress'), 1, 'powerpress/powerpressadmin_basic.php', 'powerpress_admin_page_basic', powerpress_get_root_url() . 'powerpress_ico.png');
865
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Settings', 'powerpress'), __('Settings', 'powerpress'), 1, 'powerpress/powerpressadmin_basic.php', 'powerpress_admin_page_basic' );
866
  if( @$Powerpress['player_options'] )
867
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Audio Player Options', 'powerpress'), __('Audio Player', 'powerpress'), 1, 'powerpress/powerpressadmin_player.php', 'powerpress_admin_page_players');
868
 
869
  if( $Powerpress['channels'] )
870
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Custom Podcast Channels', 'powerpress'), __('Podcast Channels', 'powerpress'), 1, 'powerpress/powerpressadmin_customfeeds.php', 'powerpress_admin_page_customfeeds');
871
  if( $Powerpress['cat_casting'] )
872
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Category Podcasting', 'powerpress'), __('Category Podcasting', 'powerpress'), 1, 'powerpress/powerpressadmin_categoryfeeds.php', 'powerpress_admin_page_categoryfeeds');
873
  if( @$Powerpress['podpress_stats'] )
874
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PodPress Stats', 'powerpress'), __('PodPress Stats', 'powerpress'), 1, 'powerpress/powerpressadmin_podpress-stats.php', 'powerpress_admin_page_podpress_stats');
875
 
876
 
877
  if( isset($Powerpress['blubrry_hosting']) && $Powerpress['blubrry_hosting'] )
878
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress MP3 Tags', 'powerpress'), __('MP3 Tags', 'powerpress'), 1, 'powerpress/powerpressadmin_tags.php', 'powerpress_admin_page_tags');
879
+ add_submenu_page('powerpress/powerpressadmin_basic.php', __('PowerPress Tools', 'powerpress'), __('Tools', 'powerpress'), 1, 'powerpress/powerpressadmin_tools.php', 'powerpress_admin_page_tools');
880
  }
881
  }
882
 
954
 
955
  if( !$ContentType )
956
  {
957
+ $error = __('Error', 'powerpress') ." [{$Powerpress['url']}]: " .__('Unable to determine content type of media (e.g. audio/mpeg). Verify file extension is correct and try again.', 'powerpress');
958
  powerpress_add_error($error);
959
  continue;
960
  }
987
  }
988
  else
989
  {
990
+ $error = __('Error', 'powerpress') ." ({$Powerpress['url']}): {$MediaInfo['error']}";
991
  powerpress_add_error($error);
992
  continue;
993
  }
1002
 
1003
  if( isset($MediaInfo['error']) )
1004
  {
1005
+ $error = __('Error', 'powerpress') ." ({$MediaURL}): {$MediaInfo['error']}";
1006
  powerpress_add_error($error);
1007
  continue;
1008
  }
1009
  else if( empty($MediaInfo['length']) )
1010
  {
1011
+ $error = __('Error', 'powerpress') ." ({$MediaURL}): ". __('Unable to obtain size of media.', 'powerpress');
1012
  powerpress_add_error($error);
1013
  continue;
1014
  }
1183
  document.getElementById(id).style.display = (show?"block":"none");
1184
  }
1185
  function powerpress_new_feed_url_prompt() {
1186
+ var Msg = '<?php echo __('WARNING: Changes made here are permanent. If the New Feed URL entered is incorrect, you will lose subscribers and will no longer be able to update your listing in the iTunes Store.\n\nDO NOT MODIFY THIS SETTING UNLESS YOU ABSOLUTELY KNOW WHAT YOU ARE DOING.\n\nAre you sure you want to continue?', 'powerpress'); ?>';
1187
  if( confirm(Msg) ) {
1188
  powerpress_show_field('new_feed_url_step_1', false);
1189
  powerpress_show_field('new_feed_url_step_2', true);
1293
  {
1294
  if( validChars.indexOf( url.charAt(x) ) == -1 )
1295
  {
1296
+ jQuery( '#'+DestDiv ).text('<?php echo __('Media URL contains characters that may cause problems for some clients. For maximum compatibility, only use letters, numbers, dash - and underscore _ characters only.', 'powerpress'); ?>');
1297
  jQuery( '#'+DestDiv ).css('display', 'block');
1298
  return false;
1299
  }
1308
  ?>
1309
  if( url.charAt(0) == 'h' && url.charAt(1) == 't' && url.charAt(2) == 't' && url.charAt(3) == 'p' && url.charAt(4) == 's' )
1310
  {
1311
+ jQuery( '#'+DestDiv ).html('<?php echo __('PowerPress will not accept media URLs starting with https://.<br />Not all podcatching (podcast downloading) applications support secure http.<br />Please enter a different URL beginning with http://.', 'powerpress'); ?>');
1312
  jQuery( '#'+DestDiv ).css('display', 'block');
1313
  return false;
1314
  }
1317
  ?>
1318
  if( url.charAt(0) == 'h' && url.charAt(1) == 't' && url.charAt(2) == 't' && url.charAt(3) == 'p' && url.charAt(4) == 's' )
1319
  {
1320
+ jQuery( '#'+DestDiv ).html('<?php echo __('Media URL should not start with https://.<br />Not all podcatching (podcast downloading) applications support secure http.<br />By using https://, you may limit the size of your audience.', 'powerpress'); ?>');
1321
  jQuery( '#'+DestDiv ).css('display', 'block');
1322
  return false;
1323
  }
1359
  echo "\t\t\t\talert(response);\n";
1360
  ?>
1361
  var Parts = response.split("\n", 5);
1362
+ var FinishFeedSlug = Parts[0];
1363
 
1364
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
1365
 
1366
+ if( FeedSlug == FinishFeedSlug && Parts[1] == 'OK' )
1367
  {
1368
  jQuery('#powerpress_set_size_1_'+FeedSlug).attr('checked', true);
1369
  jQuery('#powerpress_size_'+FeedSlug).val( Parts[2] );
1392
  }
1393
  else
1394
  {
1395
+ jQuery( '#powerpress_success_'+FeedSlug ).html( '<?php echo __('Media verified successfully.', 'powerpress'); ?> <a href="#" onclick="jQuery( \'#powerpress_success_'+ FeedSlug +'\' ).fadeOut(1000);return false;" title="Close" class="close">X<\/a>' );
1396
  jQuery( '#powerpress_success_'+FeedSlug ).css('display', 'block');
1397
  // setTimeout( function() { jQuery( '#powerpress_success_'+FeedSlug ).fadeOut(1000); }, 10000 );
1398
  }
1399
  }
1400
  else
1401
  {
1402
+ var Parts = response.split("\n", 5);
1403
+ if( Parts.length > 4 )
1404
+ {
1405
+ var server_error = response.replace(/\n/g, "<br \/>");
1406
+ jQuery( '#powerpress_warning_'+FeedSlug ).html( '<div style="text-align: left;">Server Error:</div><div style="text-align: left; font-weight: normal;">' + server_error +'<\/div>' );
1407
+ }
1408
+ else if( Parts[1] )
1409
  jQuery( '#powerpress_warning_'+FeedSlug ).html( Parts[1] );
1410
  else
1411
+ jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Unknown error occurred while checking Media URL.', 'powerpress'); ?>' );
1412
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
1413
  }
1414
  },
1421
 
1422
  jQuery('#powerpress_check_'+FeedSlug).css("display", 'none');
1423
  if( strError == 'timeout' )
1424
+ jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('Operation timed out.', 'powerpress'); ?>' );
1425
  else if( errorMsg )
1426
+ jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error', 'powerpress') .': '; ?>'+errorMsg );
1427
  else if( strError != null )
1428
+ jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error', 'powerpress') .': '; ?>'+strError );
1429
  else
1430
+ jQuery( '#powerpress_warning_'+FeedSlug ).text( '<?php echo __('AJAX Error', 'powerpress') .': '. __('Unknown', 'powerpress'); ?>' );
1431
  jQuery( '#powerpress_warning_'+FeedSlug ).css('display', 'block');
1432
  }
1433
  });
1437
 
1438
  function powerpress_remove_hosting(FeedSlug)
1439
  {
1440
+ if( confirm('<?php echo __('Are you sure you want to remove this media file?', 'powerpress'); ?>') )
1441
  {
1442
  jQuery( '#powerpress_url_'+FeedSlug ).attr("readOnly", false);
1443
  jQuery( '#powerpress_url_'+FeedSlug ).val('');
1507
  if( $MediaInfo['error'] )
1508
  echo $MediaInfo['error'];
1509
  else
1510
+ echo __('Unknown error occurred looking up media information.', 'powerpress');
1511
  echo "\n";
1512
  exit;
1513
  }
1515
  add_action('wp_ajax_powerpress_media_info', 'powerpress_media_info_ajax');
1516
 
1517
 
1518
+ function powerpress_cat_row_actions($actions, $object)
1519
  {
1520
  $General = get_option('powerpress_general');
1521
+
1522
+
1523
+ // New 3.0+ tag in taxonomy check
1524
+ if( !empty($General['tag_casting']) && !empty($object->taxonomy) && $object->taxonomy == 'tag' )
1525
+ {
1526
+ // TODO:
1527
+ }
1528
+
1529
+ // Otherwise from here on in, we're working with a category or nothing at all.
1530
+ if( empty($General['cat_casting']) )
1531
+ return $actions;
1532
+
1533
+ // 3.0 category in taxonomy check
1534
+ if( !empty($object->taxonomy) && $object->taxonomy != 'category' )
1535
  return $actions;
1536
 
1537
+ $cat_id = (isset($object->term_id)?$object->term_id : $object->cat_ID);
1538
+
1539
+ if( empty($cat_id) )
1540
+ return $actions;
1541
+
1542
+ if( isset($General['custom_cat_feeds']) && is_array($General['custom_cat_feeds']) && in_array($cat_id, $General['custom_cat_feeds']) )
1543
  {
1544
+ $edit_link = admin_url('admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;from_categories=1&amp;action=powerpress-editcategoryfeed&amp;cat=') . $cat_id;
1545
+ $actions['powerpress'] = '<a href="' . $edit_link . '" title="'. __('Edit Blubrry PowerPress Podcast Settings', 'powerpress') .'">' . str_replace(' ', '&nbsp;', __('Podcast Settings', 'powerpress')) . '</a>';
1546
  }
1547
  else
1548
  {
1549
+ $edit_link = admin_url() . wp_nonce_url("admin.php?page=powerpress/powerpressadmin_categoryfeeds.php&amp;from_categories=1&amp;action=powerpress-addcategoryfeed&amp;cat=".$cat_id, 'powerpress-add-category-feed');
1550
+ $actions['powerpress'] = '<a href="' . $edit_link . '" title="'. __('Add Blubrry PowerPress Podcasting Settings', 'powerpress') .'">' . str_replace(' ', '&nbsp;', __('Add Podcasting', 'powerpress')) . '</a>';
1551
  }
1552
  return $actions;
1553
  }
1554
 
1555
  add_filter('cat_row_actions', 'powerpress_cat_row_actions', 1,2);
1556
+ add_filter('tag_row_actions', 'powerpress_cat_row_actions', 1,2);
1557
+
1558
 
1559
  function powerpress_delete_category($cat_ID)
1560
  {
1581
  $General = get_option('powerpress_general');
1582
  if( !isset($General['cat_casting']) || $General['cat_casting'] == 0 )
1583
  {
1584
+ if( version_compare($GLOBALS['wp_version'], '3.0', '<') )
1585
+ $enable_link = admin_url() . wp_nonce_url('categories.php?action=powerpress-enable-categorypodcasting', 'powerpress-enable-categorypodcasting');
1586
+ else
1587
+ $enable_link = admin_url() . wp_nonce_url('edit-tags.php?taxonomy=category&action=powerpress-enable-categorypodcasting', 'powerpress-enable-categorypodcasting');
1588
  ?>
1589
  <h2><?php echo __('PowerPress Category Podcasting'); ?></h2>
1590
+ <p><a href="<?php echo $enable_link; ?>" title="<?php echo __('Enable Category Podcasting', 'powerpress'); ?>"><?php echo __('Enable Category Podcasting', 'powerpress'); ?></a> <?php echo __('if you would like to add specific podcasting settings to your blog categories.', 'powerpress'); ?></p>
1591
  <?php
1592
  }
1593
  else
1594
  {
1595
  ?>
1596
+ <h2><?php echo __('PowerPress Category Podcasting', 'powerpress'); ?></h2>
1597
+ <p><?php echo __('PowerPress Category Podcasting is enabled. Select \'Add Podcasting\' to add podcasting settings. Select <u>Podcast Settings</u> to edit existing podcast settings.', 'powerpress'); ?></p>
1598
  <?php
1599
  }
1600
  ?>
1628
  {
1629
  if( $SaveButton ) { ?>
1630
  <p class="submit">
1631
+ <input type="submit" name="Submit" id="powerpress_save_button" class="button-primary" value="<?php echo __('Save Changes', 'powerpress') ?>" />
1632
  </p>
1633
  <?php } ?>
1634
  <p style="font-size: 85%; text-align: center; padding-bottom: 25px;">
1635
+ <a href="http://www.blubrry.com/powerpress/" title="Blubrry PowerPress" target="_blank"><?php echo __('Blubrry PowerPress', 'powerpress'); ?></a> <?php echo POWERPRESS_VERSION; ?> &#8212;
1636
+ <a href="http://www.podcastfaq.com/" target="_blank" title="<?php echo __('PodcastFAQ.com', 'powerpress'); ?>"><?php echo __('PodcastFAQ.com', 'powerpress'); ?></a> |
1637
+ <a href="http://help.blubrry.com/blubrry-powerpress/" target="_blank" title="<?php echo __('Blubrry PowerPress Documentation', 'powerpress'); ?>"><?php echo __('Documentation', 'powerpress'); ?></a> |
1638
+ <a href="http://forum.blubrry.com/" target="_blank" title="<?php echo __('Blubrry Forum', 'powerpress'); ?>"><?php echo __('Forum', 'powerpress'); ?></a> |
1639
+ <a href="http://twitter.com/blubrry" target="_blank" title="<?php echo __('Follow Blubrry on Twitter', 'powerpress'); ?>"><?php echo __('Follow Blubrry on Twitter', 'powerpress'); ?></a>
1640
  </p>
1641
  <?php if( $form ) { ?>
1642
  </form><?php } ?>
1876
  {
1877
  // Pull the iTunes FEEDID from the URL...
1878
  if( !preg_match('/id=(\d+)/', $iTunes_url, $matches) )
1879
+ return array('error'=>true, 'content'=>__('iTunes URL required to ping iTunes.', 'powerpress'), 'podcast_id'=>0 );
1880
 
1881
  $FEEDID = $matches[1];
1882
 
1893
  sleep(1); // wait just a second :)
1894
  $tempdata = powerpress_remote_fopen($ping_url);
1895
  if( $tempdata == false )
1896
+ return array('error'=>true, 'content'=>__('Unable to connect to iTunes ping server.', 'powerpress'), 'podcast_id'=>trim($PodcastID));
1897
  }
1898
 
1899
  if( stristr($tempdata, 'No Podcast Found') )
1900
+ return array('error'=>true, 'content'=>__('No Podcast Found from iTunes ping request.', 'powerpress'), 'podcast_id'=>trim($PodcastID));
1901
 
1902
  // Parse the data into something readable
1903
  $results = trim( str_replace('Podcast Ping Received', '', strip_tags($tempdata) ) );
2137
  }
2138
  else if( isset($results['error']) )
2139
  {
2140
+ $error = __('Blubrry Hosting Error (media info)', 'powerpress') .': '. $results['error'];
2141
  powerpress_add_error($error);
2142
  }
2143
  else
2144
  {
2145
+ $error = sprintf( __('Blubrry Hosting Error (media info): An error occurred publishing media %s.', 'powerpress'), $EnclosureURL);
2146
  $error .= ' ';
2147
+ $error .= '<a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\');this.style.display=\'none\';return false;">'. __('Display Error', 'powerpress') .'</a>';
2148
  $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">'. $json_data .'</div>';
2149
  powerpress_add_error($error);
2150
  }
2167
  }
2168
  else if( isset($results['error']) )
2169
  {
2170
+ $error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. $results['error'];
2171
  powerpress_add_error($error);
2172
  }
2173
  else
2174
  {
2175
  $rand_id = rand(100,2000);
2176
+ $error = __('Blubrry Hosting Error (publish)', 'powerpress') .': '. sprintf( __('An error occurred publishing media \'%s\'.','powerpress'), $EnclosureURL);
2177
+ $error .= ' <a href="#" onclick="document.getElementById(\'powerpress_error_'. $rand_id .'\');this.style.display=\'none\';return false;">'. __('Display Error', 'powerpress') .'</a>';
2178
  $error .= '<div id="powerpress_error_'. $rand_id .'" style="display: none;">'. $json_data .'</div>';
2179
  powerpress_add_error($error);
2180
  }
2591
  return $Results;
2592
  }
2593
 
2594
+ return array('error'=>__('Error occurred writing MP3 ID3 Tags.', 'powerpress') );
2595
  }
2596
 
2597
  function powerpress_get_media_info($file)
2608
  return $Results;
2609
  }
2610
 
2611
+ return array('error'=>__('Error occurred obtaining media information.', 'powerpress') );
2612
  }
2613
 
2614
  // Call this function when there is no enclosure currently detected for the post but users set the option to auto-add first media file linked within post option is checked.
2659
  $content_type = powerpress_get_contenttype($media_file);
2660
 
2661
  if( $content_type == '' )
2662
+ return array('error'=>__('Unable to detect content type.', 'powerpress') );
2663
 
2664
  $get_duration_info = ($content_type == 'audio/mpeg' && $duration === '');
2665
  // Lets use the mp3info class:
2671
  if( $Mp3Info->GetRedirectCount() > 5 )
2672
  {
2673
  // Add a warning that the redirect count exceeded 5, which may prevent some podcatchers from downloading the media.
2674
+ $warning = sprintf( __('Warning, the Media URL %s contains %d redirects.', 'powerpress'), $media_file, $Mp3Info->GetRedirectCount() );
2675
+ $warning .= ' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help', 'powerpress') .'" target="_blank">'. __('Help') .'</a>]';
2676
  if( $return_warnings )
2677
  $warning_msg .= $warning;
2678
  else
2690
  $Warnings = $Mp3Info->GetWarnings();
2691
  while( list($null, $warning) = each($Warnings) )
2692
  {
2693
+ $warning = sprintf( __('Warning, Media URL %s', 'powerpress'), $media_file) .': '. $warning .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help', 'powerpress') .'</a>]';
2694
  if( $return_warnings )
2695
  $warning_msg .= $warning;
2696
  else
2700
  }
2701
  else
2702
  {
2703
+ if( $Mp3Info->GetError() != '' )
2704
  return array('error'=>$Mp3Info->GetError() );
2705
  else
2706
+ return array('error'=>__('Error occurred obtaining media information.', 'powerpress') );
2707
  }
2708
 
2709
  if( $file_size == 0 )
2710
+ return array('error'=>__('Error occurred obtaining media file size.', 'powerpress') );
2711
 
2712
  if( $return_warnings && $warning_msg != '' )
2713
  return array('content-type'=>$content_type, 'length'=>$file_size, 'duration'=>$duration, 'warnings'=>$warning_msg);
2725
  if( $Mp3Info->GetRedirectCount() > 5 )
2726
  {
2727
  // Add a warning that the redirect count exceeded 5, which may prevent some podcatchers from downloading the media.
2728
+ powerpress_add_error( sprintf( __('Warning, the Media URL %s contains %d redirects.', 'powerpress'), $media_file, $Mp3Info->GetRedirectCount() )
2729
+ .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help', 'powerpress') .'</a>]'
2730
  );
2731
  }
2732
 
2739
  {
2740
  $Warnings = $Mp3Info->GetWarnings();
2741
  while( list($null, $warning) = each($Warnings) )
2742
+ powerpress_add_error( sprintf( __('Warning, Media URL %s', 'powerpress'), $media_file) .': '. $warning .' [<a href="http://help.blubrry.com/blubrry-powerpress/errors-and-warnings/" title="'. __('Help') .'" target="_blank">'. __('Help', 'powerpress') .'</a>]' );
2743
  }
2744
  }
2745
  else
2747
  if( $Mp3Info->GetError() )
2748
  return array('error'=>$Mp3Info->GetError() );
2749
  else
2750
+ return array('error'=>__('Error occurred obtaining media information.', 'powerpress') );
2751
  }
2752
  }
2753
 
2761
 
2762
  if( isset($response['response']['code']) && $response['response']['code'] < 200 || $response['response']['code'] > 290 )
2763
  {
2764
+ return array('error'=> __('Error, HTTP', 'powerpress') .' '.$response['response']['code']);
2765
  }
2766
 
2767
  $headers = wp_remote_retrieve_headers( $response );
2769
  if( $headers && $headers['content-length'] )
2770
  $file_size = (int) $headers['content-length'];
2771
  else
2772
+ return array('error'=>__('Unable to obtain file size of media file.', 'powerpress') );
2773
  }
2774
 
2775
  if( $file_size == 0 )
2776
+ return array('error'=>__('Error occurred obtaining media file size.', 'powerpress') );
2777
 
2778
  return array('content-type'=>$content_type, 'length'=>$file_size, 'duration'=>$duration);
2779
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Angelo Mandato, Blubrry.com
3
  Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, wordpressmu, mu, wordpress mu, mediacaster, post, plugin, posts, simple, social, dashboard
4
  Requires at least: 2.6.0
5
- Tested up to: 2.9.2
6
- Stable tag: 1.0.8
7
 
8
  Blubrry PowerPress brings the essential features for podcasting to WordPress including full iTunes support, web audio/video media players and more.
9
 
@@ -138,7 +138,16 @@ To install Blubrry PowerPress manually, follow these steps:
138
  == Changelog ==
139
 
140
  = Announcement =
141
- * We are about 90% done updating PowerPress for translation. If you would like to have PowerPress translated into other languages, please contact Angelo: cio [at] rawvoice.com.
 
 
 
 
 
 
 
 
 
142
 
143
  = 1.0.8 =
144
  * Released on 5/10/2010
2
  Contributors: Angelo Mandato, Blubrry.com
3
  Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, wordpressmu, mu, wordpress mu, mediacaster, post, plugin, posts, simple, social, dashboard
4
  Requires at least: 2.6.0
5
+ Tested up to: 3.0
6
+ Stable tag: 1.0.9
7
 
8
  Blubrry PowerPress brings the essential features for podcasting to WordPress including full iTunes support, web audio/video media players and more.
9
 
138
  == Changelog ==
139
 
140
  = Announcement =
141
+ * Translation support has been completed for Blubrry PowerPress. If you would like to have PowerPress translated into other languages, please contact Angelo: cio [at] rawvoice.com.
142
+
143
+ = 1.0.9 =
144
+ * Released on 7/2/2010
145
+ * Updated WP supported version tag to 3.0, we have yet to find any issues between PowerPress and the latest version of WordPress.
146
+ * Fixed minor bug when clicking 'Add Podcasting to Category' when category not selected.
147
+ * 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.
148
+ * Finished adding translation support. Want to translate PowerPress into you language? Please email cio [at] rawvoice.com for details.
149
+ * Improved error reporting for the 'Verify' button feature.
150
+
151
 
152
  = 1.0.8 =
153
  * Released on 5/10/2010