diff options
author | chai <chaifix@163.com> | 2022-03-25 11:03:09 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-25 11:03:09 +0800 |
commit | 4e92033683d250c06d3e9f39caf675adc4b339f2 (patch) | |
tree | 58dbf3fb8b53ff92be25786b174608e18102858b /template.php | |
parent | 166cd8c0866e6069e6405ec9c452188b18a293d6 (diff) |
+album page
Diffstat (limited to 'template.php')
-rw-r--r-- | template.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/template.php b/template.php index eb38b54..55724ba 100644 --- a/template.php +++ b/template.php @@ -14,6 +14,17 @@ function html_music($music) { echo '</div>' ; } +function html_music_wide($music, $index=0) { + echo '<div class="music_container_wide">'; + echo '<font class="music_index"> ' . $index .'</font>'; + echo '<div class="music_image_root" onmouseenter="showPlayButton(this)" onmouseleave="hidePlayButton(this)"> '; + echo ' <img class="cover_img" src="' .$music->cover. '"> '; + echo ' <img class="play_img" audiosrc="' . $music->path .'" src="./res/play_cover.png" onclick="playMusic(this)" onmouseenter="showPlayButtonSelf(this)" onmouseleave="hidePlayButtonSelf(this)" style="display: none; cursor: auto;"> '; + echo '</div>'; + echo '<a href="booth.php?id=' . $music->uid .'" class="music_title">' . $music->title . '</a>'; + echo '</div> '; +} + function html_tag($tag) { echo '<a href="search.php?page=0&type=tag&value=' . $tag->uid. '" class="tag_link">' . $tag->name . '</a>'; } @@ -69,5 +80,14 @@ function html_paginate_link_current($url, $pagei) { echo '<a class="current" href="' . $url . '&page=' . $pagei . '">' . ($pagei + 1) . '</a>'; } +function html_album($album) { + echo '<div class="album_container">'; + echo ' <div class="album_image_root"> '; + echo ' <img class="cover_img" src="'. $album->cover .'"> '; + echo ' </div>'; + echo ' <a href="album.php?id='. $album->uid .'" class="album_title">' . $album->title . '</a>'; + echo '</div>'; +} + ?>
\ No newline at end of file |