| Line 489... |
Line 489... |
| 489 |
$xhmod->add_attribute("class", "display-6");
|
489 |
$xhmod->add_attribute("class", "display-6");
|
| 490 |
$xhmod->tag('p', "Videos");
|
490 |
$xhmod->tag('p', "Videos");
|
| 491 |
$xhmod->add_attribute("class", "list-group");
|
491 |
$xhmod->add_attribute("class", "list-group");
|
| 492 |
$xhmod->tag('ul');
|
492 |
$xhmod->tag('ul');
|
| 493 |
|
493 |
|
| - |
|
494 |
$cnt2 = 0;
|
| 494 |
foreach ($master->{'videos'} as $video) {
|
495 |
foreach ($master->{'videos'} as $video) {
|
| 495 |
$xhmod->add_attribute("class", "list-group-item");
|
496 |
$xhmod->add_attribute("class", "list-group-item");
|
| 496 |
$xhmod->tag('li');
|
497 |
$xhmod->tag('li');
|
| 497 |
$xhmod->add_attribute("class", "row");
|
498 |
$xhmod->add_attribute("class", "row");
|
| 498 |
$xhmod->tag('div');
|
499 |
$xhmod->tag('div');
|
| Line 507... |
Line 508... |
| 507 |
$xhmod->close(); // svg
|
508 |
$xhmod->close(); // svg
|
| 508 |
$xhmod->close(); // div
|
509 |
$xhmod->close(); // div
|
| 509 |
$xhmod->add_attribute("class", "col");
|
510 |
$xhmod->add_attribute("class", "col");
|
| 510 |
$xhmod->tag('div');
|
511 |
$xhmod->tag('div');
|
| 511 |
$xhmod->add_attribute("href", $video->uri);
|
512 |
$xhmod->add_attribute("href", $video->uri);
|
| 512 |
$xhmod->add_attribute("id", "discogsYTRedirect" . $cnt);
|
513 |
$xhmod->add_attribute("id", "discogsYTRedirect" . $cnt . ++$cnt2);
|
| 513 |
$xhmod->add_attribute("target", "_blank");
|
514 |
$xhmod->add_attribute("target", "_blank");
|
| 514 |
$xhmod->add_attribute("rel", "noreferrer noopener");
|
515 |
$xhmod->add_attribute("rel", "noreferrer noopener");
|
| 515 |
$xhmod->add_attribute("class", "btn btn-light btn-link text-left");
|
516 |
$xhmod->add_attribute("class", "btn btn-light btn-link text-left");
|
| 516 |
$xhmod->add_attribute("role", "button");
|
517 |
$xhmod->add_attribute("role", "button");
|
| 517 |
$xhmod->tag('a', htmlentities($video->title) . " [" . gmdate('H:i:s', $video->duration) . "]");
|
518 |
$xhmod->tag('a', htmlentities($video->title) . " [" . gmdate('H:i:s', $video->duration) . "]");
|
| Line 531... |
Line 532... |
| 531 |
$xhmod->tag('div');
|
532 |
$xhmod->tag('div');
|
| 532 |
$xhmod->add_attribute("class", "font-weight-lighter small");
|
533 |
$xhmod->add_attribute("class", "font-weight-lighter small");
|
| 533 |
$xhmod->tag('span');
|
534 |
$xhmod->tag('span');
|
| 534 |
$xhmod->tag('span', "Data provided by ");
|
535 |
$xhmod->tag('span', "Data provided by ");
|
| 535 |
|
536 |
|
| 536 |
$xhmod->add_attribute("id", "discogsRedirect2" . $cnt);
|
537 |
$xhmod->add_attribute("id", "discogsRedirectTwo" . $cnt);
|
| 537 |
$xhmod->add_attribute("href", (string)$master->{'uri'});
|
538 |
$xhmod->add_attribute("href", (string)$master->{'uri'});
|
| 538 |
$xhmod->add_attribute("target", "_blank");
|
539 |
$xhmod->add_attribute("target", "_blank");
|
| 539 |
$xhmod->add_attribute("rel", "noreferrer noopener");
|
540 |
$xhmod->add_attribute("rel", "noreferrer noopener");
|
| 540 |
$xhmod->tag('a', "Discogs");
|
541 |
$xhmod->tag('a', "Discogs");
|
| 541 |
$xhmod->close(); // span
|
542 |
$xhmod->close(); // span
|