From 30f6d2f6f27cc318f7771ad2f2caabcf23e060a2 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 4 Oct 2022 17:50:25 -0300 Subject: [PATCH] Correctly checks for affix column option. --- tainacan-blocksy/tainacan/item-single-page.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tainacan-blocksy/tainacan/item-single-page.php b/tainacan-blocksy/tainacan/item-single-page.php index afd51c9..76a547c 100644 --- a/tainacan-blocksy/tainacan/item-single-page.php +++ b/tainacan-blocksy/tainacan/item-single-page.php @@ -12,6 +12,7 @@ $prefix = blocksy_manager()->screen->get_prefix(); $page_structure_type = get_theme_mod( $prefix . '_page_structure_type', 'type-dam'); $template_columns_style = ''; $display_items_related_to_this = get_theme_mod( $prefix . '_display_items_related_to_this', 'no' ) === 'yes'; +$column_documents_attachments_affix = get_theme_mod( $prefix . '_document_attachments_affix', 'no') === 'yes'; if ($page_structure_type == 'type-gm' || $page_structure_type == 'type-mg') { $column_documents_attachments_width = 60; @@ -25,8 +26,6 @@ if ($page_structure_type == 'type-gm' || $page_structure_type == 'type-mg') { } else { $template_columns_style = 'grid-template-columns: ' . $column_metadata_width . '% calc(' . $column_documents_attachments_width . '% - 48px);'; } - - $column_documents_attachments_affix = get_theme_mod( $prefix . '_document_attachments_affix', 'no') === 'yes'; } do_action( 'tainacan-blocksy-single-item-top' );