SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > leadin > public > > > admin


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/leadin/public///admin

NameTypeSizeLast ModifiedActions
modules Directory - -
widgets Directory - -
class-adminconstants.php File 7415 bytes July 17 2025 21:06:25.
class-connection.php File 5403 bytes July 17 2025 21:06:25.
class-contentembedinstaller.php File 5054 bytes July 17 2025 21:06:25.
class-deactivationform.php File 3593 bytes July 17 2025 21:06:25.
class-gutenberg.php File 1243 bytes July 17 2025 21:06:25.
class-impact.php File 1045 bytes July 17 2025 21:06:25.
class-leadinadmin.php File 10491 bytes July 17 2025 21:06:25.
class-links.php File 6427 bytes July 17 2025 21:06:25.
class-menuconstants.php File 492 bytes July 17 2025 21:06:25.
class-noticemanager.php File 2246 bytes July 17 2025 21:06:25.
class-pluginactionsmanager.php File 1832 bytes July 17 2025 21:06:25.
class-reviewbanner.php File 3004 bytes July 17 2025 21:06:25.
class-reviewcontroller.php File 2234 bytes July 17 2025 21:06:25.
class-routing.php File 2636 bytes July 17 2025 21:06:25.

Reading File: /home/transcarter/public_html/wp-content/plugins/leadin/public///admin/class-gutenberg.php

<?php

namespace Leadin\admin;

use Leadin\AssetsManager;
use Leadin\utils\Versions;

/**
 * Contains all the methods used to initialize Gutenberg blocks.
 */
class Gutenberg {
	/**
	 * Class constructor, register Gutenberg blocks.
	 */
	public function __construct() {
		if ( ! function_exists( 'register_block_type' ) ) {
			// Gutenberg is not active.
			return;
		}

		add_action( 'init', array( $this, 'register_gutenberg_block' ) );
		add_filter( 'block_categories_all', array( $this, 'add_hubspot_category' ) );
	}

	/**
	 * Add HubSpot category to Gutenberg blocks.
	 *
	 * @param Array $categories Array of block categories.
	 */
	public function add_hubspot_category( $categories ) {
		return array_merge(
			$categories,
			array(
				array(
					'slug'  => 'leadin-blocks',
					'title' => __( 'HubSpot', 'leadin' ),
				),
			)
		);
	}
	/**
	 * Register HubSpot Form Gutenberg block.
	 */
	public function register_gutenberg_block() {
		AssetsManager::localize_gutenberg();
		register_block_type(
			'leadin/hubspot-form-block',
			array(
				'editor_script' => AssetsManager::GUTENBERG,
			)
		);
		register_block_type(
			'leadin/hubspot-meeting-block',
			array(
				'editor_script' => AssetsManager::GUTENBERG,
			)
		);
	}
}

SILENT KILLER Tool