update
This commit is contained in:
parent
23bec4b3d9
commit
244b49243e
|
@ -4,7 +4,7 @@ export default function Orbiter( { primary, secondary, backgroundColor } ) {
|
||||||
<div
|
<div
|
||||||
className="orbiter-bg"
|
className="orbiter-bg"
|
||||||
style={ {
|
style={ {
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor,
|
||||||
} }
|
} }
|
||||||
/>
|
/>
|
||||||
<div className="orbiter-content content-center">
|
<div className="orbiter-content content-center">
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
/**
|
|
||||||
* Retrieves the translation of text.
|
|
||||||
*
|
|
||||||
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
|
|
||||||
*/
|
|
||||||
import { __ } from '@wordpress/i18n';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* React hook that is used to mark the block wrapper element.
|
* React hook that is used to mark the block wrapper element.
|
||||||
* It provides all the necessary props like the class name.
|
* It provides all the necessary props like the class name.
|
||||||
|
@ -37,11 +30,12 @@ export default function save( { attributes } ) {
|
||||||
<img
|
<img
|
||||||
className="img-primary"
|
className="img-primary"
|
||||||
src={ attributes.imgUrl }
|
src={ attributes.imgUrl }
|
||||||
|
alt=""
|
||||||
data-src={ attributes.imgUrl }
|
data-src={ attributes.imgUrl }
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<span
|
<span
|
||||||
class="img-primary"
|
className="img-primary"
|
||||||
data-src={ attributes.imgUrl }
|
data-src={ attributes.imgUrl }
|
||||||
/>
|
/>
|
||||||
) }
|
) }
|
||||||
|
@ -49,11 +43,12 @@ export default function save( { attributes } ) {
|
||||||
<img
|
<img
|
||||||
className="img-secondary"
|
className="img-secondary"
|
||||||
src={ attributes.imgUrlHover }
|
src={ attributes.imgUrlHover }
|
||||||
|
alt=""
|
||||||
data-src={ attributes.imgUrlHover }
|
data-src={ attributes.imgUrlHover }
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<span
|
<span
|
||||||
class="img-secondary"
|
className="img-secondary"
|
||||||
data-src={ attributes.imgUrlHover }
|
data-src={ attributes.imgUrlHover }
|
||||||
/>
|
/>
|
||||||
) }
|
) }
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
/**
|
|
||||||
* Retrieves the translation of text.
|
|
||||||
*
|
|
||||||
* @see https://developer.wordpress.org/block-editor/packages/packages-i18n/
|
|
||||||
*/
|
|
||||||
import { __ } from '@wordpress/i18n';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* React hook that is used to mark the block wrapper element.
|
* React hook that is used to mark the block wrapper element.
|
||||||
* It provides all the necessary props like the class name.
|
* It provides all the necessary props like the class name.
|
||||||
|
|
Loading…
Reference in New Issue