403Webshell
Server IP : 195.58.49.151  /  Your IP : 216.73.217.39
Web Server : Apache/2.4.67 (Debian) mod_fcgid/2.3.9 OpenSSL/3.0.20
System : Linux hs.hsdns.ru 6.1.0-48-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.172-1 (2026-05-15) x86_64
User : antilam ( 1007)
PHP Version : 8.4.22
Disable Function : system,passthru,popen
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/antilam/web/antilam.ru/public_html/wp-content/plugins/cyr2lat/src/php/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/antilam/web/antilam.ru/public_html/wp-content/plugins/cyr2lat/src/php//ACF.php
<?php
/**
 * ACF Support.
 *
 * @package cyr-to-lat
 */

namespace CyrToLat;

use CyrToLat\Settings\Settings;

/**
 * Class ACF
 */
class ACF {

	/**
	 * Plugin settings.
	 *
	 * @var Settings
	 */
	private $settings;

	/**
	 * ACF constructor.
	 *
	 * @param Settings $settings Plugin settings.
	 */
	public function __construct( Settings $settings ) {
		$this->settings = $settings;

		$this->init_hooks();
	}

	/**
	 * Init class hooks.
	 */
	public function init_hooks(): void {
		add_action( 'acf/field_group/admin_enqueue_scripts', [ $this, 'enqueue_script' ] );
	}

	/**
	 * Enqueue script in ACF field group page.
	 *
	 * @return void
	 */
	public function enqueue_script(): void {
		global $cyr_to_lat_plugin;

		$min   = $cyr_to_lat_plugin->min_suffix();
		$table = $this->settings->get_table();

		wp_enqueue_script(
			'cyr-to-lat-acf-field-group',
			constant( 'CYR_TO_LAT_URL' ) . "/assets/js/acf-field-group$min.js",
			[],
			constant( 'CYR_TO_LAT_VERSION' ),
			true
		);

		$object = [ 'table' => $table ];

		wp_localize_script( 'cyr-to-lat-acf-field-group', 'CyrToLatAcfFieldGroup', $object );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit