mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 01:39:28 +02:00
Add google/wikipedia/lastfm search icons
This commit is contained in:
parent
2fcf50bc6a
commit
e2b3b1ed51
11 changed files with 88 additions and 9 deletions
BIN
images/icon_google.png
Normal file
BIN
images/icon_google.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 751 B |
BIN
images/icon_lastfm.png
Normal file
BIN
images/icon_lastfm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 833 B |
BIN
images/icon_wikipedia.png
Normal file
BIN
images/icon_wikipedia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 863 B |
|
@ -30,6 +30,12 @@ if ($album->disk) {
|
|||
$title .= ' - ' . $album->f_artist_link;
|
||||
?>
|
||||
<?php UI::show_box_top($title,'info-box'); ?>
|
||||
<div class="item_right_info">
|
||||
<div class="external_links">
|
||||
<a href="http://www.google.com/search?q=%22<?php echo rawurlencode($album->f_artist); ?>%22+%22<?php echo rawurlencode($album->f_name); ?>%22" target="_blank"><?php echo UI::get_icon('google', T_('Search on Google ...')); ?></a>
|
||||
<a href="http://en.wikipedia.org/wiki/Special:Search?search=%22<?php echo rawurlencode($album->f_name); ?>%22&go=Go" target="_blank"><?php echo UI::get_icon('wikipedia', T_('Search on Wikipedia ...')); ?></a>
|
||||
<a href="http://www.last.fm/search?q=%22<?php echo rawurlencode($album->f_artist); ?>%22+%22<?php echo rawurlencode($album->f_name); ?>%22&type=album" target="_blank"><?php echo UI::get_icon('lastfm', T_('Search on Last.fm ...')); ?></a>
|
||||
</div>
|
||||
<div class="album_art">
|
||||
<?php
|
||||
if ($album->name != T_('Unknown (Orphaned)')) {
|
||||
|
@ -42,6 +48,7 @@ $title .= ' - ' . $album->f_artist_link;
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (AmpConfig::get('ratings')) { ?>
|
||||
<div style="display:table-cell;" id="rating_<?php echo $album->id; ?>_album">
|
||||
<?php Rating::show($album->id,'album'); ?>
|
||||
|
|
|
@ -32,9 +32,16 @@ UI::show_box_top($artist->f_name, 'info-box');
|
|||
if (AmpConfig::get('lastfm_api_key')) {
|
||||
echo Ajax::observe('window','load', Ajax::action('?page=index&action=artist_info&artist='.$artist->id, 'artist_info'));
|
||||
?>
|
||||
<div class="item_right_info">
|
||||
<div class="external_links">
|
||||
<a href="http://www.google.com/search?q=%22<?php echo rawurlencode($artist->f_name); ?>%22" target="_blank"><?php echo UI::get_icon('google', T_('Search on Google ...')); ?></a>
|
||||
<a href="http://en.wikipedia.org/wiki/Special:Search?search=%22<?php echo rawurlencode($artist->f_name); ?>%22&go=Go" target="_blank"><?php echo UI::get_icon('wikipedia', T_('Search on Wikipedia ...')); ?></a>
|
||||
<a href="http://www.last.fm/search?q=%22<?php echo rawurlencode($artist->f_name); ?>%22&type=artist" target="_blank"><?php echo UI::get_icon('lastfm', T_('Search on Last.fm ...')); ?></a>
|
||||
</div>
|
||||
<div id="artist_biography">
|
||||
<?php echo T_('Loading...'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -545,11 +545,24 @@ a.button{padding:1px 3px;}
|
|||
#information_actions { margin-left:5px; font-size:0.7em; float:left; }
|
||||
#information_actions h3 { font-size:1.2em; margin:0.2em; }
|
||||
|
||||
#artist_biography {
|
||||
.item_right_info {
|
||||
float: right;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
.external_links {
|
||||
text-align: right;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.external_links:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.external_links a {
|
||||
margin: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
#artist_summary {
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
|
|
@ -847,11 +847,24 @@ span.nodata {
|
|||
color:#09c;
|
||||
}
|
||||
|
||||
#artist_biography {
|
||||
.item_right_info {
|
||||
float: right;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
.external_links {
|
||||
text-align: right;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.external_links:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.external_links a {
|
||||
margin: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
#artist_summary {
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
|
|
@ -558,11 +558,24 @@ input[type=checkbox] { border:0;background:none; }
|
|||
#information_actions { }
|
||||
#information_actions h3 { color:#8b3e38; font-size:1.2em; margin:0.2em; }
|
||||
|
||||
#artist_biography {
|
||||
.item_right_info {
|
||||
float: right;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
.external_links {
|
||||
text-align: right;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.external_links:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.external_links a {
|
||||
margin: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
#artist_summary {
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
|
|
@ -712,11 +712,24 @@ right: expression(-this.parentNode.offsetWidth%2+"px");
|
|||
margin: 0px 0px 20px 1px;
|
||||
}
|
||||
|
||||
#artist_biography {
|
||||
.item_right_info {
|
||||
float: right;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
.external_links {
|
||||
text-align: right;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.external_links:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.external_links a {
|
||||
margin: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
#artist_summary {
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
|
|
@ -1286,11 +1286,24 @@ span.fatalerror {
|
|||
vertical-align:bottom;
|
||||
}
|
||||
|
||||
#artist_biography {
|
||||
.item_right_info {
|
||||
float: right;
|
||||
max-width: 60%;
|
||||
}
|
||||
|
||||
.external_links {
|
||||
text-align: right;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.external_links:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.external_links a {
|
||||
margin: 0px 5px 0px 0px
|
||||
}
|
||||
|
||||
#artist_summary {
|
||||
margin-right: 150px;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue