| Server IP : 89.108.64.180 / Your IP : 216.73.217.92 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/hostel76.com/wp-content/plugins/elementor/modules/history/ |
Upload File : |
<?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' ] );
}
}