Example #1
0
								
										<iframe src="http://player.vimeo.com/video/<?php echo get_post_meta($post->ID, 'cebo_vimeo', $single = true); ?>" width="720" height="394"></iframe>
									
									</div>
								
								<?php } elseif(count($attachments) > 1) { ?>
								
								
									<div class="flexslider">
									  <ul class="slides">
			
										<?php if(sp_get_image(1)) : ?>   
										<?php $i = 0; while($i <= 4) : ?>
									    <?php if(sp_get_image($i)) : ?>  
									    	
												<li> <img src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo sp_get_image($i) ?>&amp;h=394&amp;w=720&amp;zc=1" alt="<?php the_title(); ?>"/></li>
										
										<?php else : break; endif; ?>
							            <?php $i++; ?>
										<?php endwhile; ?>
							            <?php endif; ?>	 
									 	
									 	
									 	</ul>
									
									</div>
								
								<? } else { ?>
								
									<a href="<?php the_permalink(); ?>"><img class="lazy" src="<?php bloginfo('template_url'); ?>/images/loading.gif" data-original="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo $imgsrc[0]; ?>&amp;h=394&amp;w=720&amp;zc=1" alt="<?php the_title(); ?>"></a>
									
Example #2
0
         function(data) {
           list = $.parseJSON(data);
           $.each(data["places"], function(key, val){
             var docRoot = '<?php 
bloginfo('template_url');
?>
';
             var coords = val["coords"].split(",", 2);
             var latlon = [coords[0], coords[1]];
             var goid = val["cater"];
             //var imgs = (val["images"] !== "undefined") ? '' : buildPlaceCarousel(val["images"]);
             var imgs = (val["images"] !== undefined) ? buildPlaceCarousel(val["images"]) : '';
            
             placeContainer = '<div class="placeData" id="placeData' + i + '"><p class="streetview">See it up close. Drag your streeview!</p><a href="#" class="closeData">X</a><div class="qualinfo"><a href="' + val["permalink"] + '"><img src="' + val["photo"] + '"/></a><div class="marco"><h4><span>' + val["name"] + '</span></h4><p class="smaller" id="' + val["cater"] + '">' + val["cater"] + '</p><p class="desc">' + val["desc"] + '</p></div></div><div class="specialinfo"><a href="' + val["permalink"] + '">More Info</a><a class="fac" href="http://www.facebook.com/sharer.php?s= 100&amp;p[title]=' + val["name"] + '&amp;p[url]=' + val["permalink"] + '&amp;p[images][0]=' + val["photo"] + '&amp;p[summary]=' + val["desc"] + '" target="_blank">Share It</a><a href="http://twitter.com/share?text=' + val["name"] + '&url=' + val["permalink"] + '"target="_blank">Tweet It</a><?php 
$perm = get_permalink();
$img = sp_get_image();
$regex = '/(?<!href=["\'])http:\\/\\//';
$regio = '/(?<!href=["\'])http:\\/\\//';
$perm = preg_replace($regio, '', $perm);
$img = preg_replace($regex, '', $img);
?>
<a class="pin" href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2F<?php 
echo $perm;
?>
&media=http%3A%2F%2F<?php 
echo $img;
?>
&description=' + val["desc"] + ' on <?php 
bloginfo('url');
?>
" target="_blank">Pin It</a></div>';
Example #3
0
        $imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "Full");
        if (get_post_meta($post->ID, 'furu_youtube', $single = true)) {
            $url = get_post_meta($post->ID, 'furu_youtube', $single = true);
            $url = $url ? str_replace("watch?", "", $url) : "";
            $url = $url ? preg_replace($replaceWords, "v/", $url) : "";
        }
        $taxonomy = strip_tags(get_the_term_list($post->ID, 'loctype'));
        $results["places"][$key]["name"] = get_the_title();
        $results["places"][$key]["photo"] = $imgsrc[0];
        $results["places"][$key]["desc"] = get_the_excerpt();
        $results["places"][$key]["cater"] = $taxonomy;
        $results["places"][$key]["coords"] = get_post_meta($post->ID, 'cebo_coordinates', $single = true);
        $results["places"][$key]["permalink"] = get_post_meta($post->ID, 'cebo_outbound', $single = true);
        $results["places"][$key]["address"] = get_post_meta($post->ID, 'cebo_address', $single = true);
        $results["places"][$key]["phone"] = get_post_meta($post->ID, 'cebo_phone', $single = true);
        $results["places"][$key]["distance"] = get_post_meta($post->ID, 'cebo_distance', $single = true);
        $results["places"][$key]["video"] = $url != null ? '<object style="height: 390px; width: 640px"><param name="movie" value="' . $url . '"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="' . $url . '" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></object>' : null;
        $results["places"][$key]["deal"] = get_post_meta($post->ID, 'furu_hotdeal', $single = true);
        while ($img <= 20) {
            if (sp_get_image($img)) {
                $results["places"][$key]["images"][$img]["src"] = sp_get_image($img);
                $img++;
            } else {
                break;
            }
        }
        $key++;
    }
}
$returnJSON = json_encode($results);
echo $returnJSON;
Example #4
0
]]></content:encoded>
	<?php 
        }
    }
    ?>
		<wfw:commentRss><?php 
    echo esc_url(get_post_comments_feed_link(null, 'rss2'));
    ?>
</wfw:commentRss>
		<slash:comments><?php 
    echo get_comments_number();
    ?>
</slash:comments>
		<media:group xmlns:media="http://search.yahoo.com/mrss">
		<media:content xmlns:media="http://search.yahoo.com/mrss" url="<?php 
    echo sp_get_image();
    ?>
" medium="image" fileSize="" isDefault="true" type="image/jpeg" width="960" height="720"/>
		<media:title xmlns:media="http://search.yahoo.com/mrss"><?php 
    the_title();
    ?>
</media:title>
		</media:group>
<?php 
    rss_enclosure();
    ?>
	<?php 
    do_action('rss2_item');
    ?>
	</item>
	<?php