class=""
- aria-label=""
+ aria-label=""
>
diff --git a/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js b/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js
index 2e20fcf4a..bc2aa95c3 100644
--- a/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js
+++ b/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js
@@ -17,7 +17,7 @@ export const ParagraphEditor = (attributes) => {
selectorClass = componentClass,
blockClass,
additionalClass,
- placeholder = __('Add content', 'eightshift-frontend-libs'),
+ placeholder = __('Add content', '%g_textdomain%'),
onSplit,
mergeBlocks,
diff --git a/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js b/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js
index 535f00923..308945130 100644
--- a/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js
+++ b/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js
@@ -54,7 +54,7 @@ export const ParagraphOptions = (attributes) => {
[getAttrKey('paragraphSize', attributes, manifest)]: `${value}:${fontSizes[value]?.weights[0] ?? 'bold'}`,
})}
additionalSelectClasses='es-w-16'
- placeholder={__('Size', 'eightshift-frontend-libs')}
+ placeholder={__('Size', '%g_textdomain%')}
noBottomSpacing
simpleValue
noSearch
@@ -67,7 +67,7 @@ export const ParagraphOptions = (attributes) => {
options={fontSizes[fontSize]?.weightOptions}
onChange={(value) => setAttributes({ [getAttrKey('paragraphSize', attributes, manifest)]: `${fontSize}:${value}` })}
additionalSelectClasses='es-w-22 es-flex-shrink-0 es-flex-grow-1'
- placeholder={__('Weight', 'eightshift-frontend-libs')}
+ placeholder={__('Weight', '%g_textdomain%')}
noBottomSpacing
simpleValue
noSearch
diff --git a/blocks/init/src/Blocks/components/paragraph/paragraph.php b/blocks/init/src/Blocks/components/paragraph/paragraph.php
index f05a58aa0..229a112a7 100644
--- a/blocks/init/src/Blocks/components/paragraph/paragraph.php
+++ b/blocks/init/src/Blocks/components/paragraph/paragraph.php
@@ -3,39 +3,39 @@
/**
* Template for the Paragraph Component.
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
-use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$paragraphUse = Components::checkAttr('paragraphUse', $attributes, $manifest);
+$paragraphUse = Helpers::checkAttr('paragraphUse', $attributes, $manifest);
if (!$paragraphUse) {
return;
}
-$unique = Components::getUnique();
+$unique = Helpers::getUnique();
$componentClass = $manifest['componentClass'] ?? '';
$additionalClass = $attributes['additionalClass'] ?? '';
$blockClass = $attributes['blockClass'] ?? '';
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
-$paragraphContent = Components::checkAttr('paragraphContent', $attributes, $manifest);
+$paragraphContent = Helpers::checkAttr('paragraphContent', $attributes, $manifest);
if (!$paragraphContent) {
return;
}
-$paragraphClass = Components::classnames([
- Components::selector($componentClass, $componentClass),
- Components::selector($blockClass, $blockClass, $selectorClass),
- Components::selector($additionalClass, $additionalClass),
+$paragraphClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($additionalClass, $additionalClass),
]);
?>
-
+
{
{...props('paragraph', attributes, {
options: getOptions(attributes, manifest),
})}
- label={__('Quote text', 'eightshift-frontend-libs')}
+ label={__('Quote text', '%g_textdomain%')}
noExpandButton
noUseToggle
/>
@@ -27,7 +27,7 @@ export const QuoteOptions = (attributes) => {
{...props('author', attributes, {
options: getOptions(attributes, manifest),
})}
- label={__('Author', 'eightshift-frontend-libs')}
+ label={__('Author', '%g_textdomain%')}
noExpandButton
/>
diff --git a/blocks/init/src/Blocks/components/quote/quote.php b/blocks/init/src/Blocks/components/quote/quote.php
index d33d0e7f4..8c9b91565 100644
--- a/blocks/init/src/Blocks/components/quote/quote.php
+++ b/blocks/init/src/Blocks/components/quote/quote.php
@@ -3,14 +3,14 @@
/**
* Template for the Quote Component.
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
-use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$quoteUse = Components::checkAttr('quoteUse', $attributes, $manifest);
+$quoteUse = Helpers::checkAttr('quoteUse', $attributes, $manifest);
if (!$quoteUse) {
return;
}
@@ -20,29 +20,29 @@
$blockClass = $attributes['blockClass'] ?? '';
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
-$quoteClass = Components::classnames([
- Components::selector($componentClass, $componentClass),
- Components::selector($blockClass, $blockClass, $selectorClass),
- Components::selector($additionalClass, $additionalClass),
+$quoteClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($additionalClass, $additionalClass),
]);
-$quoteContentClass = Components::selector($componentClass, $componentClass, 'content');
-$quoteSeparatorClass = Components::selector($componentClass, $componentClass, 'separator');
-$quoteCaptionClass = Components::selector($componentClass, $componentClass, 'caption');
+$quoteContentClass = Helpers::selector($componentClass, $componentClass, 'content');
+$quoteSeparatorClass = Helpers::selector($componentClass, $componentClass, 'separator');
+$quoteCaptionClass = Helpers::selector($componentClass, $componentClass, 'caption');
-$quoteAuthorUse = Components::checkAttr('quoteAuthorUse', $attributes, $manifest);
+$quoteAuthorUse = Helpers::checkAttr('quoteAuthorUse', $attributes, $manifest);
?>
$componentClass
]));
?>
$componentClass
]));
?>
@@ -53,7 +53,7 @@
$componentClass
]));
?>
diff --git a/blocks/init/src/Blocks/components/scroll-to-top/scroll-to-top.php b/blocks/init/src/Blocks/components/scroll-to-top/scroll-to-top.php
index 8b07d14e2..aea6ebe04 100644
--- a/blocks/init/src/Blocks/components/scroll-to-top/scroll-to-top.php
+++ b/blocks/init/src/Blocks/components/scroll-to-top/scroll-to-top.php
@@ -3,14 +3,14 @@
/**
* Template for the Scroll To Top Component.
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
-use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$scrollToTopUse = Components::checkAttr('scrollToTopUse', $attributes, $manifest);
+$scrollToTopUse = Helpers::checkAttr('scrollToTopUse', $attributes, $manifest);
if (!$scrollToTopUse) {
return;
}
@@ -21,11 +21,11 @@
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
$componentJsClass = $manifest['componentJsClass'] ?? '';
-$scrollToTopClass = Components::classnames([
- Components::selector($componentClass, $componentClass),
- Components::selector($blockClass, $blockClass, $selectorClass),
- Components::selector($additionalClass, $additionalClass),
- Components::selector($componentJsClass, $componentJsClass),
+$scrollToTopClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($additionalClass, $additionalClass),
+ Helpers::selector($componentJsClass, $componentJsClass),
]);
?>
diff --git a/blocks/init/src/Blocks/components/search-bar/search-bar.php b/blocks/init/src/Blocks/components/search-bar/search-bar.php
index 553d3ec3c..a80114753 100644
--- a/blocks/init/src/Blocks/components/search-bar/search-bar.php
+++ b/blocks/init/src/Blocks/components/search-bar/search-bar.php
@@ -3,14 +3,14 @@
/**
* Search Bar form
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
-use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$searchBarUse = Components::checkAttr('searchBarUse', $attributes, $manifest);
+$searchBarUse = Helpers::checkAttr('searchBarUse', $attributes, $manifest);
if (!$searchBarUse) {
return;
}
@@ -20,27 +20,27 @@
$blockClass = $attributes['blockClass'] ?? '';
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
-$searchBarMethod = Components::checkAttr('searchBarMethod', $attributes, $manifest);
-$searchBarPostType = Components::checkAttr('searchBarPostType', $attributes, $manifest);
-$searchBarAction = Components::checkAttr('searchBarAction', $attributes, $manifest);
-$searchBarPlaceholder = Components::checkAttr('searchBarPlaceholder', $attributes, $manifest);
-$searchBarId = Components::checkAttr('searchBarId', $attributes, $manifest);
-$searchBarLabel = Components::checkAttr('searchBarLabel', $attributes, $manifest);
-$searchBarLabelShow = Components::checkAttr('searchBarLabelShow', $attributes, $manifest);
+$searchBarMethod = Helpers::checkAttr('searchBarMethod', $attributes, $manifest);
+$searchBarPostType = Helpers::checkAttr('searchBarPostType', $attributes, $manifest);
+$searchBarAction = Helpers::checkAttr('searchBarAction', $attributes, $manifest);
+$searchBarPlaceholder = Helpers::checkAttr('searchBarPlaceholder', $attributes, $manifest);
+$searchBarId = Helpers::checkAttr('searchBarId', $attributes, $manifest);
+$searchBarLabel = Helpers::checkAttr('searchBarLabel', $attributes, $manifest);
+$searchBarLabelShow = Helpers::checkAttr('searchBarLabelShow', $attributes, $manifest);
-$searchClass = Components::classnames([
- Components::selector($componentClass, $componentClass),
- Components::selector($blockClass, $blockClass, $selectorClass),
- Components::selector($additionalClass, $additionalClass),
+$searchClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($additionalClass, $additionalClass),
]);
-$inputClass = Components::classnames([
- Components::selector($componentClass, $componentClass, 'input'),
+$inputClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass, 'input'),
]);
-$labelClass = Components::classnames([
- Components::selector($componentClass, $componentClass, 'label'),
- Components::selector(!$searchBarLabelShow, $componentClass, 'label', 'hidden'),
+$labelClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass, 'label'),
+ Helpers::selector(!$searchBarLabelShow, $componentClass, 'label', 'hidden'),
]);
?>
diff --git a/blocks/init/src/Blocks/components/skip-link/skip-link.php b/blocks/init/src/Blocks/components/skip-link/skip-link.php
index fd6b8a229..545bd7135 100644
--- a/blocks/init/src/Blocks/components/skip-link/skip-link.php
+++ b/blocks/init/src/Blocks/components/skip-link/skip-link.php
@@ -3,14 +3,14 @@
/**
* Template for the Skip Link component view.
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
-use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$skipLinkUse = Components::checkAttr('skipLinkUse', $attributes, $manifest);
+$skipLinkUse = Helpers::checkAttr('skipLinkUse', $attributes, $manifest);
if (!$skipLinkUse) {
return;
}
@@ -20,17 +20,17 @@
$blockClass = $attributes['blockClass'] ?? '';
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
-$skipLinkClasses = Components::classnames([
- Components::selector($componentClass, $componentClass),
- Components::selector($blockClass, $blockClass, $selectorClass),
- Components::selector($additionalClass, $additionalClass),
+$skipLinkClasses = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($additionalClass, $additionalClass),
]);
-$skipLinkTarget = Components::checkAttr('skipLinkTarget', $attributes, $manifest);
+$skipLinkTarget = Helpers::checkAttr('skipLinkTarget', $attributes, $manifest);
?>
-
+
diff --git a/blocks/init/src/Blocks/components/social-networks/components/social-networks-options.js b/blocks/init/src/Blocks/components/social-networks/components/social-networks-options.js
index b916167c6..a48f2f7a1 100644
--- a/blocks/init/src/Blocks/components/social-networks/components/social-networks-options.js
+++ b/blocks/init/src/Blocks/components/social-networks/components/social-networks-options.js
@@ -29,25 +29,25 @@ export const SocialNetworksOptions = (attributes) => {
const modeOptions = [
{
- label: __('Link to social networks', 'eightshift-frontend-libs'),
+ label: __('Link to social networks', '%g_textdomain%'),
icon: icons.link,
value: false,
},
{
- label: __('Share to social networks', 'eightshift-frontend-libs'),
+ label: __('Share to social networks', '%g_textdomain%'),
icon: icons.share,
value: true,
}
];
- const pickerSectionTitle = socialNetworksShareMode ? __('Share targets', 'eightshift-frontend-libs') : __('Social networks', 'eightshift-frontend-libs');
+ const pickerSectionTitle = socialNetworksShareMode ? __('Share targets', '%g_textdomain%') : __('Social networks', '%g_textdomain%');
return (
{!hideModeSelector &&
setAttributes({
diff --git a/blocks/init/src/Blocks/components/social-networks/social-networks.php b/blocks/init/src/Blocks/components/social-networks/social-networks.php
index b8af5a092..54713725a 100644
--- a/blocks/init/src/Blocks/components/social-networks/social-networks.php
+++ b/blocks/init/src/Blocks/components/social-networks/social-networks.php
@@ -3,21 +3,21 @@
/**
* Social networks component.
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
- use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
+ use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
-$manifest = Components::getManifestByDir(__DIR__);
+$manifest = Helpers::getManifestByDir(__DIR__);
-$socialNetworksUse = Components::checkAttr('socialNetworksUse', $attributes, $manifest);
+$socialNetworksUse = Helpers::checkAttr('socialNetworksUse', $attributes, $manifest);
if (!$socialNetworksUse) {
return;
}
-$socialNetworksNetworks = Components::checkAttr('socialNetworksNetworks', $attributes, $manifest);
-$socialNetworksShareMode = Components::checkAttr('socialNetworksShareMode', $attributes, $manifest);
+$socialNetworksNetworks = Helpers::checkAttr('socialNetworksNetworks', $attributes, $manifest);
+$socialNetworksShareMode = Helpers::checkAttr('socialNetworksShareMode', $attributes, $manifest);
$networksToShow = [];
@@ -47,15 +47,15 @@
$blockClass = $attributes['blockClass'] ?? '';
$selectorClass = $attributes['selectorClass'] ?? $componentClass;
-$socialLinksClass = Components::classnames([
+$socialLinksClass = Helpers::classnames([
$componentClass,
$socialNetworksShareMode ? $componentJsClass : '',
- Components::selector($blockClass, $blockClass, $selectorClass),
+ Helpers::selector($blockClass, $blockClass, $selectorClass),
$additionalClass,
]);
-$itemClass = Components::classnames([
- Components::selector($componentClass, $componentClass, 'link'),
+$itemClass = Helpers::classnames([
+ Helpers::selector($componentClass, $componentClass, 'link'),
$socialNetworksShareMode ? "{$componentJsClass}-link" : '',
]);
diff --git a/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php b/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php
index defd90caa..a47ed0f9f 100644
--- a/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php
+++ b/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php
@@ -3,7 +3,7 @@
/**
* Tracking codes Before body end
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
// Add Before body end hooks here.
diff --git a/blocks/init/src/Blocks/components/tracking-head/tracking-head.php b/blocks/init/src/Blocks/components/tracking-head/tracking-head.php
index 7d08ea4ba..88b501ef6 100644
--- a/blocks/init/src/Blocks/components/tracking-head/tracking-head.php
+++ b/blocks/init/src/Blocks/components/tracking-head/tracking-head.php
@@ -3,7 +3,7 @@
/**
* Tracking codes in Head
*
- * @package EightshiftBoilerplate
+ * @package %g_namespace%
*/
// Adding Code here.
diff --git a/blocks/init/src/Blocks/components/video/components/video-editor.js b/blocks/init/src/Blocks/components/video/components/video-editor.js
index 1b1db5868..11abbbaaa 100644
--- a/blocks/init/src/Blocks/components/video/components/video-editor.js
+++ b/blocks/init/src/Blocks/components/video/components/video-editor.js
@@ -52,8 +52,8 @@ export const VideoEditor = (attributes) => {
})
}
labels={{
- title: __('Video', 'eightshift-frontend-libs'),
- instructions: __('Upload a video file or pick one from your media library.', 'eightshift-frontend-libs'),
+ title: __('Video', '%g_textdomain%'),
+ instructions: __('Upload a video file or pick one from your media library.', '%g_textdomain%'),
}}
multiple
accept={videoAccept}
@@ -62,8 +62,8 @@ export const VideoEditor = (attributes) => {
}
{!hasVideo && showPlaceholderInsteadOfMediaPicker &&
-
- {__('Check the block options', 'eightshift-frontend-libs')}
+
+ {__('Check the block options', '%g_textdomain%')}
}
diff --git a/blocks/init/src/Blocks/components/video/components/video-options.js b/blocks/init/src/Blocks/components/video/components/video-options.js
index e7e2d5c11..fc7ac9065 100644
--- a/blocks/init/src/Blocks/components/video/components/video-options.js
+++ b/blocks/init/src/Blocks/components/video/components/video-options.js
@@ -72,9 +72,9 @@ export const VideoOptions = (attributes) => {
{hideVideoPicker &&
- {__('Add one in the Block editor', 'eightshift-frontend-libs')}
+ {__('Add one in the Block editor', '%g_textdomain%')}
}
@@ -90,7 +90,7 @@ export const VideoOptions = (attributes) => {
})
})
}
- labels={{ title: __('Add a video', 'eightshift-frontend-libs') }}
+ labels={{ title: __('Add a video', '%g_textdomain%') }}
accept={videoAccept}
allowedTypes={videoAllowedTypes}
multiple
@@ -105,8 +105,8 @@ export const VideoOptions = (attributes) => {
@@ -118,7 +118,7 @@ export const VideoOptions = (attributes) => {
// eslint-disable-next-line max-len
className='es-button-icon-24 es-slight-button-border-cool-gray-100 es-hover-slight-button-border-red-500 es-hover-color-red-500 es-rounded-1 es-nested-color-red-500 es-v-center es-content-center! es-h-18 es-w-18 es-gap-1! es-p-1! es-nested-m-0!'
>
- {__('Remove video', 'eightshift-frontend-libs')}
+ {__('Remove video', '%g_textdomain%')}
}
@@ -126,14 +126,14 @@ export const VideoOptions = (attributes) => {