Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $album = get_post_meta($post->ID, "album", false);
- $album_list = get_post_meta($post->ID, "album_list", false);
- if ('$album') {
- echo "<div class='albums'><h2 class='artist-widget'>Albums <span style='float: right; margin-top: 7px;'><img src='http://fameordie.com/wp-content/themes/fod-3.2/images/equalizer.gif' width='25' height='16' /></span></h2>";
- echo '<ul>';
- foreach ($album_list as $album_list) {
- list($key, $value) = explode(',',$album_list);
- $indexed_album_list[$key] = $value;
- }
- foreach ( $album as $each_album) {
- list($key,$album) = explode(',',$each_album);
- echo '<li>';
- echo "<div class='cover'><img src='http://fameordie.com/wp-content/artists/covers/$album.png' />";
- echo '</div>';
- echo '<h3>'.$album.'</h3>';
- if ($album_list = $indexed_album_list[$key]) {
- echo apply_filters( 'the_content', '[DDET See Track List]'.$album_list.'[/DDET]');
- } else {
- echo ' ';
- }
- echo '</li>';
- }
- echo '</ul>';
- echo '</div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement