Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{ /* eslint-disable-next-line */ }
<a href="{">
<div>
{ ! RichText.isEmpty( title ) && (
) }
{ ! RichText.isEmpty( description ) && (
) }
</div>
{ arrow && link && (
<div>
</div>
) }
)
} ) }</a>
)
const descriptionComp = ! RichText.isEmpty( description ) && (
)
const buttonComp = ! RichText.isEmpty( buttonText ) && (
)
const imageComp = imageUrl && (
/>
);
const figure = (
<>
{ href ? (
<a rel="{" href="{">
{ image }
</a>
) : image }
{ ! RichText.isEmpty( caption ) && }
);
if ( 'left' === align || 'right' === align || 'center' === align ) {
return (
<div>
<figure>
{ figure }
</figure>
</div>
);
}
return (
<figure>
{ figure }</figure>
[ `ugb--shadow-${ shadow }` ]: design !== 'plain' && shadow !== 3,
}, design, i, props ) )
const styles = applyFilters( 'stackable.team-member.itemstyles_1_17_3', {
item: {
borderRadius: design !== 'plain' && borderRadius !== 12 ? borderRadius : undefined,
},
}, design, i, props )
const imageComp = mediaURL && (
<div data-src="{" style="{">
)
const nameComp = ! RichText.isEmpty( name ) && (
)
const positionComp = ! RichText.isEmpty( position ) && (
)
const descriptionComp = ! RichText.isEmpty( description ) && (</div>
<div>
{ ! RichText.isEmpty( heading ) && (
) }
{ ! RichText.isEmpty( name ) && (
) }
{ ! RichText.isEmpty( biography ) && (
) }
</div>
);
}
return null;
},
},
source={ { uri: src } }
paused={ true }
muted={ true }
/>
}
{ ! showVideo &&
}
);
} }
/>
{ ( ! RichText.isEmpty( caption ) > 0 || isSelected ) && (
) }
);
}
}
color: textColorClass ? undefined : customTextColor,
};
const buttonColorClass = getColorClassName( 'background-color', buttonColor );
const buttonClasses = classnames( 'wp-block-coblocks-click-to-tweet__twitter-btn', {
'has-button-color': buttonColor || customButtonColor,
[ buttonColorClass ]: buttonColorClass,
} );
const buttonStyles = {
backgroundColor: buttonColorClass ? undefined : customButtonColor,
};
return (
! RichText.isEmpty( content ) && (
<blockquote style="{">
</blockquote>
title: __( 'Uncropped', 'newspack-blocks' ),
isActive: imageShape === 'uncropped',
onClick: () => setAttributes( { imageShape: 'uncropped' } ),
},
];
return (
<div style="{">
<div>
{ latestPosts && ( ! RichText.isEmpty( sectionHeader ) || isSelected ) && (
setAttributes( { sectionHeader: value } ) }
placeholder={ __( 'Write header…', 'newspack-blocks' ) }
value={ sectionHeader }
tagName="h2"
className="article-section-title"
/>
) }
{ latestPosts && ! latestPosts.length && (
{ __( 'Sorry, no posts were found.', 'newspack-blocks' ) }
) }
{ ! latestPosts && (
) }</div></div>
[ `ugb--shadow-${ shadow }` ]: show.columnBackground && shadow !== '',
}, props ) )
const titleComp = showTitle && ! RichText.isEmpty( title ) &&
const subtitleComp = showSubtitle && ! RichText.isEmpty( subtitle ) &&
const buttonComp = showButton && ! RichText.isEmpty( buttonText ) &&
const button2Comp = showButton2 && //! RichText.isEmpty( button2Text ) &&
const comps = {
titleComp,
subtitleComp,
buttonComp,
const imageComp = imageUrl &&
<div>
<img shape="{" title="" alt="{" src="{">
</div>
const imageBgComp = imageUrl &&
<div></div>
const titleComp = ! RichText.isEmpty( title ) && (
)
const priceComp = ! RichText.isEmpty( price ) && (
<div>
{ ! RichText.isEmpty( price ) && (
<div>
{ showPricePrefix && ! RichText.isEmpty( pricePrefix ) && (
</div></div>