if (have_posts()) { while (have_posts()) { the_post(); $eventType = ""; $eventTitle = ""; $eventContent = ""; $eventUrl = ""; $eventTimeStamp = sprintf(__('%s ago', 's-report'), human_time_diff(get_post_time('U'), current_time('timestamp'))); // connect, purchase, link, calendar, like, favorite, bookmark, watch, listen, add, write, checkin $eventIconStatus = ""; $postCategories = get_the_category(); $eventCategory = $postCategories[0]->slug; $postTags = get_the_tags(); $tags = array_values($postTags); $eventTag = $tags[0]->slug; $content = tokenText(get_the_content()); // Event Recipes include "event/codepen.php"; include "event/delicious.php"; include "event/dribbble.php"; include "event/foursquare.php"; include "event/github.php"; include "event/instagram.php"; include "event/instapaper.php"; include "event/lastfm.php"; include "event/soundcloud.php"; include "event/twitter.php"; include "event/vimeo.php"; include "event/youtube.php"; // Event Template eventTemplateSidebar($eventType, $eventTitle, $eventContent, $eventUrl, $eventTimeStamp, $eventIconStatus, $eventCategory, $eventTag);
function socialcrumbs_the_content($content) { $tokens = tokenText($content); if (has_category('instagram')) { if (has_tag('share-photo')) { // Data [Caption, Url, SourceUrl, CreatedAt, EmbedCodee] $content = $tokens["SourceUrl"]; } elseif (has_tag('share-video')) { // Data [Caption, URL, VideoSourceURL, ImageThumbnailURL, CreatedAt, EmbedCode] $content = $tokens["ImageThumbnailURL"]; } elseif (has_tag('like-photo')) { // Data [Caption, Url, SourceUrl, Username, CreatedAt, EmbedCode] $content = $tokens["SourceUrl"]; } elseif (has_tag('like-video')) { // Data [Caption, URL, VideoSourceURL, ImageThumbnailURL, Username, CreatedAt, EmbedCode] $content = $tokens["ImageThumbnailURL"]; } } return $content; }