Add front page players
This commit is contained in:
parent
d7d02f59d5
commit
59003fdec7
|
@ -66,10 +66,20 @@ if ($isBeforeEvent) {
|
|||
}
|
||||
|
||||
if ($activeStream) {
|
||||
wp_enqueue_style('video.js', 'https://unpkg.com/video.js/dist/video-js.css');
|
||||
wp_enqueue_script('video.js', 'https://unpkg.com/video.js/dist/video.min.js');
|
||||
|
||||
// TODO
|
||||
?>
|
||||
<div class="stream_players_wrapper">
|
||||
<?php
|
||||
foreach ($activeStream as $track) {
|
||||
?>
|
||||
<div>
|
||||
<h3><?php e_($track); ?></h3>
|
||||
<?php do_shortcode('[stream-player track="' . $track . '"]'); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($noCurrentStreams) {
|
||||
|
|
|
@ -418,6 +418,8 @@ if (function_exists("pll_register_string")) {
|
|||
pll_register_string('countdown_minutes','countdown_minutes');
|
||||
pll_register_string('after_event','after_event');
|
||||
pll_register_string('no_current_streams','no_current_streams');
|
||||
pll_register_string('hall-a','hall-a');
|
||||
pll_register_string('hall-b','hall-b');
|
||||
}
|
||||
|
||||
add_filter( 'wp_title', 'wpdocs_hack_wp_title_for_home' );
|
||||
|
|
Loading…
Reference in New Issue