Skip to content

Commit

Permalink
Update metadata names for RSVP templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Jan 26, 2025
1 parent e597306 commit 0a1eb85
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/blocks/rsvp-v2/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '1b2fa879959531e01563');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '60364ee630288db57bf2');
6 changes: 3 additions & 3 deletions build/blocks/rsvp-v2/index.js

Large diffs are not rendered by default.

53 changes: 51 additions & 2 deletions src/blocks/rsvp-v2/templates/attending.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const ATTENDING = [
layout: { type: 'flex', justifyContent: 'center' },
metadata: {
name: _x(
'RSVP Buttons',
'Section title in editor',
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
Expand All @@ -38,6 +38,13 @@ const ATTENDING = [
),
tagName: 'button',
className: 'gatherpress--open-modal',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -91,6 +98,13 @@ const ATTENDING = [
'RSVP status indicator',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Status',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -133,6 +147,13 @@ const ATTENDING = [
'RSVP modal header',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Heading',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -142,6 +163,13 @@ const ATTENDING = [
'To set or change your attending status, simply click the <strong>Not Attending</strong> button below.',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Info',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
['gatherpress/rsvp-guest-count-input', {}],
Expand All @@ -164,6 +192,13 @@ const ATTENDING = [
},
},
},
metadata: {
name: _x(
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
},
[
[
Expand All @@ -177,6 +212,13 @@ const ATTENDING = [
tagName: 'button',
className:
'gatherpress--update-rsvp',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -190,6 +232,13 @@ const ATTENDING = [
tagName: 'button',
className:
'is-style-outline gatherpress--close-modal',
metadata: {
name: _x(
'Close Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down
81 changes: 79 additions & 2 deletions src/blocks/rsvp-v2/templates/no-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const NO_STATUS = [
layout: { type: 'flex', justifyContent: 'center' },
metadata: {
name: _x(
'RSVP Buttons',
'Section title in editor',
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
Expand All @@ -37,6 +37,13 @@ const NO_STATUS = [
),
tagName: 'button',
className: 'gatherpress--open-modal',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -76,6 +83,13 @@ const NO_STATUS = [
'RSVP modal header',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Heading',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -85,6 +99,13 @@ const NO_STATUS = [
'To set or change your attending status, simply click the <strong>Attending</strong> button below.',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Info',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
['gatherpress/rsvp-anonymous-checkbox', {}],
Expand All @@ -106,6 +127,13 @@ const NO_STATUS = [
},
},
},
metadata: {
name: _x(
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
},
[
[
Expand All @@ -119,6 +147,13 @@ const NO_STATUS = [
tagName: 'button',
className:
'gatherpress--update-rsvp',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -132,6 +167,13 @@ const NO_STATUS = [
tagName: 'button',
className:
'is-style-outline gatherpress--close-modal',
metadata: {
name: _x(
'Close Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -175,6 +217,13 @@ const NO_STATUS = [
'Login modal header',
'gatherpress'
),
metadata: {
name: _x(
'Login Heading',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -189,6 +238,13 @@ const NO_STATUS = [
getFromGlobal('urls.loginUrl')
),
className: 'gatherpress--has-login-url',
metadata: {
name: _x(
'Login Info',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -204,6 +260,13 @@ const NO_STATUS = [
),
className:
'gatherpress--has-registration-url',
metadata: {
name: _x(
'Register Info',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -224,6 +287,13 @@ const NO_STATUS = [
},
},
},
metadata: {
name: _x(
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
},
[
[
Expand All @@ -237,6 +307,13 @@ const NO_STATUS = [
tagName: 'button',
className:
'gatherpress--close-modal',
metadata: {
name: _x(
'Close Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down
53 changes: 51 additions & 2 deletions src/blocks/rsvp-v2/templates/not-attending.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const NOT_ATTENDING = [
layout: { type: 'flex', justifyContent: 'center' },
metadata: {
name: _x(
'RSVP Buttons',
'Section title in editor',
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
Expand All @@ -38,6 +38,13 @@ const NOT_ATTENDING = [
),
tagName: 'button',
className: 'gatherpress--open-modal',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -81,6 +88,13 @@ const NOT_ATTENDING = [
'RSVP status indicator',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Status',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down Expand Up @@ -120,6 +134,13 @@ const NOT_ATTENDING = [
'RSVP modal header',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Heading',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -129,6 +150,13 @@ const NOT_ATTENDING = [
'To set or change your attending status, simply click the <strong>Attending</strong> button below.',
'gatherpress'
),
metadata: {
name: _x(
'RSVP Info',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
['gatherpress/rsvp-anonymous-checkbox', {}],
Expand All @@ -150,6 +178,13 @@ const NOT_ATTENDING = [
},
},
},
metadata: {
name: _x(
'Call to Action',
'Block name displayed in the editor',
'gatherpress'
),
},
},
[
[
Expand All @@ -163,6 +198,13 @@ const NOT_ATTENDING = [
tagName: 'button',
className:
'gatherpress--update-rsvp',
metadata: {
name: _x(
'RSVP Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
[
Expand All @@ -176,6 +218,13 @@ const NOT_ATTENDING = [
tagName: 'button',
className:
'is-style-outline gatherpress--close-modal',
metadata: {
name: _x(
'Close Button',
'Block name displayed in the editor',
'gatherpress'
),
},
},
],
],
Expand Down
Loading

0 comments on commit 0a1eb85

Please sign in to comment.