' : '">' );
if( $thumbnail == true ) {
// If the post has a feature image, show it
if( has_post_thumbnail() ) {
the_post_thumbnail( $thumbsize );
// Else if the post has a mime type that starts with "image/" then show the image directly.
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
echo wp_get_attachment_image( $post->ID, $thumbsize );
}
}
?>
post_type == 'post') {
$categories = get_the_category();
$type = $categories[0]->name;
} else {
static $types = array("page" => "Página", "quote" => "Cita");
$type = $types[get_post_type()];
}
echo !empty($type) ? $type . ', el ' : 'El '; the_modified_time('d \d\e F \d\e Y');
?>