Version Description
- Fixing Elementor dependencies for multisite mode.
Download this release
Release Info
Developer | dudaster |
Plugin | Elementor Custom Skin |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
- ele-custom-skin.php +4 -5
- includes/ecs-dependencies.php +25 -0
- includes/pro-preview.php +27 -1
- readme.txt +4 -1
- skins/skin-custom.php +1 -1
ele-custom-skin.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Ele Custom Skin
|
4 |
-
* Version: 1.2.
|
5 |
* Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
|
6 |
* Plugin URI: https://dudaster.com
|
7 |
* Author: Dudaster.com
|
@@ -18,14 +18,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
18 |
define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
|
19 |
define( 'ELECS_NAME', plugin_basename( __FILE__ ));
|
20 |
define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
|
21 |
-
|
22 |
include_once ELECS_DIR.'includes/ecs-notices.php';
|
|
|
23 |
|
24 |
//check if Elementor is installed
|
25 |
|
26 |
-
if (
|
27 |
-
if ( !in_array( 'elementor-pro/elementor-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) $ecs_elementor=false;
|
28 |
-
if ($ecs_elementor) {
|
29 |
add_action( 'elementor_pro/init', 'elecs_elementor_init' );
|
30 |
function elecs_elementor_init(){
|
31 |
//load templates types
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Ele Custom Skin
|
4 |
+
* Version: 1.2.5
|
5 |
* Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
|
6 |
* Plugin URI: https://dudaster.com
|
7 |
* Author: Dudaster.com
|
18 |
define( 'ELECS_DIR', plugin_dir_path( __FILE__ ));
|
19 |
define( 'ELECS_NAME', plugin_basename( __FILE__ ));
|
20 |
define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
|
21 |
+
|
22 |
include_once ELECS_DIR.'includes/ecs-notices.php';
|
23 |
+
include_once ELECS_DIR.'includes/ecs-dependencies.php';
|
24 |
|
25 |
//check if Elementor is installed
|
26 |
|
27 |
+
if (ecs_dependencies()) {
|
|
|
|
|
28 |
add_action( 'elementor_pro/init', 'elecs_elementor_init' );
|
29 |
function elecs_elementor_init(){
|
30 |
//load templates types
|
includes/ecs-dependencies.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
//check if Elementor is installed
|
3 |
+
|
4 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
5 |
+
|
6 |
+
function ecs_dependencies(){
|
7 |
+
$ecs_elementor=true;
|
8 |
+
if(function_exists('get_blog_option')){
|
9 |
+
$ecs_multi_site = get_blog_option(get_current_blog_id(), 'active_plugins');
|
10 |
+
$ecs_multi_site = isset($ecs_multi_site) ? $ecs_multi_site : [];
|
11 |
+
$ecs_multi_sitewide=get_site_option( 'active_sitewide_plugins') ;
|
12 |
+
foreach($ecs_multi_sitewide as $ecs_key => $ecs_value){
|
13 |
+
$ecs_multi_site[] = $ecs_key;
|
14 |
+
}
|
15 |
+
$ecs_plugins = $ecs_multi_site;
|
16 |
+
}
|
17 |
+
else{
|
18 |
+
$ecs_plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
|
19 |
+
}
|
20 |
+
|
21 |
+
if ( !in_array( 'elementor/elementor.php',$ecs_plugins) ) $ecs_elementor=false;
|
22 |
+
if ( !in_array( 'elementor-pro/elementor-pro.php', $ecs_plugins ) ) $ecs_elementor=false;
|
23 |
+
|
24 |
+
return $ecs_elementor;
|
25 |
+
}
|
includes/pro-preview.php
CHANGED
@@ -8,7 +8,6 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|
8 |
|
9 |
add_action( 'ECS_after_control', function($skin){
|
10 |
|
11 |
-
|
12 |
$skin->add_control(
|
13 |
'hr1',
|
14 |
[
|
@@ -70,6 +69,33 @@ add_action( 'ECS_after_control', function($skin){
|
|
70 |
]
|
71 |
);
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
$skin->add_control(
|
74 |
'hr4',
|
75 |
[
|
8 |
|
9 |
add_action( 'ECS_after_control', function($skin){
|
10 |
|
|
|
11 |
$skin->add_control(
|
12 |
'hr1',
|
13 |
[
|
69 |
]
|
70 |
);
|
71 |
|
72 |
+
$skin->add_control(
|
73 |
+
'hr5',
|
74 |
+
[
|
75 |
+
'type' => \Elementor\Controls_Manager::DIVIDER,
|
76 |
+
]
|
77 |
+
);
|
78 |
+
$skin->add_control(
|
79 |
+
'display_title',
|
80 |
+
[
|
81 |
+
'label' => __( 'Display Mode', 'ele-custom-skin' ),
|
82 |
+
'type' => \Elementor\Controls_Manager::HEADING,
|
83 |
+
]
|
84 |
+
);
|
85 |
+
|
86 |
+
$skin->add_control(
|
87 |
+
'same_height',
|
88 |
+
[
|
89 |
+
'label' => '<i class="fa fa-lock" aria-hidden="true"></i> '.__( 'Same Height', 'ele-custom-skin' ),
|
90 |
+
'type' => \Elementor\Controls_Manager::SWITCHER,
|
91 |
+
'label_off' => __( 'Off', 'ele-custom-skin' ),
|
92 |
+
'label_on' => __( 'On', 'ele-custom-skin' ),
|
93 |
+
'return_value' => '100%',
|
94 |
+
'default' => 'auto',
|
95 |
+
]
|
96 |
+
);
|
97 |
+
|
98 |
+
|
99 |
$skin->add_control(
|
100 |
'hr4',
|
101 |
[
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page-builder, elementor, loop, archive list, post widget, skin, custom
|
|
4 |
Donate link: https://www.paypal.me/dudaster
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.2.3
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -61,6 +61,9 @@ Add to your template a Post or Post Archive widget and from Skins select Custom
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.2.4 =
|
65 |
* Showing deleted templates in the Custom Skin field fixed.
|
66 |
* Fixed Overflow issue. Now you can add shadows and other objects that can go outside the loop item.
|
4 |
Donate link: https://www.paypal.me/dudaster
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.2.3
|
7 |
+
Stable tag: 1.2.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.2.5 =
|
65 |
+
* Fixing Elementor dependencies for multisite mode.
|
66 |
+
|
67 |
= 1.2.4 =
|
68 |
* Showing deleted templates in the Custom Skin field fixed.
|
69 |
* Fixed Overflow issue. Now you can add shadows and other objects that can go outside the loop item.
|
skins/skin-custom.php
CHANGED
@@ -57,7 +57,7 @@ class Skin_Posts_ECS extends Skin_Base {
|
|
57 |
'prefix_class' => 'elementor-posts--thumbnail-',
|
58 |
]
|
59 |
);
|
60 |
-
|
61 |
do_action( 'ECS_after_control', $this );
|
62 |
|
63 |
$this->add_control(
|
57 |
'prefix_class' => 'elementor-posts--thumbnail-',
|
58 |
]
|
59 |
);
|
60 |
+
|
61 |
do_action( 'ECS_after_control', $this );
|
62 |
|
63 |
$this->add_control(
|