Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/>
{ attributes.showReviewRating && ! REVIEW_RATINGS_ENABLED && (
{ sprintf(
escapeHTML(
/* translators: A notice that links to WooCommerce settings. */
__(
'Product rating is disabled in your %sstore settings%s.',
'woo-gutenberg-products-block'
)
),
`<a href="${ getAdminLink(
'admin.php?page=wc-settings&tab=products'
) }">`,
'</a>'
) }
) }
setAttributes( {
showReviewerName: ! attributes.showReviewerName,
} )
}
/>
) }
Customizer.',
'woo-gutenberg-products-block'
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a rel="noopener noreferrer" href="{">
),
}
) }
value={ imageSizing }
options={ [
{
label: __(
'Full Size',
'woo-gutenberg-products-block'
),
value: 'full-size',</a>
/>
{ attributes.imageType === 'reviewer' && ! SHOW_AVATARS && (
{ __experimentalCreateInterpolateElement(
__(
'Reviewer photo is disabled in your <a>site settings</a>.',
'woocommerce'
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a rel="noopener noreferrer" href="{">
),
}
) }
</a><a rel="noopener noreferrer" href="{">
) }
) }
);
};
</a>
/>
{ attributes.imageType === 'reviewer' && ! SHOW_AVATARS && (
{ __experimentalCreateInterpolateElement(
__(
'Reviewer photo is disabled in your <a>site settings</a>.',
'woo-gutenberg-products-block'
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a rel="noopener noreferrer" href="{">
),
}
) }
</a><a rel="noopener noreferrer" href="{">
) }
) }
);
};
</a>
/>
{ attributes.showReviewRating && ! REVIEW_RATINGS_ENABLED && (
{ __experimentalCreateInterpolateElement(
__(
'Product rating is disabled in your <a>store settings</a>.',
'woocommerce'
),
{
a: (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a rel="noopener noreferrer" href="{">
),
}
) }
</a><a rel="noopener noreferrer" href="{">
) }
setAttributes( {
showReviewerName: ! attributes.showReviewerName,</a>
instructions={ __(
'Display a list of filters based on a chosen attribute.',
'woocommerce'
) }
>
<p>
{ __(
"Attributes are needed for filtering your products. You haven't created any attributes yet.",
'woocommerce'
) }
</p>
<button href="{">
{ __( 'Add new attribute', 'woocommerce' ) +
' ' }
</button>
<button href="https://docs.woocommerce.com/document/managing-product-taxonomies/">
{ __( 'Learn more', 'woocommerce' ) }
</button>
);
instructions={ __(
'Display a list of filters based on a chosen attribute.',
'woo-gutenberg-products-block'
) }
>
<p>
{ __(
"Attributes are needed for filtering your products. You haven't created any attributes yet.",
'woo-gutenberg-products-block'
) }
</p>
<button href="{">
{ __( 'Add new attribute', 'woo-gutenberg-products-block' ) +
' ' }
</button>
<button href="https://docs.woocommerce.com/document/managing-product-taxonomies/">
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</button>
);
instructions={ __(
'Display a slider to filter products in your store by price.',
'woo-gutenberg-products-block'
) }
>
<p>
{ __(
"Products with prices are needed for filtering by price. You haven't created any products yet.",
'woo-gutenberg-products-block'
) }
</p>
<button href="{">
{ __( 'Add new product', 'woo-gutenberg-products-block' ) +
' ' }
</button>
<button href="https://docs.woocommerce.com/document/managing-products/">
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</button>
);
instructions={ __(
'Display a slider to filter products in your store by price.',
'woo-gutenberg-products-block'
) }
>
<p>
{ __(
"Products with prices are needed for filtering by price. You haven't created any products yet.",
'woo-gutenberg-products-block'
) }
</p>
<button href="{">
{ __( 'Add new product', 'woo-gutenberg-products-block' ) +
' ' }
</button>
<button href="https://docs.woocommerce.com/document/managing-products/">
{ __( 'Learn more', 'woo-gutenberg-products-block' ) }
</button>
);
instructions={ __(
'Display a slider to filter products in your store by price.',
'woocommerce'
) }
>
<p>
{ __(
"Products with prices are needed for filtering by price. You haven't created any products yet.",
'woocommerce'
) }
</p>
<button href="{">
{ __( 'Add new product', 'woocommerce' ) +
' ' }
</button>
<button href="https://docs.woocommerce.com/document/managing-products/">
{ __( 'Learn more', 'woocommerce' ) }
</button>
);