| Line 211... |
Line 211... |
| 211 |
//$str .= "<i role=\"button\" class=\"fab fa-youtube fa-2x btn-youtube btn m-1 btn-sm\" data-toggle=\"modal\" data-target=\"#videoModal" . $cnt . "\" title=\"Videos\" data-toggle2=\"tooltip\"></i>";
|
211 |
//$str .= "<i role=\"button\" class=\"fab fa-youtube fa-2x btn-youtube btn m-1 btn-sm\" data-toggle=\"modal\" data-target=\"#videoModal" . $cnt . "\" title=\"Videos\" data-toggle2=\"tooltip\"></i>";
|
| 212 |
$modal .= "<div id=\"videoModal" . $cnt . "\" class=\"modal\">";
|
212 |
$modal .= "<div id=\"videoModal" . $cnt . "\" class=\"modal\">";
|
| 213 |
$modal .= "<div class=\"modal-dialog\">";
|
213 |
$modal .= "<div class=\"modal-dialog\">";
|
| 214 |
$modal .= "<div class=\"modal-content\">";
|
214 |
$modal .= "<div class=\"modal-content\">";
|
| 215 |
$modal .= "<div class=\"modal-header bg-primary\">";
|
215 |
$modal .= "<div class=\"modal-header bg-primary\">";
|
| 216 |
$modal .= "<p class=\"modal-title mx-auto display-5\">" . (string)$master->{'title'} . " by ";
|
216 |
$modal .= "<p class=\"modal-title mx-auto display-6\">" . (string)$master->{'title'} . " by ";
|
| 217 |
if (count($artists) < 5) {
|
217 |
if (count($artists) < 5) {
|
| 218 |
$modal .= join(", ", $artists);
|
218 |
$modal .= join(", ", $artists);
|
| 219 |
}
|
219 |
}
|
| 220 |
else {
|
220 |
else {
|
| 221 |
$modal .= "Various Artists";
|
221 |
$modal .= "Various Artists";
|
| Line 223... |
Line 223... |
| 223 |
$modal .= "</p>";
|
223 |
$modal .= "</p>";
|
| 224 |
$modal .= "<button type=\"button\" class=\"close\" data-dismiss=\"modal\"><i class=\"fas fa-window-close btn-dismiss\"></i></button>";
|
224 |
$modal .= "<button type=\"button\" class=\"close\" data-dismiss=\"modal\"><i class=\"fas fa-window-close btn-dismiss\"></i></button>";
|
| 225 |
$modal .= "</div>";
|
225 |
$modal .= "</div>";
|
| 226 |
|
226 |
|
| 227 |
$modal .= "<div class=\"modal-body bg-white mx-auto\">";
|
227 |
$modal .= "<div class=\"modal-body bg-white mx-auto\">";
|
| 228 |
$modal .= "<p class=\"display-5\"><i class=\"fab fa-youtube youtube\"></i> Videos</p>";
|
228 |
$modal .= "<p class=\"display-6\"><i class=\"fab fa-youtube youtube\"></i> Videos</p>";
|
| 229 |
$modal .= "<ul class=\"list-group\">";
|
229 |
$modal .= "<ul class=\"list-group\">";
|
| 230 |
|
230 |
|
| 231 |
foreach ($master->{'videos'} as $video) {
|
231 |
foreach ($master->{'videos'} as $video) {
|
| 232 |
$modal .= "<li class=\"list-group-item\"><a href=\"" . $video->uri . "\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"btn btn-info text-left\" role=\"button\">" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]</a></li>";
|
232 |
$modal .= "<li class=\"list-group-item\"><a href=\"" . $video->uri . "\" target=\"_blank\" rel=\"nofollow noreferrer noopener\" class=\"btn btn-info text-left\" role=\"button\">" . $video->title . " [" . gmdate('H:i:s', $video->duration) . "]</a></li>";
|
| 233 |
// bugbug too many videos don't run embedded
|
233 |
// bugbug too many videos don't run embedded
|
| Line 294... |
Line 294... |
| 294 |
|
294 |
|
| 295 |
$modal .= "<div id=\"masterModal" . $cnt . "\" class=\"modal\">";
|
295 |
$modal .= "<div id=\"masterModal" . $cnt . "\" class=\"modal\">";
|
| 296 |
$modal .= "<div class=\"modal-dialog\">";
|
296 |
$modal .= "<div class=\"modal-dialog\">";
|
| 297 |
$modal .= "<div class=\"modal-content\">";
|
297 |
$modal .= "<div class=\"modal-content\">";
|
| 298 |
$modal .= "<div class=\"modal-header bg-primary\">";
|
298 |
$modal .= "<div class=\"modal-header bg-primary\">";
|
| 299 |
$modal .= "<p class=\"modal-title mx-auto display-5\">" . (string)$master->{'title'} . " by ";
|
299 |
$modal .= "<p class=\"modal-title mx-auto display-6\">" . (string)$master->{'title'} . " by ";
|
| 300 |
if (count($artists) < 5) {
|
300 |
if (count($artists) < 5) {
|
| 301 |
$modal .= join(", ", $artists);
|
301 |
$modal .= join(", ", $artists);
|
| 302 |
}
|
302 |
}
|
| 303 |
else {
|
303 |
else {
|
| 304 |
$modal .= "Various Artists";
|
304 |
$modal .= "Various Artists";
|