Version Description
- Released on 09/12/2022
- Customization for Moder Blubrry Player
- Bugfix for generating transcripts
Download this release
Release Info
Developer | benbeecroft |
Plugin | PowerPress Podcasting plugin by Blubrry |
Version | 9.4 |
Comparing to | |
See all releases |
Code changes from version 9.3.1 to 9.4
- js/admin.js +9 -10
- powerpress-player.php +1 -0
- powerpress.php +2 -2
- powerpressadmin-metabox.php +2 -2
- powerpressadmin-player-page.php +372 -282
- powerpressadmin-player.php +6 -0
- readme.txt +6 -1
js/admin.js
CHANGED
@@ -618,20 +618,19 @@ function setTranscriptCheckboxes(id, feed_slug){
|
|
618 |
}
|
619 |
}
|
620 |
|
621 |
-
function showHideTranscriptBox(id,
|
622 |
-
id = '#' + id;
|
623 |
-
let showHideCheckbox = jQuery(id);
|
624 |
let optionsBox = jQuery('#transcript-box-options-' + feed_slug);
|
625 |
-
|
626 |
-
if(value === '0'){
|
627 |
optionsBox.prop('style', 'margin-top: 1.5em;display: block;');
|
628 |
-
|
|
|
|
|
629 |
} else {
|
630 |
-
optionsBox.
|
631 |
-
|
|
|
|
|
632 |
}
|
633 |
-
|
634 |
-
|
635 |
}
|
636 |
|
637 |
function unlinkAccount(idForm)
|
618 |
}
|
619 |
}
|
620 |
|
621 |
+
function showHideTranscriptBox(id, feed_slug){
|
|
|
|
|
622 |
let optionsBox = jQuery('#transcript-box-options-' + feed_slug);
|
623 |
+
if(optionsBox.is(':hidden')){
|
|
|
624 |
optionsBox.prop('style', 'margin-top: 1.5em;display: block;');
|
625 |
+
if(typeof jQuery.prop === 'function') {
|
626 |
+
optionsBox.prop('style', 'margin-top: 1.5em;display: block;');
|
627 |
+
}
|
628 |
} else {
|
629 |
+
optionsBox.attr('style', 'display: none;');
|
630 |
+
if(typeof jQuery.prop === 'function') {
|
631 |
+
optionsBox.prop('style', 'display: none;');
|
632 |
+
}
|
633 |
}
|
|
|
|
|
634 |
}
|
635 |
|
636 |
function unlinkAccount(idForm)
|
powerpress-player.php
CHANGED
@@ -1417,6 +1417,7 @@ function powerpressplayer_build_blubrryaudio_by_id($directory_episode_id, $moder
|
|
1417 |
|
1418 |
if($modern){
|
1419 |
$iframeTitle = esc_attr( __('Modern Blubrry Player', 'powerpress') );
|
|
|
1420 |
return '<iframe src="' . $playerUrl . '?id='. $directory_episode_id .'&modern=1&cache=' . time() . '" id="playeriframe" class="" scrolling="yes" width="100%" height="230px" frameborder="0" title="' . $iframeTitle . '"></iframe>';
|
1421 |
} else {
|
1422 |
$iframeTitle = esc_attr( __('Blubrry Podcast Player', 'powerpress') );
|
1417 |
|
1418 |
if($modern){
|
1419 |
$iframeTitle = esc_attr( __('Modern Blubrry Player', 'powerpress') );
|
1420 |
+
$directory_episode_id = ($local ? 12559710 : 80155910);
|
1421 |
return '<iframe src="' . $playerUrl . '?id='. $directory_episode_id .'&modern=1&cache=' . time() . '" id="playeriframe" class="" scrolling="yes" width="100%" height="230px" frameborder="0" title="' . $iframeTitle . '"></iframe>';
|
1422 |
} else {
|
1423 |
$iframeTitle = esc_attr( __('Blubrry Podcast Player', 'powerpress') );
|
powerpress.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
-
Version: 9.
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
@@ -35,7 +35,7 @@ if( !function_exists('add_action') ) {
|
|
35 |
}
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
-
define('POWERPRESS_VERSION', '9.
|
39 |
|
40 |
// Translation support:
|
41 |
if ( !defined('POWERPRESS_ABSPATH') )
|
3 |
Plugin Name: Blubrry PowerPress
|
4 |
Plugin URI: http://create.blubrry.com/resources/powerpress/
|
5 |
Description: <a href="https://create.blubrry.com/resources/powerpress/" target="_blank">Blubrry PowerPress</a> is the No. 1 Podcasting plugin for WordPress. Developed by podcasters for podcasters; features include Simple and Advanced modes, multiple audio/video player options, subscribe to podcast tools, podcast SEO features, and more! Fully supports Apple Podcasts (previously iTunes), Google Podcasts, Spotify, Stitcher, and Blubrry Podcasting directories, as well as all podcast applications and clients.
|
6 |
+
Version: 9.4
|
7 |
Author: Blubrry
|
8 |
Author URI: https://blubrry.com/
|
9 |
Requires at least: 3.6
|
35 |
}
|
36 |
|
37 |
// WP_PLUGIN_DIR (REMEMBER TO USE THIS DEFINE IF NEEDED)
|
38 |
+
define('POWERPRESS_VERSION', '9.4' );
|
39 |
|
40 |
// Translation support:
|
41 |
if ( !defined('POWERPRESS_ABSPATH') )
|
powerpressadmin-metabox.php
CHANGED
@@ -241,9 +241,9 @@ function episode_box_top($EnclosureURL, $FeedSlug, $ExtraData, $GeneralSettings,
|
|
241 |
<p style="font-size: 14px; margin-top: 0; margin-bottom: 0;" class="pp-ep-box-text">
|
242 |
<input id="powerpress_transcript_edit" title="<?php echo esc_attr(__("Edit transcript","powerpress")); ?>"
|
243 |
class="ep-box-checkbox"
|
244 |
-
name="Powerpress[<?php echo $FeedSlug; ?>][transcript][edit]" value="
|
245 |
type="checkbox"
|
246 |
-
onclick="showHideTranscriptBox(this.id,
|
247 |
<?php echo esc_html(__('Edit transcript', 'powerpress')); ?>
|
248 |
<?php if (!empty($PCITranscriptURL)) { ?>
|
249 |
- <a href="<?php echo $PCITranscriptURL ?>" title="Transcript Link" target="_blank"><?php echo $PCITranscriptURL; ?></a>
|
241 |
<p style="font-size: 14px; margin-top: 0; margin-bottom: 0;" class="pp-ep-box-text">
|
242 |
<input id="powerpress_transcript_edit" title="<?php echo esc_attr(__("Edit transcript","powerpress")); ?>"
|
243 |
class="ep-box-checkbox"
|
244 |
+
name="Powerpress[<?php echo $FeedSlug; ?>][transcript][edit]" value="1"
|
245 |
type="checkbox"
|
246 |
+
onclick="showHideTranscriptBox(this.id, '<?php echo $FeedSlug; ?>');"/>
|
247 |
<?php echo esc_html(__('Edit transcript', 'powerpress')); ?>
|
248 |
<?php if (!empty($PCITranscriptURL)) { ?>
|
249 |
- <a href="<?php echo $PCITranscriptURL ?>" title="Transcript Link" target="_blank"><?php echo $PCITranscriptURL; ?></a>
|
powerpressadmin-player-page.php
CHANGED
@@ -20,7 +20,6 @@ function powerpressplayer_mediaelement_info($full_info = true)
|
|
20 |
}
|
21 |
}
|
22 |
|
23 |
-
|
24 |
function powerpressplayer_videojs_info()
|
25 |
{
|
26 |
$plugin_link = '';
|
@@ -89,6 +88,7 @@ function powerpress_admin_players($type='audio')
|
|
89 |
{
|
90 |
switch( $General['player'] )
|
91 |
{
|
|
|
92 |
case 'blubrryaudio':
|
93 |
case 'mediaelement-audio':
|
94 |
case 'html5audio': break;
|
@@ -130,7 +130,7 @@ function powerpress_admin_players($type='audio')
|
|
130 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/css/colorpicker.css" type="text/css" />
|
131 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/js/colorpicker.js"></script>
|
132 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>player.min.js"></script>
|
133 |
-
<script type="text/javascript"
|
134 |
|
135 |
function rgb2hex(rgb) {
|
136 |
|
@@ -158,10 +158,34 @@ function UpdatePlayerPreview(name, value)
|
|
158 |
}
|
159 |
|
160 |
jQuery(document).ready(function($) {
|
161 |
-
|
|
|
|
|
|
|
162 |
generatePlayerHash();
|
163 |
}
|
164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
function generatePlayerHash(){
|
166 |
var time = jQuery("input.time-form").val();
|
167 |
if(time==='') {
|
@@ -199,6 +223,20 @@ jQuery(document).ready(function($) {
|
|
199 |
jQuery("input:radio[name='BBPlayer[playerstyle]'][value='light']").prop('checked', true);
|
200 |
}
|
201 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
jQuery('.color-field').wpColorPicker({
|
203 |
// change: function(){
|
204 |
// }
|
@@ -206,6 +244,18 @@ jQuery(document).ready(function($) {
|
|
206 |
|
207 |
const preview_btn = document.getElementById("previewButton");
|
208 |
const restore_btn = document.getElementById("restoreDefaultsButton");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
if (preview_btn) {
|
210 |
document.getElementById("previewButton").addEventListener("click", generatePlayerHash);
|
211 |
}
|
@@ -383,7 +433,7 @@ table.html5formats tr > td:first-child {
|
|
383 |
<td>
|
384 |
<ul>
|
385 |
<li><label><input type="radio" name="Player[player]" id="player_blubrrymodern" value="blubrrymodern" <?php if( $General['player'] == 'blubrrymodern' ) echo 'checked'; ?> /> <?php echo __('Modern Blubrry Player', 'powerpress') . powerpressadmin_new(true, "margin-left: 5px;"); ?> </label>
|
386 |
-
<strong style="padding-top: 8px; margin-left: 20px;"><a href="<?php echo admin_url('admin.php?page=powerpress/powerpressadmin_player.php&ep=1'); ?>" id="activate_blubrrymodern" class="activate-player"><?php echo __('Activate Now', 'powerpress'); ?></a></strong>
|
387 |
</li>
|
388 |
<li style="margin-left: 30px; margin-bottom:16px;">
|
389 |
<?php print_modern_player_demo(); ?>
|
@@ -444,317 +494,357 @@ table.html5formats tr > td:first-child {
|
|
444 |
<p style="margin-bottom: 20px;"><strong>← <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_videoplayer.php&sp=1"); ?>"><?php echo __('Select a different video player', 'powerpress'); ?></a></strong></p>
|
445 |
<?php } else { ?>
|
446 |
<p style="margin-bottom: 20px;"><strong>← <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_mobileplayer.php&sp=1"); ?>"><?php echo __('Select a different mobile player', 'powerpress'); ?></a></strong></p>
|
447 |
-
<?php
|
448 |
-
}
|
449 |
|
450 |
// Start adding logic here to display options based on the player selected...
|
451 |
-
if(
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
switch( $General['player'] )
|
457 |
-
{
|
458 |
-
case 'html5audio': {
|
459 |
-
$SupportUploads = powerpressadmin_support_uploads();
|
460 |
-
?>
|
461 |
-
<p><?php echo __('Configure HTML5 Audio Player', 'powerpress'); ?></p>
|
462 |
-
<table class="form-table">
|
463 |
-
<tr valign="top">
|
464 |
-
<th scope="row">
|
465 |
-
<?php echo __('Preview of Player', 'powerpress'); ?>
|
466 |
-
</th>
|
467 |
-
<td>
|
468 |
-
<p>
|
469 |
-
<?php
|
470 |
-
echo powerpressplayer_build_html5audio( $Audio['html5audio'] );
|
471 |
-
?>
|
472 |
-
</p>
|
473 |
-
</td>
|
474 |
-
</tr>
|
475 |
-
|
476 |
-
|
477 |
-
<tr>
|
478 |
-
<th scope="row">
|
479 |
-
<?php echo __('Play Icon', 'powerpress'); ?></th>
|
480 |
-
<td>
|
481 |
-
|
482 |
-
<input type="text" id="audio_custom_play_button" name="General[audio_custom_play_button]" style="width: 60%;" value="<?php echo esc_attr($General['audio_custom_play_button']); ?>" maxlength="255" />
|
483 |
-
<a href="#" onclick="javascript: window.open( document.getElementById('audio_custom_play_button').value ); return false;"><?php echo __('preview', 'powerpress'); ?></a>
|
484 |
-
|
485 |
-
<p><?php echo __('Place the URL to the play icon above.', 'powerpress'); ?> <?php echo __('Example', 'powerpress'); ?>: http://example.com/images/audio_play_icon.jpg<br /><br />
|
486 |
-
<?php echo __('Leave blank to use default play icon image.', 'powerpress'); ?></p>
|
487 |
-
|
488 |
-
<?php if( $SupportUploads ) { ?>
|
489 |
-
<p><input name="audio_custom_play_button_checkbox" type="checkbox" onchange="powerpress_show_field('audio_custom_play_button_upload', this.checked)" value="1" /> <?php echo __('Upload new image', 'powerpress'); ?> </p>
|
490 |
-
<div style="display:none" id="audio_custom_play_button_upload">
|
491 |
-
<label for="audio_custom_play_button_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="audio_custom_play_button_file" />
|
492 |
-
</div>
|
493 |
-
<?php } ?>
|
494 |
-
</td>
|
495 |
-
</tr>
|
496 |
-
</table>
|
497 |
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
</div>
|
531 |
-
<
|
532 |
-
|
533 |
-
<table class="form-table">
|
534 |
-
<tr>
|
535 |
-
<td>
|
536 |
-
<a href="#" id="previewButton"
|
537 |
-
style="font-weight: bold; color: #1976d2; font-size: 12px"><?php echo __('Preview Changes', 'powerpress'); ?></a>
|
538 |
-
|
539 |
-
</td>
|
540 |
-
<td>
|
541 |
-
<a href="#" id="restoreDefaultsButton"
|
542 |
-
style="font-weight: bold; color: #1976d2; font-size: 12px"><?php echo __('Restore Default Colors', 'powerpress'); ?></a>
|
543 |
|
544 |
-
|
545 |
-
</tr>
|
546 |
-
<h3 style="font-size: 2em; margin-bottom: 5px; color: #23282d; font-weight: 500"><?php echo __('Player Customization Settings', 'powerpress'); ?></h3>
|
547 |
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
</th>
|
552 |
-
|
553 |
-
<th scope="row">
|
554 |
-
<h3> <?php echo __('Background Color', 'powerpress'); ?> </h3>
|
555 |
-
</th>
|
556 |
-
|
557 |
-
<th scope="row">
|
558 |
-
<h3> <?php echo __('Font Color', 'powerpress'); ?> </h3>
|
559 |
-
</th>
|
560 |
|
561 |
-
|
|
|
562 |
<tr valign="top">
|
563 |
<th scope="row">
|
564 |
-
|
565 |
</th>
|
566 |
<td>
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
maxlength="20"/>
|
573 |
-
</div>
|
574 |
-
</td>
|
575 |
-
<td>
|
576 |
-
<div class="color_control">
|
577 |
-
<input type="text" style="width: 100px;" id="showtext"
|
578 |
-
name="BBPlayer[showtext]" class="color-field"
|
579 |
-
value="<?php echo esc_attr($BBplayerSettings['showtext']); ?>"
|
580 |
-
maxlength="20"/>
|
581 |
-
</div>
|
582 |
</td>
|
583 |
</tr>
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
</div>
|
605 |
-
</td>
|
606 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
<tr valign="top">
|
608 |
<th scope="row">
|
609 |
-
|
610 |
</th>
|
611 |
-
<td>
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
</div>
|
618 |
-
</td>
|
619 |
-
<td>
|
620 |
-
<div class="color_control">
|
621 |
-
<input type="text" style="width: 100px;" id="textsubscribe"
|
622 |
-
name="BBPlayer[textsubscribe]" class="color-field"
|
623 |
-
value="<?php echo esc_attr($BBplayerSettings['textsubscribe']); ?>"
|
624 |
-
maxlength="20"/>
|
625 |
-
</div>
|
626 |
</td>
|
627 |
</tr>
|
|
|
628 |
<tr valign="top">
|
629 |
<th scope="row">
|
630 |
-
|
631 |
</th>
|
632 |
-
<td>
|
633 |
-
|
634 |
-
|
635 |
-
class="color-field"
|
636 |
-
value="<?php echo esc_attr($BBplayerSettings['bgshare']); ?>"
|
637 |
-
maxlength="20"/>
|
638 |
-
</div>
|
639 |
</td>
|
640 |
-
<td>
|
641 |
-
<div class="color_control">
|
642 |
-
<input type="text" style="width: 100px;" id="textshare" name="BBPlayer[textshare]"
|
643 |
-
class="color-field"
|
644 |
-
value="<?php echo esc_attr($BBplayerSettings['textshare']); ?>"
|
645 |
-
maxlength="20"/>
|
646 |
-
</div>
|
647 |
-
</td>
|
648 |
-
|
649 |
</tr>
|
650 |
|
651 |
<tr valign="top">
|
652 |
-
<br>
|
653 |
-
|
654 |
<th scope="row">
|
655 |
-
|
656 |
</th>
|
657 |
<td>
|
658 |
-
<
|
659 |
-
value="light" <?php echo ($BBplayerSettings['playerstyle'] == 'light') ? 'checked = true' : ''; ?>>
|
660 |
-
<label for="selectlight" style="font-size:14px;">Light (default)</label>
|
661 |
-
</td>
|
662 |
-
<td>
|
663 |
-
<input type="radio" name="BBPlayer[playerstyle]" id="selectdark"
|
664 |
-
value="dark" <?php echo ($BBplayerSettings['playerstyle'] == 'dark') ? 'checked = true' : ''; ?> >
|
665 |
-
<label for="selectdark" style="font-size:14px;">Dark</label>
|
666 |
</td>
|
667 |
</tr>
|
668 |
-
|
669 |
-
<!-- <p><input name="General[itunes_image_audio]" type="hidden" value="0"/><input name="General[itunes_image_audio]" type="checkbox" value="1" <?php echo(!empty($General['itunes_image_audio']) ? 'checked' : ''); ?> /> <?php echo __('Use episode iTunes image if set', 'powerpress'); ?> </p> -->
|
670 |
</table>
|
671 |
-
<h3><?php echo __('Episode Image', 'powerpress'); ?></h3>
|
672 |
-
|
673 |
-
<p>
|
674 |
-
<?php echo __('If the option is checked and an episode level iTunes image is set, it will be used for the player instead of the coverart. The URLs to the images must be https:// in order to appear on social networking sites.', 'powerpress'); ?>
|
675 |
-
</p>
|
676 |
-
|
677 |
-
<p><input name="General[new_episode_box_itunes_image]" type="hidden" value="0"/><input
|
678 |
-
name="General[new_episode_box_itunes_image]" type="checkbox"
|
679 |
-
value="1" <?php echo((empty($General['new_episode_box_itunes_image']) || $General['new_episode_box_itunes_image'] == 1) ? 'checked' : ''); ?> /> <?php echo __('Display field for entering iTunes episode image ', 'powerpress'); ?>
|
680 |
-
</p>
|
681 |
-
<p><input name="General[bp_episode_image]" type="hidden" value="0"/><input
|
682 |
-
name="General[bp_episode_image]" type="checkbox"
|
683 |
-
value="1" <?php echo(!empty($General['bp_episode_image']) ? 'checked' : ''); ?> /> <?php echo __('Use iTunes episode image with player', 'powerpress'); ?>
|
684 |
-
</p>
|
685 |
-
<input type="hidden" name="General[powerpress_bplayer_settings]" value="1" />
|
686 |
-
</div>
|
687 |
-
<input type="hidden" name="action" value="powerpress_bplayer"/>
|
688 |
-
|
689 |
-
<?php
|
690 |
-
};break;
|
691 |
-
|
692 |
-
case 'mediaelement-audio': {
|
693 |
-
$SupportUploads = powerpressadmin_support_uploads();
|
694 |
-
|
695 |
-
|
696 |
-
if( !isset($General['audio_player_max_width']) )
|
697 |
-
$General['audio_player_max_width'] = '';
|
698 |
-
?>
|
699 |
-
<p><?php echo __('Configure MediaElement.js Audio Player', 'powerpress'); ?></p>
|
700 |
-
<table class="form-table">
|
701 |
-
<tr valign="top">
|
702 |
-
<th scope="row">
|
703 |
-
<?php echo __('Preview of Player', 'powerpress'); ?>
|
704 |
-
</th>
|
705 |
-
<td><p>
|
706 |
-
<?php
|
707 |
-
// TODO
|
708 |
-
echo powerpressplayer_build_mediaelementaudio($Audio['mediaelement-audio']);
|
709 |
-
?>
|
710 |
-
</p>
|
711 |
-
</td>
|
712 |
-
</tr>
|
713 |
-
|
714 |
-
<tr valign="top">
|
715 |
-
<th scope="row">
|
716 |
-
<?php echo __('Max Width', 'powerpress'); ?>
|
717 |
-
</th>
|
718 |
-
<td valign="top">
|
719 |
-
<input type="text" style="width: 50px;" id="audio_player_max_width" name="General[audio_player_max_width]" class="player-width" value="<?php echo esc_attr($General['audio_player_max_width']); ?>" maxlength="4" />
|
720 |
-
<?php echo __('Width of Audio mp3 player (leave blank for max width)', 'powerpress'); ?>
|
721 |
-
</td>
|
722 |
-
</tr>
|
723 |
-
|
724 |
-
<tr valign="top">
|
725 |
-
<th scope="row">
|
726 |
-
|
727 |
-
</th>
|
728 |
-
<td>
|
729 |
-
<p><?php echo __('MediaElement.js Player has no additional settings at this time.', 'powerpress'); ?></p>
|
730 |
-
</td>
|
731 |
-
</tr>
|
732 |
-
</table>
|
733 |
|
734 |
-
<?php
|
735 |
-
|
736 |
// TODO:
|
737 |
default: {
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
?>
|
743 |
|
744 |
-
<h2><?php echo __('General Settings', 'powerpress'); ?></h2>
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
</table>
|
756 |
-
<?php
|
757 |
-
} break;
|
758 |
}
|
759 |
}
|
760 |
else if( $type == 'video' )
|
@@ -1011,7 +1101,7 @@ function print_blubrry_player_demo()
|
|
1011 |
{
|
1012 |
?>
|
1013 |
<p>
|
1014 |
-
<?php echo __('Note: The Blubrry Audio Player is only available to Blubrry Hosting Customers.', 'powerpress'); ?>
|
1015 |
</p>
|
1016 |
<div style="border: 1px solid #000000; height: 138px; box-shadow: inset 0 0 10px black, 0 0 6px black; margin: 20px 0;">
|
1017 |
<?php
|
@@ -1027,10 +1117,10 @@ function print_blubrry_player_demo()
|
|
1027 |
}
|
1028 |
|
1029 |
function print_modern_player_demo(){ ?>
|
1030 |
-
<p><?php echo __('Note: The Modern Blubrry Player is only available to Blubrry Hosting Customers.
|
1031 |
|
1032 |
<div style="margin: 25px 0;">
|
1033 |
-
<?php echo powerpressplayer_build_blubrryaudio_by_id(
|
1034 |
</div>
|
1035 |
|
1036 |
<?php } ?>
|
20 |
}
|
21 |
}
|
22 |
|
|
|
23 |
function powerpressplayer_videojs_info()
|
24 |
{
|
25 |
$plugin_link = '';
|
88 |
{
|
89 |
switch( $General['player'] )
|
90 |
{
|
91 |
+
case 'blubrrymodern':
|
92 |
case 'blubrryaudio':
|
93 |
case 'mediaelement-audio':
|
94 |
case 'html5audio': break;
|
130 |
<link rel="stylesheet" href="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/css/colorpicker.css" type="text/css" />
|
131 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>3rdparty/colorpicker/js/colorpicker.js"></script>
|
132 |
<script type="text/javascript" src="<?php echo powerpress_get_root_url(); ?>player.min.js"></script>
|
133 |
+
<script type="text/javascript">
|
134 |
|
135 |
function rgb2hex(rgb) {
|
136 |
|
158 |
}
|
159 |
|
160 |
jQuery(document).ready(function($) {
|
161 |
+
|
162 |
+
if(document.getElementById('modern_player_iframe_div') !== null){
|
163 |
+
generateModernPlayerHash();
|
164 |
+
} else if(document.getElementById('player_iframe_div') !== null){
|
165 |
generatePlayerHash();
|
166 |
}
|
167 |
|
168 |
+
|
169 |
+
function generateModernPlayerHash(){
|
170 |
+
var textColor = jQuery("input[name='ModernPlayer[textcolor]']:checked").val();
|
171 |
+
var backgroundColor = jQuery('input[name="ModernPlayer[backgroundcolor]"]').val();
|
172 |
+
if(backgroundColor.charAt(0) === '#'){
|
173 |
+
backgroundColor = backgroundColor.substring(1);
|
174 |
+
}
|
175 |
+
var addition = '&modern_preview=1#textcolor-' + textColor + '&backgroundcolor-' + backgroundColor;
|
176 |
+
|
177 |
+
var episodeId = 80155910;
|
178 |
+
if(location.hostname === 'blubrry.local'){
|
179 |
+
var domain = 'http://player.blubrry.local';
|
180 |
+
episodeId = 12559710;
|
181 |
+
} else {
|
182 |
+
domain = 'https://player.blubrry.com';
|
183 |
+
|
184 |
+
}
|
185 |
+
|
186 |
+
document.getElementById('modern_player_iframe_div').innerHTML = '<iframe src="' + domain + '?id=' + episodeId + addition + '" id="modernplayeriframe" scrolling="yes" width="100%" height="170px" frameborder="0"></iframe>';
|
187 |
+
}
|
188 |
+
|
189 |
function generatePlayerHash(){
|
190 |
var time = jQuery("input.time-form").val();
|
191 |
if(time==='') {
|
223 |
jQuery("input:radio[name='BBPlayer[playerstyle]'][value='light']").prop('checked', true);
|
224 |
}
|
225 |
|
226 |
+
function restoreModernDefaultColors(){
|
227 |
+
var addition = '&modern_preview=1#textcolor-Dark&backgroundcolor-ffffff';
|
228 |
+
|
229 |
+
if(location.hostname === 'blubrry.local'){
|
230 |
+
var domain = 'http://player.blubrry.local';
|
231 |
+
} else {
|
232 |
+
domain = 'https://player.blubrry.com';
|
233 |
+
}
|
234 |
+
document.getElementById('modern_player_iframe_div').innerHTML ='<iframe src="' + domain + '?podcast_id=12559710' + addition + '" id="modernplayeriframe" scrolling="yes" width="100%" height="170px" frameborder="0"></iframe>';
|
235 |
+
|
236 |
+
jQuery("input:radio[name='ModernPlayer[textcolor]'][value='Dark']").prop('checked', true);
|
237 |
+
jQuery('input[name="ModernPlayer[backgroundcolor]"]').wpColorPicker('color',"#ffffff");
|
238 |
+
}
|
239 |
+
|
240 |
jQuery('.color-field').wpColorPicker({
|
241 |
// change: function(){
|
242 |
// }
|
244 |
|
245 |
const preview_btn = document.getElementById("previewButton");
|
246 |
const restore_btn = document.getElementById("restoreDefaultsButton");
|
247 |
+
|
248 |
+
const preview_btn_modern = document.getElementById("previewButtonModern");
|
249 |
+
const restore_btn_modern = document.getElementById("restoreDefaultsButtonModern");
|
250 |
+
|
251 |
+
if(preview_btn_modern){
|
252 |
+
document.getElementById("previewButtonModern").addEventListener("click", generateModernPlayerHash);
|
253 |
+
}
|
254 |
+
|
255 |
+
if(restore_btn_modern){
|
256 |
+
document.getElementById("restoreDefaultsButtonModern").addEventListener("click", restoreModernDefaultColors);
|
257 |
+
}
|
258 |
+
|
259 |
if (preview_btn) {
|
260 |
document.getElementById("previewButton").addEventListener("click", generatePlayerHash);
|
261 |
}
|
433 |
<td>
|
434 |
<ul>
|
435 |
<li><label><input type="radio" name="Player[player]" id="player_blubrrymodern" value="blubrrymodern" <?php if( $General['player'] == 'blubrrymodern' ) echo 'checked'; ?> /> <?php echo __('Modern Blubrry Player', 'powerpress') . powerpressadmin_new(true, "margin-left: 5px;"); ?> </label>
|
436 |
+
<strong style="padding-top: 8px; margin-left: 20px;"><a href="<?php echo admin_url('admin.php?page=powerpress/powerpressadmin_player.php&ep=1'); ?>" id="activate_blubrrymodern" class="activate-player"><?php echo __('Activate and Configure Now', 'powerpress'); ?></a></strong>
|
437 |
</li>
|
438 |
<li style="margin-left: 30px; margin-bottom:16px;">
|
439 |
<?php print_modern_player_demo(); ?>
|
494 |
<p style="margin-bottom: 20px;"><strong>← <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_videoplayer.php&sp=1"); ?>"><?php echo __('Select a different video player', 'powerpress'); ?></a></strong></p>
|
495 |
<?php } else { ?>
|
496 |
<p style="margin-bottom: 20px;"><strong>← <a href="<?php echo admin_url("admin.php?page=powerpress/powerpressadmin_mobileplayer.php&sp=1"); ?>"><?php echo __('Select a different mobile player', 'powerpress'); ?></a></strong></p>
|
497 |
+
<?php }
|
|
|
498 |
|
499 |
// Start adding logic here to display options based on the player selected...
|
500 |
+
if($type == 'audio'){
|
501 |
+
if(empty($General['player'])){
|
502 |
+
$General['player'] = '';
|
503 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
|
505 |
+
switch ($General['player']){
|
506 |
+
case 'blubrrymodern': {
|
507 |
+
$modernPlayerSettings = powerpress_get_settings('powerpress_bplayer');
|
508 |
+
if(empty($modernPlayerSettings['textcolor'])){
|
509 |
+
$modernPlayerSettings['textcolor'] = 'Dark';
|
510 |
+
}
|
511 |
+
if(empty($modernPlayerSettings['backgroundcolor'])){
|
512 |
+
$modernPlayerSettings['backgroundcolor'] = 'ffffff';
|
513 |
+
}
|
514 |
+
?>
|
515 |
+
|
516 |
+
<div id="tab_play" class="powerpress_tab bbplayer_settings" style="padding-left: 3%; padding-right: 3%">
|
517 |
+
<h2 style="font-size: 2em;"> <?php echo __('Modern Blubrry Player', 'powerpress'); ?> </h2>
|
518 |
+
|
519 |
+
<p style="margin-bottom: 10px;"><?php echo __('Note: The Modern Blubrry Player is only available to Blubrry Hosting Customers.', 'powerpress'); ?></p>
|
520 |
+
|
521 |
+
<div id="modern_player_iframe_div"></div>
|
522 |
+
|
523 |
+
<div style="display: inline-flex; margin-top: 30px;">
|
524 |
+
<h2 style="font-size: 2em; margin-top: 0; margin-right: 20px;"><?php echo __('Customize Player', 'powerpress'); ?></h2>
|
525 |
+
<a href="#" id="previewButtonModern" style="font-weight: bold; color: #1976d2; font-size: 12px; margin-right: 15px;"><?php echo __('Preview Changes', 'powerpress'); ?></a>
|
526 |
+
<a href="#" id="restoreDefaultsButtonModern" style="font-weight: bold; color: #1976d2; font-size: 12px"><?php echo __('Restore Default Colors', 'powerpress'); ?></a>
|
527 |
+
</div>
|
528 |
+
|
529 |
+
<h3 style="color: #1d2327;">Text Color</h3>
|
530 |
+
<p>Don't forget to <a target="_blank" href="https://webaim.org/resources/contrastchecker/">check the contrast</a> of your color scheme to ensure it is accessible for all users.</p>
|
531 |
+
<div style="background-color: white; padding: 20px; border-radius: 5px;">
|
532 |
+
<input type="radio" name="ModernPlayer[textcolor]" id="selectlight" value="Light" <?php echo ($modernPlayerSettings['textcolor'] == 'Light') ? 'checked = true' : ''; ?>>
|
533 |
+
<label for="selectlight" style="font-size:14px; margin-right: 40px;">Light</label>
|
534 |
+
|
535 |
+
<input type="radio" name="ModernPlayer[textcolor]" id="selectdark" value="Dark" <?php echo ($modernPlayerSettings['textcolor'] == 'Dark') ? 'checked = true' : ''; ?> >
|
536 |
+
<label for="selectdark" style="font-size:14px;">Dark (default)</label>
|
537 |
+
</div>
|
538 |
+
|
539 |
+
|
540 |
+
<h3 style="color: #1d2327; margin-top: 40px;">Background Color</h3>
|
541 |
+
<div class="color_control" style="margin-bottom: 50px;">
|
542 |
+
<input type="text" style="width: 100px;" id="backgroundcolor" name="ModernPlayer[backgroundcolor]"
|
543 |
+
class="color-field"
|
544 |
+
value="<?php echo esc_attr($modernPlayerSettings['backgroundcolor']); ?>"
|
545 |
+
maxlength="20"
|
546 |
+
aria-label="Background Color"
|
547 |
+
/>
|
548 |
+
</div>
|
549 |
</div>
|
550 |
+
<input type="hidden" name="action" value="powerpress_bplayer"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
551 |
|
552 |
+
<?php } break;
|
|
|
|
|
553 |
|
554 |
+
case 'html5audio': {
|
555 |
+
$SupportUploads = powerpressadmin_support_uploads();
|
556 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
557 |
|
558 |
+
<p><?php echo __('Configure HTML5 Audio Player', 'powerpress'); ?></p>
|
559 |
+
<table class="form-table">
|
560 |
<tr valign="top">
|
561 |
<th scope="row">
|
562 |
+
<?php echo __('Preview of Player', 'powerpress'); ?>
|
563 |
</th>
|
564 |
<td>
|
565 |
+
<p>
|
566 |
+
<?php
|
567 |
+
echo powerpressplayer_build_html5audio( $Audio['html5audio'] );
|
568 |
+
?>
|
569 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
570 |
</td>
|
571 |
</tr>
|
572 |
+
|
573 |
+
|
574 |
+
<tr>
|
575 |
+
<th scope="row">
|
576 |
+
<?php echo __('Play Icon', 'powerpress'); ?></th>
|
577 |
+
<td>
|
578 |
+
|
579 |
+
<input type="text" id="audio_custom_play_button" name="General[audio_custom_play_button]" style="width: 60%;" value="<?php echo esc_attr($General['audio_custom_play_button']); ?>" maxlength="255" />
|
580 |
+
<a href="#" onclick="javascript: window.open( document.getElementById('audio_custom_play_button').value ); return false;"><?php echo __('preview', 'powerpress'); ?></a>
|
581 |
+
|
582 |
+
<p><?php echo __('Place the URL to the play icon above.', 'powerpress'); ?> <?php echo __('Example', 'powerpress'); ?>: http://example.com/images/audio_play_icon.jpg<br /><br />
|
583 |
+
<?php echo __('Leave blank to use default play icon image.', 'powerpress'); ?></p>
|
584 |
+
|
585 |
+
<?php if( $SupportUploads ) { ?>
|
586 |
+
<p><input name="audio_custom_play_button_checkbox" type="checkbox" onchange="powerpress_show_field('audio_custom_play_button_upload', this.checked)" value="1" /> <?php echo __('Upload new image', 'powerpress'); ?> </p>
|
587 |
+
<div style="display:none" id="audio_custom_play_button_upload">
|
588 |
+
<label for="audio_custom_play_button_file"><?php echo __('Choose file', 'powerpress'); ?>:</label><input type="file" name="audio_custom_play_button_file" />
|
589 |
+
</div>
|
590 |
+
<?php } ?>
|
591 |
+
</td>
|
|
|
|
|
592 |
</tr>
|
593 |
+
</table>
|
594 |
+
|
595 |
+
<?php } break;
|
596 |
+
|
597 |
+
case 'blubrryaudio' : { //TODO
|
598 |
+
$BBplayerSettings = powerpress_get_settings('powerpress_bplayer');
|
599 |
+
if (empty($BBplayerSettings)) {
|
600 |
+
$BBplayerSettings = array(
|
601 |
+
'showbg' => '#444444',
|
602 |
+
'showtext' => '#ffffff',
|
603 |
+
'downloadbgcolor' => '#003366',
|
604 |
+
'downloadcolortext' => '#ffffff',
|
605 |
+
'subscribebg' => '#fb8c00',
|
606 |
+
'textsubscribe' => '#ffffff',
|
607 |
+
'bgshare' => '#1976d2',
|
608 |
+
'textshare' => '#ffffff',
|
609 |
+
'playerstyle' => 'light'
|
610 |
+
);
|
611 |
+
}
|
612 |
+
?>
|
613 |
+
|
614 |
+
<div id="tab_play" class="powerpress_tab bbplayer_settings" style="padding-left: 3%; padding-right: 3%">
|
615 |
+
<h2 style="font-size: 2em;"> <?php echo __('Blubrry Player', 'powerpress'); ?> </h2>
|
616 |
+
<p>
|
617 |
+
<?php echo __('Note: The Blubrry Audio Player is only available to Blubrry Hosting Customers.', 'powerpress'); ?>
|
618 |
+
</p>
|
619 |
+
<p>
|
620 |
+
<?php echo __('Shownotes and Download options are not displayed initially.', 'powerpress'); ?>
|
621 |
+
</p>
|
622 |
+
<div id="player_iframe_div"
|
623 |
+
style="border: 1px solid #000000; height: 138px; box-shadow: inset 0 0 10px black, 0 0 6px black; margin: 20px 0;">
|
624 |
+
<?php //print_blubrry_player_demo(); ?>
|
625 |
+
</div>
|
626 |
+
<br>
|
627 |
+
|
628 |
+
<table class="form-table">
|
629 |
+
<tr>
|
630 |
+
<td>
|
631 |
+
<a href="#" id="previewButton"
|
632 |
+
style="font-weight: bold; color: #1976d2; font-size: 12px"><?php echo __('Preview Changes', 'powerpress'); ?></a>
|
633 |
+
|
634 |
+
</td>
|
635 |
+
<td>
|
636 |
+
<a href="#" id="restoreDefaultsButton"
|
637 |
+
style="font-weight: bold; color: #1976d2; font-size: 12px"><?php echo __('Restore Default Colors', 'powerpress'); ?></a>
|
638 |
+
|
639 |
+
</td>
|
640 |
+
</tr>
|
641 |
+
<h3 style="font-size: 2em; margin-bottom: 5px; color: #23282d; font-weight: 500"><?php echo __('Player Customization Settings', 'powerpress'); ?></h3>
|
642 |
+
|
643 |
+
<tr valign="top" style="margin-bottom: -15px;">
|
644 |
+
<th scope="row">
|
645 |
+
<h3> <?php echo __('Buttons', 'powerpress'); ?> </h3>
|
646 |
+
</th>
|
647 |
+
|
648 |
+
<th scope="row">
|
649 |
+
<h3> <?php echo __('Background Color', 'powerpress'); ?> </h3>
|
650 |
+
</th>
|
651 |
+
|
652 |
+
<th scope="row">
|
653 |
+
<h3> <?php echo __('Font Color', 'powerpress'); ?> </h3>
|
654 |
+
</th>
|
655 |
+
|
656 |
+
</tr>
|
657 |
+
<tr valign="top">
|
658 |
+
<th scope="row">
|
659 |
+
<?php echo __('Shownotes/Embed Button', 'powerpress'); ?>
|
660 |
+
</th>
|
661 |
+
<td>
|
662 |
+
|
663 |
+
<div class="color_control">
|
664 |
+
<input type="text" style="width: 100px;" id="shownotesbg" name="BBPlayer[showbg]"
|
665 |
+
class="color-field"
|
666 |
+
value="<?php echo esc_attr($BBplayerSettings['showbg']); ?>"
|
667 |
+
maxlength="20"/>
|
668 |
+
</div>
|
669 |
+
</td>
|
670 |
+
<td>
|
671 |
+
<div class="color_control">
|
672 |
+
<input type="text" style="width: 100px;" id="showtext"
|
673 |
+
name="BBPlayer[showtext]" class="color-field"
|
674 |
+
value="<?php echo esc_attr($BBplayerSettings['showtext']); ?>"
|
675 |
+
maxlength="20"/>
|
676 |
+
</div>
|
677 |
+
</td>
|
678 |
+
</tr>
|
679 |
+
<tr valign="top">
|
680 |
+
<th scope="row">
|
681 |
+
<?php echo __('Download Button', 'powerpress'); ?>
|
682 |
+
</th>
|
683 |
+
<td>
|
684 |
+
<div class="color_control">
|
685 |
+
<input type="text" style="width: 100px;" id="downloadbgcolor"
|
686 |
+
name="BBPlayer[downloadbgcolor]"
|
687 |
+
class="color-field"
|
688 |
+
value="<?php echo esc_attr($BBplayerSettings['downloadbgcolor']); ?>"
|
689 |
+
maxlength="20"/>
|
690 |
+
</div>
|
691 |
+
</td>
|
692 |
+
<td>
|
693 |
+
<div class="color_control">
|
694 |
+
<input type="text" style="width: 100px;" id="downloadcolortext"
|
695 |
+
name="BBPlayer[downloadcolortext]"
|
696 |
+
class="color-field"
|
697 |
+
value="<?php echo esc_attr($BBplayerSettings['downloadcolortext']); ?>"
|
698 |
+
maxlength="20"/>
|
699 |
+
</div>
|
700 |
+
</td>
|
701 |
+
</tr>
|
702 |
+
<tr valign="top">
|
703 |
+
<th scope="row">
|
704 |
+
<?php echo __('Subscribe Button', 'powerpress'); ?>
|
705 |
+
</th>
|
706 |
+
<td>
|
707 |
+
<div class="color_control">
|
708 |
+
<input type="text" style="width: 100px;" id="subscribebg" name="BBPlayer[subscribebg]"
|
709 |
+
class="color-field"
|
710 |
+
value="<?php echo esc_attr($BBplayerSettings['subscribebg']); ?>"
|
711 |
+
maxlength="20"/>
|
712 |
+
</div>
|
713 |
+
</td>
|
714 |
+
<td>
|
715 |
+
<div class="color_control">
|
716 |
+
<input type="text" style="width: 100px;" id="textsubscribe"
|
717 |
+
name="BBPlayer[textsubscribe]" class="color-field"
|
718 |
+
value="<?php echo esc_attr($BBplayerSettings['textsubscribe']); ?>"
|
719 |
+
maxlength="20"/>
|
720 |
+
</div>
|
721 |
+
</td>
|
722 |
+
</tr>
|
723 |
+
<tr valign="top">
|
724 |
+
<th scope="row">
|
725 |
+
<?php echo __('Share Button', 'powerpress'); ?>
|
726 |
+
</th>
|
727 |
+
<td>
|
728 |
+
<div class="color_control">
|
729 |
+
<input type="text" style="width: 100px;" id="bgshare" name="BBPlayer[bgshare]"
|
730 |
+
class="color-field"
|
731 |
+
value="<?php echo esc_attr($BBplayerSettings['bgshare']); ?>"
|
732 |
+
maxlength="20"/>
|
733 |
+
</div>
|
734 |
+
</td>
|
735 |
+
<td>
|
736 |
+
<div class="color_control">
|
737 |
+
<input type="text" style="width: 100px;" id="textshare" name="BBPlayer[textshare]"
|
738 |
+
class="color-field"
|
739 |
+
value="<?php echo esc_attr($BBplayerSettings['textshare']); ?>"
|
740 |
+
maxlength="20"/>
|
741 |
+
</div>
|
742 |
+
</td>
|
743 |
+
|
744 |
+
</tr>
|
745 |
+
|
746 |
+
<tr valign="top">
|
747 |
+
<br>
|
748 |
+
|
749 |
+
<th scope="row">
|
750 |
+
<h3><?php echo __('Player Style', 'powerpress'); ?> </h3>
|
751 |
+
</th>
|
752 |
+
<td>
|
753 |
+
<input type="radio" name="BBPlayer[playerstyle]" id="selectlight"
|
754 |
+
value="light" <?php echo ($BBplayerSettings['playerstyle'] == 'light') ? 'checked = true' : ''; ?>>
|
755 |
+
<label for="selectlight" style="font-size:14px;">Light (default)</label>
|
756 |
+
</td>
|
757 |
+
<td>
|
758 |
+
<input type="radio" name="BBPlayer[playerstyle]" id="selectdark"
|
759 |
+
value="dark" <?php echo ($BBplayerSettings['playerstyle'] == 'dark') ? 'checked = true' : ''; ?> >
|
760 |
+
<label for="selectdark" style="font-size:14px;">Dark</label>
|
761 |
+
</td>
|
762 |
+
</tr>
|
763 |
+
|
764 |
+
<!-- <p><input name="General[itunes_image_audio]" type="hidden" value="0"/><input name="General[itunes_image_audio]" type="checkbox" value="1" <?php echo(!empty($General['itunes_image_audio']) ? 'checked' : ''); ?> /> <?php echo __('Use episode iTunes image if set', 'powerpress'); ?> </p> -->
|
765 |
+
</table>
|
766 |
+
<h3><?php echo __('Episode Image', 'powerpress'); ?></h3>
|
767 |
+
|
768 |
+
<p>
|
769 |
+
<?php echo __('If the option is checked and an episode level iTunes image is set, it will be used for the player instead of the coverart. The URLs to the images must be https:// in order to appear on social networking sites.', 'powerpress'); ?>
|
770 |
+
</p>
|
771 |
+
|
772 |
+
<p><input name="General[new_episode_box_itunes_image]" type="hidden" value="0"/><input
|
773 |
+
name="General[new_episode_box_itunes_image]" type="checkbox"
|
774 |
+
value="1" <?php echo((empty($General['new_episode_box_itunes_image']) || $General['new_episode_box_itunes_image'] == 1) ? 'checked' : ''); ?> /> <?php echo __('Display field for entering iTunes episode image ', 'powerpress'); ?>
|
775 |
+
</p>
|
776 |
+
<p><input name="General[bp_episode_image]" type="hidden" value="0"/><input
|
777 |
+
name="General[bp_episode_image]" type="checkbox"
|
778 |
+
value="1" <?php echo(!empty($General['bp_episode_image']) ? 'checked' : ''); ?> /> <?php echo __('Use iTunes episode image with player', 'powerpress'); ?>
|
779 |
+
</p>
|
780 |
+
<input type="hidden" name="General[powerpress_bplayer_settings]" value="1" />
|
781 |
+
</div>
|
782 |
+
<input type="hidden" name="action" value="powerpress_bplayer"/>
|
783 |
+
<?php } break;
|
784 |
+
|
785 |
+
case 'mediaelement-audio': {
|
786 |
+
$SupportUploads = powerpressadmin_support_uploads();
|
787 |
+
|
788 |
+
if(!isset($General['audio_player_max_width'])){
|
789 |
+
$General['audio_player_max_width'] = '';
|
790 |
+
} ?>
|
791 |
+
<p><?php echo __('Configure MediaElement.js Audio Player', 'powerpress'); ?></p>
|
792 |
+
<table class="form-table">
|
793 |
<tr valign="top">
|
794 |
<th scope="row">
|
795 |
+
<?php echo __('Preview of Player', 'powerpress'); ?>
|
796 |
</th>
|
797 |
+
<td><p>
|
798 |
+
<?php
|
799 |
+
// TODO
|
800 |
+
echo powerpressplayer_build_mediaelementaudio($Audio['mediaelement-audio']);
|
801 |
+
?>
|
802 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
</td>
|
804 |
</tr>
|
805 |
+
|
806 |
<tr valign="top">
|
807 |
<th scope="row">
|
808 |
+
<?php echo __('Max Width', 'powerpress'); ?>
|
809 |
</th>
|
810 |
+
<td valign="top">
|
811 |
+
<input type="text" style="width: 50px;" id="audio_player_max_width" name="General[audio_player_max_width]" class="player-width" value="<?php echo esc_attr($General['audio_player_max_width']); ?>" maxlength="4" />
|
812 |
+
<?php echo __('Width of Audio mp3 player (leave blank for max width)', 'powerpress'); ?>
|
|
|
|
|
|
|
|
|
813 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
814 |
</tr>
|
815 |
|
816 |
<tr valign="top">
|
|
|
|
|
817 |
<th scope="row">
|
818 |
+
|
819 |
</th>
|
820 |
<td>
|
821 |
+
<p><?php echo __('MediaElement.js Player has no additional settings at this time.', 'powerpress'); ?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
</td>
|
823 |
</tr>
|
|
|
|
|
824 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
825 |
|
826 |
+
<?php } break;
|
827 |
+
|
828 |
// TODO:
|
829 |
default: {
|
830 |
+
if(empty($General['player_width_audio'])){
|
831 |
+
$General['player_width_audio'] = '';
|
832 |
+
}
|
833 |
+
?>
|
|
|
834 |
|
835 |
+
<h2><?php echo __('General Settings', 'powerpress'); ?></h2>
|
836 |
+
<table class="form-table">
|
837 |
+
<tr valign="top">
|
838 |
+
<th scope="row">
|
839 |
+
<?php echo __('Width', 'powerpress'); ?>
|
840 |
+
</th>
|
841 |
+
<td valign="top">
|
842 |
+
<input type="text" style="width: 50px;" id="player_width" name="General[player_width_audio]" class="player-width" value="<?php echo esc_attr($General['player_width_audio']); ?>" maxlength="4" />
|
843 |
+
<?php echo __('Width of Audio mp3 player (leave blank for 320 default)', 'powerpress'); ?>
|
844 |
+
</td>
|
845 |
+
</tr>
|
846 |
+
</table>
|
847 |
+
<?php } break;
|
|
|
848 |
}
|
849 |
}
|
850 |
else if( $type == 'video' )
|
1101 |
{
|
1102 |
?>
|
1103 |
<p>
|
1104 |
+
<?php echo __('Note: The Blubrry Audio Player is only available to Blubrry Hosting Customers. This player will be available until December 31st.', 'powerpress'); ?>
|
1105 |
</p>
|
1106 |
<div style="border: 1px solid #000000; height: 138px; box-shadow: inset 0 0 10px black, 0 0 6px black; margin: 20px 0;">
|
1107 |
<?php
|
1117 |
}
|
1118 |
|
1119 |
function print_modern_player_demo(){ ?>
|
1120 |
+
<p><?php echo __('Note: The Modern Blubrry Player is only available to Blubrry Hosting Customers.', 'powerpress'); ?></p>
|
1121 |
|
1122 |
<div style="margin: 25px 0;">
|
1123 |
+
<?php echo powerpressplayer_build_blubrryaudio_by_id(80155910, true); // Special episode where we talk about the new player ?>
|
1124 |
</div>
|
1125 |
|
1126 |
<?php } ?>
|
powerpressadmin-player.php
CHANGED
@@ -34,6 +34,12 @@ function powerpress_admin_players_init()
|
|
34 |
|
35 |
$SaveSettings = $_POST['BBPlayer'];
|
36 |
$GenSettings = $_POST['General'];
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
powerpress_save_settings($SaveSettings, 'powerpress_bplayer');
|
38 |
powerpress_save_settings($GenSettings, 'powerpress_general');
|
39 |
powerpress_page_message_add_notice( __('Blubrry Player settings saved successfully.', 'powerpress') );
|
34 |
|
35 |
$SaveSettings = $_POST['BBPlayer'];
|
36 |
$GenSettings = $_POST['General'];
|
37 |
+
$ModernPlayerSettings = $_POST['ModernPlayer'];
|
38 |
+
|
39 |
+
if(empty($SaveSettings)){
|
40 |
+
$SaveSettings = $ModernPlayerSettings;
|
41 |
+
}
|
42 |
+
|
43 |
powerpress_save_settings($SaveSettings, 'powerpress_bplayer');
|
44 |
powerpress_save_settings($GenSettings, 'powerpress_general');
|
45 |
powerpress_page_message_add_notice( __('Blubrry Player settings saved successfully.', 'powerpress') );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: podcasting, podcast, podcaster, powerpress, itunes, apple, apple podcasts,
|
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 9.
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -186,6 +186,11 @@ If you are a fan of PowerPress, we would greatly appreciate it if you could take
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
|
|
189 |
= 9.3.1 =
|
190 |
* Released on 09/07/2022
|
191 |
* Language selection for transcripts thru Blubrry
|
4 |
Requires at least: 3.6
|
5 |
Requires PHP: 5.2
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 9.4
|
8 |
Donate link: https://create.blubrry.com/resources/podcast-media-hosting/
|
9 |
License: GPLv2 or later
|
10 |
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 9.4 =
|
190 |
+
* Released on 09/12/2022
|
191 |
+
* Customization for Moder Blubrry Player
|
192 |
+
* Bugfix for generating transcripts
|
193 |
+
|
194 |
= 9.3.1 =
|
195 |
* Released on 09/07/2022
|
196 |
* Language selection for transcripts thru Blubrry
|