Version Description
- Released on 3/29/2011
- Fixed bug with Category Podcasting screen not displaying categories correctly. We are now calling the
wp_dropdown_categories()
function with the appropirate parameters. - Fixed fatal error
Call to undefined function powerpressplayer_get_extension()
in dashboard when option 'Disable PowerPress Media Players and Links' is selected. - Added
<!-- ... // -->
within<script>
code for all javascript in PowerPress. (Thanks UnderwoodNC for submitting code!) - Added option under 'Video Player' Common Settings section for using the poster image, video player width and height for audio, applies to Flow Player only.
Download this release
Release Info
Developer | amandato |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- powerpress-player.php +18 -13
- powerpress.php +4 -3
- powerpressadmin-basic.php +4 -3
- powerpressadmin-categoryfeeds.php +5 -4
- powerpressadmin-editfeed.php +2 -1
- powerpressadmin-find-replace.php +2 -1
- powerpressadmin-jquery.php +4 -2
- powerpressadmin-metabox.php +2 -1
- powerpressadmin-mt.php +2 -2
- powerpressadmin-player-page.php +11 -10
- powerpressadmin-podpress.php +2 -2
- powerpressadmin-tags.php +2 -2
- powerpressadmin.php +12 -5
- readme.txt +8 -1
powerpress-player.php
CHANGED
@@ -244,8 +244,9 @@ function powerpress_player_filter($content, $media_url, $ExtraData = array() )
|
|
244 |
if( $autoplay )
|
245 |
{
|
246 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $g_powerpress_player_id .'"></div>'.PHP_EOL;
|
247 |
-
$content .= '<script type="text/javascript"
|
248 |
$content .= "powerpress_embed_quicktime('powerpress_player_{$g_powerpress_player_id}', '{$media_url}', {$player_width}, {$player_height}, '{$GeneralSettings['player_scale']}');\n";
|
|
|
249 |
$content .= "</script>\n";
|
250 |
}
|
251 |
else
|
@@ -328,8 +329,9 @@ function powerpress_player_filter($content, $media_url, $ExtraData = array() )
|
|
328 |
$content .= "</div>\n";
|
329 |
if( $autoplay )
|
330 |
{
|
331 |
-
$content .= '<script type="text/javascript"
|
332 |
$content .= "powerpress_embed_swf('powerpress_player_{$g_powerpress_player_id}', '{$media_url}', {$player_width}, {$player_height} );\n";
|
|
|
333 |
$content .= "</script>\n";
|
334 |
}
|
335 |
|
@@ -498,7 +500,7 @@ function powerpressplayer_in_embed($player, $media_url, $EpisodeData = array())
|
|
498 |
$content .= '<script type="text/javascript" src="'. powerpress_get_root_url() .'player.js"></script>'. PHP_EOL;
|
499 |
// Include jQuery for convenience
|
500 |
$content .= '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>'. PHP_EOL;
|
501 |
-
$content .= '<script language="javascript" type="text/javascript"
|
502 |
$content .= 'powerpress_url = \''. powerpress_get_root_url() .'\''. PHP_EOL;
|
503 |
$content .= 'jQuery(document).ready(function($) {'. PHP_EOL;
|
504 |
$content .= ' powerpress_resize_player();'. PHP_EOL;
|
@@ -517,6 +519,7 @@ function powerpressplayer_in_embed($player, $media_url, $EpisodeData = array())
|
|
517 |
$content .= ' jQuery(\'embed\').css(\'width\', jQuery(window).width() );'. PHP_EOL;
|
518 |
$content .= ' jQuery(\'embed\').css(\'height\', jQuery(window).height() );'. PHP_EOL;
|
519 |
$content .= '}'. PHP_EOL;
|
|
|
520 |
$content .= '</script>'. PHP_EOL;
|
521 |
|
522 |
// Head specific settings for player
|
@@ -780,8 +783,9 @@ function powerpressplayer_player_other($content, $media_url, $EpisodeData = arra
|
|
780 |
if( $autoplay )
|
781 |
{
|
782 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL;
|
783 |
-
$content .= '<script type="text/javascript"
|
784 |
$content .= "powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, '{$scale}');\n";
|
|
|
785 |
$content .= "</script>\n";
|
786 |
}
|
787 |
else
|
@@ -895,8 +899,9 @@ function powerpressplayer_player_other($content, $media_url, $EpisodeData = arra
|
|
895 |
$content .= "</div>\n";
|
896 |
if( $autoplay )
|
897 |
{
|
898 |
-
$content .= '<script type="text/javascript"
|
899 |
$content .= "powerpress_embed_swf('powerpress_player_{$player_id}','{$media_url}',{$player_width},{$player_height});\n";
|
|
|
900 |
$content .= "</script>\n";
|
901 |
}
|
902 |
|
@@ -1234,8 +1239,9 @@ function powerpressplayer_build_html5video($media_url, $EpisodeData=array(), $em
|
|
1234 |
|
1235 |
if( $autoplay )
|
1236 |
{
|
1237 |
-
$content .= '<script type="text/javascript"
|
1238 |
$content .= "powerpress_embed_html5v('{$player_id}','{$media_url}',{$player_width},{$player_height},'{$webm_src}');\n";
|
|
|
1239 |
$content .= "</script>\n";
|
1240 |
}
|
1241 |
}
|
@@ -1285,8 +1291,9 @@ function powerpressplayer_build_html5audio($media_url, $EpisodeData=array(), $em
|
|
1285 |
|
1286 |
if( $autoplay )
|
1287 |
{
|
1288 |
-
$content .= '<script type="text/javascript"
|
1289 |
$content .= "powerpress_embed_html5a('{$player_id}','{$media_url}');\n";
|
|
|
1290 |
$content .= "</script>\n";
|
1291 |
}
|
1292 |
}
|
@@ -1365,7 +1372,7 @@ function powerpressplayer_build_flowplayerclassic($media_url, $EpisodeData = arr
|
|
1365 |
$cover_image = $EpisodeData['image'];
|
1366 |
|
1367 |
$extension = powerpressplayer_get_extension($media_url, $EpisodeData);
|
1368 |
-
if( $extension == 'mp3' || $extension == 'm4a' )
|
1369 |
{
|
1370 |
// FlowPlayer has differeent sizes for audio than for video
|
1371 |
$player_width = 320;
|
@@ -1376,17 +1383,14 @@ function powerpressplayer_build_flowplayerclassic($media_url, $EpisodeData = arr
|
|
1376 |
$player_width = $EpisodeData['width'];
|
1377 |
|
1378 |
$cover_image = ''; // Audio should not have a cover image
|
1379 |
-
|
1380 |
-
{
|
1381 |
-
$player_height = 24;
|
1382 |
-
}
|
1383 |
}
|
1384 |
|
1385 |
// Build player...
|
1386 |
$player_id = powerpressplayer_get_next_id();
|
1387 |
$content = '';
|
1388 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL;
|
1389 |
-
$content .= '<script type="text/javascript"
|
1390 |
if( !empty($EpisodeData['jquery_autowidth']) )
|
1391 |
{
|
1392 |
$player_width = 'jQuery(window).width()';
|
@@ -1403,6 +1407,7 @@ function powerpressplayer_build_flowplayerclassic($media_url, $EpisodeData = arr
|
|
1403 |
else
|
1404 |
$content .= " {config: { autoPlay: ". ($autoplay?'true':'false') .", autoBuffering: false, showFullScreenButton: false, showMenu: false, videoFile: '{$media_url}', loop: false, autoRewind: true } }\n";
|
1405 |
$content .= ");\n";
|
|
|
1406 |
$content .= "</script>\n";
|
1407 |
return $content;
|
1408 |
}
|
244 |
if( $autoplay )
|
245 |
{
|
246 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $g_powerpress_player_id .'"></div>'.PHP_EOL;
|
247 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
248 |
$content .= "powerpress_embed_quicktime('powerpress_player_{$g_powerpress_player_id}', '{$media_url}', {$player_width}, {$player_height}, '{$GeneralSettings['player_scale']}');\n";
|
249 |
+
$content .= "//-->\n";
|
250 |
$content .= "</script>\n";
|
251 |
}
|
252 |
else
|
329 |
$content .= "</div>\n";
|
330 |
if( $autoplay )
|
331 |
{
|
332 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
333 |
$content .= "powerpress_embed_swf('powerpress_player_{$g_powerpress_player_id}', '{$media_url}', {$player_width}, {$player_height} );\n";
|
334 |
+
$content .= "//-->\n";
|
335 |
$content .= "</script>\n";
|
336 |
}
|
337 |
|
500 |
$content .= '<script type="text/javascript" src="'. powerpress_get_root_url() .'player.js"></script>'. PHP_EOL;
|
501 |
// Include jQuery for convenience
|
502 |
$content .= '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>'. PHP_EOL;
|
503 |
+
$content .= '<script language="javascript" type="text/javascript"><!--'. PHP_EOL;
|
504 |
$content .= 'powerpress_url = \''. powerpress_get_root_url() .'\''. PHP_EOL;
|
505 |
$content .= 'jQuery(document).ready(function($) {'. PHP_EOL;
|
506 |
$content .= ' powerpress_resize_player();'. PHP_EOL;
|
519 |
$content .= ' jQuery(\'embed\').css(\'width\', jQuery(window).width() );'. PHP_EOL;
|
520 |
$content .= ' jQuery(\'embed\').css(\'height\', jQuery(window).height() );'. PHP_EOL;
|
521 |
$content .= '}'. PHP_EOL;
|
522 |
+
$content .= "//-->\n";
|
523 |
$content .= '</script>'. PHP_EOL;
|
524 |
|
525 |
// Head specific settings for player
|
783 |
if( $autoplay )
|
784 |
{
|
785 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL;
|
786 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
787 |
$content .= "powerpress_embed_quicktime('powerpress_player_{$player_id}', '{$media_url}', {$player_width}, {$player_height}, '{$scale}');\n";
|
788 |
+
$content .= "//-->\n";
|
789 |
$content .= "</script>\n";
|
790 |
}
|
791 |
else
|
899 |
$content .= "</div>\n";
|
900 |
if( $autoplay )
|
901 |
{
|
902 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
903 |
$content .= "powerpress_embed_swf('powerpress_player_{$player_id}','{$media_url}',{$player_width},{$player_height});\n";
|
904 |
+
$content .= "//-->\n";
|
905 |
$content .= "</script>\n";
|
906 |
}
|
907 |
|
1239 |
|
1240 |
if( $autoplay )
|
1241 |
{
|
1242 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
1243 |
$content .= "powerpress_embed_html5v('{$player_id}','{$media_url}',{$player_width},{$player_height},'{$webm_src}');\n";
|
1244 |
+
$content .= "//-->\n";
|
1245 |
$content .= "</script>\n";
|
1246 |
}
|
1247 |
}
|
1291 |
|
1292 |
if( $autoplay )
|
1293 |
{
|
1294 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
1295 |
$content .= "powerpress_embed_html5a('{$player_id}','{$media_url}');\n";
|
1296 |
+
$content .= "//-->\n";
|
1297 |
$content .= "</script>\n";
|
1298 |
}
|
1299 |
}
|
1372 |
$cover_image = $EpisodeData['image'];
|
1373 |
|
1374 |
$extension = powerpressplayer_get_extension($media_url, $EpisodeData);
|
1375 |
+
if( ($extension == 'mp3' || $extension == 'm4a') && empty($Settings['poster_image_audio']) )
|
1376 |
{
|
1377 |
// FlowPlayer has differeent sizes for audio than for video
|
1378 |
$player_width = 320;
|
1383 |
$player_width = $EpisodeData['width'];
|
1384 |
|
1385 |
$cover_image = ''; // Audio should not have a cover image
|
1386 |
+
$player_height = 24;
|
|
|
|
|
|
|
1387 |
}
|
1388 |
|
1389 |
// Build player...
|
1390 |
$player_id = powerpressplayer_get_next_id();
|
1391 |
$content = '';
|
1392 |
$content .= '<div class="powerpress_player" id="powerpress_player_'. $player_id .'"></div>'.PHP_EOL;
|
1393 |
+
$content .= '<script type="text/javascript"><!--'.PHP_EOL;
|
1394 |
if( !empty($EpisodeData['jquery_autowidth']) )
|
1395 |
{
|
1396 |
$player_width = 'jQuery(window).width()';
|
1407 |
else
|
1408 |
$content .= " {config: { autoPlay: ". ($autoplay?'true':'false') .", autoBuffering: false, showFullScreenButton: false, showMenu: false, videoFile: '{$media_url}', loop: false, autoRewind: true } }\n";
|
1409 |
$content .= ");\n";
|
1410 |
+
$content .= "//-->\n";
|
1411 |
$content .= "</script>\n";
|
1412 |
return $content;
|
1413 |
}
|
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: 2.0.
|
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', '2.0.
|
37 |
|
38 |
// Translation support:
|
39 |
if ( !defined('POWERPRESS_ABSPATH') )
|
@@ -289,7 +289,7 @@ function powerpress_header()
|
|
289 |
echo "<script type=\"text/javascript\" src=\"". powerpress_get_root_url() ."player.js\"></script>\n";
|
290 |
}
|
291 |
?>
|
292 |
-
<script type="text/javascript"
|
293 |
<?php
|
294 |
$new_window_width = 420;
|
295 |
$new_window_height = 240;
|
@@ -301,6 +301,7 @@ function powerpress_header()
|
|
301 |
?>
|
302 |
function powerpress_pinw(pinw){window.open('<?php echo get_bloginfo('url'); ?>/?powerpress_pinw='+pinw, 'PowerPressPlayer','toolbar=0,status=0,resizable=1,width=<?php echo ($new_window_width + 40); ?>,height=<?php echo ($new_window_height + 80); ?>'); return false;}
|
303 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
|
|
304 |
</script>
|
305 |
<?php
|
306 |
}
|
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: 2.0.2
|
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', '2.0.2' );
|
37 |
|
38 |
// Translation support:
|
39 |
if ( !defined('POWERPRESS_ABSPATH') )
|
289 |
echo "<script type=\"text/javascript\" src=\"". powerpress_get_root_url() ."player.js\"></script>\n";
|
290 |
}
|
291 |
?>
|
292 |
+
<script type="text/javascript"><!--
|
293 |
<?php
|
294 |
$new_window_width = 420;
|
295 |
$new_window_height = 240;
|
301 |
?>
|
302 |
function powerpress_pinw(pinw){window.open('<?php echo get_bloginfo('url'); ?>/?powerpress_pinw='+pinw, 'PowerPressPlayer','toolbar=0,status=0,resizable=1,width=<?php echo ($new_window_width + 40); ?>,height=<?php echo ($new_window_height + 80); ?>'); return false;}
|
303 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
304 |
+
//-->
|
305 |
</script>
|
306 |
<?php
|
307 |
}
|
powerpressadmin-basic.php
CHANGED
@@ -8,7 +8,7 @@ function powerpress_admin_basic()
|
|
8 |
$FeedSettings = powerpress_get_settings('powerpress_feed');
|
9 |
$FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
|
10 |
?>
|
11 |
-
<script type="text/javascript"
|
12 |
function CheckRedirect(obj)
|
13 |
{
|
14 |
if( obj.value )
|
@@ -61,7 +61,7 @@ jQuery(document).ready(function($) {
|
|
61 |
}
|
62 |
} );
|
63 |
} );
|
64 |
-
|
65 |
</script>
|
66 |
|
67 |
<input type="hidden" name="action" value="powerpress-save-settings" />
|
@@ -276,8 +276,9 @@ function powerpressadmin_edit_entry_options($General)
|
|
276 |
</td>
|
277 |
</tr>
|
278 |
</table>
|
279 |
-
<script language="javascript"
|
280 |
SelectEmbedField(<?php echo $General['episode_box_embed']; ?>);
|
|
|
281 |
</script>
|
282 |
|
283 |
<?php
|
8 |
$FeedSettings = powerpress_get_settings('powerpress_feed');
|
9 |
$FeedSettings = powerpress_default_settings($FeedSettings, 'editfeed');
|
10 |
?>
|
11 |
+
<script type="text/javascript"><!--
|
12 |
function CheckRedirect(obj)
|
13 |
{
|
14 |
if( obj.value )
|
61 |
}
|
62 |
} );
|
63 |
} );
|
64 |
+
//-->
|
65 |
</script>
|
66 |
|
67 |
<input type="hidden" name="action" value="powerpress-save-settings" />
|
276 |
</td>
|
277 |
</tr>
|
278 |
</table>
|
279 |
+
<script language="javascript"><!--
|
280 |
SelectEmbedField(<?php echo $General['episode_box_embed']; ?>);
|
281 |
+
//-->
|
282 |
</script>
|
283 |
|
284 |
<?php
|
powerpressadmin-categoryfeeds.php
CHANGED
@@ -38,6 +38,9 @@ function powerpress_admin_categoryfeeds()
|
|
38 |
.column-episode-count {
|
39 |
width: 15%;
|
40 |
}
|
|
|
|
|
|
|
41 |
</style>
|
42 |
<div id="col-container">
|
43 |
|
@@ -174,12 +177,10 @@ function powerpress_admin_categoryfeeds()
|
|
174 |
|
175 |
<div class="form-field form-required">
|
176 |
<label for="feed_name"><?php echo __('Category', 'powerpress') ?></label>
|
177 |
-
<select name="cat" id="cat_id" style="width: 100%;">
|
178 |
-
<option value=""><?php echo __('Select Category', 'powerpress'); ?></option>
|
179 |
<?php
|
180 |
-
wp_dropdown_categories();
|
181 |
?>
|
182 |
-
|
183 |
|
184 |
</div>
|
185 |
|
38 |
.column-episode-count {
|
39 |
width: 15%;
|
40 |
}
|
41 |
+
.category-list {
|
42 |
+
width: 100%;
|
43 |
+
}
|
44 |
</style>
|
45 |
<div id="col-container">
|
46 |
|
177 |
|
178 |
<div class="form-field form-required">
|
179 |
<label for="feed_name"><?php echo __('Category', 'powerpress') ?></label>
|
|
|
|
|
180 |
<?php
|
181 |
+
wp_dropdown_categories( array('class'=>'category-list', 'show_option_none'=>__('Select Category', 'powerpress'), 'orderby'=>'name', 'hide_empty'=>0, 'hierarchical'=>1, 'name'=>'cat', 'id'=>'cat_id' ) );
|
182 |
?>
|
183 |
+
|
184 |
|
185 |
</div>
|
186 |
|
powerpressadmin-editfeed.php
CHANGED
@@ -665,7 +665,7 @@ function powerpressadmin_edit_basics_feed($General, $FeedSettings, $feed_slug, $
|
|
665 |
</tr>
|
666 |
</table>
|
667 |
<div id="protected_content_message" style="display: <?php echo ($FeedSettings['premium']?'block':'none'); ?>;">
|
668 |
-
<script language="Javascript" type="text/javascript"
|
669 |
function powerpress_toggle_premium_content(enabled)
|
670 |
{
|
671 |
jQuery('#premium_role').css('display', (enabled?'block':'none') );
|
@@ -688,6 +688,7 @@ function powerpress_default_premium_label(event)
|
|
688 |
}
|
689 |
return true;
|
690 |
}
|
|
|
691 |
</script>
|
692 |
<table class="form-table">
|
693 |
<tr valign="top">
|
665 |
</tr>
|
666 |
</table>
|
667 |
<div id="protected_content_message" style="display: <?php echo ($FeedSettings['premium']?'block':'none'); ?>;">
|
668 |
+
<script language="Javascript" type="text/javascript"><!--
|
669 |
function powerpress_toggle_premium_content(enabled)
|
670 |
{
|
671 |
jQuery('#premium_role').css('display', (enabled?'block':'none') );
|
688 |
}
|
689 |
return true;
|
690 |
}
|
691 |
+
//-->
|
692 |
</script>
|
693 |
<table class="form-table">
|
694 |
<tr valign="top">
|
powerpressadmin-find-replace.php
CHANGED
@@ -171,7 +171,7 @@
|
|
171 |
}
|
172 |
?>
|
173 |
|
174 |
-
<script type="text/javascript"
|
175 |
function VerifyCheck(obj)
|
176 |
{
|
177 |
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'); ?>') )
|
@@ -187,6 +187,7 @@ function ConfirmReplace()
|
|
187 |
}
|
188 |
return false;
|
189 |
}
|
|
|
190 |
</script>
|
191 |
<style type="text/css">
|
192 |
.find_string {
|
171 |
}
|
172 |
?>
|
173 |
|
174 |
+
<script type="text/javascript"><!--
|
175 |
function VerifyCheck(obj)
|
176 |
{
|
177 |
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'); ?>') )
|
187 |
}
|
188 |
return false;
|
189 |
}
|
190 |
+
//-->
|
191 |
</script>
|
192 |
<style type="text/css">
|
193 |
.find_string {
|
powerpressadmin-jquery.php
CHANGED
@@ -179,7 +179,7 @@ if( !isset($Settings['blubrry_auth']) || $Settings['blubrry_auth'] == '' )
|
|
179 |
$FeedSlug = $_GET['podcast-feed'];
|
180 |
powerpress_admin_jquery_header( __('Select Media', 'powerpress'), true );
|
181 |
?>
|
182 |
-
<script language="JavaScript" type="text/javascript"
|
183 |
|
184 |
function SelectMedia(File)
|
185 |
{
|
@@ -205,6 +205,7 @@ function DeleteMedia(File)
|
|
205 |
{
|
206 |
return confirm('<?php echo __('Delete', 'powerpress'); ?>: '+File+'\n\n<?php echo __('Are you sure you want to delete this media file?', 'powerpress'); ?>');
|
207 |
}
|
|
|
208 |
</script>
|
209 |
<div id="media-header">
|
210 |
<h2><?php echo __('Select Media', 'powerpress'); ?></h2>
|
@@ -643,10 +644,11 @@ while( list($value,$desc) = each($Programs) )
|
|
643 |
if( $Message == '' )
|
644 |
{
|
645 |
?>
|
646 |
-
<script language="JavaScript" type="text/javascript"
|
647 |
<?php if( $File != '' ) { ?>
|
648 |
self.parent.SelectMedia('<?php echo $File ; ?>'); <?php } ?>
|
649 |
self.parent.tb_remove();
|
|
|
650 |
</script>
|
651 |
<?php
|
652 |
}
|
179 |
$FeedSlug = $_GET['podcast-feed'];
|
180 |
powerpress_admin_jquery_header( __('Select Media', 'powerpress'), true );
|
181 |
?>
|
182 |
+
<script language="JavaScript" type="text/javascript"><!--
|
183 |
|
184 |
function SelectMedia(File)
|
185 |
{
|
205 |
{
|
206 |
return confirm('<?php echo __('Delete', 'powerpress'); ?>: '+File+'\n\n<?php echo __('Are you sure you want to delete this media file?', 'powerpress'); ?>');
|
207 |
}
|
208 |
+
//-->
|
209 |
</script>
|
210 |
<div id="media-header">
|
211 |
<h2><?php echo __('Select Media', 'powerpress'); ?></h2>
|
644 |
if( $Message == '' )
|
645 |
{
|
646 |
?>
|
647 |
+
<script language="JavaScript" type="text/javascript"><!--
|
648 |
<?php if( $File != '' ) { ?>
|
649 |
self.parent.SelectMedia('<?php echo $File ; ?>'); <?php } ?>
|
650 |
self.parent.tb_remove();
|
651 |
+
//-->
|
652 |
</script>
|
653 |
<?php
|
654 |
}
|
powerpressadmin-metabox.php
CHANGED
@@ -389,8 +389,9 @@ while( list($value,$desc) = each($explicit_array) )
|
|
389 |
</div>
|
390 |
</div>
|
391 |
<?php if( !empty($GeneralSettings['episode_box_background_color'][$FeedSlug]) ) { ?>
|
392 |
-
<script type="text/javascript"
|
393 |
jQuery('#powerpress-<?php echo $FeedSlug; ?>').css( {'background-color' : '<?php echo $GeneralSettings['episode_box_background_color'][$FeedSlug]; ?>' });
|
|
|
394 |
</script><?php } ?>
|
395 |
<?php
|
396 |
}
|
389 |
</div>
|
390 |
</div>
|
391 |
<?php if( !empty($GeneralSettings['episode_box_background_color'][$FeedSlug]) ) { ?>
|
392 |
+
<script type="text/javascript"><!--
|
393 |
jQuery('#powerpress-<?php echo $FeedSlug; ?>').css( {'background-color' : '<?php echo $GeneralSettings['episode_box_background_color'][$FeedSlug]; ?>' });
|
394 |
+
//-->
|
395 |
</script><?php } ?>
|
396 |
<?php
|
397 |
}
|
powerpressadmin-mt.php
CHANGED
@@ -366,7 +366,7 @@ label {
|
|
366 |
width: 160px;
|
367 |
}
|
368 |
</style>
|
369 |
-
<script language="javascript"
|
370 |
|
371 |
function check_radio_selection(obj, PostID, FileIndex)
|
372 |
{
|
@@ -447,7 +447,7 @@ function select_all(index,value)
|
|
447 |
}
|
448 |
}
|
449 |
}
|
450 |
-
|
451 |
</script>
|
452 |
<h2><?php echo __('Import Episodes', 'powerpress'); ?></h2>
|
453 |
<?php
|
366 |
width: 160px;
|
367 |
}
|
368 |
</style>
|
369 |
+
<script language="javascript"><!--
|
370 |
|
371 |
function check_radio_selection(obj, PostID, FileIndex)
|
372 |
{
|
447 |
}
|
448 |
}
|
449 |
}
|
450 |
+
//-->
|
451 |
</script>
|
452 |
<h2><?php echo __('Import Episodes', 'powerpress'); ?></h2>
|
453 |
<?php
|
powerpressadmin-player-page.php
CHANGED
@@ -58,7 +58,7 @@ function powerpress_admin_players($type='audio')
|
|
58 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/css/colorpicker.css" type="text/css" />
|
59 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/js/colorpicker.js"></script>
|
60 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>player.js"></script>
|
61 |
-
<script type="text/javascript"
|
62 |
|
63 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
64 |
|
@@ -119,7 +119,7 @@ jQuery(document).ready(function($) {
|
|
119 |
});
|
120 |
|
121 |
});
|
122 |
-
|
123 |
</script>
|
124 |
|
125 |
|
@@ -463,7 +463,7 @@ table.html5formats tr > td:first-child {
|
|
463 |
if( !isset($PlayerSettings['buffer']) )
|
464 |
$PlayerSettings['buffer'] = ''; // New default setting
|
465 |
?>
|
466 |
-
<script type="text/javascript"
|
467 |
|
468 |
function update_audio_player()
|
469 |
{
|
@@ -611,7 +611,7 @@ function audio_player_defaults()
|
|
611 |
update_audio_player();
|
612 |
}
|
613 |
}
|
614 |
-
|
615 |
</script>
|
616 |
<input type="hidden" name="action" value="powerpress-audio-player" />
|
617 |
<?php echo __('Configure the 1 pixel out Audio Player', 'powerpress'); ?>
|
@@ -999,7 +999,7 @@ function audio_player_defaults()
|
|
999 |
);
|
1000 |
}
|
1001 |
?>
|
1002 |
-
<script type="text/javascript"
|
1003 |
|
1004 |
function audio_player_defaults()
|
1005 |
{
|
@@ -1085,7 +1085,7 @@ function audio_player_defaults()
|
|
1085 |
generator.updatePlayer();
|
1086 |
}
|
1087 |
}
|
1088 |
-
|
1089 |
</script>
|
1090 |
<input type="hidden" name="action" value="powerpress-flashmp3-maxi" />
|
1091 |
<p><?php echo __('Configure Flash Mp3 Maxi Player', 'powerpress'); ?></p>
|
@@ -1426,7 +1426,7 @@ function audio_player_defaults()
|
|
1426 |
</div> <!-- end tab -->
|
1427 |
</div><!-- end tab container -->
|
1428 |
|
1429 |
-
<script type="text/javascript"
|
1430 |
|
1431 |
generator.player = '<?php echo powerpress_get_root_url(); ?>player_mp3_maxi.swf';
|
1432 |
generator.addParam("gen_mp3", "mp3", "url", '');
|
@@ -1455,8 +1455,8 @@ function audio_player_defaults()
|
|
1455 |
generator.addParam("sliderwidth", "sliderwidth", "int", "20");
|
1456 |
|
1457 |
generator.updatePlayer();
|
1458 |
-
|
1459 |
-
|
1460 |
<?php
|
1461 |
}; break;
|
1462 |
|
@@ -1752,7 +1752,8 @@ while( list($value,$desc) = each($scale_options) )
|
|
1752 |
<label for="poster_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="poster_image_file" />
|
1753 |
</div>
|
1754 |
<?php } ?>
|
1755 |
-
<p><input name="General[poster_play_image]" type="checkbox" value="1" <?php echo ($General['poster_play_image']?'checked':''); ?> /> <?php echo __('Include play icon over poster image when applicable
|
|
|
1756 |
</td>
|
1757 |
</tr>
|
1758 |
|
58 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/css/colorpicker.css" type="text/css" />
|
59 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/js/colorpicker.js"></script>
|
60 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>player.js"></script>
|
61 |
+
<script type="text/javascript"><!--
|
62 |
|
63 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
64 |
|
119 |
});
|
120 |
|
121 |
});
|
122 |
+
//-->
|
123 |
</script>
|
124 |
|
125 |
|
463 |
if( !isset($PlayerSettings['buffer']) )
|
464 |
$PlayerSettings['buffer'] = ''; // New default setting
|
465 |
?>
|
466 |
+
<script type="text/javascript"><!--
|
467 |
|
468 |
function update_audio_player()
|
469 |
{
|
611 |
update_audio_player();
|
612 |
}
|
613 |
}
|
614 |
+
//-->
|
615 |
</script>
|
616 |
<input type="hidden" name="action" value="powerpress-audio-player" />
|
617 |
<?php echo __('Configure the 1 pixel out Audio Player', 'powerpress'); ?>
|
999 |
);
|
1000 |
}
|
1001 |
?>
|
1002 |
+
<script type="text/javascript"><!--
|
1003 |
|
1004 |
function audio_player_defaults()
|
1005 |
{
|
1085 |
generator.updatePlayer();
|
1086 |
}
|
1087 |
}
|
1088 |
+
//-->
|
1089 |
</script>
|
1090 |
<input type="hidden" name="action" value="powerpress-flashmp3-maxi" />
|
1091 |
<p><?php echo __('Configure Flash Mp3 Maxi Player', 'powerpress'); ?></p>
|
1426 |
</div> <!-- end tab -->
|
1427 |
</div><!-- end tab container -->
|
1428 |
|
1429 |
+
<script type="text/javascript"><!--
|
1430 |
|
1431 |
generator.player = '<?php echo powerpress_get_root_url(); ?>player_mp3_maxi.swf';
|
1432 |
generator.addParam("gen_mp3", "mp3", "url", '');
|
1455 |
generator.addParam("sliderwidth", "sliderwidth", "int", "20");
|
1456 |
|
1457 |
generator.updatePlayer();
|
1458 |
+
//-->
|
1459 |
+
</script>
|
1460 |
<?php
|
1461 |
}; break;
|
1462 |
|
1752 |
<label for="poster_image_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="poster_image_file" />
|
1753 |
</div>
|
1754 |
<?php } ?>
|
1755 |
+
<p><input name="General[poster_play_image]" type="checkbox" value="1" <?php echo ($General['poster_play_image']?'checked':''); ?> /> <?php echo __('Include play icon over poster image when applicable', 'powerpress'); ?> </p>
|
1756 |
+
<p><input name="General[poster_image_audio]" type="checkbox" value="1" <?php echo ($General['poster_image_audio']?'checked':''); ?> /> <?php echo __('Use poster image, player width and height above for audio (Flow Player only)', 'powerpress'); ?> </p>
|
1757 |
</td>
|
1758 |
</tr>
|
1759 |
|
powerpressadmin-podpress.php
CHANGED
@@ -368,7 +368,7 @@ label {
|
|
368 |
width: 160px;
|
369 |
}
|
370 |
</style>
|
371 |
-
<script language="javascript"
|
372 |
|
373 |
function check_radio_selection(obj, PostID, FileIndex)
|
374 |
{
|
@@ -449,7 +449,7 @@ function select_all(index,value)
|
|
449 |
}
|
450 |
}
|
451 |
}
|
452 |
-
|
453 |
</script>
|
454 |
<h2><?php echo __('Import PodPress Episodes', 'powerpress'); ?></h2>
|
455 |
<?php
|
368 |
width: 160px;
|
369 |
}
|
370 |
</style>
|
371 |
+
<script language="javascript"><!--
|
372 |
|
373 |
function check_radio_selection(obj, PostID, FileIndex)
|
374 |
{
|
449 |
}
|
450 |
}
|
451 |
}
|
452 |
+
//-->
|
453 |
</script>
|
454 |
<h2><?php echo __('Import PodPress Episodes', 'powerpress'); ?></h2>
|
455 |
<?php
|
powerpressadmin-tags.php
CHANGED
@@ -8,12 +8,12 @@ function powerpress_admin_tags()
|
|
8 |
$General = powerpress_get_settings('powerpress_general');
|
9 |
$TagSettings = powerpress_default_settings($General, 'tags');
|
10 |
?>
|
11 |
-
<script language="javascript"
|
12 |
function ToggleID3Tags(Obj)
|
13 |
{
|
14 |
document.getElementById('edit_id3_tags').style.display=(Obj.checked?'block':'none');
|
15 |
}
|
16 |
-
|
17 |
</script>
|
18 |
<input type="hidden" name="action" value="powerpress-save-tags" />
|
19 |
<h2><?php echo __('MP3 Tags', 'powerpress'); ?></h2>
|
8 |
$General = powerpress_get_settings('powerpress_general');
|
9 |
$TagSettings = powerpress_default_settings($General, 'tags');
|
10 |
?>
|
11 |
+
<script language="javascript"><!--
|
12 |
function ToggleID3Tags(Obj)
|
13 |
{
|
14 |
document.getElementById('edit_id3_tags').style.display=(Obj.checked?'block':'none');
|
15 |
}
|
16 |
+
//-->
|
17 |
</script>
|
18 |
<input type="hidden" name="action" value="powerpress-save-tags" />
|
19 |
<h2><?php echo __('MP3 Tags', 'powerpress'); ?></h2>
|
powerpressadmin.php
CHANGED
@@ -375,6 +375,8 @@ function powerpress_admin_init()
|
|
375 |
{
|
376 |
if( !isset($General['poster_play_image'] ) )
|
377 |
$General['poster_play_image'] = 0;
|
|
|
|
|
378 |
}
|
379 |
|
380 |
// Wordpress adds slashes to everything, but since we're storing everything serialized, lets remove them...
|
@@ -1310,8 +1312,9 @@ function powerpress_admin_head()
|
|
1310 |
// Powerpress page
|
1311 |
if( isset($_GET['page']) && strstr($_GET['page'], 'powerpress' ) !== false )
|
1312 |
{
|
|
|
1313 |
?>
|
1314 |
-
<script type="text/javascript"
|
1315 |
function powerpress_show_field(id, show) {
|
1316 |
if( document.getElementById(id).nodeName == "SPAN" )
|
1317 |
document.getElementById(id).style.display = (show?"inline":"none");
|
@@ -1355,7 +1358,8 @@ jQuery(document).ready(function($) {
|
|
1355 |
});
|
1356 |
});
|
1357 |
|
1358 |
-
|
|
|
1359 |
</script>
|
1360 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>css/admin.css" type="text/css" media="screen" />
|
1361 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/flare_player/flarevideo.css" type="text/css" media="screen" />
|
@@ -1442,7 +1446,7 @@ jQuery(document).ready(function($) {
|
|
1442 |
color: #666666;
|
1443 |
}
|
1444 |
</style>
|
1445 |
-
<script language="javascript"
|
1446 |
|
1447 |
g_powerpress_last_selected_channel = '';
|
1448 |
|
@@ -1672,7 +1676,7 @@ function powerpress_send_to_poster_image(url)
|
|
1672 |
}
|
1673 |
tb_remove();
|
1674 |
}
|
1675 |
-
|
1676 |
</script>
|
1677 |
<?php
|
1678 |
}
|
@@ -1681,8 +1685,9 @@ function powerpress_send_to_poster_image(url)
|
|
1681 |
// Print this line for debugging when looking for other pages to include header data for
|
1682 |
//echo "<!-- WP Page Name: $page_name; Hook Suffix: $hook_suffix -->\n";
|
1683 |
?>
|
1684 |
-
<script type="text/javascript"
|
1685 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
|
|
1686 |
</script>
|
1687 |
<?php
|
1688 |
}
|
@@ -3060,6 +3065,7 @@ function powerpressadmin_new()
|
|
3060 |
|
3061 |
function powerpressadmin_community_news($items=3)
|
3062 |
{
|
|
|
3063 |
$rss_items = powerpress_get_news(POWERPRESS_FEED_NEWS, $items);
|
3064 |
echo '<div class="powerpress-news-dashboard">';
|
3065 |
echo '<ul>';
|
@@ -3151,6 +3157,7 @@ function powerpressadmin_community_news($items=3)
|
|
3151 |
|
3152 |
function powerpressadmin_community_highlighted($items=8)
|
3153 |
{
|
|
|
3154 |
$rss_items = powerpress_get_news(POWERPRESS_FEED_HIGHLIGHTED, $items);
|
3155 |
echo '<div class="powerpress-highlighted-dashboard">';
|
3156 |
echo '<ul>';
|
375 |
{
|
376 |
if( !isset($General['poster_play_image'] ) )
|
377 |
$General['poster_play_image'] = 0;
|
378 |
+
if( !isset($General['poster_image_audio'] ) )
|
379 |
+
$General['poster_image_audio'] = 0;
|
380 |
}
|
381 |
|
382 |
// Wordpress adds slashes to everything, but since we're storing everything serialized, lets remove them...
|
1312 |
// Powerpress page
|
1313 |
if( isset($_GET['page']) && strstr($_GET['page'], 'powerpress' ) !== false )
|
1314 |
{
|
1315 |
+
echo "<script type=\"text/javascript\" src=\"". powerpress_get_root_url() ."player.js\"></script>\n";
|
1316 |
?>
|
1317 |
+
<script type="text/javascript"><!--
|
1318 |
function powerpress_show_field(id, show) {
|
1319 |
if( document.getElementById(id).nodeName == "SPAN" )
|
1320 |
document.getElementById(id).style.display = (show?"inline":"none");
|
1358 |
});
|
1359 |
});
|
1360 |
|
1361 |
+
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
1362 |
+
//-->
|
1363 |
</script>
|
1364 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>css/admin.css" type="text/css" media="screen" />
|
1365 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/flare_player/flarevideo.css" type="text/css" media="screen" />
|
1446 |
color: #666666;
|
1447 |
}
|
1448 |
</style>
|
1449 |
+
<script language="javascript"><!--
|
1450 |
|
1451 |
g_powerpress_last_selected_channel = '';
|
1452 |
|
1676 |
}
|
1677 |
tb_remove();
|
1678 |
}
|
1679 |
+
//-->
|
1680 |
</script>
|
1681 |
<?php
|
1682 |
}
|
1685 |
// Print this line for debugging when looking for other pages to include header data for
|
1686 |
//echo "<!-- WP Page Name: $page_name; Hook Suffix: $hook_suffix -->\n";
|
1687 |
?>
|
1688 |
+
<script type="text/javascript"><!--
|
1689 |
powerpress_url = '<?php echo powerpress_get_root_url(); ?>';
|
1690 |
+
//-->
|
1691 |
</script>
|
1692 |
<?php
|
1693 |
}
|
3065 |
|
3066 |
function powerpressadmin_community_news($items=3)
|
3067 |
{
|
3068 |
+
require_once( POWERPRESS_ABSPATH. '/powerpress-player.php'); // Include, if not included already
|
3069 |
$rss_items = powerpress_get_news(POWERPRESS_FEED_NEWS, $items);
|
3070 |
echo '<div class="powerpress-news-dashboard">';
|
3071 |
echo '<ul>';
|
3157 |
|
3158 |
function powerpressadmin_community_highlighted($items=8)
|
3159 |
{
|
3160 |
+
require_once( POWERPRESS_ABSPATH. '/powerpress-player.php'); // Include, if not included already
|
3161 |
$rss_items = powerpress_get_news(POWERPRESS_FEED_HIGHLIGHTED, $items);
|
3162 |
echo '<div class="powerpress-highlighted-dashboard">';
|
3163 |
echo '<ul>';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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, webm, mp4, m4v, wordpressmu, mu, wordpress mu, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.1
|
6 |
-
Stable tag: 2.0.
|
7 |
|
8 |
Blubrry PowerPress brings the essential features for podcasting to WordPress including full iTunes support, web audio/video media players and more.
|
9 |
|
@@ -147,6 +147,13 @@ To install Blubrry PowerPress manually, follow these steps:
|
|
147 |
* Translation support is now complete. Please visit the following link if you would like to have a version in your language: [http://www.blubrry.com/powerpress_translate/](http://www.blubrry.com/powerpress_translate/)
|
148 |
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
= 2.0.1 =
|
151 |
* Released on 3/13/2011
|
152 |
* Fixed bug where media links did not appear for theme functions `get_the_powerpress_content()` and `the_powerpress_content()`. (Thanks Douglas for bringing to our attention)
|
3 |
Tags: podcasting, podcast, podcaster, itunes, enclosure, zune, iphone, youtube, viddler, blip.tv, ustream, podcasting, audio, video, rss2, feed, player, media, rss, mp3, music, embed, feedburner, statistics, stats, flv, flash, id3, episodes, blubrry, webm, mp4, m4v, wordpressmu, mu, wordpress mu, mediacaster, post, plugin, posts, simple, social, dashboard, TSG, Buzzsprout, MTR, WP-boxCast, CastMyBlog
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.1
|
6 |
+
Stable tag: 2.0.2
|
7 |
|
8 |
Blubrry PowerPress brings the essential features for podcasting to WordPress including full iTunes support, web audio/video media players and more.
|
9 |
|
147 |
* Translation support is now complete. Please visit the following link if you would like to have a version in your language: [http://www.blubrry.com/powerpress_translate/](http://www.blubrry.com/powerpress_translate/)
|
148 |
|
149 |
|
150 |
+
= 2.0.2 =
|
151 |
+
* Released on 3/29/2011
|
152 |
+
* Fixed bug with Category Podcasting screen not displaying categories correctly. We are now calling the `wp_dropdown_categories()` function with the appropirate parameters.
|
153 |
+
* Fixed fatal error `Call to undefined function powerpressplayer_get_extension()` in dashboard when option 'Disable PowerPress Media Players and Links' is selected.
|
154 |
+
* Added `<!-- ... // -->` within `<script>` code for all javascript in PowerPress. (Thanks UnderwoodNC for submitting code!)
|
155 |
+
* Added option under 'Video Player' Common Settings section for using the poster image, video player width and height for audio, applies to Flow Player only.
|
156 |
+
|
157 |
= 2.0.1 =
|
158 |
* Released on 3/13/2011
|
159 |
* Fixed bug where media links did not appear for theme functions `get_the_powerpress_content()` and `the_powerpress_content()`. (Thanks Douglas for bringing to our attention)
|