ID,'meta_style_gallery',true)=='facebook'){ $session_key= get_option('fb-session-key'); $session_sec= get_option('fb-session-secret'); if(($session_key!='')&&($session_sec!='')){ $defaults = array('hideHead'=> true); $album_content = colabs_facebook_fetch_album_content(get_post_meta($post->ID,'facebook_gallery_id',true),$defaults); echo $album_content['content']; } }elseif(get_post_meta($post->ID,'meta_style_gallery',true)=='photograph'){ query_posts(array('post_type' => 'photograph', 'paged' => $paged )); while (have_posts()) : the_post(); get_template_part('content','photograph'); endwhile; if ( $wp_query->max_num_pages > 1 ) : ?> ID,'meta_style_gallery',true)=='pinterest'){ $user=get_option('colabs_username_pinterest'); $limit=get_option('colabs_piccount_pinterest'); $board=get_option('colabs_board_pinterest'); if(empty($limit))$limit=20; if(!empty($board))$feed_url = 'http://pinterest.com/'.$user.'/'.$board.'/rss'; else $feed_url = 'http://pinterest.com/'.$user.'/feed.rss'; $latest_pins = colabs_pinterest_get_rss_feed( $user, $limit, $feed_url ); if(!empty( $latest_pins ) ){$ii=0; foreach ( $latest_pins as $item ): $rss_pin_description = $item->get_description(); preg_match('/href="([^"]*)"/', $rss_pin_description, $link); $href = $link[1]; unset($link); preg_match('/src="([^"]*)"/', $rss_pin_description, $image); $src = $image[1]; unset($image); $pin_caption = strip_tags( $rss_pin_description ); $date = $item->get_date('j F Y | g:i a'); echo ' '; endforeach; } }elseif(get_post_meta($post->ID,'meta_style_gallery',true)=='picasa'){ $feed_url= "http://picasaweb.google.com/data/feed/base/user/".get_option('colabs_username_picasa')."?alt=rss&kind=photo&hl=id&imgmax=1600&max-results=".get_option('colabs_piccount_picasa')."&start-index=1"; $latest_pins = colabs_pinterest_get_rss_feed( $user, $limit, $feed_url ); if(!empty( $latest_pins ) ){$ii=0; foreach ( $latest_pins as $item ): $rss_pin_description = $item->get_description(); preg_match('/href="([^"]*)"/', $rss_pin_description, $link); $href = $link[1]; unset($link); preg_match('/src="([^"]*)"/', $rss_pin_description, $image); $src = $image[1]; unset($image); $pin_caption = strip_tags( $rss_pin_description ); $date = $item->get_date('j F Y | g:i a'); echo ' '; endforeach; } }else{ query_posts( array('post_type' => 'post', 'post__not_in' =>get_option('sticky_posts'), 'paged' => $paged ) ); if(have_posts()): while(have_posts()): the_post(); get_template_part('content','photograph'); endwhile; endif; if ( $wp_query->max_num_pages > 1 ) : ?>