screen->get_prefix(); // Galley mode is a shortname for when documents and attachments are displayed merged in the same list $is_gallery_mode = get_theme_mod($prefix . '_document_attachments_structure', 'gallery-type-1') == 'gallery-type-2'; $hide_file_name_main = get_theme_mod( $prefix . '_hide_files_name_main', 'yes') == 'yes'; $hide_file_caption_main = get_theme_mod( $prefix . '_hide_files_caption_main', 'yes') == 'yes'; $hide_file_description_main = get_theme_mod( $prefix . '_hide_files_description_main', 'yes') == 'yes'; $hide_download_button = get_theme_mod( $prefix . '_hide_download_button', 'no' ) == 'yes'; global $post; if ( tainacan_has_document() && !$is_gallery_mode ) : ?>

(( !$hide_download_button && tainacan_the_item_document_download_link() != '' ) ? ('' . tainacan_the_item_document_download_link() . '') : ''), 'media_content' => tainacan_get_the_document(), 'media_content_full' => $is_document_type_attachment ? tainacan_get_the_document(0, 'full') : ('
' . tainacan_get_the_document(0, 'full') . '
'), 'media_title' => $is_document_type_attachment ? get_the_title(tainacan_get_the_document_raw()) : '', 'media_description' => $is_document_type_attachment ? get_the_content(tainacan_get_the_document_raw()) : '', 'media_caption' => $is_document_type_attachment ? wp_get_attachment_caption(tainacan_get_the_document_raw()) : '', 'media_type' => tainacan_get_the_document_type(), 'class_slide_metadata' => $class_slide_metadata )); } tainacan_the_media_component( 'tainacan-item-document_id-' . $post->ID, [], $media_items_main, array( 'swiper_main_options' => array( 'navigation' => array( 'nextEl' => '.swiper-navigation-next_' . 'tainacan-item-document_id-' . $post->ID . '-main', 'prevEl' => '.swiper-navigation-prev_' . 'tainacan-item-document_id-' . $post->ID . '-main', ) ) ) ); } else { tainacan_the_document(); if ( !$hide_download_button && function_exists('tainacan_the_item_document_download_link') && tainacan_the_item_document_download_link() != '' ) { echo '' . tainacan_the_item_document_download_link() . ''; } } ?>