Initial commit
This commit is contained in:
commit
65e0da7e11
1397 changed files with 596542 additions and 0 deletions
19
site/snippets/track.php
Normal file
19
site/snippets/track.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php if ($track->audioFile()->toFile() || $track->audioLink()->isNotEmpty()): ?>
|
||||
<?php
|
||||
|
||||
$minutes = '';
|
||||
$seconds = '';
|
||||
if ($track->audioFile()->toFile()) {
|
||||
$file = $track->audioFile()->toFile();
|
||||
$minutes = $file->durationMinutes();
|
||||
$seconds = $file->durationSeconds();
|
||||
}
|
||||
|
||||
?>
|
||||
<?php $key = $track->audioFile()->toFile()->trackIndex() ?>
|
||||
<div class="track amplitude-play-pause amplitude-paused link-hover black" amplitude-song-index="<?= $key ?>">
|
||||
<div><?= $track->title()->html() ?></div>
|
||||
<div><?= $track->duration()->html() ?><span class="amplitude-duration-minutes-disable" amplitude-song-index="<?= $key ?>"></span><span class="amplitude-duration-seconds-disable" amplitude-song-index="<?= $key ?>"></span></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue