Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > essential-blocks > src > > blocks > icon > src
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
constants | Directory | - | - | |
attributes.js | File | 2786 bytes | August 27 2024 16:37:06. | |
deprecated.js | File | 2436 bytes | August 27 2024 16:37:06. | |
edit.js | File | 1935 bytes | August 27 2024 16:37:06. | |
example.js | File | 65 bytes | August 27 2024 16:37:06. | |
icon.svg | File | 2413 bytes | August 27 2024 16:37:06. | |
index.js | File | 644 bytes | August 27 2024 16:37:06. | |
inspector.js | File | 7774 bytes | August 27 2024 16:37:06. | |
save.js | File | 950 bytes | August 27 2024 16:37:06. | |
style.js | File | 7763 bytes | August 27 2024 16:37:06. | |
style.scss | File | 904 bytes | October 09 2024 09:48:22. |
/** * WordPress dependencies */ import { __ } from "@wordpress/i18n"; import { memo } from "@wordpress/element"; /** * Internal depencencies */ import Style from "./style"; import Inspector from "./inspector"; import defaultAttributes from './attributes'; /** * External depencencies */ import { BlockProps, EBDisplayIcon, withBlockContext } from "@essential-blocks/controls"; const Edit = (props) => { const { attributes, setAttributes, isSelected, } = props; const { resOption, blockId, icon, iconView, iconShape, classHook, } = attributes; // you must declare this variable const enhancedProps = { ...props, blockPrefix: 'eb-icon', style: <Style {...props} /> }; const viewClass = iconView !== "default" ? " eb-icon-view-" + iconView : ""; const shapeClass = iconView !== "default" ? " eb-icon-shape-" + iconShape : ""; return ( <> {isSelected && ( <> <Inspector attributes={attributes} setAttributes={setAttributes} /> </> )} <BlockProps.Edit {...enhancedProps}> <div className={`eb-parent-wrapper eb-parent-${blockId} ${classHook}`} > <div className={`eb-icon-wrapper ${blockId}${` eb-icon-view-${iconView}`}${shapeClass}`} data-id={blockId} > <div className="eb-icon-container"> <EBDisplayIcon icon={icon} /> </div> </div> </div> </BlockProps.Edit> </> ); } export default memo(withBlockContext(defaultAttributes)(Edit))
SILENT KILLER Tool