Welcome, ' . $blog->name . '!
'; } // Create function to allow a client to get 20 posts per page function get_dashboard_posts($client, $post_start, $limit, $post_type) { if ($post_type != NULL) { $dashboard_posts = $client->getDashboardPosts(array('limit' => $limit, 'offset' => $post_start, 'reblog_info' => true, 'type' => $post_type)); } else { $dashboard_posts = $client->getDashboardPosts(array('limit' => $limit, 'offset' => $post_start, 'reblog_info' => true)); } $card_columns = '' . $post->caption . '
'; } } if ($post->type == 'text') { if (not_blank($post->title)) { $card_columns .= '' . $post->title . '
'; } if (not_blank($post->body)) { $card_columns .= '' . $post->body . '
'; } } if ($post->type == 'answer') { $card_columns .= '' . $post->asking_name . ': ' . $post->question . '
'; $card_columns .= ''; $card_columns .= $post->answer; } if ($post->type == 'quote') { $card_columns .= '
' . $post->summary; $card_columns .= ''; } if ($post->type == 'chat') { for ($i = 0; $i <= count($post->dialogue); $i++) { $card_columns .= '
' . $post->reblog->comment . '
' . (not_blank($post->dialogue[$i]->name) ? ('' . $post->dialogue[$i]->name . ': ') : "") . $post->dialogue[$i]->phrase . ''; } } /* 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 .= ' '; } else { // Unlike this post $card_columns .= '