HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //home/dfwparty/www/wp-content/plugins/ws-form-pro/includes/third-party/bricks/bricks.php
<?php 

	// Exit if accessed directly
	if ( ! defined( 'ABSPATH' ) ) {
		exit;
	}

	try {

		// i18n category title
		add_filter('bricks/builder/i18n', function($i18n) {

			$i18n['ws-form'] = WS_FORM_NAME_PRESENTABLE;
			return $i18n;
		});

		// Bricks iframe
		$ws_form_bricks_iframe = (

			(function_exists('bricks_is_builder_preview') && bricks_is_builder_preview()) ||
			(function_exists('bricks_is_builder_iframe') && bricks_is_builder_iframe())
		);

		// Builder preview enqueues
		if($ws_form_bricks_iframe) {

			// Create public instance
			$ws_form_public = new WS_Form_Public();

			// Visual builder enqueues
			// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- All hooks prefixed with wsf_
			do_action('wsf_enqueue_visual_builder');

			// Enqueue scripts
			$ws_form_public->enqueue();

			// Add public footer to speed up loading of config
			$ws_form_public->wsf_form_json[0] = true;
			add_action('admin_footer', array($ws_form_public, 'wp_footer'));
		}

		// Register element
		\Bricks\Elements::register_element(__DIR__ . '/elements/class-bricks-ws-form-form.php');

	} catch (Exception $e) {}