Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<div class='wpfp-span'>";
- if (!empty($user)):
- if (!wpfp_is_user_favlist_public($user)):
- echo "$user's Favorite Posts.";
- else:
- echo "$user's list is not public.";
- endif;
- endif;
- if ($wpfp_before):
- echo "<p>".$wpfp_before."</p>";
- endif;
- echo "<ul>";
- if ($favorite_post_ids):
- $favorite_post_ids = array_reverse($favorite_post_ids);
- //----Table Starts----
- echo "<table border=0 frame=void cellspacing=30 width=430>";
- echo "<tr>";
- foreach ($favorite_post_ids as $post_id) {
- $p = get_post($post_id);
- echo "<td width=50 align=center >";
- echo "<div class='wpfp-box'>";
- echo "<div class='wpfp-thumb'>";
- echo get_the_post_thumbnail ($post_id, array(200,200) );
- echo "</div>";
- echo "<div class='wpfp-meta'>";
- echo "<div class='wpfp-title'>";
- echo "<a href='".get_permalink($post_id)." ' title='". $p->post_title ."'>" . $p->post_title . "</a> ";
- echo "</div>";
- echo "</div>";
- echo "</div>";
- echo "<div class='wpfp-remove' >";
- echo wpfp_remove_favorite_link($post_id);
- echo "</div>";
- echo "</td>";
- }
- echo "</tr>";
- echo "</table>";
- else:
- echo "<li>";
- echo $wpfp_options['favorites_empty'];
- echo "</li>";
- endif;
- echo "</ul>";
- wpfp_clear_list_link();
- echo "</div>";
- wpfp_cookie_warning();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement