/** * Get all photos **/

$page_bg_gallery_id = get_option('pp_home_cat'); $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $page_bg_gallery_id, 'order' => 'ASC', 'orderby' => 'menu_order', ); $bg_photo_arr = get_posts( $args ); get_header(); ?>

?>

$photo) { $image_url = $photo->guid; $image_url = wp_get_attachment_image_src( $photo->ID, 'gallery' ); $full_image_url = wp_get_attachment_image_src( $photo->ID, 'full' ); If (strpos($full_image_url[0],”1-397x600.png”) !== false) { $image_index = 1; } If (strpos($full_image_url[0],”2-397x600.png”) !== false) { $image_index = 2; } If (strpos($full_image_url[0],”3-397x600.png”) !== false) { $image_index = 3; } If (strpos($full_image_url[0],”4-397x600.png”) !== false) { $image_index = 4; } ?>

" style="width:px;height:px;" alt=""/>

post_title) OR !empty($photo->post_content)) { ?>

if(!empty($pp_gallery_title) && !empty($photo- >post_title)) { ?>

post_title?>



if(!empty($pp_blog_display_social)): ?>


if(!empty($pp_homepage_music_m4a) && !empty($pp_homepage_music_mp3) && ! empty($pp_homepage_music_ogg)) { ?>