| Line 202... |
Line 202... |
| 202 |
}
|
202 |
}
|
| 203 |
$modal .= "</h4>";
|
203 |
$modal .= "</h4>";
|
| 204 |
$modal .= "<button type=\"button\" class=\"close\" data-dismiss=\"modal\"><i class=\"fas fa-window-close btn-dismiss\"></i></button>";
|
204 |
$modal .= "<button type=\"button\" class=\"close\" data-dismiss=\"modal\"><i class=\"fas fa-window-close btn-dismiss\"></i></button>";
|
| 205 |
$modal .= "</div>";
|
205 |
$modal .= "</div>";
|
| 206 |
|
206 |
|
| 207 |
$modal .= "<div class=\"modal-body bg-white mx-auto youtube\">";
|
207 |
$modal .= "<div class=\"modal-body bg-white mx-auto\">";
|
| 208 |
$modal .= "<h4>Videos</h4>";
|
208 |
$modal .= "<h4><i class=\"fab fa-youtube youtube\"></i> Videos</h4>";
|
| 209 |
$modal .= "<ul>";
|
209 |
$modal .= "<ul class=\"list-group\">";
|
| 210 |
|
210 |
|
| 211 |
foreach ($master->{'videos'} as $video) {
|
211 |
foreach ($master->{'videos'} as $video) {
|
| 212 |
$modal .= "<li class=\"mt-2\"><a href=\"" . $video->uri . "\" target=\"_blank\" class=\"btn btn-info text-left\" role=\"button\">" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]</a></li>";
|
212 |
$modal .= "<li class=\"list-group-item\"><a href=\"" . $video->uri . "\" target=\"_blank\" class=\"btn btn-info text-left\" role=\"button\">" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]</a></li>";
|
| 213 |
// bugbug too many videos don't run embedded
|
213 |
// bugbug too many videos don't run embedded
|
| 214 |
// $videoParam = basename($video->uri);
|
214 |
// $videoParam = basename($video->uri);
|
| 215 |
// $videoIdx = strpos($videoParam, "=") + 1;
|
215 |
// $videoIdx = strpos($videoParam, "=") + 1;
|
| 216 |
// $str .= "<iframe width=\"280\" height=\"158\" src=\"https://www.youtube-nocookie.com/embed/" . substr($videoParam, $videoIdx) . "?rel=0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>";
|
216 |
// $str .= "<iframe width=\"280\" height=\"158\" src=\"https://www.youtube-nocookie.com/embed/" . substr($videoParam, $videoIdx) . "?rel=0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>";
|
| 217 |
|
217 |
|