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
59
function upb_list_bookmarks( $delete_link = true, $delete_text = 'Delete' ) {
	
	if(is_user_logged_in()) {
		$display = '<ul class="upb-bookmarks-list" style="margin-left:0px;">';
		
		
		
			$bookmarks = upb_get_user_meta(upb_get_user_id());
			if($bookmarks) {
				foreach( $bookmarks as $bookmark) {
					
						
				
					$display .= '<li class="upb_bookmark bookmark-' . $bookmark . '" style="float: left; width: 200px; list-style-type: none; margin-top: 0px; margin-bottom:22px; margin-right: 25px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 35px; padding-left: 0px; background-repeat: no-repeat;" >';
					
					$display .= '<div class="sjena" style="display:inline-block; width:200px; height:200px; clear:both; margin-right:25px; margin-bottom:-33px;">';
					
					
					$display .= '<div class="item_lists_thumbnail" >';
					
					$display .= '<span class="thumbs for-image" >';
					
					
					
					$display .= '<a href="' . get_permalink($bookmark) . '">';
											
						$display .= '<img style="width:200px; height:150px;" src="' . get_post_meta($bookmark, '_post_thumbnail', true) . '" alt=""  />';
						
						$display .= '<span class="title">';
						$display .= '<p>';						
					    $display .=  limit_text(get_the_title($bookmark), 25);	
						$display .= '<br />';		
						$display .= '<span class="human_date">';
						$display .= human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago';	
						$display .= '</span>';   
					    $display .= '</p>';			
						$display .= '</span>';
						$display .= '</a>';													
						$display .= '</span>';						
						$display .= '<div class="item_lists_meta" style="background:#FFF; height:190px;"></div>';
						$display .= '<div id="bookmark_minus"></div>';
							if($delete_link) {
							$display .= '<a style="position:absolute; margin-top:-27px; margin-left:24px; font-family: Terminal Dosis; font-weight: 500; text-transform:uppercase; font-size:10px;" href="#" class="upb_del_bookmark upb_del_bookmark_' . $bookmark . '" rel="' . $bookmark . '" title="' . __('Remove this Bookmark') . '">' . 'remove' . '</a>' ;
						}
						$display .= '</div>';						
			            $display .= '</div>';				
					$display .= '</li>';
				}
			} else {
				$display .= '<li class="bookmark-link no-bookmarks">You do not have any favorited looks :(</li>';
			}
		$display .= '</ul>';
	}
	else {
		$display .= 'You must be logged in to view your bookmarks.';
	}
	
	return $display;
}