-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
58 lines (48 loc) · 1.12 KB
/
index.php
File metadata and controls
58 lines (48 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<? // Get the artist information from iTunes
require('bootstrap.php');
// Load the classes
require('classes.php');
if(isset($_GET['i'])){
$artist = $_GET['i'];
$artist_lookup = str_replace(" ", "+", $artist);
} else {
echo 'no artist';
exit;
}
// Load artist info
$i = new lastfm($artist_lookup);
$details = $i->get_artist();
// Load artist music
$t = new itunes($artist_lookup);
// $tracks = $t->get_music($artist_lookup);
// Load the header
include('structure/header.php');
?>
<div class="row">
<div id="artist_image" class="span4">
<? echo $i->get_artist_image('mega');?>
<? social_share();?>
</div>
<div id="artist_music" class="span8">
<div class="music_container well">
<? $t->get_music();?>
</div>
</div>
</div>
<div class="row">
<div id="artist_bio" class="span4">
<h2>About <?=$artist;?></h2>
<p><?= strip_tags($details->bio->content);?></p>
</div>
<div id="artist_similar" class="span4">
<? $i->get_similar_artists();?>
</div>
<div id="artist_members" class="span4">
<? $i->get_band_members();?>
</div>
</div>
<? //
// print_r($details);
// Load the footer
include( 'structure/footer.php');
?>