FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
elementor/modules/nested-elements/module.php at main · elementor/elementor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
elementor
/
elementor
Public
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
7.1k
Code
Issues
3.8k
Pull requests
177
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
elementor
/
modules
/
nested-elements
/
module.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (36 loc) · 1.14 KB
Breadcrumbs
elementor
/
modules
/
nested-elements
/
module.php
Copy path
File metadata and controls
45 lines (36 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
namespace
Elementor
\
Modules
\
NestedElements
;
use
Elementor
\
Core
\
Experiments
\
Manager
as
Experiments_Manager
;
if
( !
defined
(
'
ABSPATH
'
) ) {
exit
;
// Exit if accessed directly.
}
class
Module
extends
\
Elementor
\
Core
\
Base
\Module {
const
EXPERIMENT_NAME
=
'
nested-elements
'
;
public
static
function
get_experimental_data
() {
return
[
'
name
'
=>
self
::
EXPERIMENT_NAME
,
'
title
'
=>
esc_html__
(
'
Nested Elements
'
,
'
elementor
'
),
'
release_status
'
=> Experiments_Manager::
RELEASE_STATUS_STABLE
,
'
default
'
=> Experiments_Manager::
STATE_ACTIVE
,
'
mutable
'
=>
false
,
'
hidden
'
=>
true
,
'
dependencies
'
=> [
'
container
'
,
],
];
}
public
function
get_name
() {
return
'
nested-elements
'
;
}
public
function
__construct
() {
parent
::
__construct
();
add_action
(
'
elementor/controls/register
'
,
function
(
$
controls_manager
) {
$
controls_manager
->
register
(
new
Controls
\
Control_Nested_Repeater
() );
} );
add_action
(
'
elementor/editor/before_enqueue_scripts
'
,
function
() {
wp_enqueue_script
(
$
this
->
get_name
(),
$
this
->
get_js_assets_url
(
$
this
->
get_name
() ), [
'
elementor-common
'
,
],
ELEMENTOR_VERSION
,
true
);
} );
}
}
Back
|
FazBrowse Home
|
New Git URL