Hides gtm option for now.
This commit is contained in:
parent
9a41192595
commit
4917843134
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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') {
|
||||
|
||||
|
|
Loading…
Reference in New Issue