Skip to content

Commit

Permalink
feat: add "More" panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyazdani committed Aug 19, 2024
1 parent 7af19be commit 858d5e0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
36 changes: 35 additions & 1 deletion assets/js/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const { registerBlockType } = wp.blocks;
const { useBlockProps, InspectorControls } = wp.blockEditor;
const { useSelect } = wp.data;
const { Disabled, PanelBody, TextControl, ToggleControl } = wp.components;
const { Disabled, ExternalLink, PanelBody, TextControl, ToggleControl } = wp.components;
const { decodeEntities } = wp.htmlEntities;
const { SVG, Rect } = wp.primitives;
const { __, sprintf } = wp.i18n;
Expand Down Expand Up @@ -270,6 +270,40 @@
placeholder: __( 'e.g. Home', 'seo-ready' ),
value: siteTitleOverride || '',
} )
),
el(
PanelBody,
{
initialOpen: false,
title: sprintf(
/* translators: %s: Emoji. */
__( '%s More', 'seo-ready' ),
'⚡'
),
},
el(
'p',
{},
el( 'p', {}, el( 'strong', {}, __( 'Liked the idea behind this plugin?', 'seo-ready' ) ) ),
el( Fragment, {}, __( 'Share your experience by leaving this plugin ', 'seo-ready' ) ),
el(
ExternalLink,
{ href: 'https://wordpress.org/support/plugin/seo-ready/reviews/?filter=5#new-post' },
/* translators: %s: Emoji. */
sprintf( __( '5 stars %s if you like it.', 'seo-ready' ), '⭐⭐⭐⭐⭐' )
)
),
el(
'p',
{},
__( 'You can also make a small ', 'seo-ready' ),
el(
ExternalLink,
{ href: 'https://www.buymeacoffee.com/mahdiyazdani' },
__( 'donation', 'seo-ready' )
),
__( ' so I can continue maintaining and evolving my projects and new ones.', 'seo-ready' )
)
)
)
);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/minified/breadcrumbs.js

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

0 comments on commit 858d5e0

Please sign in to comment.