public function attachmentContent()
    {
        $output = [];

        if (wp_attachment_is_image()) {
            $output[] = sprintf(
                '<div class="attachment-image">%s</div>',
                wp_get_attachment_image(
                    get_the_ID(),
                    apply_filters('novusopress_view_attachment_image_size', 'medium')
                )
            );
        } else {
            $output[] = sprintf(
                '<div class="attachment-link"><a href="%s">%s</a></div>',
                wp_get_attachment_url(get_the_ID()),
                get_the_title()
            );
        }

        if (has_excerpt()) {
            $output[] = sprintf('<div class="entry-caption">%s</div>', get_the_excerpt());
        }

        return apply_filters('novusopress_view_attachment_content_output', implode('', $output));
    }