ADD: added stuff to audio page, but things are going badly OwO

This commit is contained in:
TheShinyMelon 2025-03-09 15:32:54 +01:00
parent e68b9f90e8
commit 7865d33a2e
9 changed files with 15 additions and 0 deletions

View File

@ -49,14 +49,23 @@ function get_audio($pdo, $search='%', $sort='aud_date', $sdir='DESC') {
$aud_list = '<ul class="aud_list">'; $aud_list = '<ul class="aud_list">';
foreach ($data as $block) { foreach ($data as $block) {
$aud_list .= '<li>'; $aud_list .= '<li>';
$aud_list .= '<div class="music_player">';
$aud_list .= '<img src="'.get_album_cover($block["aud_title"]).'">';
$aud_list .= '<audio controls>'; $aud_list .= '<audio controls>';
$aud_list .= '<source src=\''.$block['aud_path'].'\' type="audio/mpeg">'; $aud_list .= '<source src=\''.$block['aud_path'].'\' type="audio/mpeg">';
$aud_list .= 'There would be an awesome music player here if you weren\'t such a weirdo...'; $aud_list .= 'There would be an awesome music player here if you weren\'t such a weirdo...';
$aud_list .= '</audio>'; $aud_list .= '</audio>';
$aud_list .= '</div>';
$aud_list .= '<h4>'.$block['aud_title']."<br></h4>"; $aud_list .= '<h4>'.$block['aud_title']."<br></h4>";
$aud_list .= '<p class="list_text">'.$block['aud_desc']."</p>"; $aud_list .= '<p class="list_text">'.$block['aud_desc']."</p>";
$aud_list .= '<p><a href="'.$block['aud_path'].'">download</a></p>'; // TODO: mask dl link with helper class
$aud_list .= '</li>'; $aud_list .= '</li>';
} }
$aud_list .= '</ul>'; $aud_list .= '</ul>';
echo $aud_list; echo $aud_list;
} }
function get_album_cover($title) {
// TODO: put actual code here, maybe steal from this lib https://github.com/wapmorgan/Mp3Info/blob/master/src/Mp3Info.php
return "nopathyet";
}

0
app/db_utilities.php Normal file → Executable file
View File

0
project_files/cursor_blinking.ase Normal file → Executable file
View File

0
project_files/shell_prompt.ase Normal file → Executable file
View File

BIN
public/resources/aud/bbtb.mp3 Normal file → Executable file

Binary file not shown.

BIN
public/resources/aud/chronostasis.mp3 Normal file → Executable file

Binary file not shown.

0
public/resources/img/cursor_blinking.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

0
public/resources/img/shell_prompt.gif Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 200 B

View File

@ -182,3 +182,9 @@ footer {
form > label { form > label {
margin-left: 1rem; margin-left: 1rem;
} }
.music_player {
display: flex;
flex-direction: column;
width: 30%;
}