[ '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' ), 'settings_reset' => __( 'Settings 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' ] ); } }