ID, $format, null);
$valid_pf = in_array( $format, json_decode( BENJAMIN_POST_FORMATS ), true );
if (!$format || $format == 'standard' || !$value || !$valid_pf) {
return false;
}
$markup = null;
switch ($format) {
case 'aside':
$markup = $value;
break;
case 'audio':
$background = has_post_thumbnail() ? get_the_post_thumbnail_url($post, 'full') : '';
$markup .= benjamin_get_the_audio_markup($value);
break;
case 'gallery':
$markup = do_shortcode('[gallery ids="' . $value . '"]');
break;
case 'image':
$markup = '';
$markup .= '';
$markup .= '';
break;
case 'quote':
$markup = benjamin_get_quote_markup($value);
break;
case 'status':
$markup = benjamin_get_status_markup($value);
break;
case 'video':
$markup = benjamin_get_the_video_markup($value);
break;
}
if (!$markup) {
return '';
}
$output = '
'; $output .= ''; return $output; } /** * The markup for the chat logs - this isnt used yet as it requires some work */ function benjamin_get_chat_log($chat = null) { if (!$chat || empty($chat) || empty($chat['messages'])) { return; } $messages = $chat['messages']; $style = 'graphical'; $output = ''; $output .= '' . $quote['body'] . '
'; if ($quote['author']) { $output .= ' ' . $quote['author'] . ''; } $output .= '
' . $status . '
'; return $output; }