?>
" data-toggle="tooltip" title="<?php 
    print $top_album->getName();
    ?>
"><?php 
    print truncateTextByChars($top_album->getName());
    ?>
</a><br>
				<small>by <a href="<?php 
    print $top_album->getMainArtist()->getUrl();
    ?>
" data-toggle="tooltip" title="<?php 
    print $top_album->getMainArtist();
    ?>
"><?php 
    print truncateTextByChars($top_album->getMainArtist());
    ?>
</a></small><br>
			</p>
			<div class="row">
				<div class="col-md-12">
					<div class="image-cropper">
						<img src="<?php 
    print $top_album->getArtwork();
    ?>
" width="100%" class="centered">
					</div>
				</div>
			</div>
		</p>
		<?php 
    ?>
" data-toggle="tooltip" title="<?php 
    print $top_song->getTitle();
    ?>
"><?php 
    print truncateTextByChars($top_song->getTitle());
    ?>
</a><br>
				<small>by <a href="<?php 
    print $top_song->getMainArtist()->getUrl();
    ?>
" data-toggle="tooltip" title="<?php 
    print $top_song->getMainArtist();
    ?>
"><?php 
    print truncateTextByChars($top_song->getMainArtist());
    ?>
</a></small><br>
			</p>
			<div class="row">
				<div class="col-md-12">
					<div class="image-cropper">
						<img src="<?php 
    print $top_song->getMainAlbum()->getArtwork();
    ?>
" width="100%" class="centered">
					</div>
				</div>
			</div>
			</p>	
			
    print (int) ($top_artist->getAverage() * 10);
    ?>
" aria-valuemin="0" aria-valuemax="100" style="width: <?php 
    print (int) ($top_artist->getAverage() * 10);
    ?>
%"></div>
			</div>
			<p class="padded">
				<a href="<?php 
    print $top_artist->getUrl();
    ?>
" data-toggle="tooltip" title="<?php 
    print $top_artist;
    ?>
"><?php 
    print truncateTextByChars($top_artist);
    ?>
</a><br>
				<br>
			</p>
			<div class="row">
				<div class="col-md-12">
					<div class="image-cropper">
						<img src="./img/artists/<?php 
    print $top_artist->getPicture();
    ?>
" width="100%" class="centered">
					</div>
				</div>
			</div>
		</p>
Exemple #4
0
					</div>

				</div>

				<div class="col-md-4">
					<div class="nephritis">
						<p class="padded">
							<h3 class="padded text-center"><span class="glyphicon glyphicon-headphones"></span> Top Albums</h3>
							<hr>
							<?php 
$c = 1;
foreach ($top_albums as $album) {
    print '<p class="padded">';
    print $c . '. <a href="' . $album->getUrl() . '" data-toggle="tooltip" title="' . $album . '">';
    print truncateTextByChars($album) . '</a></p><h6 class="padded"> by <a href="' . $album->getMainArtist()->getUrl() . '" >' . $album->getMainArtist() . '</a></h6>';
    print '<div class="image-cropper"><img src="' . $album->getArtwork() . '" width="100%" class="centered"></div>';
    print '<hr>';
    $c++;
}
?>
						</p>
					</div>

				</div>

			</div>
		</section>
		<?php 
require_once "sections/js.php";
?>
			<?php 
foreach ($song->getAlbums() as $album) {
    ?>
 		
			 		<img src="<?php 
    print $album->getArtwork("large");
    ?>
" width="150 px">
	                <p class="lead padded" style="display:inline-block; vertical-align:middle">
						<?php 
    print $album->getReleaseDate()->format("Y");
    ?>
<br>
						<a href="<?php 
    print $album->getUrl();
    ?>
" data-toggle="tooltip" title="<?php 
    print $album;
    ?>
"><?php 
    print truncateTextByChars($album);
    ?>
</a>
	                </p>
	                <hr style="margin:0px;">
	        <?php 
}
?>
 
</div>
<hr>