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 = get_theme_mod( $prefix . '_hide_files_name', 'no') == 'yes'; $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'; $disable_gallery_lightbox = get_theme_mod( $prefix . '_disable_gallery_lightbox', 'no') == 'yes'; global $post; if ( function_exists('tainacan_the_media_component') && ( !empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) { ?>