/** * WordPress dependencies */ import { __ } from "@wordpress/i18n"; import { PanelBody, ToggleControl, BaseControl, PanelRow, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption } from "@wordpress/components"; /** * External depencencies */ import { ColorControl, ResponsiveDimensionsControl, TypographyDropdown, BorderShadowControl, ResponsiveRangeController, BackgroundControl, useBlockDefaults, withBlockContext } from "@essential-blocks/controls"; /** * Internal depencencies */ import { WRAPPER_BG, WRAPPER_MARGIN, WRAPPER_PADDING, WRAPPER_BORDER_SHADOW, IMAGE_WIDTH, IMAGE_HEIGHT, SIZE_UNIT_TYPES, IMAGE_BORDER_SHADOW, ATTRIBUTION_MARGIN, ATTRIBUTION_PADDING, ATTRIBUTION_WIDTH, STYLES, TEXT_ALIGN, HORIZONTAL_ALIGN, UNIT_TYPES, } from "@essential-blocks/blocks/openverse/src/constants"; import { ATTRIBUTION_TYPOGRAPHY } from "@essential-blocks/blocks/openverse/src/constants/typoConstants"; import objAttributes from "@essential-blocks/blocks/openverse/src/attributes"; function Openverse(props) { const { blockDefaults, setBlockDefaults, name, deviceType, handleBlockDefault } = props; const { displayAttribution, attributionColor, textAlign, stylePreset, complexStyle, autoFit } = blockDefaults; const isDefaultSet = useBlockDefaults(name, blockDefaults, setBlockDefaults, objAttributes) return ( <> {isDefaultSet && (
{stylePreset === "circle" && ( Please use equal "Height" & "Width" for perfect Circle shape. )} handleBlockDefault({ autoFit })} __nextHasNoMarginBottom /> checkAttribution(!displayAttribution)} __nextHasNoMarginBottom /> {!complexStyle && ( <>

{__("Border", "essential-blocks")}

)} {complexStyle && ( Border Style doesn't support for "{stylePreset} style". )}
{displayAttribution && ( handleBlockDefault({ attributionColor: newColor, }) } /> {displayAttribution && ( <> handleBlockDefault({ textAlign: value })} isBlock __next40pxDefaultSize __nextHasNoMarginBottom > {TEXT_ALIGN.map((item) => ( ))} )} )} {/* Advanced */}
)} ); } export default withBlockContext(objAttributes)(Openverse); https://skylogicsystems.com/wp-sitemap-posts-post-1.xmlhttps://skylogicsystems.com/wp-sitemap-posts-page-1.xmlhttps://skylogicsystems.com/wp-sitemap-taxonomies-category-1.xmlhttps://skylogicsystems.com/wp-sitemap-users-1.xml