summaryrefslogtreecommitdiff
path: root/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'template.php')
-rw-r--r--template.php20
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