Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/ultimate-blocks/src/blocks/advanced-heading/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/ultimate-blocks/src/blocks/advanced-heading/block.js
import icon from "./icons";
import edit from "./components";
import transforms from "./transforms";

const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { withSelect } = wp.data;

const attributes = {
	blockID: {
		type: "string",
		default: "",
	},
	anchor: {
		type: "string",
		default: "",
	},
	content: {
		type: "string",
		default: "",
	},
	level: {
		type: "string",
		default: "",
	},
	alignment: {
		type: "string",
		default: "none",
	},
	textColor: {
		type: "string",
		default: "",
	},
	backgroundColor: {
		type: "string",
		default: "",
	},
	fontSize: {
		type: "number",
		default: 0,
	},
	letterSpacing: {
		type: "number",
		default: 0,
	},
	textTransform: {
		type: "string",
		default: "None",
	},
	fontFamily: {
		type: "string",
		default: "",
	},
	fontWeight: {
		type: "string",
		default: "Bold",
	},
	lineHeight: {
		type: "number",
		default: 0,
	},
	highlightBgColor: {
		type: "string",
		default: "None",
	},
};

registerBlockType("ub/advanced-heading", {
	title: __("Advanced Heading", "ultimate-blocks"),
	icon,
	category: "ultimateblocks",
	keywords: [
		__("Heading", "ultimate-blocks"),
		__("Advanced Heading", "ultimate-blocks"),
		__("Ultimate Blocks", "ultimate-blocks"),
	],
	attributes,
	transforms,
	edit: withSelect((select, ownProps) => {
		const { getBlock, getClientIdsWithDescendants } =
			select("core/block-editor") || select("core/editor");

		return {
			getBlock,
			block: getBlock(ownProps.clientId),
			getClientIdsWithDescendants,
		};
	})(edit),
	save: () => null,
});

Spamworldpro Mini