PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.5
Elementor Website Builder – more than just a page builder v3.32.5
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / history / module.php

module.php in Elementor Website Builder – more than just a page builder 3.32.5, at modules/history/module.php

56 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Modules\History;
3
4 use Elementor\Core\Base\Module as BaseModule;
5 use Elementor\Plugin;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 /**
12 * Elementor history module.
13 *
14 * Elementor history module handler class is responsible for registering and
15 * managing Elementor history modules.
16 *
17 * @since 1.7.0
18 */
19 class Module extends BaseModule {
20
21 /**
22 * Get module name.
23 *
24 * Retrieve the history module name.
25 *
26 * @since 1.7.0
27 * @access public
28 *
29 * @return string Module name.
30 */
31 public function get_name() {
32 return 'history';
33 }
34
35 /**
36 * @since 2.3.0
37 * @access public
38 */
39 public function add_templates() {
40 Plugin::$instance->common->add_template( __DIR__ . '/views/history-panel-template.php' );
41 Plugin::$instance->common->add_template( __DIR__ . '/views/revisions-panel-template.php' );
42 }
43
44 /**
45 * History module constructor.
46 *
47 * Initializing Elementor history module.
48 *
49 * @since 1.7.0
50 * @access public
51 */
52 public function __construct() {
53 add_action( 'elementor/editor/init', [ $this, 'add_templates' ] );
54 }
55 }
56