PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/familymovies.us/wp-content/themes/PsyPlay2/includes/usercp/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/familymovies.us/wp-content/themes/PsyPlay2/includes/usercp/favorites.php |
<div class="pp-main"> <div class="ppm-head"> <ul class="nav nav-tabs nav-justified"> <li class="active"> <a><i class="fa fa-bookmark mr5"></i><?php _e('Favorites','psythemes'); ?></a></li> <li class=""></li> </ul> </div> <div class="ppm-content"> <?php $types = get_post_types( array( 'public' => true ) ); $args['paged'] = get_query_var( 'page' ) ? get_query_var( 'page' ) : 1; $args = array( 'posts_per_page' => 12,'post_type' => $types,'paged'=> $paged, 'meta_query' => array ( array ( 'key' => '_user_liked', 'value' => $user_ID,'compare' => 'LIKE',)) ); $like_query = new WP_Query( $args ); $temp_query = $wp_query; $wp_query = NULL; $wp_query = $like_query; if ( $like_query->have_posts() ) : ?> <div class="movies-list-wrap mlw-profiles"> <div class="movies-list movies-list-full"> <?php while ( $like_query->have_posts() ) : $like_query->the_post();?> <?php $imagefix = "poster_url"; if (has_post_thumbnail()) { $imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'full'); $imgsrc = $imgsrc[0]; } elseif ($postimages = get_children("post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=0")) { foreach($postimages as $postimage) { $imgsrc = wp_get_attachment_image_src($postimage->ID, 'full'); $imgsrc = $imgsrc[0]; } } elseif (preg_match('/<img [^>]*src=["|\']([^"|\']+)/i', get_the_content(), $match) != FALSE) { $imgsrc = $match[1]; } else { if($img = get_post_custom_values($imagefix)){ $imgsrc = $img[0]; } else { $img = get_template_directory_uri().'/images/noimg.png'; $imgsrc = $img; } } ?> <?php get_template_part('includes/parts/item_f'); ?> <?php endwhile; ?> <?php else : ?> <p class="none"><?php _e( 'You do not have favorites yet.', 'psythemes' ); ?></p> </div> </div> <!--/movies lsit--> <?php pagination($like_query->max_num_pages);?> <?php endif; wp_reset_query(); ?> </div> </div>