????JFIF??x?x????'
| Server IP : 104.21.30.238 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.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 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/eaabusiness.com/wp-content/plugins/everest-forms/src/blocks/blocks/ |
Upload File : |
import { registerBlockType } from "@wordpress/blocks";
import { applyFilters } from "@wordpress/hooks";
import * as formSelector from "./form-selector";
import * as frontendListing from "./frontend-listing";
import * as UserLogin from "./user-login";
/* global _EVF_BLOCKS_ */
const { isFrontendListingActive, isUserRegistrationActive, isPro } =
typeof _EVF_BLOCKS_ !== "undefined" && _EVF_BLOCKS_;
let blocks = [formSelector];
if (isPro && isFrontendListingActive) {
blocks.push(frontendListing);
}
if (isPro && isUserRegistrationActive) {
blocks.push(UserLogin);
}
blocks = applyFilters("everest-forms.blocks", blocks);
/**
* The function "registerBlocks" iterates over an array of blocks and calls the
* "register" method on each block.
*/
export const registerBlocks = () => {
for (const block of blocks) {
const settings = applyFilters(
"everest-forms.blocks.metadata",
block.settings,
);
settings.edit = applyFilters(
"everest-forms.blocks.edit",
settings.edit,
settings,
);
//Register the blocks.
registerBlockType(block.name, settings);
}
};
export default registerBlocks;