mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Update "album of the moment" design / play choices
This commit is contained in:
parent
017c164f62
commit
d58c3e5d73
2 changed files with 25 additions and 17 deletions
|
@ -32,13 +32,24 @@ if ($albums) {
|
||||||
$name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
|
$name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name);
|
||||||
?>
|
?>
|
||||||
<div class="random_album">
|
<div class="random_album">
|
||||||
|
<div class="art_album">
|
||||||
<a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>">
|
<a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>">
|
||||||
<?php if (Art::is_enabled()) { ?>
|
<?php if (Art::is_enabled()) { ?>
|
||||||
<img src="<?php echo $web_path; ?>/image.php?thumb=3&id=<?php echo $album_id; ?>" width="80" height="80" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
<img src="<?php echo $web_path; ?>/image.php?thumb=3&id=<?php echo $album_id; ?>" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?>
|
<?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="play_album">
|
||||||
|
<?php if (AmpConfig::get('directplay')) { ?>
|
||||||
|
<?php echo Ajax::button('?page=stream&action=directplay&playtype=album&album_id=' . $album->id,'play', T_('Play'),'play_album_' . $album->id); ?>
|
||||||
|
<?php if (Stream_Playlist::check_autoplay_append()) { ?>
|
||||||
|
<?php echo Ajax::button('?page=stream&action=directplay&playtype=album&album_id=' . $album->id . '&append=true','play_add', T_('Play last'),'addplay_album_' . $album->id); ?>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
|
<?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add', T_('Add to temporary playlist'),'play_full_' . $album->id); ?>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
if (AmpConfig::get('ratings')) {
|
if (AmpConfig::get('ratings')) {
|
||||||
echo "<div id=\"rating_" . $album->id . "_album\">";
|
echo "<div id=\"rating_" . $album->id . "_album\">";
|
||||||
|
@ -46,7 +57,6 @@ if ($albums) {
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<span class="play_album"><?php echo Ajax::button('?action=basket&type=album&id=' . $album->id,'add', T_('Play Album'),'play_full_' . $album->id); ?></span>
|
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1201,11 +1201,7 @@ div.box.box_current_configuration {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .random_album div {
|
#random_selection .art_album img {
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
#random_selection .random_album img {
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
-webkit-border-radius: 2px;
|
-webkit-border-radius: 2px;
|
||||||
-moz-border-radius: 2px;
|
-moz-border-radius: 2px;
|
||||||
|
@ -1213,25 +1209,27 @@ div.box.box_current_configuration {
|
||||||
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
-webkit-box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
||||||
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
-moz-box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
||||||
box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
box-shadow: 0 0 10px rgba(0,0,0,0.75);
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .random_album img:hover {
|
#random_selection .art_album img:hover {
|
||||||
border: 2px solid #ff9d00;
|
border: 2px solid #ff9d00;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .random_album .star-rating {
|
#random_selection .random_album .star-rating {
|
||||||
float: left;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .random_album .play_album {
|
#random_selection .random_album .play_album {
|
||||||
float: left;
|
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .random_album .play_album a img {
|
#random_selection .random_album .play_album img {
|
||||||
border: 0px;
|
border: 0;
|
||||||
|
box-shadow: 0 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#random_selection .box-bottom {
|
#random_selection .box-bottom {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue