From 4917843134816837826cc4f2a20eaa77921efa4d Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 13 Jul 2021 19:28:10 -0300 Subject: [PATCH] Hides gtm option for now. --- tainacan-blocksy/inc/customizer.php | 16 ++++++++++++++++ .../tainacan-single-structure.php | 8 ++++---- tainacan-blocksy/tainacan/item-single-page.php | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/tainacan-blocksy/inc/customizer.php b/tainacan-blocksy/inc/customizer.php index e469402..f08e03e 100644 --- a/tainacan-blocksy/inc/customizer.php +++ b/tainacan-blocksy/inc/customizer.php @@ -99,6 +99,22 @@ if ( !function_exists('tainacan_blocksy_custom_post_types_archive_options') ) { if ( is_array($items_extra_options) ) { $options['options'][$post_type . '_section_options']['inner-options'] = $items_extra_options; } + + // We also do some changes on the Collections + } else if ( $post_type == 'tainacan-collection' ) { + + // Change the section title in the customizer + $options['title'] = __('Tainacan collections list', 'tainacan-blocksy'); + + return $options; + + // And taxonomies + } else if ( $post_type == 'tainacan-taxonomy' ) { + + // Change the section title in the customizer + $options['title'] = __('Tainacan taxonomies list', 'tainacan-blocksy'); + + return $options; } } diff --git a/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php b/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php index bfe3b91..7fddcc7 100644 --- a/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php +++ b/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php @@ -39,10 +39,10 @@ $options = [ 'title' => __( 'Metadata to the left', 'tainacan-blocksy' ), ], - 'type-gtm' => [ - 'src' => tainacan_blocksy_image_picker_url( 'type-gtm.svg' ), - 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ), - ], + // 'type-gtm' => [ + // 'src' => tainacan_blocksy_image_picker_url( 'type-gtm.svg' ), + // 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ), + // ], ], 'sync' => blocksy_sync_single_post_container([ 'prefix' => $prefix diff --git a/tainacan-blocksy/tainacan/item-single-page.php b/tainacan-blocksy/tainacan/item-single-page.php index a977d91..e11732a 100644 --- a/tainacan-blocksy/tainacan/item-single-page.php +++ b/tainacan-blocksy/tainacan/item-single-page.php @@ -31,7 +31,7 @@ do_action( 'tainacan-blocksy-single-item-top' ); do_action( 'tainacan-blocksy-single-item-after-title' ); -add_action( 'blocksy:single:top', function() use ( $page_structure_type, $prefix ) { +add_action( 'blocksy:hero:before', function() use ( $page_structure_type, $prefix ) { if ($page_structure_type === 'type-gtm') {