Hides gtm option for now.

This commit is contained in:
mateuswetah 2021-07-13 19:28:10 -03:00
parent 9a41192595
commit 4917843134
3 changed files with 21 additions and 5 deletions

View File

@ -99,6 +99,22 @@ if ( !function_exists('tainacan_blocksy_custom_post_types_archive_options') ) {
if ( is_array($items_extra_options) ) { if ( is_array($items_extra_options) ) {
$options['options'][$post_type . '_section_options']['inner-options'] = $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;
} }
} }

View File

@ -39,10 +39,10 @@ $options = [
'title' => __( 'Metadata to the left', 'tainacan-blocksy' ), 'title' => __( 'Metadata to the left', 'tainacan-blocksy' ),
], ],
'type-gtm' => [ // 'type-gtm' => [
'src' => tainacan_blocksy_image_picker_url( 'type-gtm.svg' ), // 'src' => tainacan_blocksy_image_picker_url( 'type-gtm.svg' ),
'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ), // 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ),
], // ],
], ],
'sync' => blocksy_sync_single_post_container([ 'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix 'prefix' => $prefix

View File

@ -31,7 +31,7 @@ do_action( 'tainacan-blocksy-single-item-top' );
do_action( 'tainacan-blocksy-single-item-after-title' ); 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') { if ($page_structure_type === 'type-gtm') {