type == 'photo') {
return '';
}
if ($post->type == 'video') {
return '';
}
return '';
}
// A post's type-specific body.
function post_content($post) {
switch ($post->type) {
case 'photo':
return not_blank($post->caption) ? '
' . $post->caption . '
' : ''; case 'text': $out = ''; if (not_blank($post->title)) { $out .= '' . $post->body . '
'; } return $out; case 'answer': return '' . $post->asking_name . ': ' . $post->question . '
' . $post->summary . ''; case 'chat': $out = ''; for ($i = 0; $i < count($post->dialogue); $i++) { $out .= '
' . $post->reblog->comment . '
' . (not_blank($post->dialogue[$i]->name) ? ('' . $post->dialogue[$i]->name . ': ') : "") . $post->dialogue[$i]->phrase . ''; } return $out; } return ''; } // The card's opening and header rows: the posting blog, where it was reblogged // from, and the root blog, with follow buttons for blogs not yet followed. function post_header($client, $post) { $out = '