Skip to content

Commit

Permalink
Comment out Add to Calendar code. Will rework this into a new block w…
Browse files Browse the repository at this point in the history
…ith template.
  • Loading branch information
mauteri committed Jan 5, 2025
1 parent 1536137 commit db7a1be
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion build/variations/add-to-calendar/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-blocks', 'wp-i18n', 'wp-primitives'), 'version' => 'ba5ac4ef32527b65cc60');
<?php return array('dependencies' => array('wp-blocks', 'wp-i18n'), 'version' => '37389dc4747e8e7e0953');
2 changes: 1 addition & 1 deletion build/variations/add-to-calendar/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 36 additions & 36 deletions src/variations/add-to-calendar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,40 +93,40 @@ const INNER_BLOCKS = SERVICES.map((serviceData) => [
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/
*/
registerBlockVariation('core/buttons', {
title: __('Add to calendar (BUTTONS)', 'gatherpress'),
description: __(
'Allows a user to add an event to their preferred calendar.',
'gatherpress'
),
category: 'gatherpress',
icon: calendar,
name: `pseudo-${NAME}`,
// isActive: [ 'namespace', 'title' ], // This is not used/disabled by purpose.
innerBlocks: INNER_BLOCKS,
example: {
innerBlocks: SERVICES.map(({ text }) => ({
name: 'core/button',
attributes: { text },
})),
},
});
// registerBlockVariation('core/buttons', {
// title: __('Add to calendar (BUTTONS)', 'gatherpress'),
// description: __(
// 'Allows a user to add an event to their preferred calendar.',
// 'gatherpress'
// ),
// category: 'gatherpress',
// icon: calendar,
// name: `pseudo-${NAME}`,
// // isActive: [ 'namespace', 'title' ], // This is not used/disabled by purpose.
// innerBlocks: INNER_BLOCKS,
// example: {
// innerBlocks: SERVICES.map(({ text }) => ({
// name: 'core/button',
// attributes: { text },
// })),
// },
// });

registerBlockVariation('core/details', {
title: __('Add to calendar (DETAILS)', 'gatherpress'),
description: __(
'Allows a user to add an event to their preferred calendar.',
'gatherpress'
),
category: 'gatherpress',
icon: calendar,
name: `pseudo-details-${NAME}`,
// isActive: [ 'namespace', 'title' ], // This is not used/disabled by purpose.
attributes: {
summary: __('Add to calendar', 'gatherpress'),
},
innerBlocks: [['core/buttons', {}, INNER_BLOCKS]],
example: {
innerBlocks: [['core/buttons', {}, INNER_BLOCKS]],
},
});
// registerBlockVariation('core/details', {
// title: __('Add to calendar (DETAILS)', 'gatherpress'),
// description: __(
// 'Allows a user to add an event to their preferred calendar.',
// 'gatherpress'
// ),
// category: 'gatherpress',
// icon: calendar,
// name: `pseudo-details-${NAME}`,
// // isActive: [ 'namespace', 'title' ], // This is not used/disabled by purpose.
// attributes: {
// summary: __('Add to calendar', 'gatherpress'),
// },
// innerBlocks: [['core/buttons', {}, INNER_BLOCKS]],
// example: {
// innerBlocks: [['core/buttons', {}, INNER_BLOCKS]],
// },
// });

0 comments on commit db7a1be

Please sign in to comment.