Add front page players

This commit is contained in:
Vencislav Atanasov 2024-10-31 00:49:29 +02:00
parent d7d02f59d5
commit 59003fdec7
2 changed files with 16 additions and 4 deletions

View File

@ -66,10 +66,20 @@ if ($isBeforeEvent) {
} }
if ($activeStream) { 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'); <div class="stream_players_wrapper">
<?php
// TODO foreach ($activeStream as $track) {
?>
<div>
<h3><?php e_($track); ?></h3>
<?php do_shortcode('[stream-player track="' . $track . '"]'); ?>
</div>
<?php
}
?>
</div>
<?php
} }
if ($noCurrentStreams) { if ($noCurrentStreams) {

View File

@ -418,6 +418,8 @@ if (function_exists("pll_register_string")) {
pll_register_string('countdown_minutes','countdown_minutes'); pll_register_string('countdown_minutes','countdown_minutes');
pll_register_string('after_event','after_event'); pll_register_string('after_event','after_event');
pll_register_string('no_current_streams','no_current_streams'); 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' ); add_filter( 'wp_title', 'wpdocs_hack_wp_title_for_home' );