Advertisement
Guest User

Untitled

a guest
Feb 10th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php
  2. $album = get_post_meta($post->ID, "album", false);
  3. $album_list = get_post_meta($post->ID, "album_list", false);
  4. if ('$album') {
  5. 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>";
  6. echo '<ul>';
  7. foreach ($album_list as $album_list) {
  8. list($key, $value) = explode(',',$album_list);
  9. $indexed_album_list[$key] = $value;
  10. }
  11. foreach ( $album as $each_album) {
  12. list($key,$album) = explode(',',$each_album);
  13. echo '<li>';
  14. echo "<div class='cover'><img src='http://fameordie.com/wp-content/artists/covers/$album.png' />";
  15. echo '</div>';
  16. echo '<h3>'.$album.'</h3>';
  17. if ($album_list = $indexed_album_list[$key]) {
  18. echo apply_filters( 'the_content', '[DDET See Track List]'.$album_list.'[/DDET]');
  19. } else {
  20. echo '&nbsp';
  21. }
  22. echo '</li>';
  23. }
  24. echo '</ul>';
  25. echo '</div>';
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement