PluginProbe ʕ •ᴥ•ʔ
ECS – Ele Custom Skin for Elementor / 4.3.7
ECS – Ele Custom Skin for Elementor v4.3.7
4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.11 4.1.10 4.1.9 4.1.8 4.1.6 4.1.7 4.1.5 4.1.4 4.1.1 4.1.2 trunk 1.0.0 1.0.1 1.0.9 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.4 1.2.5 1.3.10 1.3.11 1.3.3 1.3.4 1.3.6 1.3.7 1.3.9 1.4.0 2.0.2 2.1.0 2.2.0 2.2.1 2.2.2 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 4.1.0
ele-custom-skin / theme-builder / conditions / custom-grid.php
ele-custom-skin / theme-builder / conditions Last commit date
custom-grid.php 6 years ago loop.php 6 years ago
custom-grid.php
51 lines
1 <?php
2
3
4 use ElementorPro\Modules\ThemeBuilder\Module;
5 use ElementorPro\Core\Utils;
6 use ElementorPro\Modules\ThemeBuilder\Conditions\Post;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly
10 }
11
12 class ECS_Custom_Grid_Conditions extends ElementorPro\Modules\ThemeBuilder\Conditions\Condition_Base {
13
14 protected $sub_conditions = [];
15
16 public static function get_type() {
17 return 'custom_grid';
18 }
19
20 public function get_name() {
21 return 'custom_grid';
22 }
23
24 public static function get_priority() {
25 return 60;
26 }
27
28 public function get_label() {
29 return __( 'Custom Grid', 'ele-custom-skin' );
30 }
31
32 public function get_all_label() {
33 return __( 'No Conditions', 'ele-custom-skin' );
34 }
35
36 public function register_sub_conditions() {
37 // Last condition.
38 $this->sub_conditions[] = 'not_found404';
39
40 }
41
42 public function check( $args ) {
43 return false;
44 }
45 }
46
47 add_action( 'elementor/theme/register_conditions', function( $conditions_manager ) {
48 $conditions_manager->get_condition('general')->register_sub_condition( new ECS_Custom_Grid_Conditions() );
49
50 },100);
51