HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/sureshstore/public_html/wp-content/plugins/jetpack/extensions/blocks/latex/latex.php
<?php
/**
 * LaTeX Block.
 *
 * @since 15.0
 *
 * @package automattic/jetpack
 */

namespace Automattic\Jetpack\Extensions\Latex;

use Automattic\Jetpack\Blocks;
use Jetpack_Gutenberg;

/**
 * Register the block.
 */
function latex_formula_block_init() {
	Blocks::jetpack_register_block(
		__DIR__,
		array( 'render_callback' => __NAMESPACE__ . '\load_assets' )
	);
}

add_action( 'init', __NAMESPACE__ . '\latex_formula_block_init' );

/**
 * Load the assets for the block.
 *
 * @param array  $attr    The attributes of the block.
 * @param string $content The content of the block.
 *
 * @return string The content of the block.
 */
function load_assets( $attr, $content ) {
	/*
	 * Enqueue necessary scripts and styles.
	 */
	Jetpack_Gutenberg::load_assets_as_required( __DIR__ );

	return $content;
}