Search results for: ' . $_GET['query'] . '
'; } // Create function to allow a client to get 20 posts per page function get_tagged_posts($client, $before_date, $limit) { $tag = $_GET['query']; $tagged_posts = $client->getTaggedPosts($tag, $options=null); $card_columns = '';
foreach ($tagged_posts as $post) {
$card_columns .= '
';
}
$card_columns .= '';
$card_columns .= '
';
$card_columns .= '' . $post->blog_name . '';
if ($post->followed != true) {
// Send user to action.php to follow a new blog
$query_string = 'action=follow&blog_name=' . urlencode($post->blog_name) . '&callback=' . urlencode('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
$card_columns .= '';
} else {
$card_columns .= '
';
}
$card_columns .= post_media($post);
$card_columns .= '';
$card_columns .= post_content($post);
/* This seems to just post a duplicate of a QA answer
if (isset($post->reblog->comment) && $post->reblog->comment !== '') {
$card_columns .= '
' . $post->reblog->comment . '
'; } */ // $card_columns .= 'Visit Post →'; $card_columns .= ''; $card_columns .= '